[x264-devel] commit: configure check for cc, rather than reporting lack of compiler as an asm error. (Loren Merritt )
git version control
git at videolan.org
Wed May 27 22:55:17 CEST 2009
x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Wed May 27 20:47:18 2009 +0000| [3f56e271ac3d8a0e054b8b18e63886a6070ef05e] | committer: Loren Merritt
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.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=3f56e271ac3d8a0e054b8b18e63886a6070ef05e
---
configure | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 5c9eb1f..6e4a189 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
More information about the x264-devel
mailing list