Fix for mysql 3.x (Jeremy Reed, Michael Tiernan - 1491936)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1401 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Ton Voon 2006-05-24 12:48:07 +00:00
parent 49f15b6bbf
commit 3e3f4b233d
2 changed files with 6 additions and 0 deletions

View file

@ -181,3 +181,5 @@ Sakari Lehtonen
John Rouillard
Sebastian Wiesinger
Jason Kau
Michael Tiernan
Jeremy Reed

View 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)