summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5c308cb7..7d156b81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,6 +129,19 @@ AC_PROG_CXX
AC_PROG_RANLIB
AC_PROG_CPP
+AC_MSG_CHECKING(if C++ compiler '$CXX' works)
+AC_LANG_PUSH([C++])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #ifndef __cplusplus
+ #error "No C++ support, AC_PROG_CXX failed"
+ #endif
+ ]])],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT(no)
+ AC_MSG_FAILURE([C++ compiler doesn't work])]
+)
+AC_LANG_POP([C++])
+
dnl ----------------------------
dnl Check our char and int types
dnl ----------------------------