This commit is contained in:
whottgen 2004-09-27 14:45:43 +00:00
parent 935aba1f45
commit bce38d13a2

View File

@ -16,7 +16,8 @@ AC_CHECK_LIB(pthread, pthread_create,
[ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" [ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
LIBS="$LIBS -lpthread"], LIBS="$LIBS -lpthread"],
AC_CHECK_LIB(c_r, pthread_create, AC_CHECK_LIB(c_r, pthread_create,
[ CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE" ], [ CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
LIBS="$LIBS -lc_r"],
[AC_MSG_ERROR([*** we can't go without threads])] [AC_MSG_ERROR([*** we can't go without threads])]
) )
) )