[FFmpeg-cvslog] configure: warn if pkg-config is missing

Mans Rullgard git at videolan.org
Fri May 6 04:27:48 CEST 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu May  5 16:45:12 2011 +0100| [762f95e4cbccad7f31607e5c0163d097b01332dc] | committer: Mans Rullgard

configure: warn if pkg-config is missing

Signed-off-by: Mans Rullgard <mans at mansr.com>

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

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

diff --git a/configure b/configure
index 7b3f5b4..a33b6e6 100755
--- a/configure
+++ b/configure
@@ -1827,6 +1827,11 @@ set_default cc nm pkg_config sysinclude
 enabled cross_compile || host_cc_default=$cc
 set_default host_cc
 
+if ! $pkg_config --version >/dev/null 2>&1; then
+    warn "$pkg_config not found, library detection may fail."
+    pkg_config=false
+fi
+
 exesuf() {
     case $1 in
         mingw32*|cygwin*|*-dos|freedos|opendos|os/2*|symbian) echo .exe ;;



More information about the ffmpeg-cvslog mailing list