summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aclocal.m413
-rw-r--r--configure.ac1
2 files changed, 14 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 16db6ced5e..a615c555dd 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -511,6 +511,19 @@ AC_SUBST([HaveGcc], [`echo $fp_cv_have_gcc | sed 'y/yesno/YESNO/'`])
AC_SUBST([GccVersion], [`gcc --version | grep mingw | cut -f 3 -d ' '`])
])# FP_HAVE_GCC
+AC_DEFUN([FP_MINGW_GCC],
+[
+ case $HostOS_CPP in
+ mingw*) AC_MSG_CHECKING([whether $CC is a mingw gcc])
+ if $CC -v 2>&1 | grep mingw >/dev/null; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([Please use --with-gcc to specify a mingw gcc])
+ fi;;
+ *) ;;
+ esac
+])
dnl Small feature test for perl version. Assumes PerlCmd
dnl contains path to perl binary
diff --git a/configure.ac b/configure.ac
index 388fa5c64b..e2d7536b9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -805,6 +805,7 @@ dnl Figure out which C compiler to use. Gcc is preferred.
dnl If gcc, make sure it's at least 2.1
dnl
FP_HAVE_GCC
+FP_MINGW_GCC
dnl ** figure out how to invoke cpp directly (gcc -E is no good)
AC_PROG_CPP