try to handle pthread better

This commit is contained in:
Bill Currie 2003-06-25 22:41:58 +00:00
parent 1d32ff04e6
commit acb4e8dd87

View file

@ -162,13 +162,13 @@ fi
if test "x$ac_cv_header_pthread_h" = "xyes"; then
save_ldflags="$LDFLAGS"
LDFLAGS="$LDFLAGS -pthread"
LDFLAGS="$LDFLAGS -lpthread"
AC_TRY_LINK(
[#include <pthread.h>],
[pthread_attr_t type;
pthread_attr_setstacksize(&type, 0x100000);],
[PTHREAD_LDFLAGS=-pthread],
[PTHREAD_LDFLAGS=-lpthread]
[PTHREAD_LDFLAGS=-lpthread],
[PTHREAD_LDFLAGS=-pthread]
)
LDFLAGS="$save_ldflags"
PTHREAD_CFLAGS=-D_REENTRANT