From b84de63e7217a9a46db3be92d3a33936d722eea6 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 17 Oct 2006 19:08:23 +0000 Subject: BUILD : 1.7.16 (1181) BUGS : NOTES : Fixed MySQL detection in configure.in; it should now always work correctly if mysql_config is found git-svn-id: svn://svn.anope.org/anope/trunk@1181 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@902 5417fbe8-f217-4b02-8779-1006273d7864 --- configure | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 1dd09ae2e..c46f31dba 100755 --- a/configure +++ b/configure @@ -2854,8 +2854,14 @@ fi if test "$MYSQLCONF" != ""; then hold_cflags="$CFLAGS" hold_ldflags="$LDFLAGS" - CFLAGS="$CFLAGS `$MYSQLCONF --cflags`" - LDFLAGS="$LDFLAGS `$MYSQLCONF --libs`" + if test "$MYSQL_CFLAGS" = ""; then + MYSQL_CFLAGS="`$MYSQLCONF --cflags`" + fi + if test "$MYSQL_LDFLAGS" = ""; then + MYSQL_LDFLAGS="`$MYSQLCONF --libs`" + fi + CFLAGS="$CFLAGS $MYSQL_CFLAGS" + LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS" echo $ECHO_N "checking if mysql_config produces valid values... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ -- cgit