summaryrefslogtreecommitdiff
path: root/source4/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source4/printing')
-rw-r--r--source4/printing/config.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/printing/config.m4 b/source4/printing/config.m4
new file mode 100644
index 0000000000..ad5e4844e5
--- /dev/null
+++ b/source4/printing/config.m4
@@ -0,0 +1,16 @@
+############################################
+# for cups support we need libcups, and a handful of header files
+
+AC_ARG_ENABLE(cups,
+[ --enable-cups Turn on CUPS support (default=auto)])
+
+if test x$enable_cups != xno; then
+ AC_PATH_PROG(CUPS_CONFIG, cups-config)
+
+ if test "x$CUPS_CONFIG" != x; then
+ AC_DEFINE(HAVE_CUPS,1,[Whether we have CUPS])
+ CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
+ LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
+ PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
+ fi
+fi