summaryrefslogtreecommitdiff
path: root/source4/lib/replace/win32/SConscript
blob: a23fb6a8781053574ad92ad7b7638d9d2108a8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Import('hostenv defines')

if hostenv['configure']:
	conf = Configure(hostenv)
	for h in ['direct.h','windows.h','winsock2.h','ws2tcpip.h']:
		if conf.CheckCHeader(h):
			defines['HAVE_' + h.upper().replace('.','_')] = 1
	conf.TryCompile("""
#include <stdio.h>
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif

int main()
{
	mkdir("foo",0777);
	return 0;
}
""", '.c')
	
	conf.Finish()