]> gcc.gnu.org Git - gcc.git/blame - fastjar/acinclude.m4
1aexcept.adb, [...]: Merge header, formatting and other trivial changes from ACT.
[gcc.git] / fastjar / acinclude.m4
CommitLineData
4977bab6 1sinclude(../config/accross.m4)
9251acb4
TT
2
3dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
4dnl of the usual 2.
5AC_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)])
19if test $gcc_cv_mkdir_takes_one_arg = yes ; then
20 AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a
21single argument.])
22fi
23])
This page took 0.069113 seconds and 5 git commands to generate.