1 dnl Process this file with autoconf to produce a configure script.
5 dnl Check for Digital Unix; it has a different way of building for pthreads,
6 dnl and we can't build pthreads programs with gcc due to header problems.
10 test -z "$CC" && CC=cc
15 dnl Checks for programs.
17 test "$GCC" = yes && CFLAGS="$CFLAGS -Wall"
18 missing_dir=`cd $ac_aux_dir && pwd`
19 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
21 dnl Checks for libraries.
22 if test "$LIBS" != -pthread; then
23 AC_CHECK_LIB(pthread, pthread_create)
24 AC_CHECK_LIB(pthreads, pthread_create)
27 dnl Checks for header files.
29 dnl AC_HEADER_SYS_WAIT
30 AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h)
32 dnl Checks for typedefs, structures, and compiler characteristics.
38 dnl Checks for library functions.
41 dnl AC_CHECK_FUNCS(strerror)
42 AC_REPLACE_FUNCS(snprintf)