From: Vadim Zeitlin Date: Thu, 10 May 2007 00:22:13 +0000 (+0000) Subject: fixed detection of missing C++ compiler added in last commit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b70642258fc6e13c7b490d9eb35250e5a9365362 fixed detection of missing C++ compiler added in last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index 88a338da0c..f98ee0dc7f 100755 --- a/configure +++ b/configure @@ -16316,7 +16316,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_cv_prog_ac_ct_CXX"; then +if test "$CXX" = "g++" -a "$GXX" != "yes"; 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; }; } diff --git a/configure.in b/configure.in index 910d20328e..7ce40d8ff7 100644 --- a/configure.in +++ b/configure.in @@ -1473,7 +1473,7 @@ 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 +if test "$CXX" = "g++" -a "$GXX" != "yes"; then AC_MSG_ERROR([C++ compiler is needed to build wxWidgets]) fi