From: Bert Vermeulen Date: Fri, 18 Jul 2014 17:55:38 +0000 (+0200) Subject: configure: Deal with missing macro a bit better. X-Git-Tag: libsigrok-0.4.0~1248 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f8158d56554688c9ff38731dbfd234fac46b6d9d;p=libsigrok.git configure: Deal with missing macro a bit better. The AX_CXX_COMPILE_STDCXX_11 macro is found in the autoconf-archive package. If this is not installed, invoking the macro spits out an error message that makes it look like a syntax error. This wraps it in a check. --- diff --git a/configure.ac b/configure.ac index eac88f1f..db6f644e 100644 --- a/configure.ac +++ b/configure.ac @@ -173,7 +173,8 @@ AC_ARG_ENABLE(java, # Check if the C++ compiler supports the C++11 standard. -AX_CXX_COMPILE_STDCXX_11(,[optional]) +m4_ifdef([AX_CXX_COMPILE_STDCXX_11], [AX_CXX_COMPILE_STDCXX_11(,[optional])], + [AC_MSG_NOTICE([Missing macro m4_toupper(aX_CXX_COMPILE_STDCXX_11), no C++11 check])]) if test "x$HAVE_CXX11" != "x1"; then BINDINGS_CXX="no"