[Ffmpeg-cvslog] r5491 - trunk/configure
mru
subversion
Sat Jun 17 16:39:11 CEST 2006
Author: mru
Date: Sat Jun 17 16:39:11 2006
New Revision: 5491
Modified:
trunk/configure
Log:
improved logging tests
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Sat Jun 17 16:39:11 2006
@@ -101,7 +101,14 @@
echo "$@" >>$logfile
}
+logfile(){
+ log BEGIN $1
+ cat -n $1 >>$logfile
+ log END $1
+}
+
die(){
+ log "$@"
echo "$@"
rm -f $TMPC $TMPO $TMPE $TMPS $TMPH
exit 1
@@ -168,6 +175,7 @@
check_cc(){
log check_cc "$@"
cat >$TMPC
+ logfile $TMPC
log $cc $CFLAGS "$@" -c -o $TMPO $TMPC
$cc $CFLAGS "$@" -c -o $TMPO $TMPC >>$logfile 2>&1
}
@@ -175,6 +183,7 @@
check_cpp(){
log check_cpp "$@"
cat >$TMPC
+ logfile $TMPC
log $cc $CFLAGS "$@" -E -o $TMPO $TMPC
$cc $CFLAGS "$@" -E -o $TMPO $TMPC >>$logfile 2>&1
}
@@ -182,8 +191,9 @@
check_ld(){
log check_ld "$@"
cat >$TMPC
+ logfile $TMPC
log $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs
- $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>/dev/null 2>&1
+ $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>$logfile 2>&1
}
check_cflags(){
More information about the ffmpeg-cvslog
mailing list