From: RĂ©mi Denis-Courmont Date: Sat, 10 Apr 2010 13:37:08 +0000 (+0300) Subject: Mozilla: do not check for "" pkg-config file X-Git-Tag: 1.1.0-pre1~64 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1ccd9ecbbc4f35b80a7bf6b9c05a9f5d4b709a26;p=vlc Mozilla: do not check for "" pkg-config file --- diff --git a/configure.ac b/configure.ac index b12a10cb7e..9ccbeb20c0 100644 --- a/configure.ac +++ b/configure.ac @@ -4555,16 +4555,19 @@ then else if test -n "$PKG_CONFIG"; then for i in "${with_mozilla_pkg}" libxul {seamonkey,iceape,xulrunner,firefox,iceweasel,mozilla}-plugin; do - echo "Trying to find $i.pc files" >&5 - if $PKG_CONFIG --exists --print-errors "$i" 2>&5 - then - echo "Using $i.pc files." >&5 - echo "Using $i.pc files." >&6 - found=1 - MOZILLA_CFLAGS=$(eval $PKG_CONFIG --cflags "$i" ) - MOZILLA_LIBS=$(eval $PKG_CONFIG --libs "$i" ) - break - fi + if test -n "$i" + then + echo "Trying to find $i package" >&5 + if $PKG_CONFIG --exists --print-errors "$i" 2>&5 + then + echo "Using $i pkg-config package." >&5 + echo "Using $i package." >&6 + found=1 + MOZILLA_CFLAGS=$(eval $PKG_CONFIG --cflags "$i" ) + MOZILLA_LIBS=$(eval $PKG_CONFIG --libs "$i" ) + break + fi + fi done fi fi