[FFmpeg-cvslog] configure: do not use interval regexp operators with awk

Marvin Scholz git at videolan.org
Fri Sep 20 03:54:16 EEST 2024


ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Sep 19 22:22:46 2024 +0200| [4858a8ee2fc0ebc2aeab5185939d4bf93930f2d8] | committer: Marvin Scholz

configure: do not use interval regexp operators with awk

Some awk implementations like mawk (used on Ubuntu) do not support
these.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4858a8ee2fc0ebc2aeab5185939d4bf93930f2d8
---

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index d872213af7..d568739bf9 100755
--- a/configure
+++ b/configure
@@ -6152,7 +6152,7 @@ enabled pic && enable_weak_pic
 test_cc <<EOF || die "Symbol mangling check failed."
 int ff_extern;
 EOF
-sym=$($nm $TMPO | awk '/[ \t]+[^ \t]{0,1}ff_extern$/{ print substr($0, match($0, /[^ \t]{0,1}ff_extern$/)) }')
+sym=$($nm $TMPO | awk '/[ \t]+[^ \t]?ff_extern$/{ print substr($0, match($0, /[^ \t]?ff_extern$/)) }')
 extern_prefix=${sym%%ff_extern*}
 
 log "Symbol prefix detected as: '${extern_prefix}'"



More information about the ffmpeg-cvslog mailing list