summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorunknown <patg@patrick-galbraiths-computer.local>2004-12-11 12:03:51 -0800
committerunknown <patg@patrick-galbraiths-computer.local>2004-12-11 12:03:51 -0800
commitdceb7d019a50cfc2657dad5c056394237689a4c5 (patch)
tree4cf0445976bf34d5ebafc238fcbd6a9049c51fc7 /config
parent1b051075ba86d4163efbe36627618343fc98aab7 (diff)
downloadmariadb-git-dceb7d019a50cfc2657dad5c056394237689a4c5.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.
configure.in: inclusion of federated handler autoheader macro mysql-test/mysql-test-run.sh: allow usage of replication tests for federated handler sql/Makefile.am: inclusion of federated header and source file sql/field.h: overloaded method val_str() to work with fields in 'old_data' in 'update_row()' sql/handler.cc: added code to include federated handler sql/handler.h: add db type for federated sql/mysql_priv.h: added code for federated handler sql/mysqld.cc: added code for federated handler sql/set_var.cc: added code for 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 ---------------------------------------------------------------------------