]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
cleanup configure output for checking the compiler
authorSebastian Pop <s.pop@samsung.com>
Tue, 22 Jan 2019 19:05:53 +0000 (13:05 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 24 Jan 2019 11:29:57 +0000 (12:29 +0100)
configure

index 8f563256b40a1b4adf1fe3a84e18a5ce341e054c..005ad9cbc5122266d5a2343abd5da60c009e3afa 100755 (executable)
--- a/configure
+++ b/configure
@@ -212,8 +212,8 @@ extern int getchar();
 int main() {return getchar();}
 EOF
 
-test -z "$CC" && echo Checking for ${CROSS_PREFIX}gcc... | tee -a configure.log
 cc=${CC-${CROSS_PREFIX}gcc}
+echo -n "Checking for compiler... " | tee -a configure.log
 case "$cc" in
   *gcc*) gcc=1 ;;
   *clang*) gcc=1 ;;
@@ -263,7 +263,7 @@ fi
 
 show $cc -c $test.c
 if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then
-  echo ... using gcc >> configure.log
+  echo "$cc" | tee -a configure.log
   CC="$cc"
   CFLAGS="${CFLAGS} -std=c99"
 
@@ -462,7 +462,7 @@ else
   # find system name and corresponding cc options
   CC=${CC-cc}
   gcc=0
-  echo ... using $CC >> configure.log
+  echo "$CC" | tee -a configure.log
   if test -z "$uname"; then
     uname=`(uname -sr || echo unknown) 2>/dev/null`
   fi