X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=configure;h=e3d97c2c9ba1f578a9b1a3b827e6b3d03e7580df;hb=908bed20cd877a6c0c290c0c56cc7057ecc00296;hp=771840cfb09f92eff4e64bc9d300bef51e8310a1;hpb=55e2f5e98252b390c10e98f6d33db713fa15b0ed;p=musl diff --git a/configure b/configure index 771840cf..e3d97c2c 100755 --- a/configure +++ b/configure @@ -2,7 +2,7 @@ usage () { cat </dev/null)" ; then +if fnmatch '*gcc\ version*' "$("$CC" -v 2>&1)" ; then echo yes printf "checking whether to build musl-gcc wrapper... " wrapper=yes @@ -166,21 +167,21 @@ fi # -# Find the build architecture +# Find the target architecture # -printf "checking build system type... " -test -n "$build" || build=$("$CC" -dumpmachine 2>/dev/null) || build=unknown -printf "%s\n" "$build" +printf "checking target system type... " +test -n "$target" || target=$("$CC" -dumpmachine 2>/dev/null) || target=unknown +printf "%s\n" "$target" # # Convert to just ARCH # -case "$build" in +case "$target" in arm*) ARCH=arm ;; i?86*) ARCH=i386 ;; x86_64*) ARCH=x86_64 ;; -unknown) fail "$0: unable to detect built target; try $0 --build=..." ;; -*) fail "$0: unknown or unsupported build target \"$build\"" ;; +unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;; +*) fail "$0: unknown or unsupported target \"$target\"" ;; esac #