diff options
author | Mans Rullgard <mans@mansr.com> | 2011-02-13 21:00:03 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-14 23:58:20 +0100 |
commit | e0099fdaacdcbe758c1fca3111de5f4c5ebccc01 (patch) | |
tree | f2059a632645922e0da778e93a42e19db3cf631c /configure | |
parent | 48e05567390ca98b3cfe0dec171e28f458765698 (diff) | |
download | ffmpeg-e0099fdaacdcbe758c1fca3111de5f4c5ebccc01.tar.gz |
configure: fix non-standard regex used with expr
The colon operator of expr always anchors the pattern at the start
of the string. An explicit ^ in the pattern has unspecified
behaviour, so remove it.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 3ad464bfc7df6d0f68c7df9c907089b84d92ab75)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1868,7 +1868,7 @@ elif $cc -v 2>&1 | grep -qi ^gcc; then cc_version=__VERSION__ gcc_version=$($cc --version | head -n1) gcc_basever=$($cc -dumpversion) - gcc_pkg_ver=$(expr "$gcc_version" : '^[^ ]* \(([^)]*)\)') + gcc_pkg_ver=$(expr "$gcc_version" : '[^ ]* \(([^)]*)\)') gcc_ext_ver=$(expr "$gcc_version" : ".*$gcc_pkg_ver $gcc_basever \\(.*\\)") cc_ident=$(cleanws "gcc $gcc_basever $gcc_pkg_ver $gcc_ext_ver") if ! $cc -dumpversion | grep -q '^2\.'; then |