Commit f3f6cd35 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40402
parent 954076bf
...@@ -1138,6 +1138,7 @@ CheckPTHREAD() ...@@ -1138,6 +1138,7 @@ CheckPTHREAD()
AC_ARG_ENABLE(pthread-sem, AC_ARG_ENABLE(pthread-sem,
[ --enable-pthread-sem use pthread semaphores [default=yes]], [ --enable-pthread-sem use pthread semaphores [default=yes]],
, enable_pthread_sem=yes) , enable_pthread_sem=yes)
ac_save_cflags="$CFLAGS"
ac_save_libs="$LIBS" ac_save_libs="$LIBS"
case "$target" in case "$target" in
*-*-bsdi*) *-*-bsdi*)
...@@ -1186,6 +1187,7 @@ CheckPTHREAD() ...@@ -1186,6 +1187,7 @@ CheckPTHREAD()
pthread_lib="-lpthread" pthread_lib="-lpthread"
;; ;;
esac esac
CFLAGS="$CFLAGS $pthread_cflags"
LIBS="$LIBS $pthread_lib" LIBS="$LIBS $pthread_lib"
if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
AC_MSG_CHECKING(for pthreads) AC_MSG_CHECKING(for pthreads)
...@@ -1267,6 +1269,7 @@ CheckPTHREAD() ...@@ -1267,6 +1269,7 @@ CheckPTHREAD()
esac esac
fi fi
fi fi
CFLAGS="$ac_save_cflags"
LIBS="$ac_save_libs" LIBS="$ac_save_libs"
AC_MSG_CHECKING(whether semun is defined in /usr/include/sys/sem.h) AC_MSG_CHECKING(whether semun is defined in /usr/include/sys/sem.h)
...@@ -1782,6 +1785,9 @@ case "$target" in ...@@ -1782,6 +1785,9 @@ case "$target" in
fi fi
# Set up files for the thread library # Set up files for the thread library
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
if test x$use_pthreads = xyes; then
CFLAGS="$CFLAGS -D_POSIX_THREAD_SYSCALL_SOFT=1"
fi
CopyUnixThreadSource CopyUnixThreadSource
fi fi
# Set up files for the timer library # Set up files for the timer library
...@@ -1789,7 +1795,7 @@ case "$target" in ...@@ -1789,7 +1795,7 @@ case "$target" in
COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
fi fi
# NetBSD does not define "unix" # NetBSD does not define "unix"
CFLAGS="$CFLAGS -Dunix -D_POSIX_THREAD_SYSCALL_SOFT=1" CFLAGS="$CFLAGS -Dunix"
;; ;;
*-*-openbsd*) *-*-openbsd*)
ARCH=openbsd ARCH=openbsd
...@@ -2412,7 +2418,7 @@ if test $ARCH = solaris; then ...@@ -2412,7 +2418,7 @@ if test $ARCH = solaris; then
fi fi
case "$ARCH" in case "$ARCH" in
openbsd | bsdi) openbsd | netbsd | bsdi)
SHARED_SYSTEM_LIBS="$SYSTEM_LIBS" SHARED_SYSTEM_LIBS="$SYSTEM_LIBS"
;; ;;
macosx) macosx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment