[FFmpeg-cvslog] r21376 - trunk/configure

mru subversion
Fri Jan 22 04:14:19 CET 2010


Author: mru
Date: Fri Jan 22 04:14:19 2010
New Revision: 21376

Log:
configure: fix --cpu=host

The awk command used inadvertently relied on non-standard features.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Fri Jan 22 02:59:17 2010	(r21375)
+++ trunk/configure	Fri Jan 22 04:14:19 2010	(r21376)
@@ -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)
         ;;



More information about the ffmpeg-cvslog mailing list