You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
954 B

AC_ARG_WITH(libqgs,
[AC_HELP_STRING(--with-libqgs, [Where the Qt Ghostscript library is installed])],
[],
with_libqgs=check)
LIB_QGS=
if test "x$with_libqgs" != xno; then
AUX="$LDFLAGS"
LDFLAGS="-L$withval $LDFLAGS"
KDE_CHECK_LIB(qgs, main,
LIB_QGS=-lqgs
if test "x$with_libqgs" != "xcheck"; then
LIB_QGS_PATH="$withval"
fi)
LDFLAGS="$AUX"
fi
AC_SUBST(LIB_QGS)
AC_SUBST(LIB_QGS_PATH)
AM_CONDITIONAL(include_ghostscript, test -n "$LIB_QGS")
HAVE_CHMLIB=no
KDE_CHECK_HEADER(chm_lib.h, HAVE_CHMLIB=yes)
AM_CONDITIONAL(include_chm, test "x$HAVE_CHMLIB" = "xyes")
AC_ARG_WITH([poppler],
[AS_HELP_STRING([--with-poppler],
[Enable PDF support through poppler @<:@default=check@:>@])],
[], with_poppler=check)
if test "x$with_poppler" != xno; then
PKG_CHECK_MODULES(POPPLER, poppler >= 0.5.1, have_poppler_051=yes, have_poppler_051=no)
fi
AM_CONDITIONAL(include_pdf, test "x$have_poppler_051" = xyes)