]> gcc.gnu.org Git - gcc.git/blob - fastjar/acinclude.m4
1aexcept.adb, [...]: Merge header, formatting and other trivial changes from ACT.
[gcc.git] / fastjar / acinclude.m4
1 sinclude(../config/accross.m4)
2
3 dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
4 dnl of the usual 2.
5 AC_DEFUN(gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG,
6 [AC_CACHE_CHECK([if mkdir takes one argument], gcc_cv_mkdir_takes_one_arg,
7 [AC_TRY_COMPILE([
8 #include <sys/types.h>
9 #ifdef HAVE_SYS_STAT_H
10 # include <sys/stat.h>
11 #endif
12 #ifdef HAVE_UNISTD_H
13 # include <unistd.h>
14 #endif
15 #ifdef HAVE_DIRECT_H
16 # include <direct.h>
17 #endif], [mkdir ("foo", 0);],
18 gcc_cv_mkdir_takes_one_arg=no, gcc_cv_mkdir_takes_one_arg=yes)])
19 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
20 AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a
21 single argument.])
22 fi
23 ])
This page took 0.036931 seconds and 5 git commands to generate.