From d923eba00cd540605f2eaae4f95ec8fbee4c39a6 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 20 May 2001 13:51:46 +0000 Subject: included --with-log-ip-as-string option removed ./configure (run autoconf) autoconf now adds -I/usr/src/linux/include to CFLAGS --- configure.in | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index ca693e8..4e11708 100644 --- a/configure.in +++ b/configure.in @@ -33,7 +33,7 @@ dnl dnl test for MySQL dnl AC_ARG_WITH(mysql, - --with-mysql= use mysql backend in ,[ + --with-mysql= mysql installed in ,[ if test $withval != yes then dir=$withval @@ -44,14 +44,14 @@ mysqldir="" AC_MSG_CHECKING(for MySQL files) for d in $dir /usr /usr/local /usr/local/mysql /opt/mysql /opt/packages/mysql do - if test -f $d/lib/mysql/libmysqlclient.a + if test -f $d/lib/mysql/libmysqlclient.so then AC_MSG_RESULT(found mysql in $d) mysqldir=$d mysqldir_suffix=/mysql break fi - if test -f $d/lib/libmysqlclient.a + if test -f $d/lib/libmysqlclient.so then AC_MSG_RESULT(found mysql in $d) mysqldir=$d @@ -80,7 +80,7 @@ else AC_SUBST(MYSQLINCLUDES) - if test -f $MYSQLLIBS/libmystrings.a + if test -f $MYSQLLIBS/libmystrings.so then DATABASE_LIB="${DATABASE_LIB} -lmystrings " else @@ -95,7 +95,7 @@ else AC_MSG_CHECKING(for mysql_real_escape_string support) - MYSQL_FUNCTION_TEST=`strings ${MYSQLLIBS}/libmysqlclient.a | grep mysql_real_escape_string` + MYSQL_FUNCTION_TEST=`strings ${MYSQLLIBS}/libmysqlclient.so | grep mysql_real_escape_string` if test "x$MYSQL_FUNCTION_TEST" = x then @@ -108,6 +108,21 @@ else fi ]) +dnl +dnl Check whether the user wants log IP-addresses as strings rather +dnl than as unsigned long-integers to his MySQL-database. Since this +dnl feature is only used in ulogd_MYSQL.c, there are no checks in any +dnl way. +dnl + +AC_ARG_WITH(mysql-log-ip-as-string, + --with-mysql-log-ip-as-string log IPs as string rather than as + unsigned long-integer. +,[ + EXTRA_MYSQL_DEF="${EXTRA_MYSQL_DEF} -DIP_AS_STRING=1" + AC_MSG_WARN(the use of --with-mysql-log-ip-as-string is discouraged) +]) + AC_SUBST(DATABASE_DIR) AC_SUBST(DATABASE_LIB) AC_SUBST(DATABASE_LIB_DIR) -- cgit v1.2.3