[vlc-commits] commit: Mozilla: do not check for "" pkg-config file ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sat Apr 10 15:39:17 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 10 16:37:08 2010 +0300| [1ccd9ecbbc4f35b80a7bf6b9c05a9f5d4b709a26] | committer: Rémi Denis-Courmont 

Mozilla: do not check for "" pkg-config file

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ccd9ecbbc4f35b80a7bf6b9c05a9f5d4b709a26
---

 configure.ac |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index b12a10c..9ccbeb2 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



More information about the vlc-commits mailing list