1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(smurflog.c)
3AC_CONFIG_HEADER(config.h)
4PACKAGE=SmurfLog
5VERSION=2.0
6AC_SUBST(PACKAGE)
7AC_SUBST(VERSION)
8
9dnl Checks for programs.
10AC_PROG_CC
11AC_C_CONST
12AC_C_INLINE
13AC_CHECK_PROG(STRIP,strip,strip)
14
15CFLAGS="-Wall -O"
16if test "x$CC" = "xgcc"; then
17   CFLAGS="-Wall -O6 -fno-strength-reduce"
18fi
19
20dnl Checks for libraries.
21AC_CHECK_LIB(pcap, pcap_open_live)
22
23dnl Checks for header files.
24AC_HEADER_STDC
25AC_CHECK_HEADERS(unistd.h)
26
27dnl Checks for library functions.
28AC_TYPE_SIGNAL
29AC_OUTPUT(Makefile)
30