From 2a2f8672188273831dacd58a0dc76055326e4ce2 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sun, 4 Mar 2012 21:53:42 +0200 Subject: configure: fix --enable-static Hack around shell programming breakage that made Libav check fail with --enable-static. --- configure | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 5a6433de95..53a9ead726 100755 --- a/configure +++ b/configure @@ -166,6 +166,7 @@ yasm_check() { } pkg_config_add() { + unset IFS # shell should not be used for programming echo >> "$TMPLOG" echo "$_pkg_config --cflags $@" >> "$TMPLOG" ctmp=$($_pkg_config --cflags "$@" 2>> "$TMPLOG") || return $? @@ -5802,9 +5803,7 @@ all_libav_libs="libavutil > 51.21.0:libavcodec > 53.34.0:libavformat > 53.20.0:l echocheck "Libav ($all_libav_libs)" if test "$ffmpeg" = auto ; then IFS=":" # shell should not be used for programming - if pkg_config_add $all_libav_libs ; then - unset IFS - else + if ! pkg_config_add $all_libav_libs ; then die "Unable to find development files for some of the required Libav libraries above. Aborting." fi fi -- cgit v1.2.3