summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-12 17:46:01 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-12 17:47:29 +1000
commitd70a7befb6dd2168c31a657fc0c6ab3b5f69c91e (patch)
tree028e5c3507dbaa2fffa8bba93b92e6ccbede1e71 /lib
parent33bb334e8030749cb675353df882730e3119ee9c (diff)
downloadsamba-d70a7befb6dd2168c31a657fc0c6ab3b5f69c91e.tar.gz
samba-d70a7befb6dd2168c31a657fc0c6ab3b5f69c91e.tar.bz2
samba-d70a7befb6dd2168c31a657fc0c6ab3b5f69c91e.zip
s4-waf: move the KRB5_DEPRECATED check into lib/replace
this needs to be with the krb5.h check for the source3 build
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index bfe9142669..727682677c 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -176,6 +176,13 @@ def configure(conf):
msg='Checking for working strptime'):
conf.DEFINE('REPLACE_STRPTIME', 1)
+ if conf.CONFIG_SET('HAVE_KRB5_H'):
+ # Check for KRB5_DEPRECATED handling
+ conf.CHECK_CODE('''#define KRB5_DEPRECATED 1
+#include <krb5.h>''',
+ 'HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER', addmain=False,
+ link=False,
+ msg="Checking for KRB5_DEPRECATED define taking an identifier")
conf.CHECK_CODE('gettimeofday(NULL, NULL)', 'HAVE_GETTIMEOFDAY_TZ', execute=False)