summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2012-11-03 12:19:59 +0100
committerEric Leblond <eric@regit.org>2012-11-04 08:58:13 +0100
commitdbeef5d679ad8513c12080236a7efa744b86af86 (patch)
tree56241168bce75d86109d2aae260531ebab59e82e /configure.ac
parent53aa4c9beef7156bb3de09240203a89b79c3aee7 (diff)
configure: display info about build plugins
This patch modifies configure to display the list of plugins that will be built.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac42
1 files changed, 40 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 930aef0..c70887d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,11 @@ AC_SUBST([libdl_LIBS])
AC_SEARCH_LIBS([pcap_close], [pcap], [libpcap_LIBS="-lpcap"; LIBS=""])
AC_SUBST([libpcap_LIBS])
AM_CONDITIONAL([HAVE_PCAP], [test -n "$libpcap_LIBS"])
+if test "x$libpcap_LIBS" != "x"; then
+ enable_pcap="yes"
+else
+ enable_pcap="no"
+fi
dnl Checks for header files.
AC_HEADER_DIRENT
@@ -68,17 +73,35 @@ AM_CONDITIONAL([BUILD_NFACCT], [test "x$enable_nfacct" = "xyes"])
CT_CHECK_POSTGRES_DB()
AM_CONDITIONAL(HAVE_PGSQL, test "x$PQLIBPATH" != "x")
+if test "x$PQLIBPATH" != "x"; then
+ enable_pgsql="yes"
+else
+ enable_pgsql="no"
+fi
CT_CHECK_MYSQL_DB()
AM_CONDITIONAL(HAVE_MYSQL, test "x$MYSQL_LIB" != "x")
+if test "x$MYSQL_LIB" != "x"; then
+ enable_mysql="yes"
+else
+ enable_mysql="no"
+fi
PKG_CHECK_MODULES([libsqlite3], [sqlite3], [], [:])
AM_CONDITIONAL([HAVE_SQLITE3], [test -n "$libsqlite3_LIBS"])
+if test "x$libsqlite3_LIBS" != "x"; then
+ enable_sqlite3="yes"
+else
+ enable_sqlite3="no"
+fi
CT_CHECK_DBI()
AM_CONDITIONAL(HAVE_DBI, test "x$DBI_LIB" != "x")
-
-
+if test "x$DBI_LIB" != "x"; then
+ enable_dbi="yes"
+else
+ enable_dbi="no"
+fi
dnl AC_SUBST(DATABASE_DIR)
dnl AC_SUBST(DATABASE_LIB)
@@ -102,3 +125,18 @@ AC_CONFIG_FILES(include/Makefile include/ulogd/Makefile include/libipulog/Makefi
output/dbi/Makefile \
src/Makefile Makefile Rules.make)
AC_OUTPUT
+
+echo "
+Ulogd configuration:
+ Input plugins:
+ NFLOG plugin: ${enable_nflog}
+ NFCT plugin: ${enable_nfct}
+ NFACCT plugin: ${enable_nfacct}
+ Output plugins:
+ PCAP plugin: ${enable_pcap}
+ PGSQL plugin: ${enable_pgsql}
+ MySQL plugin: ${enable_mysql}
+ SQLITE3 plugin: ${enable_sqlite3}
+ DBI plugin: ${enable_dbi}
+"
+echo "You can now run 'make' and 'make install'"