summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorpatg@patrick-galbraiths-computer.local <>2004-12-11 12:03:51 -0800
committerpatg@patrick-galbraiths-computer.local <>2004-12-11 12:03:51 -0800
commit301c4932521ce4ca62425010e0facfa30e62bb95 (patch)
tree4cf0445976bf34d5ebafc238fcbd6a9049c51fc7 /config
parent7d1b9541fcbc5b2ab8168f8e9b9a7f7fab6309aa (diff)
downloadmariadb-git-301c4932521ce4ca62425010e0facfa30e62bb95.tar.gz
First commit to mysql-5.0 tree to include MySQL Federated Storage Handler. This includes both the source and header files, test (results, test, require), and modifications to server and handler base files, and autoconf modifications to properly build federated handler.
Diffstat (limited to 'config')
-rw-r--r--config/ac-macros/ha_federated.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/config/ac-macros/ha_federated.m4 b/config/ac-macros/ha_federated.m4
new file mode 100644
index 00000000000..4383a9d8d55
--- /dev/null
+++ b/config/ac-macros/ha_federated.m4
@@ -0,0 +1,29 @@
+dnl ---------------------------------------------------------------------------
+dnl Macro: MYSQL_CHECK_FEDERATED
+dnl Sets HAVE_FEDERATED if --with-federated-storage-engine is used
+dnl ---------------------------------------------------------------------------
+AC_DEFUN([MYSQL_CHECK_FEDERATED], [
+ AC_ARG_WITH([federated-storage-engine],
+ [
+ --with-federated-storage-engine
+ Enable the MySQL Storage Engine],
+ [federateddb="$withval"],
+ [federateddb=no])
+ AC_MSG_CHECKING([for MySQL federated storage engine])
+
+ case "$federateddb" in
+ yes )
+ AC_DEFINE([HAVE_FEDERATED_DB], [1], [Define to enable Federated Handler])
+ AC_MSG_RESULT([yes])
+ [federateddb=yes]
+ ;;
+ * )
+ AC_MSG_RESULT([no])
+ [federateddb=no]
+ ;;
+ esac
+
+])
+dnl ---------------------------------------------------------------------------
+dnl END OF MYSQL_CHECK_FEDERATED SECTION
+dnl ---------------------------------------------------------------------------