File: win32.m4

package info (click to toggle)
ctdb 1.12%2Bgit20120201-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,656 kB
  • sloc: ansic: 61,736; sh: 18,367; xml: 3,887; python: 1,220; makefile: 554; perl: 319; awk: 118
file content (20 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AC_CHECK_HEADERS(direct.h windows.h winsock2.h ws2tcpip.h)

#######################################
# Check for mkdir mode
AC_CACHE_CHECK( [whether mkdir supports mode], libreplace_cv_mkdir_has_mode,
	AC_TRY_COMPILE([
		#include <stdio.h>
		#ifdef HAVE_DIRECT_H
		#include <direct.h>
		#endif],[
			mkdir("foo",0777);
			return 0;
	],
    libreplace_cv_mkdir_has_mode="yes",
    libreplace_cv_mkdir_has_mode="no") )

if test "$libreplace_cv_mkdir_has_mode" = "yes"
then
    AC_DEFINE(HAVE_MKDIR_MODE, 1, [Define if target mkdir supports mode option])
fi