Date: Thursday, March 22, 2007 @ 17:17:30
  Author: marc
    Path: /cvsroot/carob/libmysequoia

Modified: configure.ac (1.41 -> 1.42)

Implemented macro SEQUOIA_AC_MYSQL_VERSION_ID_AT_LEAST that actually
runs #include "mysql/mysql_version.h" just like the end product
instead of grepping/awking a specific copy of it. Far related to LMS-1


--------------+
 configure.ac |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: libmysequoia/configure.ac
diff -u libmysequoia/configure.ac:1.41 libmysequoia/configure.ac:1.42
--- libmysequoia/configure.ac:1.41      Wed Mar 21 20:46:19 2007
+++ libmysequoia/configure.ac   Thu Mar 22 17:17:30 2007
@@ -160,6 +160,21 @@
 AC_MSG_RESULT([$mysql_header_dir])
 AC_SUBST(MYSQL_CFLAGS)
 
+
+AC_DEFUN([SEQUOIA_AC_MYSQL_VERSION_ID_AT_LEAST],
+ [ AC_MSG_CHECKING([[for MYSQL_VERSION_ID at least]] $1)
+   AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include "mysql/mysql_version.h"
+                               ]],
+               [[return !(MYSQL_VERSION_ID >= ]] $1 [[ ); ]])],
+               [sequoia_ac_mysql_at_least=yes
+                  AC_MSG_RESULT([[yes]])],
+               [sequoia_ac_mysql_at_least=no
+                  AC_MSG_RESULT([[no, inferior]])]
+             )
+   
+ ])
+
+
 AC_MSG_CHECKING([for MySQL version])
 mysql_version=`grep MYSQL_VERSION_ID $mysql_header_dir/mysql_version.h | awk 
'{printf $3;}'`
 if test $mysql_version -ge 50000

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to