+2004-12-15 Angus Leeming <leeming-0hXrFu2P2+c@public.gmane.org>
+
+ * configure.ac: add AC_FUNC_MKDIR test and code to
+ #define mkdir should a non-POSIX version be found.
+
2004-12-04 Lars Gullik Bjonnes <larsbj@gullik.net>
* Most Makefile.am's: Move PCH_FLAGS to AM_CPP flags where
LYX_CHECK_DECL(istreambuf_iterator, iterator)
LYX_CHECK_DECL(mkstemp,[unistd.h stdlib.h])
+# Check the form of mkdir()
+AC_FUNC_MKDIR
+
AC_ARG_ENABLE(compression-support, AC_HELP_STRING([--enable-compression-support],[Support for compressed files.]),[
case "${enableval}" in
yes) use_compression=true ;;
#endif
#endif
+#if HAVE_MKDIR
+# if MKDIR_TAKES_ONE_ARG
+ /* MinGW32 */
+# define mkdir(a, b) mkdir(a)
+# endif
+#else
+# if HAVE__MKDIR
+ /* plain Windows 32 */
+# define mkdir(a, b) _mkdir(a)
+# else
+# error "Don't know how to create a directory on this system."
+# endif
+#endif
+
#ifdef __EMX__
#include "support/os2_defines.h"
#endif