From: Loren Merritt Date: Wed, 27 May 2009 20:47:18 +0000 (+0000) Subject: configure check for cc, rather than reporting lack of compiler as an asm error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20889345f7d6c13a8628e45f54c48df3e6793f97;p=libx264 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. --- 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