diff options
author | Gerald Carter <jerry@samba.org> | 2004-07-06 19:24:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:08 -0500 |
commit | 39354eaa6ca1559d2f9419734639391e08c181f0 (patch) | |
tree | 48477e145034a46693e2cb4fb9325fa39a9b07cb /source3/configure.in | |
parent | 924ddbac4826078066e07b4dc7f928cc65bff00a (diff) | |
download | samba-39354eaa6ca1559d2f9419734639391e08c181f0.tar.gz samba-39354eaa6ca1559d2f9419734639391e08c181f0.tar.xz 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)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in index 44ef66ab8cd..e57076a346a 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 |