1 dnl Process this file with autoconf to produce a configure script.
5 dnl Checks for programs.
10 dnl Checks for libraries.
11 dnl Replace `main' with a function in -ldl:
12 AC_CHECK_LIB(dl, dlopen)
14 dnl Checks for header files.
16 AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h syslog.h unistd.h)
18 dnl Check for libevent
19 AC_MSG_CHECKING([for libevent directory])
20 if test -d ../libevent ; then
22 elif test -d libevent ; then
25 AC_MSG_RESULT([not found])
26 echo "Cannot find libevent library; exiting"
30 AC_MSG_RESULT($LIBEVENT)
34 dnl Checks for typedefs, structures, and compiler characteristics.
40 dnl Checks for library functions.
41 AC_PROG_GCC_TRADITIONAL
45 AC_CHECK_FUNCS(gethostname gettimeofday socket strdup strerror strtol)
47 dnl If we own this copy of libevent, do its makefile; otherwise, not
49 if test -d libevent ; then
50 if test -L libevent ; then
51 OUTPUT="Makefile handlers/Makefile"
53 OUTPUT="Makefile libevent/Makefile handlers/Makefile"
56 OUTPUT="Makefile handlers/Makefile"