build: check libc first for several libraries
authorAndrew Tridgell <tridge@samba.org>
Sat, 20 Mar 2010 05:49:02 +0000 (16:49 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:56 +0000 (20:26 +1000)
lib/replace/wscript
lib/util/charset/wscript_configure
nsswitch/wscript_configure
source4/auth/wscript_configure
source4/heimdal_build/wscript_configure

index 30c1f129aa35484e1c965892a3849972b5315995..bfff2cb58c4047acd47cd2c85d10110f17a94d11 100644 (file)
@@ -196,11 +196,11 @@ def configure(conf):
     conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create')
 
 
     conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create')
 
 
-    conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl')
+    conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl', checklibc=True)
     conf.CHECK_FUNCS_IN('poptGetContext', 'popt')
     conf.CHECK_FUNCS_IN('poptGetContext', 'popt')
-    conf.CHECK_FUNCS_IN('res_search', 'resolv')
+    conf.CHECK_FUNCS_IN('res_search', 'resolv', checklibc=True)
     conf.CHECK_FUNCS_IN('gettext', 'intl')
     conf.CHECK_FUNCS_IN('gettext', 'intl')
-    conf.CHECK_FUNCS_IN('pthread_create', 'pthread')
+    conf.CHECK_FUNCS_IN('pthread_create', 'pthread', checklibc=True)
 
     conf.CHECK_FUNCS_IN('crypt', 'crypt', checklibc=True)
 
 
     conf.CHECK_FUNCS_IN('crypt', 'crypt', checklibc=True)
 
index f076bc0680e57bf18a04afa568e5dc362e19674e..4dbb46d0fb2b1685ba5a9275fa4415b74ed40ce5 100644 (file)
@@ -1,6 +1,6 @@
 conf.CHECK_HEADERS('iconv.h')
 
 conf.CHECK_HEADERS('iconv.h')
 
-conf.CHECK_FUNCS_IN('iconv_open', 'iconv')
+conf.CHECK_FUNCS_IN('iconv_open', 'iconv', checklibc=True)
 
 conf.CHECK_CODE('''
                    iconv_t cd = iconv_open("ASCII","UCS-2LE");
 
 conf.CHECK_CODE('''
                    iconv_t cd = iconv_open("ASCII","UCS-2LE");
index 93ab5b107a2c4ea39c073093f54adbda8b19246d..cb559581e72d0f78d34cbdbc985471dba84a5ba9 100644 (file)
@@ -1,5 +1,5 @@
 conf.CHECK_HEADERS('nss.h nss_common.h ns_api.h')
 
 conf.CHECK_HEADERS('security/pam_appl.h')
 conf.CHECK_HEADERS('nss.h nss_common.h ns_api.h')
 
 conf.CHECK_HEADERS('security/pam_appl.h')
-conf.CHECK_FUNCS_IN('pam_start', 'pam')
+conf.CHECK_FUNCS_IN('pam_start', 'pam', checklibc=True)
 conf.CHECK_HEADERS('security/pam_modules.h pam/pam_modules.h')
 conf.CHECK_HEADERS('security/pam_modules.h pam/pam_modules.h')
index 7a932697c6ca0c74e103331844d6c067efee151b..c0ca7676c337344001d102f208bfcfe111a64e29 100644 (file)
@@ -1,5 +1,5 @@
 conf.CHECK_HEADERS('security/pam_appl.h')
 conf.CHECK_HEADERS('security/pam_appl.h')
-conf.CHECK_FUNCS_IN('pam_start', 'pam')
+conf.CHECK_FUNCS_IN('pam_start', 'pam', checklibc=True)
 
 if (conf.CHECK_HEADERS('sasl/sasl.h') and
     conf.CHECK_FUNCS_IN('sasl_client_init', 'sasl2')):
 
 if (conf.CHECK_HEADERS('sasl/sasl.h') and
     conf.CHECK_FUNCS_IN('sasl_client_init', 'sasl2')):
index 399180839187c2efb7c1ccaf720638e88bfbef85..be38fabc7beb985f2414903d882da01d89272d4b 100644 (file)
@@ -34,11 +34,11 @@ conf.CHECK_DECLS('h_errno')
 conf.CHECK_DECLS('_res')
 
 conf.CHECK_HEADERS('arpa/nameser.h dns.h')
 conf.CHECK_DECLS('_res')
 
 conf.CHECK_HEADERS('arpa/nameser.h dns.h')
-conf.CHECK_FUNCS_IN('res_search res_nsearch res_ndestroy dns_search dn_expand', 'resolv')
+conf.CHECK_FUNCS_IN('res_search res_nsearch res_ndestroy dns_search dn_expand', 'resolv', checklibc=True)
 conf.CHECK_VARIABLE('_res')
 conf.CHECK_HEADERS('pty.h util.h libutil.h')
 conf.CHECK_VARIABLE('_res')
 conf.CHECK_HEADERS('pty.h util.h libutil.h')
-conf.CHECK_FUNCS_IN('openpty', 'util')
-conf.CHECK_FUNCS_IN('gettext', 'intl')
+conf.CHECK_FUNCS_IN('openpty', 'util', checklibc=True)
+conf.CHECK_FUNCS_IN('gettext', 'intl', checklibc=True)
 
 
 conf.DEFINE('HAVE_KRB5',1)
 
 
 conf.DEFINE('HAVE_KRB5',1)