build: some more config checks
authorAndrew Tridgell <tridge@samba.org>
Sun, 21 Feb 2010 02:56:58 +0000 (13:56 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:34 +0000 (20:26 +1000)
lib/replace/wscript

index dfeaab895bb8ae9860b1bf6bc6075806a76121d6..c2e545f8824dd30fb368f40a0d11ee4f688fad1b 100644 (file)
@@ -48,6 +48,11 @@ def configure(conf):
     if 'HAVE_STDDEF_H' in conf.env and 'HAVE_STDLIB_H' in conf.env:
         conf.DEFUN('STDC_HEADERS', 1)
 
+    if 'HAVE_SYS_TIME_H' in conf.env and 'HAVE_TIME_H' in conf.env:
+        conf.DEFUN('TIME_WITH_SYS_TIME', 1)
+
+    conf.define('SHLIBEXT', "so", quote=True)
+
     conf.check(type_name='long long')
     conf.CHECK_TYPES('intptr_t uintptr_t ptrdiff_t')
     conf.CHECK_TYPES('comparison_fn_t socklen_t bool')