configure.in
branchSDL-1.3
changeset 1697 393092a3ebf6
parent 1692 75f2ace8511a
child 1700 21184e1d04c3
     1.1 --- a/configure.in	Wed Jun 21 07:36:00 2006 +0000
     1.2 +++ b/configure.in	Wed Jun 21 07:57:59 2006 +0000
     1.3 @@ -596,11 +596,14 @@
     1.4  AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [[default=yes]]]),
     1.5                    , enable_nasm=yes)
     1.6      if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then
     1.7 -        AC_PATH_PROG(NASM, nasm)
     1.8 -        if test x$NASM != x -a x$NASM != x'"$NASM"'; then
     1.9 +        AC_PATH_PROG(NASM, yasm)
    1.10 +        if test "x$NASM" = x -o "x$NASM" = x'"$NASM"'; then
    1.11 +            AC_PATH_PROG(NASM, nasm)
    1.12 +        fi
    1.13 +        if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then
    1.14              AC_DEFINE(SDL_HERMES_BLITTERS)
    1.15              SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
    1.16 -            if test x$NASMFLAGS = x; then
    1.17 +            if test x"$NASMFLAGS" = x; then
    1.18                  case $ARCH in
    1.19                    win32)
    1.20                        NASMFLAGS="-f win32"
    1.21 @@ -613,6 +616,15 @@
    1.22                        ;;
    1.23                  esac
    1.24              fi
    1.25 +            NASMFLAGS="$NASMFLAGS -i $srcdir/src/hermes/"
    1.26 +
    1.27 +            dnl See if hidden visibility is supported
    1.28 +            echo 'GLOBAL _bar:function hidden' > nasm_vis.asm
    1.29 +            if $NASM $NASMFLAGS nasm_vis.asm -o nasm_vis.o >&AS_MESSAGE_LOG_FD ; then
    1.30 +                NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
    1.31 +            fi
    1.32 +            rm -f nasm_vis.asm nasm_vis.o
    1.33 +
    1.34              AC_SUBST(NASM)
    1.35              AC_SUBST(NASMFLAGS)
    1.36