Commit c69886a1 authored by simonmar's avatar simonmar
Browse files

[project @ 2004-12-16 10:36:57 by simonmar]

Sanity check when configuring for mingw32: make sure that $CC is a
mingw gcc before proceeding.
parent 7fd32ef4
...@@ -511,6 +511,19 @@ AC_SUBST([HaveGcc], [`echo $fp_cv_have_gcc | sed 'y/yesno/YESNO/'`]) ...@@ -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 ' '`]) AC_SUBST([GccVersion], [`gcc --version | grep mingw | cut -f 3 -d ' '`])
])# FP_HAVE_GCC ])# 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 Small feature test for perl version. Assumes PerlCmd
dnl contains path to perl binary dnl contains path to perl binary
......
...@@ -805,6 +805,7 @@ dnl Figure out which C compiler to use. Gcc is preferred. ...@@ -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 If gcc, make sure it's at least 2.1
dnl dnl
FP_HAVE_GCC FP_HAVE_GCC
FP_MINGW_GCC
dnl ** figure out how to invoke cpp directly (gcc -E is no good) dnl ** figure out how to invoke cpp directly (gcc -E is no good)
AC_PROG_CPP AC_PROG_CPP
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment