build: more config checks
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Mar 2010 05:18:44 +0000 (16:18 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:43 +0000 (20:26 +1000)
lib/replace/wscript
source4/lib/tls/wscript

index 1994e3487757237b3bd351a9cde28ff21ef21443..399654cceba2d124cb415e0e5c7c2c018ad303d0 100644 (file)
@@ -119,6 +119,7 @@ def configure(conf):
     conf.CHECK_FUNCS('connect gethostbyname if_nametoindex socketpair')
     conf.CHECK_FUNCS('inet_ntoa inet_aton inet_ntop inet_pton')
     conf.CHECK_FUNCS('dirfd getdirentries getdents syslog getaddrinfo freeaddrinfo')
+    conf.CHECK_FUNCS('gai_strerror')
     conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups setsid')
     conf.CHECK_FUNCS('getgrent_r getgrgid_r getgrnam_r getgrouplist getpagesize')
     conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create')
@@ -133,6 +134,8 @@ def configure(conf):
 
     conf.CHECK_VARIABLE('rl_event_hook', define='HAVE_DECL_RL_EVENT_HOOK', always=True)
 
+    conf.CHECK_VARIABLE('__FUNCTION__', define='HAVE_FUNCTION_MACRO')
+
     conf.CHECK_DECLS('snprintf vsnprintf asprintf vasprintf')
 
     conf.CHECK_DECLS('dirfd environ errno getgrent_r getpwent_r', reverse=True)
index 5a6375720ea078db84a5d8ae156a2e36ae1c12cb..d2a55b6ee4c455fb66472b45ca88820604e3dcda 100644 (file)
@@ -20,6 +20,9 @@ def configure(conf):
     # check for gnutls_datum types
     conf.CHECK_TYPES('gnutls_datum gnutls_datum_t')
 
+    conf.CHECK_HEADERS('gcrypt.h')
+    conf.CHECK_FUNCS_IN('gcry_control', 'gcrypt')
+
 def build(bld):
     bld.SAMBA_SUBSYSTEM('LIBTLS',
                         source='tls.c tlscert.c',