source: trunk/essentials/sys-devel/patch/m4/mkdir.m4

Last change on this file was 3444, checked in by bird, 18 years ago

patch 2.5.9

File size: 798 bytes
Line 
1#serial 1
2
3dnl From Mumit Khan and Paul Eggert
4dnl Determine whether mkdir accepts only one argument instead of the usual two.
5
6AC_DEFUN([PATCH_FUNC_MKDIR_TAKES_ONE_ARG],
7 [AC_CHECK_FUNCS(mkdir)
8 AC_CACHE_CHECK([whether mkdir takes only one argument],
9 patch_cv_mkdir_takes_one_arg,
10 [patch_cv_mkdir_takes_one_arg=no
11 if test $ac_cv_func_mkdir = yes; then
12 AC_TRY_COMPILE([
13#include <sys/types.h>
14#include <sys/stat.h>
15 ],
16 [mkdir (".", 0);],
17 ,
18 [AC_TRY_COMPILE([
19#include <sys/types.h>
20#include <sys/stat.h>
21 ],
22 [mkdir (".");],
23 patch_cv_mkdir_takes_one_arg=yes
24 )]
25 )
26 fi
27 ]
28 )
29 if test $patch_cv_mkdir_takes_one_arg = yes; then
30 AC_DEFINE([MKDIR_TAKES_ONE_ARG], 1,
31 [Define if mkdir takes only one argument.])
32 fi
33 ]
34)
Note: See TracBrowser for help on using the repository browser.