- adding the libgs detection functions

Ghostscript backend depends on libgs Ghostscript shared library.
- BTW. anyone know how to add a -Lsth flag to KDE_CHECK_LIB so it can be found if nonstandard directory is chosen?


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445369
remotes/origin/okular3-playground
Piotr Szymanski 21 years ago
parent 571fe69b58
commit c5b853601e
  1. 5
      generators/Makefile.am
  2. 12
      generators/configure.in.bot
  3. 17
      generators/configure.in.in

@ -1 +1,4 @@
SUBDIRS = ghostview xpdf kimgio
if include_ghostscript
GSPLUGINDIR = ghostview
endif
SUBDIRS = $(GSPLUGINDIR) xpdf kimgio

@ -0,0 +1,12 @@
if test -z "$LIB_GS"; then
echo ""
echo "The Ghostscript library was not found in your system. ."
echo "The Ghostscript backend will not be available."
echo "If you need it, install Ghostscript with shared library,"
echo "by using 'make so' instead of 'make' when building from"
echo "sources. For more information check: "
echo "http://kpdf.kde.org/ghostscript.php"
echo "or contact your package provider."
echo ""
fi

@ -0,0 +1,17 @@
ac_gs_libraries=NO
AC_ARG_WITH(gs-libraries,
AC_HELP_STRING([--with-gs-libraries=DIR],[where the Ghostscript library is installed.]),
[ ac_gs_libraries="$withval" ])
GSLIBDIR=""
LIB_GS=""
if test "x$ac_gs_libraries" = "xNO"; then
GSLIBDIR="-L$ac_gs_libraries"
fi
KDE_CHECK_LIB(gs, gsapi_new_instance, [LIB_GS="-lgs"])
AM_CONDITIONAL(include_ghostscript, test -n "$LIB_GS")
Loading…
Cancel
Save