>>> "Thomas" == Thomas E Dickey <[EMAIL PROTECTED]> writes:
[...]
Thomas> it doesn't cover the problem areas (compilers that mistreat mkdir
Thomas> may prototype it in dir.h and dirent.h, for instance).
Would it be sufficient to check for these headers and #include
them in the AC_TRY_COMPILE block? (and is AC_HEADER_DIRENT
suitable for this?)
>> AC_DEFUN([AC_FUNC_MKDIR],
>> [AC_CHECK_FUNCS([mkdir _mkdir])
>> AC_CACHE_CHECK([whether mkdir takes one argument],
>> [ac_cv_mkdir_takes_one_arg],
>> [AC_TRY_COMPILE([
>> #include <sys/stat.h>
>> #ifdef HAVE_UNISTD_H
>> # include <unistd.h>
>> #endif
>> ],[mkdir (".");],
[...]
--
Alexandre Duret-Lutz