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:
authorAngelo Compagnucci <angelo@amarulasolutions.com>2019-05-13 01:43:01 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-05-13 01:43:00 +0300
commitf29eae3e354b6d94b69d60fa6b7b59c229bc893e (patch)
tree18cac1e1496272efe9e0f4810da35d676ea71597 /configure.ac
parentdb2f0ab3a5996d2f89d9cdc3f2fe9ac40b9655da (diff)
configure: check for c++ availability (#14461)
Since commit d8af775, c++ compiler is required to compile. This patch checks if the c++ compiler is available as soon as possible and returns an error in case it is not found. Fixes: https://github.com/mono/mono/issues/14195 Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 70a4a6d975d..d724f9e2d27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -573,6 +573,10 @@ dnl We should use AM_PROG_AS, but it's not available on automake/aclocal 1.4
AC_SUBST(CCAS)
AC_SUBST(CCASFLAGS)
+if test "x$CXX" = "xno"; then
+ AC_MSG_ERROR([No c++ compiler found. You need to install a c++ compiler])
+fi
+
# AC_PROG_CXX helpfully sets CXX to g++ even if no c++ compiler is found so check
# GXX instead. See http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00056.html
if test "x$CXX" = "xg++"; then