Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / liblog / configure.in
CommitLineData
d9898ee8 1dnl Process this file with autoconf to produce a configure script.
2dnl $Id: configure.in,v 1.6 2007/02/26 04:34:18 mrsam Exp $
3dnl
4dnl Copyright 2004 Double Precision, Inc. See COPYING for
5dnl distribution information.
6
7AC_INIT(courierlogger, 0.10, [courier-users@lists.sourceforge.net])
8
9>confdefs.h # Kill PACKAGE_ macros.
10LPATH="$PATH:/usr/local/bin"
11AC_CONFIG_SRCDIR(logger.c)
12AM_INIT_AUTOMAKE([foreign no-define])
13AM_CONFIG_HEADER(config.h)
14
15dnl Checks for programs.
16AC_PROG_CC
17AC_PROG_INSTALL
18AC_PROG_LN_S
19AC_PROG_LIBTOOL
20
21if test x$GCC = xyes
22then
23 CFLAGS="-Wall $CFLAGS"
24fi
25if test x$GXX = xyes
26then
27 CXXFLAGS="-Wall $CXXFLAGS"
28fi
29
30AC_C_CONST
31AC_HEADER_STDC
32AC_CHECK_HEADERS(fcntl.h string.h syslog.h)
33AC_TYPE_UID_T
34AC_CHECK_FUNCS(strchr)
35
36AC_ARG_WITH(syslog,
37 AC_HELP_STRING([--with-syslog=XXX],[syslog facility [[MAIL]]]),
38 logdest="LOG_$withval", logdest="LOG_MAIL")
39
40AC_DEFINE_UNQUOTED(LOG_DEST, [$logdest],
41 [ syslog facility ])
42AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/../docbook)
43AC_OUTPUT(Makefile)