summaryrefslogtreecommitdiff
path: root/source4/lib/replace/win32.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 10:13:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:33 -0500
commitc706319c8f0fe0af828da5f75c2dc673cecadf36 (patch)
tree4ad3c298f11e34e18e14c3b72e3c0c36893048d5 /source4/lib/replace/win32.m4
parent2c3dc50953341c4f59cb46aed05be358dd9c3e81 (diff)
downloadsamba-c706319c8f0fe0af828da5f75c2dc673cecadf36.tar.gz
samba-c706319c8f0fe0af828da5f75c2dc673cecadf36.tar.bz2
samba-c706319c8f0fe0af828da5f75c2dc673cecadf36.zip
r18458: move wins32 stuff to the top dir
metze (This used to be commit 521e94f2693eab9053d9e3f1bbc56cdf2e0adbcd)
Diffstat (limited to 'source4/lib/replace/win32.m4')
-rw-r--r--source4/lib/replace/win32.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/lib/replace/win32.m4 b/source4/lib/replace/win32.m4
new file mode 100644
index 0000000000..9ac84cdf2a
--- /dev/null
+++ b/source4/lib/replace/win32.m4
@@ -0,0 +1,20 @@
+AC_CHECK_HEADERS(direct.h windows.h winsock2.h ws2tcpip.h)
+
+#######################################
+# Check for mkdir mode
+AC_CACHE_CHECK( [whether mkdir supports mode], ac_mkdir_has_mode,
+ AC_TRY_COMPILE([
+ #include <stdio.h>
+ #ifdef HAVE_DIRECT_H
+ #include <direct.h>
+ #endif],[
+ mkdir("foo",0777);
+ return 0;
+ ],
+ ac_mkdir_has_mode="yes",
+ ac_mkdir_has_mode="no") )
+
+if test "$ac_mkdir_has_mode" = "yes"
+then
+ AC_DEFINE(HAVE_MKDIR_MODE, 1, [Define if target mkdir supports mode option])
+fi