summaryrefslogtreecommitdiff
path: root/source4/lib/replace/win32
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-26 15:15:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:58 -0500
commite337caeed1459f876449611ae1684616d0ea8f55 (patch)
tree172bc1ed142701b20975771e3d788a0fb9aea034 /source4/lib/replace/win32
parent98a7da234869576c0b4b41ede9fd64a022c3ec58 (diff)
downloadsamba-e337caeed1459f876449611ae1684616d0ea8f55.tar.gz
samba-e337caeed1459f876449611ae1684616d0ea8f55.tar.bz2
samba-e337caeed1459f876449611ae1684616d0ea8f55.zip
r10509: Some more sconscript fixes. Now getting to link stage for smbclient
(This used to be commit 6df956edbab7ad5e72b2f20e74ab0f0d62528932)
Diffstat (limited to 'source4/lib/replace/win32')
-rw-r--r--source4/lib/replace/win32/SConscript22
1 files changed, 22 insertions, 0 deletions
diff --git a/source4/lib/replace/win32/SConscript b/source4/lib/replace/win32/SConscript
new file mode 100644
index 0000000000..a23fb6a878
--- /dev/null
+++ b/source4/lib/replace/win32/SConscript
@@ -0,0 +1,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()
+