configure: allow --cpu to be specified
authorJens Axboe <axboe@kernel.dk>
Sun, 10 Feb 2013 14:48:34 +0000 (15:48 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 10 Feb 2013 14:48:34 +0000 (15:48 +0100)
And don't fail if we don't detect, it's not critical
for configure.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure

index d7ca77c8a3c66052166cd0ffe78bc4704d57403a..10a9a4cf59df60b8e74ff78500df1db17d517350 100755 (executable)
--- 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