comparison configure.in @ 401:19f9079728f9

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Tue, 11 Jun 2002 19:32:57 +0000
parents 3dde0301f5f9
children 7efee6e36f00
comparison
equal deleted inserted replaced
400:3dde0301f5f9 401:19f9079728f9
1136 , enable_pthreads=yes) 1136 , enable_pthreads=yes)
1137 dnl This is used on Linux for glibc binary compatibility (Doh!) 1137 dnl This is used on Linux for glibc binary compatibility (Doh!)
1138 AC_ARG_ENABLE(pthread-sem, 1138 AC_ARG_ENABLE(pthread-sem,
1139 [ --enable-pthread-sem use pthread semaphores [default=yes]], 1139 [ --enable-pthread-sem use pthread semaphores [default=yes]],
1140 , enable_pthread_sem=yes) 1140 , enable_pthread_sem=yes)
1141 ac_save_cflags="$CFLAGS"
1141 ac_save_libs="$LIBS" 1142 ac_save_libs="$LIBS"
1142 case "$target" in 1143 case "$target" in
1143 *-*-bsdi*) 1144 *-*-bsdi*)
1144 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 1145 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
1145 pthread_lib="" 1146 pthread_lib=""
1184 *) 1185 *)
1185 pthread_cflags="-D_REENTRANT" 1186 pthread_cflags="-D_REENTRANT"
1186 pthread_lib="-lpthread" 1187 pthread_lib="-lpthread"
1187 ;; 1188 ;;
1188 esac 1189 esac
1190 CFLAGS="$CFLAGS $pthread_cflags"
1189 LIBS="$LIBS $pthread_lib" 1191 LIBS="$LIBS $pthread_lib"
1190 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then 1192 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
1191 AC_MSG_CHECKING(for pthreads) 1193 AC_MSG_CHECKING(for pthreads)
1192 use_pthreads=no 1194 use_pthreads=no
1193 AC_TRY_LINK([ 1195 AC_TRY_LINK([
1265 ]) 1267 ])
1266 AC_MSG_RESULT($glibc20_pthreads) 1268 AC_MSG_RESULT($glibc20_pthreads)
1267 esac 1269 esac
1268 fi 1270 fi
1269 fi 1271 fi
1272 CFLAGS="$ac_save_cflags"
1270 LIBS="$ac_save_libs" 1273 LIBS="$ac_save_libs"
1271 1274
1272 AC_MSG_CHECKING(whether semun is defined in /usr/include/sys/sem.h) 1275 AC_MSG_CHECKING(whether semun is defined in /usr/include/sys/sem.h)
1273 have_semun=no 1276 have_semun=no
1274 AC_TRY_COMPILE([ 1277 AC_TRY_COMPILE([
1780 CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd" 1783 CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd"
1781 CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la" 1784 CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la"
1782 fi 1785 fi
1783 # Set up files for the thread library 1786 # Set up files for the thread library
1784 if test x$enable_threads = xyes; then 1787 if test x$enable_threads = xyes; then
1788 if test x$use_pthreads = xyes; then
1789 CFLAGS="$CFLAGS -D_POSIX_THREAD_SYSCALL_SOFT=1"
1790 fi
1785 CopyUnixThreadSource 1791 CopyUnixThreadSource
1786 fi 1792 fi
1787 # Set up files for the timer library 1793 # Set up files for the timer library
1788 if test x$enable_timers = xyes; then 1794 if test x$enable_timers = xyes; then
1789 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1795 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1790 fi 1796 fi
1791 # NetBSD does not define "unix" 1797 # NetBSD does not define "unix"
1792 CFLAGS="$CFLAGS -Dunix -D_POSIX_THREAD_SYSCALL_SOFT=1" 1798 CFLAGS="$CFLAGS -Dunix"
1793 ;; 1799 ;;
1794 *-*-openbsd*) 1800 *-*-openbsd*)
1795 ARCH=openbsd 1801 ARCH=openbsd
1796 CheckDummyVideo 1802 CheckDummyVideo
1797 CheckDiskAudio 1803 CheckDiskAudio
2410 if test $ARCH = solaris; then 2416 if test $ARCH = solaris; then
2411 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" 2417 SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
2412 fi 2418 fi
2413 2419
2414 case "$ARCH" in 2420 case "$ARCH" in
2415 openbsd | bsdi) 2421 openbsd | netbsd | bsdi)
2416 SHARED_SYSTEM_LIBS="$SYSTEM_LIBS" 2422 SHARED_SYSTEM_LIBS="$SYSTEM_LIBS"
2417 ;; 2423 ;;
2418 macosx) 2424 macosx)
2419 SHARED_SYSTEM_LIBS="-framework Cocoa" 2425 SHARED_SYSTEM_LIBS="-framework Cocoa"
2420 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 2426 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then