[poppler] Branch 'poppler-0.10' - configure.ac

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Mar 9 14:55:44 PDT 2009


 configure.ac |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit a6cd49dbf6cee0ba2e2ad2b5952dbfc9ab92e23e
Author: Brian Ewins <Brian.Ewins at gmail.com>
Date:   Mon Mar 9 22:54:58 2009 +0100

    Check for pkgconfig before using it
    
    At the moment if pkgconfig is not installed, an unhelpful syntax
    error appears when testing for freetype. Identify the problem
    earlier on

diff --git a/configure.ac b/configure.ac
index dd716e6..751b9e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,12 @@ AC_PROG_INSTALL
 AC_CHECK_FUNC(gettimeofday, AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defines if gettimeofday is available on your system]))
 AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, 1, [Defines if localtime_r is available on your system]))
 
+dnl ##### Check for pkgconfig
+AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
+if test "x$HAVE_PKGCONFIG" = "xno"; then
+  AC_MSG_ERROR("*** pkg-config not found ***")
+fi
+
 dnl Enable these unconditionally.
 AC_DEFINE([OPI_SUPPORT], [1], [Generate OPI comments in PS output.])
 AC_DEFINE([MULTITHREADED], [1], [Enable multithreading support.])


More information about the poppler mailing list