summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-07-06 19:24:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:08 -0500
commit39354eaa6ca1559d2f9419734639391e08c181f0 (patch)
tree48477e145034a46693e2cb4fb9325fa39a9b07cb
parent924ddbac4826078066e07b4dc7f928cc65bff00a (diff)
downloadsamba-39354eaa6ca1559d2f9419734639391e08c181f0.tar.gz
samba-39354eaa6ca1559d2f9419734639391e08c181f0.tar.bz2
samba-39354eaa6ca1559d2f9419734639391e08c181f0.zip
r1368: fix configure check so that if you set --enable-cups[=yes] and don't have the devel files, the configure script will exit with an error
(This used to be commit e2c7651e1625f7967f992ba76645a4340ea2d0dd)
-rw-r--r--source3/configure.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 44ef66ab8c..e57076a346 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -712,10 +712,12 @@ 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])
+ AC_DEFINE(HAVE_CUPS,1,[Whether we have CUPS])
CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`"
+ elif test x$enable_cups == xyes; then
+ AC_MSG_ERROR(Cups support required but cups-config not located. Make sure cups-devel related files are installed.)
fi
fi