X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=configure;h=e3d97c2c9ba1f578a9b1a3b827e6b3d03e7580df;hb=908bed20cd877a6c0c290c0c56cc7057ecc00296;hp=4bf84637a596fc9306d28330c14928924ada3635;hpb=c5f3add3254de442f90f8102503c6df7b39e941e;p=musl 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 #