]> granicus.if.org Git - pdns/commitdiff
fix up our c++2011-with-working-lua-detection (thanks to pieter for spotting the...
authorbert hubert <bert.hubert@netherlabs.nl>
Sun, 15 Feb 2015 18:55:44 +0000 (19:55 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sun, 15 Feb 2015 18:55:44 +0000 (19:55 +0100)
configure.ac
m4/ax_cxx_compile_stdcxx_11.m4

index f34cc6331385f1d8a0f0183177aecec2f9cca39b..ed069d4359dee13a3185dd0ff9b100b70a8927d8 100644 (file)
@@ -35,6 +35,7 @@ AC_DEFINE([_GNU_SOURCE], [1],
   [Define _GNU_SOURCE so that we get all necessary prototypes]
 )
 
+PDNS_WITH_LUA
 AX_CXX_COMPILE_STDCXX_11(,optional)
 AM_CONDITIONAL([CXX2011],[test "$HAVE_CXX11" = "1"])
 AC_ARG_ENABLE([hardening], [
@@ -97,8 +98,6 @@ AC_CHECK_HEADERS(
 
 PDNS_CHECK_RAGEL
 
-PDNS_WITH_LUA
-
 BOOST_REQUIRE([1.35])
 BOOST_FOREACH
 BOOST_PROGRAM_OPTIONS([mt])
index 44f3c9a32a7d31ebd0ef17b2b8214afc2639fefa..eafc71369d19754286b23403bc05bace18a5bee3 100644 (file)
@@ -98,7 +98,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
       AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
                      $cachevar,
         [ac_save_CXXFLAGS="$CXXFLAGS"
-         CXXFLAGS="$CXXFLAGS $switch"
+         CXXFLAGS="$LUA_CFLAGS $CXXFLAGS $switch"
          AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
           [eval $cachevar=yes],
           [eval $cachevar=no])
@@ -118,7 +118,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
       AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
                      $cachevar,
         [ac_save_CXXFLAGS="$CXXFLAGS"
-         CXXFLAGS="$CXXFLAGS $switch"
+         CXXFLAGS="$CXXFLAGS $LUA_CFLAGS $switch"
          AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
           [eval $cachevar=yes],
           [eval $cachevar=no])