Add --with-pkgconfigdir ./configure option
authorFrank Zschockelt <lm@freakysoft.de>
Thu, 04 Feb 2016 22:31:38 +0100
changeset 698 a4fe802b8f5c
parent 697 e7e6fc88e6b8
child 699 7cb765b626a9
Add --with-pkgconfigdir ./configure option
Makefile.am
configure.ac
--- a/Makefile.am	Thu Feb 04 21:08:07 2016 +0100
+++ b/Makefile.am	Thu Feb 04 22:31:38 2016 +0100
@@ -9,7 +9,6 @@
 	loudmouth-1.0.pc.in     \
 	README.WIN32
 
-pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = loudmouth-1.0.pc
 
 DISTCHECK_CONFIGURE_FLAGS =     \
--- a/configure.ac	Thu Feb 04 21:08:07 2016 +0100
+++ b/configure.ac	Thu Feb 04 22:31:38 2016 +0100
@@ -91,6 +91,9 @@
 
 LM_CHECK_TIMEZONE
 
+dnl Query for installation path of *.pc files, available with pkg-config>=0.27
+m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR])
+
 PKG_CHECK_MODULES(LOUDMOUTH,
                   glib-2.0 >= $GLIB2_REQUIRED
                   gobject-2.0 >= $GLIB2_REQUIRED)