]> git.saurik.com Git - wxWidgets.git/commitdiff
abort immediately if no C++ compiler was detected instead of continuing reporting...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 May 2007 22:50:09 +0000 (22:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 May 2007 22:50:09 +0000 (22:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index e7286de131c7041fb8714a445c08052869fabcc9..88a338da0c82e2565bd0d252a6748fac46980430 100755 (executable)
--- a/configure
+++ b/configure
@@ -16316,6 +16316,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
 
 
 
+if test -n "$ac_cv_prog_ac_ct_CXX"; then
+    { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
+echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
 if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
index 554af1ca3d98cac3f8f32cc848f19a071e495e74..910d20328e9b69b7e5b883bdb4da23edac96f159 100644 (file)
@@ -1470,6 +1470,13 @@ dnl see CFLAGS line above
 CXXFLAGS=${CXXFLAGS:=}
 AC_BAKEFILE_PROG_CXX
 
 CXXFLAGS=${CXXFLAGS:=}
 AC_BAKEFILE_PROG_CXX
 
+dnl configure always sets CXX to something as it falls back to g++ even if no
+dnl C++ compiler was found, but we prefer to abort now with a clear error
+dnl message rather than give errors about all tests failures below
+if test -n "$ac_cv_prog_ac_ct_CXX"; then
+    AC_MSG_ERROR([C++ compiler is needed to build wxWidgets])
+fi
+
 dnl ranlib command
 dnl   defines RANLIB with the appropriate command
 AC_PROG_RANLIB
 dnl ranlib command
 dnl   defines RANLIB with the appropriate command
 AC_PROG_RANLIB