fi
AM_CONDITIONAL(WITH_RSVG, [test "x$use_rsvg" = "xYes"])
+dnl -----------------------------------
+dnl INCLUDES and LIBS for GS
+
+AC_ARG_WITH(gs,
+ [AC_HELP_STRING([--with-gs=yes], [gs library])],
+ [], [with_gs=yes])
+
+if test "x$with_gs" != "xyes"; then
+ use_gs="No (disabled)"
+else
+ AC_CHECK_HEADER(ghostscript/iapi.h, GS_CFLAGS="",use_gs="No (missing headers)")
+ if test "x$use_gs" = "x"; then
+ AC_CHECK_LIB(gs, main, GS_LIBS="-lgs", use_gs="No (missing lib)")
+ if test "x$use_gs" = "x"; then
+ use_gs="Yes"
+ AC_DEFINE_UNQUOTED(HAVE_GS,1,
+ [Define if you have the gs library])
+ AC_SUBST(GS_CFLAGS)
+ AC_SUBST(GS_LIBS)
+ fi
+ fi
+fi
+AM_CONDITIONAL(WITH_GS, [test "x$use_gs" = "xYes"])
+
dnl -----------------------------------
dnl INCLUDES and LIBS for PANGO, CAIRO et.al.
plugin/gdk_pixbuf/Makefile
plugin/gdiplus/Makefile
plugin/glitz/Makefile
+ plugin/gs/Makefile
plugin/gtk/Makefile
plugin/lasi/Makefile
plugin/ming/Makefile
echo " gdiplus: $use_gdiplus"
echo " gdk_pixbuf: $use_gdk_pixbuf"
echo " glitz: $use_glitz"
+echo " gs: $use_gs"
echo " gtk: $use_gtk"
echo " lasi: $use_lasi"
echo " ming: $use_ming"
%endif
%if %fedora >= 8
%define R_LANG 1
-BuildRequires: R-devel swig >= 1.3.33
+BuildRequires: R-devel swig >= 1.3.33 ghostscript-devel
#
# packaging is ok, but code is not ready for distribution
#
# BuildRequires: glitz-devel
%endif
%if %fedora >= 9
+BuildRequires: ghostscript-devel
+%define GS 1
#define MING 1
#BuildRequires: ming ming-devel
%endif
# BuildRequires: glitz-devel
%endif
%if %att_fedora >= 9
+BuildRequires: ghostscript-devel
+%define GS 1
#define MING 1
#BuildRequires: ming ming-devel
%endif
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
-SUBDIRS = core devil gd gdk_pixbuf gdiplus glitz gtk lasi ming pango quartz rsvg xlib dot_layout neato_layout
+SUBDIRS = core devil gd gdk_pixbuf gdiplus glitz gs gtk lasi ming pango quartz rsvg xlib dot_layout neato_layout
EXTRA_DIST = Makefile.old