AC_INIT(LyX,2.0.0svn,[lyx-devel@lists.lyx.org],[lyx])
# Use ISO format only. The frontend needs to parse this
-AC_SUBST(LYX_DATE, ["2009-03-25"])
+AC_SUBST(LYX_DATE, ["2011-01-10"])
AC_PREREQ(2.52)
AC_CONFIG_SRCDIR(src/main.cpp)
AC_CONFIG_HEADERS([config.h])
# some standard header files
AC_HEADER_MAJOR
-AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h locale.h NewAPIs.h utime.h sys/utime.h)
+AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h locale.h utime.h sys/utime.h)
# some standard structures
AC_HEADER_STAT
AC_TYPE_SIZE_T
AC_TYPE_UID_T
+LYX_CHECK_DEF(PATH_MAX, limits.h, [int n = PATH_MAX;])
+
AC_CHECK_FUNCS(chmod close _close fork getpid _getpid lstat mkfifo open _open pclose _pclose popen _popen readlink strerror)
# Check the form of mkdir()
AC_FUNC_MKDIR
real_localedir=`eval "echo \`eval \"echo ${datadir}/locale\"\`"`
VERSION_INFO="Configuration\n\
Host type: ${host}\n\
- Special build flags: ${lyx_flags}\n\
+ Special build flags: ${lyx_flags}\n\
C Compiler: ${CC} ${CC_VERSION}\n\
C Compiler LyX flags: ${AM_CPPFLAGS} ${AM_CFLAGS}\n\
C Compiler flags: ${CPPFLAGS} ${CFLAGS}\n\
#define BOOST_NO_WREGEX 1
#define BOOST_NO_WSTRING 1
+// TR1 regex not supported in GCC <= 4.5
+#ifndef LYX_USE_TR1
+# if __GNUC__ == 4
+# define LYX_USE_TR1
+# endif
+#endif
+
#ifdef __CYGWIN__
# define NOMINMAX
# define BOOST_POSIX 1
# define BOOST_POSIX_PATH 1
#endif
-#if defined(HAVE_NEWAPIS_H)
-# define WANT_GETFILEATTRIBUTESEX_WRAPPER 1
-#endif
-
/*
* the FreeBSD libc uses UCS4, but libstdc++ has no proper wchar_t
* support compiled in: