|
|
|
@ -13,7 +13,7 @@ dnl When changing the major version number please also check the switch |
|
|
|
dnl statement in mysqlbinlog::check_master_version(). You may also need |
|
|
|
dnl to update version.c in ndb. |
|
|
|
|
|
|
|
AC_INIT([MariaDB Server], [5.2.10-MariaDB], [], [mysql]) |
|
|
|
AC_INIT([MariaDB Server], [5.2.11-MariaDB], [], [mysql]) |
|
|
|
|
|
|
|
AC_CONFIG_SRCDIR([sql/mysqld.cc]) |
|
|
|
AC_CANONICAL_SYSTEM |
|
|
|
@ -633,6 +633,14 @@ AC_ARG_WITH(other-libc, |
|
|
|
) |
|
|
|
AC_SUBST(NOINST_LDFLAGS) |
|
|
|
|
|
|
|
AC_ARG_ENABLE(distribution, |
|
|
|
AC_HELP_STRING( |
|
|
|
[--disable-distribution], |
|
|
|
[Allow linking with system GPLv3 libraries. It may result in a binary that can not be legally distributed.]), |
|
|
|
[ enable_distribution=$enableval ], |
|
|
|
[ enable_distribution=yes ] |
|
|
|
) |
|
|
|
|
|
|
|
# |
|
|
|
# Check if we are using Linux and a glibc compiled with static nss |
|
|
|
# (this is true on the MySQL build machines to avoid NSS problems) |
|
|
|
@ -1574,7 +1582,7 @@ fi |
|
|
|
AC_MSG_CHECKING([for OpenSolaris Bug 6611808]) |
|
|
|
save_CFLAGS="$CFLAGS" |
|
|
|
CFLAGS="$CFLAGS -Werror" |
|
|
|
AC_COMPILE_IFELSE([ |
|
|
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([ |
|
|
|
#include <pthread.h> |
|
|
|
void dummy() {} |
|
|
|
int main() |
|
|
|
@ -1583,7 +1591,7 @@ AC_COMPILE_IFELSE([ |
|
|
|
pthread_once(&once_control, dummy); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
], [ |
|
|
|
])], [ |
|
|
|
AC_DEFINE([PTHREAD_ONCE_INITIALIZER], [{PTHREAD_ONCE_INIT}], |
|
|
|
[See OpenSolaris Bug 6611808]) |
|
|
|
AC_MSG_RESULT([yes]) |
|
|
|
@ -2723,6 +2731,8 @@ case $SYSTEM_TYPE in |
|
|
|
compile_libedit=yes |
|
|
|
AC_DEFINE_UNQUOTED(HAVE_HIST_ENTRY, 1) |
|
|
|
AC_DEFINE_UNQUOTED(USE_LIBEDIT_INTERFACE, 1) |
|
|
|
AC_MSG_CHECKING([for libedit/readline]) |
|
|
|
AC_MSG_RESULT([libedit bundled]) |
|
|
|
elif test "$with_readline" = "yes" |
|
|
|
then |
|
|
|
readline_topdir="cmd-line-utils" |
|
|
|
@ -2733,6 +2743,8 @@ case $SYSTEM_TYPE in |
|
|
|
compile_readline=yes |
|
|
|
want_to_use_readline="yes" |
|
|
|
AC_DEFINE_UNQUOTED(USE_NEW_READLINE_INTERFACE, 1) |
|
|
|
AC_MSG_CHECKING([for libedit/readline]) |
|
|
|
AC_MSG_RESULT([readline bundled]) |
|
|
|
else |
|
|
|
# Use system readline library |
|
|
|
AC_LANG_SAVE |
|
|
|
@ -2747,12 +2759,16 @@ case $SYSTEM_TYPE in |
|
|
|
# this way we avoid linking commercial source with GPL readline |
|
|
|
readline_link="-lreadline" |
|
|
|
want_to_use_readline="yes" |
|
|
|
AC_MSG_CHECKING([for libedit/readline]) |
|
|
|
AC_MSG_RESULT([readline system]) |
|
|
|
elif [test "$mysql_cv_libedit_interface" = "yes"] |
|
|
|
then |
|
|
|
# Use libedit |
|
|
|
readline_link="-ledit" |
|
|
|
AC_MSG_CHECKING([for libedit/readline]) |
|
|
|
AC_MSG_RESULT([libedit system]) |
|
|
|
else |
|
|
|
AC_MSG_ERROR([Could not find system readline or libedit libraries |
|
|
|
AC_MSG_ERROR([Could not find usable system readline or libedit libraries |
|
|
|
Use --with-readline or --with-libedit to use the bundled |
|
|
|
versions of libedit or readline]) |
|
|
|
fi |
|
|
|
@ -2997,6 +3013,13 @@ if test X"$with_plugin_ndbcluster" = Xyes ; then |
|
|
|
echo for more details. |
|
|
|
fi |
|
|
|
|
|
|
|
if test "$enable_distribution" = "warn" |
|
|
|
then |
|
|
|
echo "You have linked MariaDB with GPLv3 libraries!" |
|
|
|
echo "You may not distribute the resulting binary. If you do, you will " |
|
|
|
echo "put yourself into a legal problem with Free Software Foundation." |
|
|
|
fi |
|
|
|
|
|
|
|
# The first line "Thank you ..." is checked in ./Do-compile to verify that configure |
|
|
|
# ended sucessfully - don't remove it. |
|
|
|
echo "" |
|
|
|
|