1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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 e2c7651e16)
This commit is contained in:
Gerald Carter 2004-07-06 19:24:34 +00:00 committed by Gerald (Jerry) Carter
parent 924ddbac48
commit 39354eaa6c

View File

@ -712,10 +712,12 @@ if test x$enable_cups != xno; then
AC_PATH_PROG(CUPS_CONFIG, cups-config) AC_PATH_PROG(CUPS_CONFIG, cups-config)
if test "x$CUPS_CONFIG" != x; then 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`" CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`" LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`" 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
fi fi