summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-06-17 14:39:11 +0000
committerMåns Rullgård <mans@mansr.com>2006-06-17 14:39:11 +0000
commitc8e9f801762f325e155dacd424226fd0d382c591 (patch)
treebcbff8e89d4e98917e193c990396d6f2791c70a2 /configure
parent407ddb4e17c5319c8549dae534ddbdfdd6cce763 (diff)
improved logging tests
Originally committed as revision 5491 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure b/configure
index fc1b87d4c4..aa76315c65 100755
--- a/configure
+++ b/configure
@@ -101,7 +101,14 @@ log(){
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 @@ add_extralibs(){
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_cc(){
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_cpp(){
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(){