its really just LIBADD more most of them
This commit is contained in:
@@ -13,21 +13,22 @@ case "$host" in
|
|||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
PTHREADS_CFLAGS=-pthreads
|
PTHREADS_CFLAGS=-pthreads
|
||||||
PTHREADS_LIBS=-pthreads
|
PTHREAD_LIBADD=-pthreads
|
||||||
else
|
else
|
||||||
PTHREADS_CFLAGS=-mt
|
PTHREADS_CFLAGS=-mt
|
||||||
PTHREADS_LIBS=-mt
|
PTHREAD_LDADD=-mt
|
||||||
|
PTHREAD_LIBADD=-mt
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*-*-netbsd[[12]]*)
|
*-*-netbsd[[12]]*)
|
||||||
native_pthread_support="if running netbsd 1.6T or newer"
|
native_pthread_support="if running netbsd 1.6T or newer"
|
||||||
dnl heim_threads.h knows this
|
dnl heim_threads.h knows this
|
||||||
PTHREADS_LIBS="-lpthread"
|
PTHREAD_LIBADD="-lpthread"
|
||||||
;;
|
;;
|
||||||
*-*-netbsd[[3456789]]*)
|
*-*-netbsd[[3456789]]*)
|
||||||
native_pthread_support="netbsd 3 uses explict pthread"
|
native_pthread_support="netbsd 3 uses explict pthread"
|
||||||
dnl heim_threads.h knows this
|
dnl heim_threads.h knows this
|
||||||
PTHREADS_LIBS="-lpthread"
|
PTHREAD_LIBADD="-lpthread"
|
||||||
;;
|
;;
|
||||||
*-*-freebsd[[56]]*)
|
*-*-freebsd[[56]]*)
|
||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
@@ -39,21 +40,21 @@ case "$host" in
|
|||||||
*-*-openbsd*)
|
*-*-openbsd*)
|
||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
PTHREADS_CFLAGS=-pthread
|
PTHREADS_CFLAGS=-pthread
|
||||||
PTHREADS_LIBS=-pthread
|
PTHREAD_LIBADD=-pthread
|
||||||
;;
|
;;
|
||||||
*-*-linux* | *-*-linux-gnu)
|
*-*-linux* | *-*-linux-gnu)
|
||||||
case `uname -r` in
|
case `uname -r` in
|
||||||
2.*)
|
2.*)
|
||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
PTHREADS_CFLAGS=-pthread
|
PTHREADS_CFLAGS=-pthread
|
||||||
PTHREADS_LIBS=-pthread
|
PTHREAD_LIBADD=-pthread
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
*-*-kfreebsd*-gnu*)
|
*-*-kfreebsd*-gnu*)
|
||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
PTHREADS_CFLAGS=-pthread
|
PTHREADS_CFLAGS=-pthread
|
||||||
PTHREADS_LIBS=-pthread
|
PTHREAD_LIBADD=-pthread
|
||||||
;;
|
;;
|
||||||
*-*-aix*)
|
*-*-aix*)
|
||||||
dnl AIX is disabled since we don't handle the utmp/utmpx
|
dnl AIX is disabled since we don't handle the utmp/utmpx
|
||||||
@@ -62,7 +63,7 @@ case "$host" in
|
|||||||
;;
|
;;
|
||||||
mips-sgi-irix6.[[5-9]]) # maybe works for earlier versions too
|
mips-sgi-irix6.[[5-9]]) # maybe works for earlier versions too
|
||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
PTHREADS_LIBS="-lpthread"
|
PTHREAD_LIBADD="-lpthread"
|
||||||
;;
|
;;
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
@@ -81,15 +82,15 @@ if test "$enable_pthread_support" != no; then
|
|||||||
[Define if you want have a thread safe libraries])
|
[Define if you want have a thread safe libraries])
|
||||||
dnl This sucks, but libtool doesn't save the depenecy on -pthread
|
dnl This sucks, but libtool doesn't save the depenecy on -pthread
|
||||||
dnl for libraries.
|
dnl for libraries.
|
||||||
LIBS="$PTHREADS_LIBS $LIBS"
|
LIBS="$PTHREAD_LIBADD $LIBS"
|
||||||
else
|
else
|
||||||
PTHREADS_CFLAGS=""
|
PTHREADS_CFLAGS=""
|
||||||
PTHREADS_LIBS=""
|
PTHREAD_LIBADD=""
|
||||||
PTHREADS_LIBADD=""
|
PTHREADS_LIBADD=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(PTHREADS_CFLAGS)
|
AC_SUBST(PTHREADS_CFLAGS)
|
||||||
AC_SUBST(PTHREADS_LIBS)
|
AC_SUBST(PTHREAD_LDADD)
|
||||||
AC_SUBST(PTHREADS_LIBADD)
|
AC_SUBST(PTHREADS_LIBADD)
|
||||||
|
|
||||||
AC_MSG_RESULT($enable_pthread_support)
|
AC_MSG_RESULT($enable_pthread_support)
|
||||||
|
Reference in New Issue
Block a user