mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
4e12bbbf56
This fixes the autoconf 2.63 warning "suspicious cache-id, must contain _cv_ to be cached". Thanks to William Jojo <w.jojo@hvcc.edu> for reporting. Michael (This used to be ctdb commit f7be553ed0826d31759812d58db91589ccdf8a8c)
21 lines
522 B
Plaintext
21 lines
522 B
Plaintext
AC_CHECK_HEADERS(direct.h windows.h winsock2.h ws2tcpip.h)
|
|
|
|
#######################################
|
|
# Check for mkdir mode
|
|
AC_CACHE_CHECK( [whether mkdir supports mode], ac_cv_mkdir_has_mode,
|
|
AC_TRY_COMPILE([
|
|
#include <stdio.h>
|
|
#ifdef HAVE_DIRECT_H
|
|
#include <direct.h>
|
|
#endif],[
|
|
mkdir("foo",0777);
|
|
return 0;
|
|
],
|
|
ac_cv_mkdir_has_mode="yes",
|
|
ac_cv_mkdir_has_mode="no") )
|
|
|
|
if test "$ac_cv_mkdir_has_mode" = "yes"
|
|
then
|
|
AC_DEFINE(HAVE_MKDIR_MODE, 1, [Define if target mkdir supports mode option])
|
|
fi
|