Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrés G. Aragoneses <knocte@gmail.com>2010-01-23 00:42:14 +0300
committerAndrés G. Aragoneses <knocte@gmail.com>2010-01-23 00:42:14 +0300
commit0648fa414ebfcac2e7aaa528b5c581307749dbe7 (patch)
tree273ea1e14290b06d53eea23965c977f52238ccc2 /configure.in
parentbf620cabfe1b29a831e566ab1f4b6de982d8f909 (diff)
* configure.in: Improve r150055 by checking for CXX=g++ as well, according to
http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00077.html svn path=/trunk/mono/; revision=150077
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 4e13fdbdcfb..86023ab6fad 100644
--- a/configure.in
+++ b/configure.in
@@ -276,11 +276,13 @@ AC_SUBST(CCAS)
AC_SUBST(CCASFLAGS)
# AC_PROG_CXX helpfully sets CXX to g++ even if no c++ compiler is found so check
-# GXX instead
-if test "$GXX" != "yes"; then
- # automake/libtool is so broken, it requires g++ even if the c++ sources
- # are inside automake conditionals
- AC_MSG_ERROR([You need to install g++])
+# GXX instead. See http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00056.html
+if test "x$CXX" = "xg++"; then
+ if test "x$GXX" != "xyes"; then
+ # automake/libtool is so broken, it requires g++ even if the c++ sources
+ # are inside automake conditionals
+ AC_MSG_ERROR([You need to install g++])
+ fi
fi
AC_CHECK_PROG(BISON, bison,yes,no)