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=445369remotes/origin/okular3-playground
parent
571fe69b58
commit
c5b853601e
3 changed files with 33 additions and 1 deletions
@ -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…
Reference in new issue