[FFmpeg-cvslog] Silence a warning if pkg_config is not installed.

Carl Eugen Hoyos git at videolan.org
Fri May 6 03:28:51 CEST 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri May  6 03:27:53 2011 +0200| [cde55897178fb79d194f9f4951a220fb7ca4cda9] | committer: Carl Eugen Hoyos

Silence a warning if pkg_config is not installed.

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

 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index da58c24..3d08cb4 100755
--- a/configure
+++ b/configure
@@ -761,7 +761,7 @@ check_pkg_config(){
     headers="$2"
     funcs="$3"
     shift 3
-    $pkg_config --exists $pkg || return
+    $pkg_config --exists $pkg 2>/dev/null || return
     pkg_cflags=$($pkg_config --cflags $pkg)
     pkg_libs=$($pkg_config --libs $pkg)
     check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" &&



More information about the ffmpeg-cvslog mailing list