SF.net SVN: geany: [2460] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Wed Apr 9 16:08:37 UTC 2008


Revision: 2460
          http://geany.svn.sourceforge.net/geany/?rev=2460&view=rev
Author:   eht16
Date:     2008-04-09 09:08:34 -0700 (Wed, 09 Apr 2008)

Log Message:
-----------
Add an explicit check for a C++ compiler (#1938040).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/configure.in

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-04-08 21:36:49 UTC (rev 2459)
+++ trunk/ChangeLog	2008-04-09 16:08:34 UTC (rev 2460)
@@ -1,3 +1,9 @@
+2008-04-09  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * configure.in:
+   Add an explicit check for a C++ compiler (#1938040).
+
+
 2008-04-08  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * src/document.c, src/document.h, src/main.c, src/project.c:

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2008-04-08 21:36:49 UTC (rev 2459)
+++ trunk/configure.in	2008-04-09 16:08:34 UTC (rev 2460)
@@ -13,6 +13,13 @@
 AC_PROG_CC
 
 AC_PROG_CXX
+# check for C++ compiler explicitly and fail if none is found, do this check
+# after AC_PROG_CXX has set the CXX environment variable
+AC_CHECK_PROG([have_cxx], [$CXX], [yes], [no])
+if test "x$have_cxx" = "xno"; then
+	AC_MSG_ERROR([No C++ compiler not found. Please install a C++ compiler.])
+fi
+
 #AC_PROG_RANLIB
 AC_PROG_INSTALL
 AC_PROG_LN_S


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list