pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2018-04-24
2018-04-24 14:32:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>
2b4856a122e902e7175dfe9ec829d3189e13d32a (
29
lines) (+
29
/-
0
)
[
Show
|
Annotate
]
Branch:
grubba/fdlib
Configure: Moved API test of mkdir().
4699:
AC_MSG_RESULT($pike_cv_accept_size_t *) AC_DEFINE_UNQUOTED(ACCEPT_SIZE_T, $pike_cv_accept_size_t)
+
AC_MSG_CHECKING(if mkdir takes 1 or 2 arguments)
+
AC_CACHE_VAL(pike_cv_func_mkdir_args,[
+
AC_TRY_COMPILE([
+
#ifndef _LARGEFILE_SOURCE
+
# define _FILE_OFFSET_BITS 64
+
# define _LARGEFILE_SOURCE
+
# define _LARGEFILE64_SOURCE 1
+
#endif
+
/* HPUX needs these too... */
+
#ifndef __STDC_EXT__
+
# define __STDC_EXT__
+
#endif /* !__STDC_EXT__ */
+
+
#include <sys/types.h>
+
#ifdef HAVE_UNISTD_H
+
#include <unistd.h>
+
#endif
+
#ifdef HAVE_DIRECT_H
+
#include <direct.h>
+
#endif
+
],[
+
mkdir("conftestdir",0666);
+
],pike_cv_func_mkdir_args=2,pike_cv_func_mkdir_args=1)
+
])
+
+
AC_MSG_RESULT($pike_cv_func_mkdir_args)
+
AC_DEFINE_UNQUOTED(MKDIR_ARGS,$pike_cv_func_mkdir_args)
+
if test x"$pike_cv_sys_os" = xWindows_NT ; then AC_DEFINE(HAVE_LOADLIBRARY) AC_DEFINE(HAVE_FREELIBRARY)