diff options
author | Måns Rullgård <mans@mansr.com> | 2010-01-22 06:14:19 +0300 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-01-22 06:14:19 +0300 |
commit | 27ce1be89ba765d4129a638f2dd673e1f6e17682 (patch) | |
tree | d92d59afe3ab53e096d2655584ce97b26e1d56a2 | |
parent | 258b60c22454bf8d97e72ce99d0f6c841923d999 (diff) |
configure: fix --cpu=host
The awk command used inadvertently relied on non-standard features.
Originally committed as revision 21376 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1783,7 +1783,11 @@ if test "$cpu" = host; then gcc) check_native(){ $cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return - awk "/$1=/{ match(\$0, /$1=(\\w+)/, a);print a[1];exit }" $TMPE + sed -n "/$1=/{ + s/.*$1=\\([^ ]*\\).*/\\1/ + p + q + }" $TMPE } cpu=$(check_native -march || check_native -mcpu) ;; |