1 dnl Process this file with autoconf to produce a configure script.
2 dnl $Id: configure.in,v 1.6 2007/02/26 04:34:18 mrsam Exp $
4 dnl Copyright 2004 Double Precision, Inc. See COPYING for
5 dnl distribution information.
7 AC_INIT(courierlogger, 0.10, [courier-users@lists.sourceforge.net])
9 >confdefs.h # Kill PACKAGE_ macros.
10 LPATH="$PATH:/usr/local/bin"
11 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"
32 AC_CHECK_HEADERS(fcntl.h string.h syslog.h)
34 AC_CHECK_FUNCS(strchr)
37 AC_HELP_STRING([--with-syslog=XXX],[syslog facility [[MAIL]]]),
38 logdest="LOG_$withval", logdest="LOG_MAIL")
40 AC_DEFINE_UNQUOTED(LOG_DEST, [$logdest],
42 AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/../docbook)