summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2006-05-31 02:02:54 +0000
committerKristian Høgsberg <krh@redhat.com>2006-05-31 02:02:54 +0000
commit223a4bf3a679f666b6c963a8787cf5b5ac75c4b6 (patch)
tree8ce93ba8dd645a4b8167b612544ba8f769601047 /configure.ac
parent7aaa4d3fbdb8ea2534d3cb80e68b2759b2e8fd2f (diff)
2006-05-30 Kristian Høgsberg <krh@redhat.com>
* poppler-glib.pc.in: * configure.ac: Add poppler as a private requires if pkg-config supports it.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8520dd97..3b935f44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -304,6 +304,17 @@ case "$enable_compile_warnings" in
-fno-common $CXXFLAGS" ;;
esac
+case $($PKG_CONFIG --version) in
+ 0.?|0.1[0-7])
+ PC_REQUIRES_PRIVATE="";
+ PC_REQUIRES="poppler = $VERSION";;
+ *)
+ PC_REQUIRES_PRIVATE="Requires.private: poppler = $VERSION";
+ PC_REQUIRES="";;
+esac
+
+AC_SUBST(PC_REQUIRES)
+AC_SUBST(PC_REQUIRES_PRIVATE)
AC_OUTPUT([
Makefile