1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright 2004 Double Precision, Inc. See COPYING for
4 dnl distribution information.
6 AC_INIT(courierlogger, 0.10, [courier-users@lists.sourceforge.net])
8 >confdefs.h # Kill PACKAGE_ macros.
9 LPATH="$PATH:/usr/local/bin"
10 AC_CONFIG_SRCDIR(logger.c)
12 AM_INIT_AUTOMAKE([foreign no-define])
13 AM_CONFIG_HEADER(config.h)
15 dnl Checks for programs.
23 CFLAGS="-Wall $CFLAGS"
27 CXXFLAGS="-Wall $CXXFLAGS"
30 CFLAGS="-I../libs -I$srcdir/../libs $CFLAGS"
31 CXXFLAGS="-I../libs -I$srcdir/../libs $CXXFLAGS"
35 AC_CHECK_HEADERS(fcntl.h string.h syslog.h)
38 AC_CHECK_FUNCS(strchr)
41 AC_HELP_STRING([--with-syslog=XXX],[syslog facility [[MAIL]]]),
42 logdest="LOG_$withval", logdest="LOG_MAIL")
44 AC_DEFINE_UNQUOTED(LOG_DEST, [$logdest],
46 AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/../libs/docbook)