aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autoconf/configure.ac11
-rwxr-xr-xconfigure14
2 files changed, 25 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 1895039..3f51f2d 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -412,6 +412,17 @@ case $CC in
;;
esac
+if test "$GCC" != "yes" && test "$ICC" != "yes"
+then
+ AC_MSG_ERROR([gcc|icc required but not found])
+fi
+
+dnl Ensure that compilation tools are GCC; we use GCC specific extensions
+if test "$GXX" != "yes" && test "$IXX" != "yes"
+then
+ AC_MSG_ERROR([g++|icc required but not found])
+fi
+
dnl Verify that GCC is version 3.0 or higher
if test "$GCC" = "yes"
then
diff --git a/configure b/configure
index 8f0b2c4..1460c2e 100755
--- a/configure
+++ b/configure
@@ -24870,6 +24870,20 @@ case $CC in
;;
esac
+if test "$GCC" != "yes" && test "$ICC" != "yes"
+then
+ { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
+echo "$as_me: error: gcc|icc required but not found" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+if test "$GXX" != "yes" && test "$IXX" != "yes"
+then
+ { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
+echo "$as_me: error: g++|icc required but not found" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
if test "$GCC" = "yes"
then
gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`