From: Vadim Zeitlin Date: Wed, 9 May 2007 22:50:09 +0000 (+0000) Subject: abort immediately if no C++ compiler was detected instead of continuing reporting... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d5e0be7d422a4170a14eff1fdaf7c9234321b9e8 abort immediately if no C++ compiler was detected instead of continuing reporting plenty of tests failures git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index e7286de131..88a338da0c 100755 --- 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 diff --git a/configure.in b/configure.in index 554af1ca3d..910d20328e 100644 --- a/configure.in +++ b/configure.in @@ -1470,6 +1470,13 @@ dnl see CFLAGS line above 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