summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 12 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 5d1e75df..b0d1c97d 100644
--- a/configure.in
+++ b/configure.in
@@ -242,23 +242,31 @@ if test $with_mysql != "no" ; then
242 AC_MSG_WARN([Skipping mysql plugin]) 242 AC_MSG_WARN([Skipping mysql plugin])
243 AC_MSG_WARN([install mysql client libs to compile this plugin (see REQUIREMENTS).]) 243 AC_MSG_WARN([install mysql client libs to compile this plugin (see REQUIREMENTS).])
244 else 244 else
245 with_mysql=$MYSQLCONFIG
246 EXTRAS="$EXTRAS check_mysql check_mysql_query"
247 MYSQLINCLUDE=`$MYSQLCONFIG --include` 245 MYSQLINCLUDE=`$MYSQLCONFIG --include`
248 # Mysql 3 does not support --include. --cflags should be sufficient 246 # Mysql 3 does not support --include. --cflags should be sufficient
249 if test $? -ne 0 ; then 247 if test $? -ne 0 ; then
250 MYSQLINCLUDE="" 248 MYSQLINCLUDE=""
249 TEMP_INCLUDE="-I$with_mysql/include" # Guessed location
250 else
251 TEMP_INCLUDE=$MYSQLINCLUDE
251 fi 252 fi
252 MYSQLLIBS=`$MYSQLCONFIG --libs` 253 MYSQLLIBS=`$MYSQLCONFIG --libs`
253 MYSQLCFLAGS=`$MYSQLCONFIG --cflags` 254 MYSQLCFLAGS=`$MYSQLCONFIG --cflags`
254 AC_SUBST(MYSQLINCLUDE) 255 AC_SUBST(MYSQLINCLUDE)
255 AC_SUBST(MYSQLLIBS) 256 AC_SUBST(MYSQLLIBS)
256 AC_SUBST(MYSQLCFLAGS) 257 AC_SUBST(MYSQLCFLAGS)
258 dnl Test for mysqlclient. Some redhat systems have mysql_config, but no headers
259 _SAVEDCPPFLAGS=$CPPFLAGS
260 _SAVEDLDFLAGS="$LDFLAGS"
261 CPPFLAGS="$CPPFLAGS $TEMP_INCLUDE"
262 LDFLAGS="$LDFLAGS $MYSQLLIBS"
263 AC_CHECK_LIB([mysqlclient], [mysql_init], [with_mysql=$MYSQLCONFIG
264EXTRAS="$EXTRA check_mysql check_mysql_query"], [with_mysql="not found"])
265 CPPFLAGS=$_SAVEDCPPFLAGS
266 LDFLAGS=$_SAVEDLDFLAGS
257 fi 267 fi
258fi 268fi
259 269
260AC_CHECK_HEADERS(unistd.h)
261
262dnl Check for AF_INET6 support - unistd.h required for Darwin 270dnl Check for AF_INET6 support - unistd.h required for Darwin
263AC_CACHE_CHECK([for IPv6 support], with_ipv6, [ 271AC_CACHE_CHECK([for IPv6 support], with_ipv6, [
264 AC_TRY_COMPILE([#ifdef HAVE_UNISTD_H 272 AC_TRY_COMPILE([#ifdef HAVE_UNISTD_H