comparison configure.in @ 1889:5225a9cc25a2

Almost added Mac OS X nasm support
author Sam Lantinga <slouken@libsdl.org>
date Mon, 26 Jun 2006 05:27:15 +0000
parents 44635227a939
children 2c22f1351941
comparison
equal deleted inserted replaced
1888:488eba319a25 1889:5225a9cc25a2
609 NASMFLAGS="-f win32" 609 NASMFLAGS="-f win32"
610 ;; 610 ;;
611 openbsd) 611 openbsd)
612 NASMFLAGS="-f aoutb" 612 NASMFLAGS="-f aoutb"
613 ;; 613 ;;
614 macosx)
615 NASMFLAGS="-f macho"
616 ;;
614 *) 617 *)
615 NASMFLAGS="-f elf" 618 NASMFLAGS="-f elf"
616 ;; 619 ;;
617 esac 620 esac
618 fi 621 fi
619 NASMFLAGS="$NASMFLAGS -i $srcdir/src/hermes/" 622 NASMFLAGS="$NASMFLAGS -i $srcdir/src/hermes/"
620 623
621 dnl See if hidden visibility is supported 624 dnl See if hidden visibility is supported
622 echo 'GLOBAL _bar:function hidden' > nasm_vis.asm 625 echo 'GLOBAL _bar:function hidden' > nasm_vis.asm
623 if $NASM $NASMFLAGS nasm_vis.asm -o nasm_vis.o >&AS_MESSAGE_LOG_FD ; then 626 if $NASM $NASMFLAGS nasm_vis.asm -o nasm_vis.o >&AS_MESSAGE_LOG_FD 2>&1; then
624 NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY" 627 NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
625 fi 628 fi
626 rm -f nasm_vis.asm nasm_vis.o 629 rm -f nasm_vis.asm nasm_vis.o
627 630
628 AC_SUBST(NASM) 631 AC_SUBST(NASM)
2411 CheckDummyVideo 2414 CheckDummyVideo
2412 CheckDiskAudio 2415 CheckDiskAudio
2413 CheckDummyAudio 2416 CheckDummyAudio
2414 CheckDLOPEN 2417 CheckDLOPEN
2415 2418
2419 # Temporarily disabled:
2420 # ld: mmxp2_32.o has external relocation entries in non-writable section (__TEXT,__text) for symbols: _mmxreturn
2421 #CheckNASM
2422
2416 # Set up files for the shared object loading library 2423 # Set up files for the shared object loading library
2417 # (this needs to be done before the dynamic X11 check) 2424 # (this needs to be done before the dynamic X11 check)
2418 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then 2425 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
2419 AC_DEFINE(SDL_LOADSO_DLCOMPAT) 2426 AC_DEFINE(SDL_LOADSO_DLCOMPAT)
2420 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c" 2427 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"