From: Gary Lowell Date: Mon, 11 Feb 2013 06:21:52 +0000 (-0800) Subject: configure.ac: Add test for c++ compiler. X-Git-Tag: v0.59~113 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa79077c2442e518c11f3d1885461d734909370b;p=ceph.git configure.ac: Add test for c++ compiler. 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 it's not installed, this fix adds an error message for a --- diff --git a/configure.ac b/configure.ac index eeed31fd55c..2d445e55b0f 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