configure: be more liberal with nm output

Originally committed as revision 21324 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2010-01-19 15:52:40 +00:00
parent 9e5f164dc1
commit f6993412b7
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -2223,7 +2223,7 @@ enabled pic && enable_pic
check_cc <<EOF || die "Symbol mangling check failed."
int ff_extern;
EOF
sym=$($nm -P -g $TMPO | grep ff_extern)
sym=$($nm -g $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^[:blank:]]*ff_extern/)) }')
extern_prefix=${sym%%ff_extern*}
check_cc <<EOF && enable inline_asm