From: Ruben Kerkhof Date: Sat, 19 Jul 2014 11:18:10 +0000 (+0200) Subject: Check that the C++ compiler actually works. X-Git-Tag: auth-3.4.0-rc1~63^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27a4e6556e60b2956d490b837da8e9a1103db76f;p=thirdparty%2Fpdns.git Check that the C++ compiler actually works. AC_PROG_CXX still sets CXX, even if it doesn't find a working C++ compiler: http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00002.html This causes the Boost checks to fail. If AC_PROG_CXX finds a working compiler, it sets the GXX shell variable. Test for this. Fixes #1178 --- diff --git a/configure.ac b/configure.ac index 095e90ae3c..f94695c05d 100644 --- a/configure.ac +++ b/configure.ac @@ -18,13 +18,17 @@ AC_C_BIGENDIAN : ${CXXFLAGS="-Wall -O2"} AC_PROG_CC -AC_PROG_CXX AM_PROG_CC_C_O AC_PROG_YACC AM_PROG_LEX AC_PROG_INSTALL AC_PROG_MAKE_SET +AC_PROG_CXX +AS_IF([test "x$CXX" = "xno" || test "x$CXX:x$GXX" = "xg++:x"], + AC_MSG_ERROR([no C++ compiler found]) +) + AC_LANG([C++]) AC_CHECK_FUNC([socket], [], [