]> granicus.if.org Git - libx264/commitdiff
remove a bashism
authorLoren Merritt <pengvado@videolan.org>
Fri, 7 Sep 2007 20:40:13 +0000 (20:40 +0000)
committerLoren Merritt <pengvado@videolan.org>
Fri, 7 Sep 2007 20:40:13 +0000 (20:40 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@673 df754926-b1dd-0310-bc7b-ec298dee348c

configure

index ea9b3baeff4ce711923fc13431b4715d138479ac..dc4e411f5aaac1bdf439d2bd96a0dcce2aab48bd 100755 (executable)
--- a/configure
+++ b/configure
@@ -174,9 +174,9 @@ fi
 host=`./config.sub $host`
 
 # split $host
-host_cpu="${host/-*}"
+host_cpu="${host%%-*}"
 host="${host#*-}"
-host_vendor="${host/-*}"
+host_vendor="${host%%-*}"
 host_os="${host#*-}"
 
 case $host_os in