From 8ba78988a4a19e8042e90035ac4ec879dc1419db Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Sat, 7 Jan 2006 22:45:54 +0000 Subject: add conditional compilation of mysql, pgsql, sqlite3 and pcap --- configure.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 55e877c..5de1b3b 100644 --- a/configure.in +++ b/configure.in @@ -36,9 +36,17 @@ AC_CHECK_HEADER([libnetfilter_conntrack/libnetfilter_conntrack.h], [AC_MSG_RESUL CT_CHECK_POSTGRES_DB() +AM_CONDITIONAL(HAVE_PGSQL, test "x$PQLIBPATH" != "x") + CT_CHECK_MYSQL_DB() +AM_CONDITIONAL(HAVE_MYSQL, test "x$MYSQL_LIB" != "x") + CT_CHECK_SQLITE3_DB() +AM_CONDITIONAL(HAVE_SQLITE3, test "x$SQLITE3_LIB" != "x") + CT_CHECK_PCAP() +AM_CONDITIONAL(HAVE_PCAP, test "x$PCAP_LIB" != "x") + dnl AC_SUBST(DATABASE_DIR) dnl AC_SUBST(DATABASE_LIB) @@ -53,4 +61,4 @@ dnl AC_SUBST(HAVE_PCAP_H) dnl AM_CONDITIONAL(HAVE_MYSQL, test x$mysqldir != x) dnl AM_CONDITIONAL(HAVE_PGSQL, test x$pgsqldir != x) -AC_OUTPUT(doc/Makefile libipulog/Makefile input/Makefile input/packet/Makefile input/flow/Makefile filter/Makefile filter/raw2packet/Makefile filter/packet2flow/Makefile output/Makefile output/pcap/Makefile output/mysql/Makefile output/pgsql/Makefile src/Makefile Makefile Rules.make) +AC_OUTPUT(doc/Makefile libipulog/Makefile input/Makefile input/packet/Makefile input/flow/Makefile filter/Makefile filter/raw2packet/Makefile filter/packet2flow/Makefile output/Makefile output/pcap/Makefile output/mysql/Makefile output/pgsql/Makefile output/sqlite3/Makefile src/Makefile Makefile Rules.make) -- cgit v1.2.3