]> granicus.if.org Git - libx264/commitdiff
regression in r669: broke saving of configure args if make has to re-run configure
authorLoren Merritt <pengvado@videolan.org>
Mon, 20 Aug 2007 16:44:42 +0000 (16:44 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 20 Aug 2007 16:44:42 +0000 (16:44 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@671 df754926-b1dd-0310-bc7b-ec298dee348c

configure

index e125674ab7c140d3f672af9c87299d86af6f75c6..ea9b3baeff4ce711923fc13431b4715d138479ac 100755 (executable)
--- a/configure
+++ b/configure
@@ -174,16 +174,10 @@ fi
 host=`./config.sub $host`
 
 # split $host
-save_ifs=$IFS
-IFS='-'
-# set positional parameters
-set x $host
-shift
-host_cpu=$1
-host_vendor=$2
-shift; shift
-host_os=$*
-IFS=$save_ifs
+host_cpu="${host/-*}"
+host="${host#*-}"
+host_vendor="${host/-*}"
+host_os="${host#*-}"
 
 case $host_os in
   beos*)