summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorunknown <mysql@mc04.(none)>2004-09-16 09:21:49 +0200
committerunknown <mysql@mc04.(none)>2004-09-16 09:21:49 +0200
commitd159d111da398b1b1ed59a56f2357692bf2a8ab1 (patch)
tree4607d1174b87192db3af2f5f44ecde3190fb6e87 /acinclude.m4
parent149b45b8f3773dbe727dcad2a81714c0a84c9576 (diff)
parent49dc3a53011fde94b900762084cd0631cb4fb24a (diff)
downloadmariadb-git-d159d111da398b1b1ed59a56f2357692bf2a8ab1.tar.gz
Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb
into mc04.(none):/space/mysql/mysql-4.1-ndb acinclude.m4: Auto merged configure.in: Auto merged ndb/src/common/transporter/TransporterRegistry.cpp: Auto merged ndb/src/mgmsrv/ConfigInfo.cpp: Auto merged sql/Makefile.am: Auto merged BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m450
1 files changed, 32 insertions, 18 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2e0e85743b7..becbb32bfcf 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1551,16 +1551,43 @@ dnl Sets HAVE_NDBCLUSTER_DB if --with-ndbcluster is used
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [
+ AC_ARG_WITH([ndb-sci],
+ AC_HELP_STRING([--with-ndb-sci=DIR],
+ [Provide MySQL with a custom location of
+ sci library. Given DIR, sci library is
+ assumed to be in $DIR/lib and header files
+ in $DIR/include.]),
+ [mysql_sci_dir=${withval}],
+ [mysql_sci_dir=""])
+
+ case "$mysql_sci_dir" in
+ "no" )
+ have_ndb_sci=no
+ AC_MSG_RESULT([-- not including sci transporter])
+ ;;
+ * )
+ if test -f "$mysql_sci_dir/lib/libsisci.a" -a \
+ -f "$mysql_sci_dir/include/sisci_api.h"; then
+ NDB_SCI_INCLUDES="-I$mysql_sci_dir/include"
+ NDB_SCI_LIBS="-L$mysql_sci_dir/lib -lsisci"
+ AC_MSG_RESULT([-- including sci transporter])
+ AC_DEFINE([NDB_SCI_TRANSPORTER], [1],
+ [Including Ndb Cluster DB sci transporter])
+ AC_SUBST(NDB_SCI_INCLUDES)
+ AC_SUBST(NDB_SCI_LIBS)
+ have_ndb_sci="yes"
+ AC_MSG_RESULT([found sci transporter in $mysql_sci_dir/{include, lib}])
+ else
+ AC_MSG_RESULT([could not find sci transporter in $mysql_sci_dir/{include, lib}])
+ fi
+ ;;
+ esac
+
AC_ARG_WITH([ndb-shm],
[
--with-ndb-shm Include the NDB Cluster shared memory transporter],
[ndb_shm="$withval"],
[ndb_shm=no])
- AC_ARG_WITH([ndb-sci],
- [
- --with-ndb-sci Include the NDB Cluster sci transporter],
- [ndb_sci="$withval"],
- [ndb_sci=no])
AC_ARG_WITH([ndb-test],
[
--with-ndb-test Include the NDB Cluster ndbapi test programs],
@@ -1593,19 +1620,6 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [
;;
esac
- have_ndb_sci=no
- case "$ndb_sci" in
- yes )
- AC_MSG_RESULT([-- including sci transporter])
- AC_DEFINE([NDB_SCI_TRANSPORTER], [1],
- [Including Ndb Cluster DB sci transporter])
- have_ndb_sci="yes"
- ;;
- * )
- AC_MSG_RESULT([-- not including sci transporter])
- ;;
- esac
-
have_ndb_test=no
case "$ndb_test" in
yes )