From: Rich Felker Date: Sun, 13 May 2012 23:59:28 +0000 (-0400) Subject: correct the check for gcc (previous version failed for cross compilers) X-Git-Tag: v0.9.1~49 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bc63e4fa2c9302c422e3bebd2653e4e36ee6372b;p=oweals%2Fmusl.git correct the check for gcc (previous version failed for cross compilers) --- diff --git a/configure b/configure index 4ef6ccce..902997e3 100755 --- a/configure +++ b/configure @@ -148,7 +148,7 @@ test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; } # if test -z "$wrapper" ; then printf "checking whether compiler is gcc... " -if fnmatch 'gcc*|GCC*' "$("$CC" --version 2>/dev/null)" ; then +if fnmatch '*(GCC)*' "$("$CC" --version 2>/dev/null)" ; then echo yes printf "checking whether to build musl-gcc wrapper... " wrapper=yes