[PATCH 04/12] configure.sh: show error output when something is not found

Mikko Rapeli <[email protected]>
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
It can be a configuration or ortherwise important warning/error.

Signed-off-by: Mikko Rapeli <[email protected]>
---
 configure.sh |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.sh b/configure.sh
index 824abea..3bececc 100755
--- a/configure.sh
+++ b/configure.sh
@@ -32,6 +32,7 @@ check_header()
 		echo "#define $2 1" >> config.h
 	else
 		echo $RED "[NO]" $COL_RESET
+		cat "$TMP.log"
 		MISSING_DEFS=1
 	fi
 }
@@ -68,6 +69,7 @@ ${CC} "$TMP.c" -o "$TMP" &>"$TMP.log"
 
 if [ ! -x "$TMP" ]; then
 	echo $RED "[NO]" $COL_RESET
+	cat "$TMP.log"
 	MISSING_DEFS=1
 else
 	echo $GREEN "[YES]" $COL_RESET
@@ -97,6 +99,7 @@ ${CC} "$TMP.c" -o "$TMP" &>"$TMP.log"
 
 if [ ! -x "$TMP" ]; then
 	echo $RED "[NO]" $COL_RESET
+	cat "$TMP.log"
 	MISSING_DEFS=1
 else
 	echo $GREEN "[YES]" $COL_RESET
@@ -126,6 +129,7 @@ ${CC} "$TMP.c" -o "$TMP" &>"$TMP.log"
 
 if [ ! -x "$TMP" ]; then
 	echo $RED "[NO]" $COL_RESET
+	cat "$TMP.log"
 	MISSING_DEFS=1
 else
 	echo $GREEN "[YES]" $COL_RESET
@@ -153,6 +157,7 @@ ${CC} "$TMP.c" -o "$TMP" &>"$TMP.log"
 
 if [ ! -x "$TMP" ]; then
 	echo $RED "[NO]" $COL_RESET
+	cat "$TMP.log"
 	MISSING_DEFS=1
 else
 	echo $GREEN "[YES]" $COL_RESET
@@ -180,6 +185,7 @@ ${CC} "$TMP.c" -o "$TMP" &>"$TMP.log"
 
 if [ ! -x "$TMP" ]; then
 	echo $RED "[NO]" $COL_RESET
+	cat "$TMP.log"
 	MISSING_DEFS=1
 else
 	echo $GREEN "[YES]" $COL_RESET
-- 
1.7.9.5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.