[vlc-commits] configure.ac: nicer output if .pc files are not found

Rafaël Carré git at videolan.org
Sun Nov 13 21:19:10 CET 2011


npapi-vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Nov 13 15:18:48 2011 -0500| [f3ffb56a574c7c4d89dc8d1406c75238a9e15e27] | committer: Rafaël Carré

configure.ac: nicer output if .pc files are not found

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

 configure.ac |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 653b2ba..89247aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -155,6 +155,7 @@ AC_ARG_VAR([MOZILLA_LIBS], [linker flags for Mozilla, overriding pkg-config])
 AC_LANG_PUSH(C++)
 AC_MSG_CHECKING([Mozilla headers])
 
+found=0
 if test -z "$MOZILLA_CFLAGS" -a -z "$MOZILLA_LIBS" -a -n "$PKG_CONFIG"
 then
 dnl pkg-config
@@ -169,12 +170,13 @@ dnl we can't use the pkg-config macros.
         MOZILLA_CFLAGS=$(eval $PKG_CONFIG --cflags "$i" )
         MOZILLA_LIBS=$(eval $PKG_CONFIG --libs "$i" )
         AC_MSG_RESULT([yes (${i})])
+        found=1
         break
       fi
-      AC_MSG_RESULT([no])
     fi
   done
 fi
+test "$found" = 0 && AC_MSG_RESULT([no])
 
 CPPFLAGS="${CPPFLAGS} ${MOZILLA_CFLAGS}"
 



More information about the vlc-commits mailing list