summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Lowell <glowell@inktank.com>2013-02-10 22:21:52 -0800
committerGary Lowell <glowell@inktank.com>2013-02-10 22:21:52 -0800
commit072026c9141ede10801d50793796de3a425a7ec2 (patch)
tree2db3dfaa5d558cbd722cab30e35ea175264ddc30
parent778c45cd263ba10b7a25c7759cf6cbf651b5f862 (diff)
downloadceph-wip-3955.tar.gz
configure.ac: Add test for c++ compiler.wip-3955
The AC_PROG_CXX macro sets a flag if a C++ compiler is found but does not fail if one is not found, it left to application to test the flags as needed. This fix will issue an error when a c++ compiler is not found. Bug 3955. Signed-off-by: Gary Lowell <gary.lowell@inktank.com> it's not installed, this fix adds an error message for a
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cb49a0b2fe1..ddbb8faf25a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,6 +56,10 @@ AM_CONDITIONAL(FREEBSD, test x"$freebsd" = x"yes")
# Checks for programs.
AC_PROG_CXX
+if test "$CXX" = no || test "$CXX:$GXX" = "g++:"; then
+ AC_MSG_ERROR([no C++ compiler found])
+fi
+
#AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL