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. acinclude.m4: Provide a new macro 'MYSQL_CHECK_BIG_TABLES' to check a '-with-big-tables' option and set the CPP symbol 'BIG_TABLES' accordingly. configure.in: Call the new 'MYSQL_CHECK_BIG_TABLES' macro.
This commit is contained in:
parent
606ee28d2a
commit
34cebb7176
30
acinclude.m4
30
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_DEFUN(MYSQL_CHECK_MYSQLFS, [
|
||||||
AC_ARG_WITH([mysqlfs],
|
AC_ARG_WITH([mysqlfs],
|
||||||
[
|
[
|
||||||
|
@ -2482,6 +2482,7 @@ EOF
|
|||||||
AC_MSG_RESULT([default: $default_charset; compiled in: $CHARSETS])
|
AC_MSG_RESULT([default: $default_charset; compiled in: $CHARSETS])
|
||||||
|
|
||||||
|
|
||||||
|
MYSQL_CHECK_BIG_TABLES
|
||||||
MYSQL_CHECK_ISAM
|
MYSQL_CHECK_ISAM
|
||||||
MYSQL_CHECK_BDB
|
MYSQL_CHECK_BDB
|
||||||
MYSQL_CHECK_INNODB
|
MYSQL_CHECK_INNODB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user