Just noticed this failure on CentOS 6.6 where g++ is not installed:
checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking how to run the C preprocessor... gcc -E checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/home/zino/local/src/pike/build/linux-2.6.32-504.1.3.el6.x86_64-x86_64': configure: error: C++ preprocessor "/lib/cpp" fails sanity check
config.log:
configure:4087: g++ -E conftest.cpp /home/zino/local/src/pike/src/configure: line 4089: g++: command not found configure:4094: $? = 127 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4087: /lib/cpp conftest.cpp cpp: error trying to exec 'cc1plus': execvp: No such file or directory configure:4094: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif
bash-4.1$ /lib/cpp --version cpp (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
I'd rather suspect AC_PROG_CXX, which was added in this commit:
commit bf4cdfefc4574f2bc59463022578d758bbd29e11 Author: Henrik Grubbström (Grubba) grubba@grubba.org Date: Mon Feb 14 13:42:35 2011 +0100
Improved support for modules needing C++ compilers.
pike-devel@lists.lysator.liu.se