]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-waf: fix cups checks when lib is there but headers aren't.
authorGünther Deschner <gd@samba.org>
Thu, 10 Feb 2011 19:37:02 +0000 (20:37 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 10 Feb 2011 20:24:37 +0000 (21:24 +0100)
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 10 21:24:37 CET 2011 on sn-devel-104

source3/wscript

index f5fe52bd85df27f2ce1471daf87d9729eb3e1f18..cb10fd56993a61f17c84840f2d03aa7dd25c5a2c 100644 (file)
@@ -606,8 +606,9 @@ msg.msg_acctrightslen = sizeof(fd);
            conf.check_cfg(path=conf.env.CUPS_CONFIG, args="--cflags --ldflags --libs",
                            package="", uselib_store="cups")
         conf.CHECK_HEADERS('cups/cups.h cups/language.h', lib='cups')
-        conf.CHECK_LIB('cups')
         conf.CHECK_FUNCS_IN('httpConnect httpConnectEncrypt', 'cups')
+        if conf.CONFIG_SET('HAVE_CUPS_CUPS_H') and conf.CONFIG_SET('HAVE_CUPS_LANGUAGE_H'):
+            conf.DEFINE('HAVE_CUPS', '1')
     else:
         # define an empty subsystem for cups, to allow it to be used as an empty dependency
         conf.SET_TARGET_TYPE('cups', 'EMPTY')