From 3f56e271ac3d8a0e054b8b18e63886a6070ef05e Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Wed, 27 May 2009 20:47:18 +0000 Subject: [PATCH] configure check for cc, rather than reporting lack of compiler as an asm error. configure check for -mno-cygwin, since it's removed from gcc4. --- configure | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5c9eb1fb..6e4a1898 100755 --- a/configure +++ b/configure @@ -209,10 +209,12 @@ case $host_os in ;; cygwin*) SYS="MINGW" - CFLAGS="$CFLAGS -mno-cygwin" - LDFLAGS="$LDFLAGS -mno-cygwin" EXE=".exe" DEVNULL="NUL" + if cc_check "" -mno-cygwin; then + CFLAGS="$CFLAGS -mno-cygwin" + LDFLAGS="$LDFLAGS -mno-cygwin" + fi ;; mingw*) SYS="MINGW" @@ -298,6 +300,8 @@ esac # check requirements +cc_check || die "No working C compiler found." + if [ $shared = yes -a \( $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" \) ] ; then pic="yes" fi -- 2.47.3