Code

Fix for mysql 3.x (Jeremy Reed, Michael Tiernan - 1491936)
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 24 May 2006 12:48:07 +0000 (12:48 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 24 May 2006 12:48:07 +0000 (12:48 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1401 f882894a-f735-0410-b71e-b25c423dba1c

THANKS.in
configure.in

index 71d272f9191da37d621809e85e193dc292d0b64d..0a5a34fbab7d3bbee2f87bb8d4ab033b66ab50a3 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
@@ -181,3 +181,5 @@ Sakari Lehtonen
 John Rouillard
 Sebastian Wiesinger
 Jason Kau
+Michael Tiernan
+Jeremy Reed
index 0aee3bc5e863168eb7ae3313e8cd713dcd6e3542..5988b332b2def87c523d4b67915d12d675d906c6 100644 (file)
@@ -273,6 +273,10 @@ if test $with_mysql != "no" ; then
     with_mysql=$MYSQLCONFIG
     EXTRAS="$EXTRAS check_mysql check_mysql_query"
     MYSQLINCLUDE=`$MYSQLCONFIG --include`
+    # Mysql 3 does not support --include. --cflags should be sufficient
+    if test $? -ne 0 ; then
+      MYSQLINCLUDE=""
+    fi
     MYSQLLIBS=`$MYSQLCONFIG --libs`
     MYSQLCFLAGS=`$MYSQLCONFIG --cflags`
     AC_SUBST(MYSQLINCLUDE)