summaryrefslogtreecommitdiff
path: root/build_posix
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-07-29 17:23:18 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-07-29 17:23:18 +1000
commita580a89e8513f002a4fb8de7c0c2ce9185fb53b8 (patch)
tree74de1f640fe5acec33103ea24f52e6b0a8a6e437 /build_posix
parentc285f5484bbe84b11e0146a7aa4e7bcd8738743d (diff)
downloadmongo-a580a89e8513f002a4fb8de7c0c2ce9185fb53b8.tar.gz
Sanity check the LevelDB configuration at build time, not runtime.
Diffstat (limited to 'build_posix')
-rw-r--r--build_posix/configure.ac.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/build_posix/configure.ac.in b/build_posix/configure.ac.in
index dc764a7525b..4905cd45e26 100644
--- a/build_posix/configure.ac.in
+++ b/build_posix/configure.ac.in
@@ -136,6 +136,15 @@ AC_MSG_RESULT($with_helium)
AM_CONDITIONAL([HAVE_HELIUM], [test -d $with_helium])
AC_SUBST(HELIUM_PATH, [$with_helium])
+# Sanity check the build
+AM_COND_IF([LEVELDB], [
+ AM_COND_IF([SNAPPY], [], [
+ AC_MSG_ERROR(
+ [--enable-leveldb requires --enable-snappy or --with-builtins=snappy.])
+ ])
+])
+
+
# Warn that diagnostic builds should not be used in production
if test "$wt_cv_enable_diagnostic" = "yes"; then
AC_MSG_WARN(