From: Karl Blomster Date: Sun, 14 Nov 2010 11:41:03 +0000 (-0800) Subject: Improve configure script logging X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=866ac45c4bb7b2bdae99dab241b7b344dc07fbe7;p=libx264 Improve configure script logging Now prints the test program that failed in addition to error messages. --- diff --git a/configure b/configure index e1196958..13593e3b 100755 --- a/configure +++ b/configure @@ -75,6 +75,10 @@ cc_check() { log_msg "$CC conftest.c $CFLAGS $2 $LDFLAGSCLI $LDFLAGS" cat conftest.log >> config.log log_msg "--------------------------------------------------" + log_msg "Failed program was:" + log_msg "--------------------------------------------------" + cat conftest.c >> config.log + log_msg "--------------------------------------------------" fi return $res } @@ -94,6 +98,10 @@ cpp_check() { log_msg "--------------------------------------------------" cat conftest.log >> config.log log_msg "--------------------------------------------------" + log_msg "Failed program was:" + log_msg "--------------------------------------------------" + cat conftest.c >> config.log + log_msg "--------------------------------------------------" fi return $res } @@ -112,6 +120,10 @@ as_check() { log_msg "$AS conftest.asm $ASFLAGS $2 -o conftest.o" cat conftest.log >> config.log log_msg "--------------------------------------------------" + log_msg "Failed program was:" + log_msg "--------------------------------------------------" + cat conftest.asm >> config.log + log_msg "--------------------------------------------------" fi return $res }