From: Rich Felker Date: Sun, 3 Jun 2012 20:22:13 +0000 (-0400) Subject: fix configure build/host/target terminology usage X-Git-Tag: v0.9.1~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=278883d0e2fbf698370b8ddb16b79d5fff0febf3;p=oweals%2Fmusl.git fix configure build/host/target terminology usage --- diff --git a/configure b/configure index 4bf84637..e3d97c2c 100755 --- a/configure +++ b/configure @@ -2,7 +2,7 @@ usage () { cat </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 #