732
732
CFLAGS="${SYMBOLS_CFLAGS} ${CFLAGS}"
733
733
CXXFLAGS="${SYMBOLS_CXXFLAGS} ${CXXFLAGS}"
736
[AS_HELP_STRING([--with-debug],
737
[Add debug code (yes|no|full) @<:@default=no@:>@
738
Full adds memory checked, very slow.])],
739
[with_debug=$withval],
741
AM_CONDITIONAL(BUILD_DBUG, test "$with_debug" != "no")
742
if test "$with_debug" = "yes"
745
AC_DEFINE([DBUG_ON], [1], [Use libdbug])
746
CFLAGS="$DEBUG_OPTIMIZE_CC $CFLAGS"
747
CXXFLAGS="$DEBUG_OPTIMIZE_CXX $CXXFLAGS"
749
# Optimized version. No debug
750
AC_DEFINE([DBUG_OFF], [1], [Dont use libdbug])
751
CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS"
752
CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS"
755
# If we should allow error injection tests
756
AC_ARG_WITH([error-inject],
757
[AS_HELP_STRING([--with-error-inject],
758
[Enable error injection in Drizzle Server @<:@default=off@:>@])],
759
[ with_error_inject=$withval ],
760
[ with_error_inject=no ])
762
if test $with_debug != "no"
764
if test "$with_error_inject" = "yes"
766
AC_DEFINE([ERROR_INJECT_SUPPORT], [1],
767
[Enable error injection in Drizzle Server])
771
735
AC_ARG_WITH([fast-mutexes],
772
736
[AS_HELP_STRING([--with-fast-mutexes],
773
737
[Compile with fast mutexes @<:@default=off@:>@])],
777
741
if test "$with_fast_mutexes" != "no"
779
if test "$with_debug" != "no"
781
AC_MSG_WARN(['--with-fast-mutexes' ignored when '--with-debug' is given])
783
AC_DEFINE([MY_PTHREAD_FASTMUTEX], [1],
784
[Define to 1 if you want to use fast mutexes])
743
AC_DEFINE([MY_PTHREAD_FASTMUTEX], [1],
744
[Define to 1 if you want to use fast mutexes])
788
747
AC_ARG_WITH([comment],
1285
1244
libdrizzle/Makefile client/Makefile dnl
1286
1245
server/Makefile server/share/Makefile dnl
1287
1246
server/sql_builtin.cc dnl
1288
dbug/Makefile include/Makefile dnl
1247
include/Makefile dnl
1289
1248
support-files/Makefile dnl
1290
1249
tests/Makefile tests/install_test_db dnl
1291
1250
include/drizzle_version.h plugin/Makefile dnl