X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=0b564bdcd9c79cfcea7e1af5b29c4bdb8ea9fad4;hb=7e33edc3c37df1f1f8124c4d1362e418b25e2e07;hp=db12f2b20475bbc9df3d3ad7647dbd55dcbaace4;hpb=e7b36ac0ddbe25790c1fbe77193b027f8a6ae609;p=lyx.git diff --git a/configure.ac b/configure.ac index db12f2b204..0b564bdcd9 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ dnl Process with autoconf to generate configure script -*- sh -*- 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, ["2010-05-11"]) +AC_SUBST(LYX_DATE, ["2010-11-10"]) AC_PREREQ(2.52) AC_CONFIG_SRCDIR(src/main.cpp) AC_CONFIG_HEADERS([config.h]) @@ -183,6 +183,8 @@ AC_TYPE_SIGNAL 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 @@ -289,6 +291,13 @@ char * strerror(int 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