1 --- configure.in~ Sat Jun 15 01:01:30 2002
2 +++ configure.in Mon Aug 12 00:01:01 2002
5 AC_CHECK_FUNCS(ftime getcwd gethostid getpagesize gettimeofday getwd qsort scandir setlocale strstr strchr valloc vsnprintf)
7 -PTHREAD_LIBS=-lpthread
9 +dnl Checks for libpthreads
10 +AC_ARG_WITH(pthreads,
11 + AC_HELP_STRING([--with-pthreads],[Use pthreads.]), [
12 + if test "$withval" = "yes" ; then
16 + fi ],[INCLUDEPTHREAD=1])
18 +if test "$INCLUDEPTHREAD"=1 ; then
19 + AC_CHECK_LIB(pthread,pthread_mutex_init,
20 + [LDFLAGS="$LDFLAGS -pthread"],
21 + [AC_MSG_ERROR(****Library not found: -pthread****)])
22 + AC_DEFINE(HAVE_PTHREAD)
25 dnl Figure out how to reference 64-bit unsigned integers
26 AC_CHECK_TYPE(u_int64_t, long long)