From: Jens Axboe Date: Sun, 10 Feb 2013 14:48:34 +0000 (+0100) Subject: configure: allow --cpu to be specified X-Git-Tag: fio-2.0.14~18 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8b156d8ea1cc3d5df4de7f2e9fe435a2dfb41590;ds=sidebyside configure: allow --cpu to be specified And don't fail if we don't detect, it's not critical for configure. Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index d7ca77c8..10a9a4cf 100755 --- a/configure +++ b/configure @@ -129,6 +129,8 @@ exit_val=0 for opt do optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` case "$opt" in + --cpu=*) cpu="$optarg" + ;; --cc=*) CC="$optarg" ;; --extra-cflags=*) CFLAGS="$CFLAGS $optarg" @@ -146,6 +148,7 @@ for opt do done if test "$show_help" = "yes" ; then + echo "--cpu= Specify target CPU if auto-detect fails" echo "--cc= Specify compiler to use" echo "--extra-cflags= Specify extra CFLAGS to pass to compiler" echo "--build-32bit-win= Specify yes for a 32-bit build on Windows" @@ -276,8 +279,7 @@ case "$cpu" in cpu="sparc" ;; *) - echo "Unknown CPU" - exit 1; + echo "Unknown CPU" ;; esac