]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
configure: enable static rocksdb if check and c++11
authorSage Weil <sage@redhat.com>
Tue, 29 Jul 2014 00:03:06 +0000 (17:03 -0700)
committerSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 04:11:24 +0000 (21:11 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
configure.ac

index 368afd1e0d9da8ecea91324bc981b98396ef5576..6dec9be14efffbb6504a5aea829cccdc3057d4ff 100644 (file)
@@ -529,6 +529,11 @@ AS_IF([test "x$with_kinetic" = "xyes"],
             [AC_DEFINE([HAVE_KINETIC], [1], [Defined if you have kinetic enabled])])
 AM_CONDITIONAL(WITH_KINETIC, [ test "$with_kinetic" = "yes" ])
 
+# check for c++11 (but do not enable it)
+old_cxxflags="$CXXFLAGS"
+AX_CXX_COMPILE_STDCXX_11([], [optional])
+CXXFLAGS="$old_cxxflags"
+
 # use rocksdb
 AC_ARG_WITH([librocksdb],
             [AS_HELP_STRING([--with-librocksdb], [build rocksdb support])],
@@ -544,8 +549,8 @@ AC_ARG_WITH([librocksdb-static],
             [AS_HELP_STRING([--with-librocksdb-static], [build rocksdb support])],
             [],
             [with_librocksdb_static=no])
-AS_IF([test "x$with_librocksdb_static" = "xyes"],
-            [AX_CXX_COMPILE_STDCXX_11])
+AS_IF([test "x$with_librocksdb_static" = "xcheck" -a "x$HAVE_CXX11" = "x1" ],
+            [with_librocksdb_static="yes"])
 AS_IF([test "x$with_librocksdb_static" = "xyes"],
             [AC_CONFIG_SUBDIRS([src/rocksdb])])
 AS_IF([test "x$with_librocksdb_static" = "xyes"],