-dnl ========= Print support
-AC_ARG_WITH(print,
- [AC_HELP_STRING([--with-print=no/gtk/gnome/auto], [Compile with print support [default=auto]])],
- PRINT=$withval,
- PRINT="auto")
-
-PKG_CHECK_MODULES(GNOME_PRINT,
- libgnomeprintui-2.2 >= $LIBGNOMEPRINTUI_REQUIRED,
- enable_gnome_print=yes, enable_gnome_print=no)
-PKG_CHECK_MODULES(GTK_PRINT,
- gtk+-unix-print-2.0 >= $GTK_PRINT_REQUIRED,
- enable_gtk_print=yes, enable_gtk_print=no)
-enable_print=no
-if test x$PRINT = xgnome -a x$enable_gnome_print = xyes; then
- enable_print=gnome
-else
- if test x$PRINT = xgtk -a x$enable_gtk_print = xyes; then
- enable_print=gtk
- else
- if test x$PRINT = xauto; then
- if test x$enable_gtk_print = xyes; then
- enable_print=gtk
- else
- if test x$enable_gnome_print = xyes; then
- enable_print=gnome
- fi
- fi
- fi
- fi
-fi
-
-if test x$enable_print = xgnome; then
- AC_SUBST(GNOME_PRINT_CFLAGS)
- AC_SUBST(GNOME_PRINT_LIBS)
- AC_DEFINE([WITH_GNOME_PRINT],[1],[Enable GNOME Print Support.])
- AC_DEFINE([WITH_PRINT],[1],[Enable Print Support.])
-fi
-
-if test x$enable_print = xgtk; then
- AC_SUBST(GTK_PRINT_CFLAGS)
- AC_SUBST(GTK_PRINT_LIBS)
- AC_DEFINE([WITH_GTK_PRINT],[1],[Enable GTK Print Support.])
- AC_DEFINE([WITH_PRINT],[1],[Enable Print Support.])
-fi
-
-AM_CONDITIONAL(WITH_GNOME_PRINT, test x$enable_print = xgnome)
-AM_CONDITIONAL(WITH_GTK_PRINT, test x$enable_print = xgtk)
-
-