r10509: Some more sconscript fixes. Now getting to link stage for smbclient
[bbaumbach/samba-autobuild/.git] / source4 / lib / replace / win32 / SConscript
1 Import('hostenv defines')
2
3 if hostenv['configure']:
4         conf = Configure(hostenv)
5         for h in ['direct.h','windows.h','winsock2.h','ws2tcpip.h']:
6                 if conf.CheckCHeader(h):
7                         defines['HAVE_' + h.upper().replace('.','_')] = 1
8         conf.TryCompile("""
9 #include <stdio.h>
10 #ifdef HAVE_DIRECT_H
11 #include <direct.h>
12 #endif
13
14 int main()
15 {
16         mkdir("foo",0777);
17         return 0;
18 }
19 """, '.c')
20         
21         conf.Finish()
22