[libgda/LIBGDA_4.2] Correction for bug #622899



commit 5b88f5a5aea5311672e13753cb1179c0a7f2bd43
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Sep 25 21:23:02 2011 +0200

    Correction for bug #622899

 m4/mysql.m4 |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/m4/mysql.m4 b/m4/mysql.m4
index 0b8e017..c3a1631 100644
--- a/m4/mysql.m4
+++ b/m4/mysql.m4
@@ -167,6 +167,31 @@ int main() {
 		    fi
 	        done
 	    fi
+	else
+	    AC_MSG_CHECKING([checking for Mysql headers])
+	    save_CFLAGS="$CFLAGS"
+	    CFLAGS="$CFLAGS $MYSQL_CFLAGS"
+            save_LIBS="$LIBS"
+	    LIBS="$LIBS $MYSQL_LIBS"
+
+            AC_LINK_IFELSE([AC_LANG_SOURCE([
+#include <mysql.h>
+int main() {
+    printf("%p", mysql_real_connect);
+    return 0;
+}
+])],
+	    mysql_found=yes)
+	    CFLAGS="$save_CFLAGS"
+            LIBS="$save_LIBS"
+	    if test "x$mysql_found" = xyes
+	    then
+	        AC_MSG_RESULT([found])
+	    else
+	        MYSQL_LIBS=""
+		MYSQL_CFLAGS=""
+	        AC_MSG_RESULT([not found])
+	    fi
         fi
 	if test "x$MYSQL_LIBS" = x
 	then



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]