List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:October 24 2007 3:53am
Subject:Rev 200: Added a test for NdbApi.h - doesn't find it yet, but at least complains if it isn't there. in http://bazaar.launchpad.net/~ndb-connectors/nd...
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge

------------------------------------------------------------
revno: 200
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: ndbjmerge
timestamp: Tue 2007-10-23 20:53:19 -0700
message:
  Added a test for NdbApi.h - doesn't find it yet, but at least complains if it isn't
there. 
modified:
  acinclude.m4                   acinclude.m4-20070228020914-u2pk759xg7thauwf-8
=== modified file 'acinclude.m4'
--- a/acinclude.m4	2007-10-24 03:35:41 +0000
+++ b/acinclude.m4	2007-10-24 03:53:19 +0000
@@ -162,6 +162,8 @@
     AC_PROG_CC
     AC_PROG_CXX
  
+    AC_LANG(C++)
+
     # add regular MySQL C flags
     ADDCFLAGS=`$MYSQL_CONFIG --cflags` 
     # add NdbAPI specific C flags
@@ -179,6 +181,18 @@
     MYSQL_INCLUDES="$IBASE $ADDIFLAGS"   
 
     LDFLAGS="$LDFLAGS "`$MYSQL_CONFIG --libs_r`" -lndbclient -lmystrings -lmysys"
+    
+    AC_MSG_CHECKING(for NdbApi headers)
+     AC_TRY_LINK([#include <NdbApi.hpp>], [int attr=NdbTransaction::Commit; ],
+                        [ndbapi_found="yes"])
+    if test "$ndbapi_found" = "yes"  ; then 
+       AC_MSG_RESULT("found")
+    else
+       AC_MSG_ERROR([Couldn't find NdbApi.h!.])
+    fi
+
+  
+
     #LDFLAGS="$LDFLAGS "`$MYSQL_CONFIG --libs_r`" -lndbclient"
     MYSQL_MAJOR_VERSION=`$MYSQL_CONFIG --version | sed -e 's/\.//g' -e 's/-//g' -e
's/[A-Za-z]//g' | cut -c1-2`
 
@@ -197,6 +211,7 @@
     AC_MSG_RESULT($MYSQL_CONFIG)
   fi
 
+
   
 ])
 

Thread
Rev 200: Added a test for NdbApi.h - doesn't find it yet, but at least complains if it isn't there. in http://bazaar.launchpad.net/~ndb-connectors/nd...Monty Taylor24 Oct