diff options
author | gheet <ghee.teo@sun.com> | 2009-05-11 18:33:08 +0100 |
---|---|---|
committer | gheet <ghee.teo@sun.com> | 2009-05-11 18:33:08 +0100 |
commit | c57fc80465fc4d2a96138caf7b95a16aa165d027 (patch) | |
tree | 77cceabff4b31422447d447bf22da744ead65a9c /configure.in | |
parent | 0fd185fa6de2a89c11b4a28c8619e52d274b1b1f (diff) | |
download | gtk+-c57fc80465fc4d2a96138caf7b95a16aa165d027.tar.gz |
Adding PAPI printbackend
Adding a new print backend module using libpapi detals see GNOME#382676.
(gheet)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 8fc6947615..7614ea89d5 100644 --- a/configure.in +++ b/configure.in @@ -1879,6 +1879,28 @@ else AM_CONDITIONAL(HAVE_CUPS, false) fi +# Checks to see if we should compile with PAPI backend for GTK+ +# + +AC_ARG_ENABLE(papi, + [AC_HELP_STRING([--disable-papi] + [disable papi print backend])],, + [enable_papi=auto]) + +if test "x$enable_papi" = "xauto" +then + AC_MSG_CHECKING(libpapi) + AC_CHECK_LIB(papi, papiServiceCreate, have_papi=yes, have_papi=no) + if test $have_papi = yes; then + AC_DEFINE([HAVE_PAPI], [], [Define to 1 if libpapi available]) + fi + AM_CONDITIONAL(HAVE_PAPI, test $have_papi = yes) +else + AM_CONDITIONAL(HAVE_PAPI, false) +fi + +AM_CONDITIONAL(HAVE_PAPI_CUPS, test $have_papi = yes && test "x$CUPS_CONFIG" != "xno") + gtk_save_cppflags="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS" @@ -2107,6 +2129,7 @@ modules/printbackends/Makefile modules/printbackends/cups/Makefile modules/printbackends/lpr/Makefile modules/printbackends/file/Makefile +modules/printbackends/papi/Makefile modules/printbackends/test/Makefile perf/Makefile contrib/Makefile |