1 dnl Process this file with autoconf to produce a configure script.
7 dnl Set some system-specific variables which are OK to set before compiler
9 PTHREAD_DEFS=-D_REENTRANT
11 dnl Tru64 Unix requires we use -pthread instead of linking the threads
12 dnl libraries directly, and we can't build threaded programs with gcc
13 dnl due to header file problems.
15 test -z "$CC" && CC=cc
18 dnl FreeBSD is similar:
21 PTHREAD_DEFS=-D_THREAD_SAFE
24 AC_SUBST(PTHREAD_DEFS)
26 dnl Checks for programs.
28 test "$GCC" = yes && CFLAGS="$CFLAGS -Wall"
29 missing_dir=`cd $ac_aux_dir && pwd`
30 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
32 dnl Checks for libraries.
33 if test "$LIBS" != -pthread; then
34 AC_CHECK_LIB(pthread, pthread_create)
35 AC_CHECK_LIB(pthreads, pthread_create)
38 dnl Checks for header files.
40 dnl AC_HEADER_SYS_WAIT
41 AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h)
43 dnl Checks for typedefs, structures, and compiler characteristics.
49 dnl Checks for library functions.
52 dnl AC_CHECK_FUNCS(strerror)
53 AC_REPLACE_FUNCS(snprintf)