summaryrefslogtreecommitdiffstats
path: root/liblog/configure.ac
diff options
context:
space:
mode:
authorSam Varshavchik2013-08-25 14:43:26 -0400
committerSam Varshavchik2013-08-25 14:43:52 -0400
commita00fd90cded04581b53d107f07ad2ff4e83384b3 (patch)
tree6525d7dfa86d4a84bca3b3ed188b7e54636e68d9 /liblog/configure.ac
parent3587050bb0729dfc8759a84e7ffbc860662b1b25 (diff)
downloadcourier-libs-a00fd90cded04581b53d107f07ad2ff4e83384b3.tar.bz2
Renamed configure.in to configure.ac
Diffstat (limited to 'liblog/configure.ac')
-rw-r--r--liblog/configure.ac44
1 files changed, 44 insertions, 0 deletions
diff --git a/liblog/configure.ac b/liblog/configure.ac
new file mode 100644
index 0000000..5cfcd20
--- /dev/null
+++ b/liblog/configure.ac
@@ -0,0 +1,44 @@
+dnl Process this file with autoconf to produce a configure script.
+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)
+AC_CONFIG_AUX_DIR(../..)
+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_SYS_LARGEFILE
+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)