dnl Process this file with autoconf to produce a configure script. dnl $Id: configure.in,v 1.6 2007/02/26 04:34:18 mrsam Exp $ dnl dnl Copyright 2004 Double Precision, Inc. See COPYING for dnl distribution information. AC_INIT(courierlogger, 0.10, [courier-users@lists.sourceforge.net]) >confdefs.h # Kill PACKAGE_ macros. LPATH="$PATH:/usr/local/bin" AC_CONFIG_SRCDIR(logger.c) AM_INIT_AUTOMAKE([foreign no-define]) AM_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_LIBTOOL if test x$GCC = xyes then CFLAGS="-Wall $CFLAGS" fi if test x$GXX = xyes then CXXFLAGS="-Wall $CXXFLAGS" fi AC_C_CONST AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h string.h syslog.h) AC_TYPE_UID_T AC_CHECK_FUNCS(strchr) AC_ARG_WITH(syslog, AC_HELP_STRING([--with-syslog=XXX],[syslog facility [[MAIL]]]), logdest="LOG_$withval", logdest="LOG_MAIL") AC_DEFINE_UNQUOTED(LOG_DEST, [$logdest], [ syslog facility ]) AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/../docbook) AC_OUTPUT(Makefile)