[Ffmpeg-cvslog] r5869 - trunk/configure
mru
subversion
Mon Jul 31 09:54:48 CEST 2006
Author: mru
Date: Mon Jul 31 09:54:48 2006
New Revision: 5869
Modified:
trunk/configure
Log:
can't trust the compiler exit status, check for messages instead
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Mon Jul 31 09:54:48 2006
@@ -213,12 +213,16 @@
append extralibs "$@"
}
+check_cmd(){
+ "$@" 2>&1 | tee -a $logfile | { ! grep -q .; }
+}
+
check_cc(){
log check_cc "$@"
cat >$TMPC
log_file $TMPC
log $cc $CFLAGS "$@" -c -o $TMPO $TMPC
- $cc $CFLAGS "$@" -c -o $TMPO $TMPC >>$logfile 2>&1
+ check_cmd $cc $CFLAGS "$@" -c -o $TMPO $TMPC
}
check_cpp(){
@@ -226,14 +230,14 @@
cat >$TMPC
log_file $TMPC
log $cc $CFLAGS "$@" -E -o $TMPO $TMPC
- $cc $CFLAGS "$@" -E -o $TMPO $TMPC >>$logfile 2>&1
+ check_cmd $cc $CFLAGS "$@" -E -o $TMPO $TMPC
}
check_ld(){
log check_ld "$@"
check_cc || return
log $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs
- $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs >>$logfile 2>&1
+ check_cmd $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs
}
check_cflags(){
More information about the ffmpeg-cvslog
mailing list