Browse Source

Fix for mysql 3.x

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1336 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon 20 years ago
parent
commit
971244f9ab
1 changed files with 4 additions and 0 deletions
  1. 4 0
      configure.in

+ 4 - 0
configure.in

@@ -261,6 +261,10 @@ if test -z "$MYSQLCONFIG"; then
 else
   EXTRAS="$EXTRAS check_mysql check_mysql_query"
   MYSQLINCLUDE=`$MYSQLCONFIG --include`
+  if test $? != 0 ; then
+    # mysql_config for 3.x does not support --include
+    MYSQLINCLUDE=""
+  fi
   MYSQLLIBS=`$MYSQLCONFIG --libs`
   MYSQLCFLAGS=`$MYSQLCONFIG --cflags`
   AC_SUBST(MYSQLINCLUDE)