]>
Commit | Line | Data |
---|---|---|
95fb4f89 MM |
1 | --- configure.in~ Sat Jun 15 01:01:30 2002 |
2 | +++ configure.in Mon Aug 12 00:01:01 2002 | |
3 | @@ -47,8 +47,21 @@ | |
5d978ac3 MM |
4 | AC_FUNC_VPRINTF |
5 | AC_CHECK_FUNCS(ftime getcwd gethostid getpagesize gettimeofday getwd qsort scandir setlocale strstr strchr valloc vsnprintf) | |
6 | ||
7 | -PTHREAD_LIBS=-lpthread | |
8 | -ACX_PTHREAD() | |
95fb4f89 MM |
9 | +dnl Checks for libpthreads |
10 | +AC_ARG_WITH(pthreads, | |
11 | + AC_HELP_STRING([--with-pthreads],[Use pthreads.]), [ | |
12 | + if test "$withval" = "yes" ; then | |
13 | + INCLUDEPTHREAD=1 | |
14 | + else | |
15 | + INCLUDEPTHREAD=0; | |
16 | + fi ],[INCLUDEPTHREAD=1]) | |
17 | + | |
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) | |
23 | +fi | |
5d978ac3 MM |
24 | |
25 | dnl Figure out how to reference 64-bit unsigned integers | |
26 | AC_CHECK_TYPE(u_int64_t, long long) |