Fix bashism and force GStreamer 1.x support --- configure.orig 2020-03-08 02:42:31 UTC +++ configure @@ -20993,7 +20993,7 @@ then loop=${enable_monitors}, - while echo $loop | grep \, &> /dev/null + while echo $loop | grep -q \, do monitor=${loop%%\,*} loop=${loop#*\,} @@ -24438,44 +24438,9 @@ config_gstreamer=no if test "x$enable_gstreamer" != "xno"; then -pkg_failed=no +pkg_failed=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTREAMER" >&5 $as_echo_n "checking for GSTREAMER... " >&6; } - -if test -n "$GSTREAMER_CFLAGS"; then - pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$GSTREAMER_LIBS"; then - pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi