diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2018-06-14 14:15:59 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-06-21 08:12:39 -0700 |
commit | 3c1eaa596f68249423a7315e600245fbe92db1d4 (patch) | |
tree | 8f476ee5c9e1aa0d66452059236cb13a6b8b4374 | |
parent | 564c882021289a240de9cd1c431825c8015219f7 (diff) |
configure: use compliant grep regex checks
The current `grep "foo\|bar"' trips on some grep implementations, like
the FreeBSD one. Instead use `egrep "foo|bar"' as suggested by Stefan.
Cc: Stefan Esser <se@FreeBSD.org>
Reported-by: Stefan Esser <se@FreeBSD.org>
Bugzilla: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228673
Fixes: 1914c814a6c ("configure: error out if building OMX w/o supported platform")
Fixes: 63e11ac2b5c ("configure: error out if building VA w/o supported platform")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
(cherry picked from commit dfb1f2759c668ad0e2147ca0b29aed6fb2473451)
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 7589896cb6..49fa3e8c51 100644 --- a/configure.ac +++ b/configure.ac @@ -2219,13 +2219,13 @@ else have_vdpau_platform=no fi -if echo $platforms | grep -q "x11\|drm"; then +if echo $platforms | egrep -q "x11|drm"; then have_omx_platform=yes else have_omx_platform=no fi -if echo $platforms | grep -q "x11\|drm\|wayland"; then +if echo $platforms | egrep -q "x11|drm|wayland"; then have_va_platform=yes else have_va_platform=no |