diff options
author | Werner Koch <wk@gnupg.org> | 1999-09-06 20:10:27 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-09-06 20:10:27 +0200 |
commit | 4a3291c4dba9965649acf7adb59113a615289608 (patch) | |
tree | 9d127094b1798fcb23ba59fdaa0d7ad748d8dd68 /acinclude.m4 | |
parent | *** empty log message *** (diff) | |
download | gnupg2-4a3291c4dba9965649acf7adb59113a615289608.tar.xz gnupg2-4a3291c4dba9965649acf7adb59113a615289608.zip |
See ChangeLog: Mon Sep 6 19:59:08 CEST 1999 Werner Koch
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 5b00dc0bd..aa721ea88 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -617,5 +617,26 @@ if test x$ac_cv_sys_symbol_underscore = xyes; then fi ]) +dnl Stolen from gcc +dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead +dnl of the usual 2. +AC_DEFUN(GNUPG_FUNC_MKDIR_TAKES_ONE_ARG, +[AC_CACHE_CHECK([if mkdir takes one argument], gnupg_cv_mkdir_takes_one_arg, +[AC_TRY_COMPILE([ +#include <sys/types.h> +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif +#ifdef HAVE_DIRECT_H +# include <direct.h> +#endif], [mkdir ("foo", 0);], + gnupg_cv_mkdir_takes_one_arg=no, gnupg_cv_mkdir_takes_one_arg=yes)]) +if test $gnupg_cv_mkdir_takes_one_arg = yes ; then + AC_DEFINE(MKDIR_TAKES_ONE_ARG) +fi +]) dnl *-*wedit:notab*-* Please keep this as the last line. |