[vlc-devel] commit: Don't append option to $PKG-CONFIG if it's empty ( Christophe Mutricy )

git version control git at videolan.org
Fri Dec 11 22:00:57 CET 2009


vlc | branch: 1.0-bugfix | Christophe Mutricy <xtophe at videolan.org> | Tue Dec  8 23:25:24 2009 +0000| [2bcf6107fbf32de72a1bdcbfb74b3eee30f1c21e] | committer: Pierre Ynard 

Don't append option to $PKG-CONFIG if it's empty
(cherry picked from commit f228216d9ed061f0be4ac206a80ec76ffbde5230)

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

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

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

diff --git a/configure.ac b/configure.ac
index 3d4b863..dfe2665 100644
--- a/configure.ac
+++ b/configure.ac
@@ -940,9 +940,11 @@ AC_ARG_VAR(PKG_CONFIG_PATH,
 PKG_PROG_PKG_CONFIG()
 
 dnl On some OS we need static linking 
-AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "darwin" ],[
-       PKG_CONFIG="${PKG_CONFIG} --static"
-    ])
+       AS_IF([test -n "${PKG_CONFIG}" ],[
+	      AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "darwin" ],[
+	          PKG_CONFIG="${PKG_CONFIG} --static"
+   	      ])
+       ])
 
 
 dnl




More information about the vlc-devel mailing list