summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2009-10-10 00:03:50 +1100
committerKeith Bostic <keith@wiredtiger.com>2009-10-10 00:03:50 +1100
commit02a7ebbdff12f05b2be9269ad2420abe1662f5ef (patch)
treed77a5b0648abf32001bb08d02b12cfe695759fdf
parent597537b9aea22dcf485234707a46cd424138e8b1 (diff)
downloadmongo-02a7ebbdff12f05b2be9269ad2420abe1662f5ef.tar.gz
Add --enable-debug, --enable-smallbuild
--HG-- branch : keith
-rw-r--r--build_posix/aclocal/options.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/build_posix/aclocal/options.m4 b/build_posix/aclocal/options.m4
index 161cbad5894..7cf2ca23dfd 100644
--- a/build_posix/aclocal/options.m4
+++ b/build_posix/aclocal/options.m4
@@ -6,6 +6,16 @@
# Optional configuration.
AC_DEFUN([AM_OPTIONS], [
+AC_MSG_CHECKING(if --enable-debug option specified)
+AC_ARG_ENABLE(debug,
+ [AC_HELP_STRING([--enable-debug],
+ [Configure for debug symbols.])], r=set, r=notset)
+case "$r" in
+set) db_cv_enable_debug=yes;;
+notset) db_cv_enable_debug=no;;
+esac
+AC_MSG_RESULT($db_cv_enable_debug)
+
AH_TEMPLATE(HAVE_DIAGNOSTIC, [Define to 1 for diagnostic tests.])
AC_MSG_CHECKING(if --enable-diagnostic option specified)
AC_ARG_ENABLE(diagnostic,
@@ -30,6 +40,18 @@ notset) db_cv_enable_diagnostic_memory=no;;
esac
AC_MSG_RESULT($db_cv_enable_diagnostic_memory)
+AH_TEMPLATE(HAVE_SMALLBUILD, [Define to 1 for a small build.])
+AC_MSG_CHECKING(if --enable-smallbuild option specified)
+AC_ARG_ENABLE(smallbuild,
+ [AC_HELP_STRING([--enable-smallbuild],
+ [Configure for a small build.])], r=set, r=notset)
+case "$r" in
+set) AC_DEFINE(HAVE_SMALLBUILD)
+ db_cv_enable_smallbuild=yes;;
+notset) db_cv_enable_smallbuild=no;;
+esac
+AC_MSG_RESULT($db_cv_enable_smallbuild)
+
AH_TEMPLATE(HAVE_STATISTICS, [Define to 1 for statistics support.])
AC_MSG_CHECKING(if --disable-statistics option specified)
AC_ARG_ENABLE(statistics,