[devhelp] build: use AX_PKG_CHECK_MODULES
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] build: use AX_PKG_CHECK_MODULES
- Date: Sat, 6 May 2017 10:29:11 +0000 (UTC)
commit fae7da19512669822277ac4736e46f342bbfe9b0
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat May 6 12:09:50 2017 +0200
build: use AX_PKG_CHECK_MODULES
configure.ac | 11 ++++-------
data/libdevhelp-3.0.pc.in | 3 ++-
2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 388299b..237eee9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,13 +55,10 @@ AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS], [yes])
LT_LIB_M
-AX_REQUIRE_DEFINED([PKG_CHECK_MODULES])
-PKG_CHECK_MODULES(DEVHELP, [
- gio-2.0 >= 2.38
- gtk+-3.0 >= 3.22
- webkit2gtk-4.0 >= 2.6
- gsettings-desktop-schemas
-])
+AX_REQUIRE_DEFINED([AX_PKG_CHECK_MODULES])
+AX_PKG_CHECK_MODULES([DEVHELP],
+ [gio-2.0 >= 2.38 gtk+-3.0 >= 3.22 webkit2gtk-4.0 >= 2.6],
+ [gsettings-desktop-schemas])
AC_ARG_WITH(zlib, [ --with-zlib=DIR use zlib in DIR], zlibdir=$with_zlib)
have_zlib=no
diff --git a/data/libdevhelp-3.0.pc.in b/data/libdevhelp-3.0.pc.in
index 615207f..174e256 100644
--- a/data/libdevhelp-3.0.pc.in
+++ b/data/libdevhelp-3.0.pc.in
@@ -5,7 +5,8 @@ includedir=@includedir@
Name: devhelp
Description: devhelp
-Requires: gtk+-3.0 webkit2gtk-4.0
+Requires: @AX_PACKAGE_REQUIRES@
+Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
Version: @VERSION@
Libs: -L${libdir} -ldevhelp-3
Cflags: -I${includedir}/devhelp-3.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]