aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--configure.ac11
2 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 72e0c1557..eb022130a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-10 Christian Persch <chpe@gnome.org>
+
+ * configure.ac:
+
+ Error out if the C++ compiler wasn't found. Bug #475360.
+
2007-09-10 Cosimo Cecchi <cosimoc@svn.gnome.org>
* src/ephy-toolbar.c: (ephy_toolbar_set_navigation_tooltips):
diff --git a/configure.ac b/configure.ac
index ee669dded..cb903955c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,12 +47,21 @@ AC_PROG_LIBTOOL
AC_ISC_POSIX
AC_PROG_CC
-AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC
+
+AC_PROG_CXX
+
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
+# Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it
+# doesn't exist)
+
+AC_LANG_PUSH([C++])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
+AC_LANG_POP([C++])
+
IT_PROG_INTLTOOL([0.35.0])
PKG_PROG_PKG_CONFIG