From dadf4489022aeff2e6ec10869e89ecbb3146b07b Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 29 Jun 2017 13:45:53 +0200 Subject: [PATCH] configure: putenv test needs c++ --- src/configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/configure.ac b/src/configure.ac index af165c24..b9db9383 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -260,6 +260,7 @@ AC_CHECK_LIB([z], [zlibVersion], [], []) ############# Putenv AC_MSG_CHECKING(for type of string parameter to putenv) +AC_LANG_PUSH([C++]) AC_TRY_COMPILE([ #include ],[ @@ -268,6 +269,7 @@ AC_TRY_COMPILE([ if test X$rcl_putenv_string_const = X1 ; then AC_DEFINE(PUTENV_ARG_CONST, 1, [putenv parameter is const]) fi +AC_LANG_POP([C++]) #### Look for Xapian. Done in a strange way to work around autoconf