mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Configure tests for mkdir.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9379 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9c1ace9a87
commit
abe7afc2c4
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2004-12-04 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* Most Makefile.am's: Move PCH_FLAGS to AM_CPP flags where
|
* Most Makefile.am's: Move PCH_FLAGS to AM_CPP flags where
|
||||||
|
17
configure.ac
17
configure.ac
@ -266,6 +266,9 @@ AC_CHECK_FUNCS(strerror)
|
|||||||
LYX_CHECK_DECL(istreambuf_iterator, iterator)
|
LYX_CHECK_DECL(istreambuf_iterator, iterator)
|
||||||
LYX_CHECK_DECL(mkstemp,[unistd.h stdlib.h])
|
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.]),[
|
AC_ARG_ENABLE(compression-support, AC_HELP_STRING([--enable-compression-support],[Support for compressed files.]),[
|
||||||
case "${enableval}" in
|
case "${enableval}" in
|
||||||
yes) use_compression=true ;;
|
yes) use_compression=true ;;
|
||||||
@ -354,6 +357,20 @@ int mkstemp(char*);
|
|||||||
#endif
|
#endif
|
||||||
#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__
|
#ifdef __EMX__
|
||||||
#include "support/os2_defines.h"
|
#include "support/os2_defines.h"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user