diff options
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac index 29c1ddf1e1..b8243fcd16 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -29,6 +29,10 @@ AC_PROG_CXX AC_USE_SYSTEM_EXTENSIONS AC_LANG([C++]) +# Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it +# doesn't exist) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])]) + # Check for optional use of help2man AC_CHECK_PROG([HELP2MAN], [help2man], [help2man]) AC_ARG_WITH([help2man], |
