Updated Posix threads tests for FreeBSD
This commit is contained in:
parent
be9fe37bcb
commit
d03acf0726
@ -130,16 +130,24 @@ if test "$result" = "yes"; then
|
|||||||
AC_CHECK_HEADERS(sys/types.h)
|
AC_CHECK_HEADERS(sys/types.h)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ZLIBSUP=No
|
||||||
AC_CHECK_LIB(z,compress2,result=yes,result=no)
|
AC_CHECK_LIB(z,compress2,result=yes,result=no)
|
||||||
if test "$result" = "yes"; then
|
if test "$result" = "yes"; then
|
||||||
LIBS="$LIBS -lz"
|
LIBS="$LIBS -lz"
|
||||||
AC_CHECK_HEADERS(zlib.h,ZLIBSUP=Yes,ZLIBSUP=No)
|
AC_CHECK_HEADERS(zlib.h,ZLIBSUP=Yes,ZLIBSUP=No)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PTHREADS=No
|
||||||
AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no)
|
AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no)
|
||||||
if test "$result" = "yes"; then
|
if test "$result" = "yes"; then
|
||||||
LIBS="$LIBS -lpthread"
|
LIBS="$LIBS -lpthread"
|
||||||
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
|
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
|
||||||
|
else
|
||||||
|
AC_CHECK_LIB(c_r,pthread_create,result=yes,result=no)
|
||||||
|
if test "$result" = "yes"; then
|
||||||
|
LIBS="$LIBS -lc_r"
|
||||||
|
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
|
Reference in New Issue
Block a user