summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorjoerg@mysql.com <>2005-03-29 16:34:33 +0200
committerjoerg@mysql.com <>2005-03-29 16:34:33 +0200
commitc90a6c706772208b658e544b0b1732880b713d4f (patch)
tree53f89da9d83ef33f065d918c56fd8c09936dea36 /acinclude.m4
parentb100adf750dc8c79f7e813f38a8b988bf628d335 (diff)
downloadmariadb-git-c90a6c706772208b658e544b0b1732880b713d4f.tar.gz
Introduce "configure" support for a new '-with-big-tables' option that can replace
the current way of passing '-DBIG_TABLES' to the compilers. This is needed even in 4.0, as 'Do-compile-all' must use this new approach for all "max" builds in 4.0, 4.1, and up.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m430
1 files changed, 30 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 6c567f00765..9c7557cdf11 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -868,6 +868,36 @@ AC_MSG_CHECKING(for OpenSSL)
])
+dnl ---------------------------------------------------------------------------
+dnl Macro: MYSQL_CHECK_BIG_TABLES
+dnl Sets BIG_TABLES if --with-big-tables is used
+dnl ---------------------------------------------------------------------------
+AC_DEFUN([MYSQL_CHECK_BIG_TABLES], [
+ AC_ARG_WITH([big-tables],
+ [
+ --with-big-tables Support tables with more than 4 G rows even on 32 bit platforms],
+ [bigtables="$withval"],
+ [bigtables=no])
+ AC_MSG_CHECKING([for big tables support])
+
+ case "$bigtables" in
+ yes )
+ AC_DEFINE([BIG_TABLES], [1], [Support big tables])
+ AC_MSG_RESULT([yes])
+ [bigtables=yes]
+ ;;
+ * )
+ AC_MSG_RESULT([no])
+ [bigtables=no]
+ ;;
+ esac
+
+])
+dnl ---------------------------------------------------------------------------
+dnl END OF MYSQL_CHECK_BIG_TABLES SECTION
+dnl ---------------------------------------------------------------------------
+
+
AC_DEFUN(MYSQL_CHECK_MYSQLFS, [
AC_ARG_WITH([mysqlfs],
[