mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
30c2f8067d
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=520367
34 lines
No EOL
954 B
Text
34 lines
No EOL
954 B
Text
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) |