]> git.lyx.org Git - features.git/commitdiff
cmake: buffer msvc's compiler settings
authorPeter Kümmel <syntheticpp@gmx.net>
Sun, 2 Dec 2007 10:29:25 +0000 (10:29 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sun, 2 Dec 2007 10:29:25 +0000 (10:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21908 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt
development/cmake/config.h.cmake
development/cmake/configCompiler.h.cmake [new file with mode: 0644]
development/cmake/configCompiler.h.msvc [new file with mode: 0644]

index 71ed407c883ba65e838a45161258e92e8121bf65..dfaa86428f3b7325198b538f2190dbfe76b1ac0d 100644 (file)
@@ -9,6 +9,8 @@
 
 set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
 
+project(lyx)
+
 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/
 # is checked
 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
@@ -108,7 +110,6 @@ if(UNIX)
 endif()
 
 
-project(lyx)
 find_package(Qt4 REQUIRED)
 add_definitions(-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_KEYWORDS)
 
@@ -263,10 +264,16 @@ if(MSVC)
        
 endif()
 
-# create config.h
-include(ConfigureChecks.cmake)
+# compiler tests, config.h generation
+if(UNIX)
+       include(ConfigureChecks.cmake)
+       configure_file(configCompiler.h.cmake ${CMAKE_BINARY_DIR}/configCompiler.h)
+else()
+       configure_file(configCompiler.h.msvc ${CMAKE_BINARY_DIR}/configCompiler.h)
+endif()
 configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
 
+
 find_package(ICONV REQUIRED)
 add_definitions(-DHAVE_ICONV=1)
 
index 8f15e9ff552adb69484b8b195cd619afa01b0f6d..d0cf2a886d4242ff820256cf31da7ad634c65128 100644 (file)
 #ifndef _CONFIG_H
 #define _CONFIG_H
 
+#include "configCompiler.h"
 
-#cmakedefine HAVE_IO_H 1
-#cmakedefine HAVE_LIMITS_H 1
-#cmakedefine HAVE_LOCALE_H 1
-#cmakedefine HAVE_PROCESS_H 1
-#cmakedefine HAVE_STDLIB_H 1
-#cmakedefine HAVE_SYS_STAT_H 1
-#cmakedefine HAVE_SYS_TIME_H 1
-#cmakedefine HAVE_SYS_TYPES_H 1
-#cmakedefine HAVE_SYS_UTIME_H 1
-#cmakedefine HAVE_SYS_SOCKET_H 1
-#cmakedefine HAVE_UNISTD_H 1
-#cmakedefine HAVE_INTTYPES_H 1
-#cmakedefine HAVE_UTIME_H 1
-#cmakedefine HAVE_STRING_H 1
-#cmakedefine HAVE_STRINGS_H 1
-#cmakedefine HAVE_ISTREAM 1
-#cmakedefine HAVE_OSTREAM 1
-#cmakedefine HAVE_IOS 1
-#cmakedefine HAVE_LOCALE 1
-#cmakedefine HAVE_OPEN 1
-#cmakedefine HAVE_CHMOD 1
-#cmakedefine HAVE_CLOSE 1
-#cmakedefine HAVE_POPEN 1
-#cmakedefine HAVE_PCLOSE 1
-#cmakedefine HAVE__OPEN 1
-#cmakedefine HAVE__CLOSE 1
-#cmakedefine HAVE__POPEN 1
-#cmakedefine HAVE__PCLOSE 1
-#cmakedefine HAVE_GETPID 1
-#cmakedefine HAVE__GETPID 1
-#cmakedefine HAVE_MKDIR 1
-#cmakedefine HAVE__MKDIR 1
-#cmakedefine HAVE_PUTENV 1
-#cmakedefine HAVE_MKTEMP 1
-#cmakedefine HAVE_MKSTEMP 1
-#cmakedefine HAVE_STRERROR 1
-#cmakedefine HAVE_STD_COUNT 1
-#cmakedefine HAVE_ASPRINTF 1
-#cmakedefine HAVE_WPRINTF 1
-#cmakedefine HAVE_SNPRINTF 1
-#cmakedefine HAVE_POSIX_PRINTF 1
-#cmakedefine HAVE_FCNTL 1
-#cmakedefine HAVE_INTMAX_T 1
-#cmakedefine HAVE_INTTYPES_H_WITH_UINTMAX 1
-#cmakedefine HAVE_DECL_ISTREAMBUF_ITERATOR 1
-#cmakedefine CXX_GLOBAL_CSTD 1
-#cmakedefine HAVE_GETCWD 1
-#cmakedefine HAVE_STPCPY 1
-#cmakedefine HAVE_STRCASECMP 1
-#cmakedefine HAVE_STRDUP 1
-#cmakedefine HAVE_STRTOUL 1
-#cmakedefine HAVE___FSETLOCKING 1
-#cmakedefine HAVE_MEMPCPY 1
-#cmakedefine HAVE___ARGZ_COUNT 1
-#cmakedefine HAVE___ARGZ_NEXT 1
-#cmakedefine HAVE___ARGZ_STRINGIFY 1
-#cmakedefine HAVE_SETLOCALE 1
-#cmakedefine HAVE_TSEARCH 1
-#cmakedefine HAVE_GETEGID 1
-#cmakedefine HAVE_GETGID 1
-#cmakedefine HAVE_GETUID 1
-#cmakedefine HAVE_WCSLEN 1
-#cmakedefine HAVE_WPRINTF 1
-#cmakedefine HAVE_LONG_DOUBLE 1
-#cmakedefine HAVE_LONG_LONG 1
-#cmakedefine HAVE_WCHAR_T 1
-#cmakedefine HAVE_WINT_T 1
-#cmakedefine HAVE_STDINT_H_WITH_UINTMAX 1
-#cmakedefine HAVE_LC_MESSAGES 1    
-#cmakedefine HAVE_SSTREAM 1
-#cmakedefine HAVE_ARGZ_H 1
-#cmakedefine SIZEOF_WCHAR_T_IS_2 1
-#cmakedefine SIZEOF_WCHAR_T_IS_4 1
-
-#ifdef SIZEOF_WCHAR_T_IS_2
-#  define SIZEOF_WCHAR_T 2
-#else
-#  ifdef SIZEOF_WCHAR_T_IS_4
-#    define SIZEOF_WCHAR_T 4
-#  endif
-#endif
-
-#cmakedefine HAVE_ALLOCA 1
-#cmakedefine HAVE_SYMBOL_ALLOCA 1
-#if defined(HAVE_SYMBOL_ALLOCA) && !defined(HAVE_ALLOCA)
-#define HAVE_ALLOCA
+#ifdef LYX_ENABLE_PCH
+#include "pcheaders.h"
 #endif
 
 #cmakedefine HAVE_ASPELL_ASPELL_H 1
 #cmakedefine HAVE_ASPELL_H 1
 
-#cmakedefine HAVE_ICONV_CONST 1
-#ifdef HAVE_ICONV_CONST
-#define ICONV_CONST const
-#else
-#define ICONV_CONST
-#endif
-
 #cmakedefine PACKAGE "${PACKAGE}"
 #cmakedefine PACKAGE_VERSION "${PACKAGE_VERSION}"
 #cmakedefine LYX_DATE "${LYX_DATE}"
 #cmakedefine USE_MACOSX_PACKAGING 1
 #cmakedefine PATH_MAX ${PATH_MAX}
 
-#ifdef _MSC_VER
-#undef HAVE_OPEN  // use _open instead
-#define pid_t int
-#define PATH_MAX 512
-#endif
-
-#ifdef _WIN32 
-#undef HAVE_MKDIR // use _mkdir instead
-#endif
-
-#define BOOST_ALL_NO_LIB 1
-
-#if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM)
-#  define USE_BOOST_FORMAT 1
-#else
-#  define USE_BOOST_FORMAT 0
-#endif
-
-
-#ifdef _DEBUG
-#  define ENABLE_ASSERTIONS 1
-#endif
-
-#if !defined(ENABLE_ASSERTIONS)
-#  define BOOST_DISABLE_ASSERTS 1
-#endif
-#define BOOST_ENABLE_ASSERT_HANDLER 1
-
-#define BOOST_DISABLE_THREADS 1
-#define BOOST_NO_WSTRING 1
-
-#ifdef __CYGWIN__
-#  define BOOST_POSIX 1
-#  define BOOST_POSIX_API 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:
- * http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#3_9
- * And we are not interested at all what libc
- * does: What we need is a 32bit wide wchar_t, and a libstdc++ that
- * has the needed wchar_t support and uses UCS4. Whether it
- * implements this with the help of libc, or whether it has own code
- * does not matter for us, because we don't use libc directly (Georg)
-*/
-#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
-#  define USE_WCHAR_T
-#endif
-
-#if defined(MAKE_INTL_LIB) && defined(_MSC_VER)
-#define __attribute__(x)
-#define inline
-#define uintmax_t UINT_MAX
-#endif
-
-#ifdef _MSC_VER
-#ifdef HAVE_CHMOD
-#undef HAVE_CHMOD
-#endif
-#endif
-
-#ifdef HAVE_CHMOD
-#define HAVE_MODE_T
-#endif
-
-#ifdef LYX_ENABLE_PCH
-#include "pcheaders.h"
-#endif
 
 #endif
diff --git a/development/cmake/configCompiler.h.cmake b/development/cmake/configCompiler.h.cmake
new file mode 100644 (file)
index 0000000..c4a984e
--- /dev/null
@@ -0,0 +1,184 @@
+/*
+ * \file configCompiler.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * This is the compilation configuration file for LyX.
+ * It was generated by autoconfs configure.
+ * You might want to change some of the defaults if something goes wrong
+ * during the compilation.
+ */
+
+#ifndef _CONFIG_COMPILER_H
+#define _CONFIG_COMPILER_H
+
+
+#cmakedefine HAVE_IO_H 1
+#cmakedefine HAVE_LIMITS_H 1
+#cmakedefine HAVE_LOCALE_H 1
+#cmakedefine HAVE_PROCESS_H 1
+#cmakedefine HAVE_STDLIB_H 1
+#cmakedefine HAVE_SYS_STAT_H 1
+#cmakedefine HAVE_SYS_TIME_H 1
+#cmakedefine HAVE_SYS_TYPES_H 1
+#cmakedefine HAVE_SYS_UTIME_H 1
+#cmakedefine HAVE_SYS_SOCKET_H 1
+#cmakedefine HAVE_UNISTD_H 1
+#cmakedefine HAVE_INTTYPES_H 1
+#cmakedefine HAVE_UTIME_H 1
+#cmakedefine HAVE_STRING_H 1
+#cmakedefine HAVE_STRINGS_H 1
+#cmakedefine HAVE_ISTREAM 1
+#cmakedefine HAVE_OSTREAM 1
+#cmakedefine HAVE_IOS 1
+#cmakedefine HAVE_LOCALE 1
+#cmakedefine HAVE_OPEN 1
+#cmakedefine HAVE_CHMOD 1
+#cmakedefine HAVE_CLOSE 1
+#cmakedefine HAVE_POPEN 1
+#cmakedefine HAVE_PCLOSE 1
+#cmakedefine HAVE__OPEN 1
+#cmakedefine HAVE__CLOSE 1
+#cmakedefine HAVE__POPEN 1
+#cmakedefine HAVE__PCLOSE 1
+#cmakedefine HAVE_GETPID 1
+#cmakedefine HAVE__GETPID 1
+#cmakedefine HAVE_MKDIR 1
+#cmakedefine HAVE__MKDIR 1
+#cmakedefine HAVE_PUTENV 1
+#cmakedefine HAVE_MKTEMP 1
+#cmakedefine HAVE_MKSTEMP 1
+#cmakedefine HAVE_STRERROR 1
+#cmakedefine HAVE_STD_COUNT 1
+#cmakedefine HAVE_ASPRINTF 1
+#cmakedefine HAVE_WPRINTF 1
+#cmakedefine HAVE_SNPRINTF 1
+#cmakedefine HAVE_POSIX_PRINTF 1
+#cmakedefine HAVE_FCNTL 1
+#cmakedefine HAVE_INTMAX_T 1
+#cmakedefine HAVE_INTTYPES_H_WITH_UINTMAX 1
+#cmakedefine HAVE_DECL_ISTREAMBUF_ITERATOR 1
+#cmakedefine CXX_GLOBAL_CSTD 1
+#cmakedefine HAVE_GETCWD 1
+#cmakedefine HAVE_STPCPY 1
+#cmakedefine HAVE_STRCASECMP 1
+#cmakedefine HAVE_STRDUP 1
+#cmakedefine HAVE_STRTOUL 1
+#cmakedefine HAVE___FSETLOCKING 1
+#cmakedefine HAVE_MEMPCPY 1
+#cmakedefine HAVE___ARGZ_COUNT 1
+#cmakedefine HAVE___ARGZ_NEXT 1
+#cmakedefine HAVE___ARGZ_STRINGIFY 1
+#cmakedefine HAVE_SETLOCALE 1
+#cmakedefine HAVE_TSEARCH 1
+#cmakedefine HAVE_GETEGID 1
+#cmakedefine HAVE_GETGID 1
+#cmakedefine HAVE_GETUID 1
+#cmakedefine HAVE_WCSLEN 1
+#cmakedefine HAVE_WPRINTF 1
+#cmakedefine HAVE_LONG_DOUBLE 1
+#cmakedefine HAVE_LONG_LONG 1
+#cmakedefine HAVE_WCHAR_T 1
+#cmakedefine HAVE_WINT_T 1
+#cmakedefine HAVE_STDINT_H_WITH_UINTMAX 1
+#cmakedefine HAVE_LC_MESSAGES 1    
+#cmakedefine HAVE_SSTREAM 1
+#cmakedefine HAVE_ARGZ_H 1
+#cmakedefine SIZEOF_WCHAR_T_IS_2 1
+#cmakedefine SIZEOF_WCHAR_T_IS_4 1
+
+#ifdef SIZEOF_WCHAR_T_IS_2
+#  define SIZEOF_WCHAR_T 2
+#else
+#  ifdef SIZEOF_WCHAR_T_IS_4
+#    define SIZEOF_WCHAR_T 4
+#  endif
+#endif
+
+#cmakedefine HAVE_ALLOCA 1
+#cmakedefine HAVE_SYMBOL_ALLOCA 1
+#if defined(HAVE_SYMBOL_ALLOCA) && !defined(HAVE_ALLOCA)
+#define HAVE_ALLOCA
+#endif
+
+
+#cmakedefine HAVE_ICONV_CONST 1
+#ifdef HAVE_ICONV_CONST
+#define ICONV_CONST const
+#else
+#define ICONV_CONST
+#endif
+
+#ifdef _MSC_VER
+#undef HAVE_OPEN  // use _open instead
+#define pid_t int
+#define PATH_MAX 512
+#endif
+
+#ifdef _WIN32 
+#undef HAVE_MKDIR // use _mkdir instead
+#endif
+
+#define BOOST_ALL_NO_LIB 1
+
+#if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM)
+#  define USE_BOOST_FORMAT 1
+#else
+#  define USE_BOOST_FORMAT 0
+#endif
+
+#ifdef _DEBUG
+#  define ENABLE_ASSERTIONS 1
+#endif
+
+#ifndef ENABLE_ASSERTIONS
+#  define BOOST_DISABLE_ASSERTS 1
+#endif
+#define BOOST_ENABLE_ASSERT_HANDLER 1
+
+#define BOOST_DISABLE_THREADS 1
+#define BOOST_NO_WSTRING 1
+
+#ifdef __CYGWIN__
+#  define BOOST_POSIX 1
+#  define BOOST_POSIX_API 1
+#  define BOOST_POSIX_PATH 1
+#endif
+
+#ifndef HAVE_NEWAPIS_H
+#  define WANT_GETFILEATTRIBUTESEX_WRAPPER 1
+#endif
+
+/*
+ * the FreeBSD libc uses UCS4, but libstdc++ has no proper wchar_t
+ * support compiled in:
+ * http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#3_9
+ * And we are not interested at all what libc
+ * does: What we need is a 32bit wide wchar_t, and a libstdc++ that
+ * has the needed wchar_t support and uses UCS4. Whether it
+ * implements this with the help of libc, or whether it has own code
+ * does not matter for us, because we don't use libc directly (Georg)
+*/
+#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
+#  define USE_WCHAR_T
+#endif
+
+#if defined(MAKE_INTL_LIB) && defined(_MSC_VER)
+#define __attribute__(x)
+#define inline
+#define uintmax_t UINT_MAX
+#endif
+
+#ifdef _MSC_VER
+#ifdef HAVE_CHMOD
+#undef HAVE_CHMOD
+#endif
+#endif
+
+#ifdef HAVE_CHMOD
+#define HAVE_MODE_T
+#endif
+
+
+
+#endif
diff --git a/development/cmake/configCompiler.h.msvc b/development/cmake/configCompiler.h.msvc
new file mode 100644 (file)
index 0000000..e9c0381
--- /dev/null
@@ -0,0 +1,184 @@
+/*\r
+ * \file configCompiler.h\r
+ * This file is part of LyX, the document processor.\r
+ * Licence details can be found in the file COPYING.\r
+ *\r
+ * This is the compilation configuration file for LyX.\r
+ * It was generated by autoconfs configure.\r
+ * You might want to change some of the defaults if something goes wrong\r
+ * during the compilation.\r
+ */\r
+\r
+#ifndef _CONFIG_COMPILER_H\r
+#define _CONFIG_COMPILER_H\r
+\r
+\r
+#define HAVE_IO_H 1\r
+#define HAVE_LIMITS_H 1\r
+#define HAVE_LOCALE_H 1\r
+#define HAVE_PROCESS_H 1\r
+#define HAVE_STDLIB_H 1\r
+#define HAVE_SYS_STAT_H 1\r
+/* #undef HAVE_SYS_TIME_H 1 */\r
+#define HAVE_SYS_TYPES_H 1\r
+#define HAVE_SYS_UTIME_H 1\r
+/* #undef HAVE_SYS_SOCKET_H 1 */\r
+/* #undef HAVE_UNISTD_H 1 */\r
+/* #undef HAVE_INTTYPES_H 1 */\r
+/* #undef HAVE_UTIME_H 1 */\r
+#define HAVE_STRING_H 1\r
+/* #undef HAVE_STRINGS_H 1 */\r
+/* #undef HAVE_ISTREAM 1 */\r
+/* #undef HAVE_OSTREAM 1 */\r
+/* #undef HAVE_IOS 1 */\r
+/* #undef HAVE_LOCALE 1 */\r
+#define HAVE_OPEN 1\r
+#define HAVE_CHMOD 1\r
+#define HAVE_CLOSE 1\r
+/* #undef HAVE_POPEN 1 */\r
+/* #undef HAVE_PCLOSE 1 */\r
+#define HAVE__OPEN 1\r
+#define HAVE__CLOSE 1\r
+#define HAVE__POPEN 1\r
+#define HAVE__PCLOSE 1\r
+#define HAVE_GETPID 1\r
+#define HAVE__GETPID 1\r
+#define HAVE_MKDIR 1\r
+#define HAVE__MKDIR 1\r
+#define HAVE_PUTENV 1\r
+#define HAVE_MKTEMP 1\r
+/* #undef HAVE_MKSTEMP 1 */\r
+#define HAVE_STRERROR 1\r
+/* #undef HAVE_STD_COUNT 1 */\r
+/* #undef HAVE_ASPRINTF 1 */\r
+#define HAVE_WPRINTF 1\r
+/* #undef HAVE_SNPRINTF 1 */\r
+#define HAVE_POSIX_PRINTF 1\r
+/* #undef HAVE_FCNTL 1 */\r
+/* #undef HAVE_INTMAX_T 1 */\r
+/* #undef HAVE_INTTYPES_H_WITH_UINTMAX 1 */\r
+#define HAVE_DECL_ISTREAMBUF_ITERATOR 1\r
+/* #undef CXX_GLOBAL_CSTD 1 */\r
+#define HAVE_GETCWD 1\r
+/* #undef HAVE_STPCPY 1 */\r
+/* #undef HAVE_STRCASECMP 1 */\r
+#define HAVE_STRDUP 1\r
+#define HAVE_STRTOUL 1\r
+/* #undef HAVE___FSETLOCKING 1 */\r
+/* #undef HAVE_MEMPCPY 1 */\r
+/* #undef HAVE___ARGZ_COUNT 1 */\r
+/* #undef HAVE___ARGZ_NEXT 1 */\r
+/* #undef HAVE___ARGZ_STRINGIFY 1 */\r
+#define HAVE_SETLOCALE 1\r
+/* #undef HAVE_TSEARCH 1 */\r
+/* #undef HAVE_GETEGID 1 */\r
+/* #undef HAVE_GETGID 1 */\r
+/* #undef HAVE_GETUID 1 */\r
+#define HAVE_WCSLEN 1\r
+#define HAVE_WPRINTF 1\r
+#define HAVE_LONG_DOUBLE 1\r
+#define HAVE_LONG_LONG 1\r
+/* #undef HAVE_WCHAR_T 1 */\r
+/* #undef HAVE_WINT_T 1 */\r
+/* #undef HAVE_STDINT_H_WITH_UINTMAX 1 */\r
+/* #undef HAVE_LC_MESSAGES 1     */\r
+/* #undef HAVE_SSTREAM 1 */\r
+/* #undef HAVE_ARGZ_H 1 */\r
+#define SIZEOF_WCHAR_T_IS_2 1\r
+/* #undef SIZEOF_WCHAR_T_IS_4 1 */\r
+\r
+#ifdef SIZEOF_WCHAR_T_IS_2\r
+#  define SIZEOF_WCHAR_T 2\r
+#else\r
+#  ifdef SIZEOF_WCHAR_T_IS_4\r
+#    define SIZEOF_WCHAR_T 4\r
+#  endif\r
+#endif\r
+\r
+/* #undef HAVE_ALLOCA 1 */\r
+#define HAVE_SYMBOL_ALLOCA 1\r
+#if defined(HAVE_SYMBOL_ALLOCA) && !defined(HAVE_ALLOCA)\r
+#define HAVE_ALLOCA\r
+#endif\r
+\r
+\r
+#define HAVE_ICONV_CONST 1\r
+#ifdef HAVE_ICONV_CONST\r
+#define ICONV_CONST const\r
+#else\r
+#define ICONV_CONST\r
+#endif\r
+\r
+#ifdef _MSC_VER\r
+#undef HAVE_OPEN  // use _open instead\r
+#define pid_t int\r
+#define PATH_MAX 512\r
+#endif\r
+\r
+#ifdef _WIN32 \r
+#undef HAVE_MKDIR // use _mkdir instead\r
+#endif\r
+\r
+#define BOOST_ALL_NO_LIB 1\r
+\r
+#if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM)\r
+#  define USE_BOOST_FORMAT 1\r
+#else\r
+#  define USE_BOOST_FORMAT 0\r
+#endif\r
+\r
+#ifdef _DEBUG\r
+#  define ENABLE_ASSERTIONS 1\r
+#endif\r
+\r
+#ifndef ENABLE_ASSERTIONS\r
+#  define BOOST_DISABLE_ASSERTS 1\r
+#endif\r
+#define BOOST_ENABLE_ASSERT_HANDLER 1\r
+\r
+#define BOOST_DISABLE_THREADS 1\r
+#define BOOST_NO_WSTRING 1\r
+\r
+#ifdef __CYGWIN__\r
+#  define BOOST_POSIX 1\r
+#  define BOOST_POSIX_API 1\r
+#  define BOOST_POSIX_PATH 1\r
+#endif\r
+\r
+#ifndef HAVE_NEWAPIS_H\r
+#  define WANT_GETFILEATTRIBUTESEX_WRAPPER 1\r
+#endif\r
+\r
+/*\r
+ * the FreeBSD libc uses UCS4, but libstdc++ has no proper wchar_t\r
+ * support compiled in:\r
+ * http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#3_9\r
+ * And we are not interested at all what libc\r
+ * does: What we need is a 32bit wide wchar_t, and a libstdc++ that\r
+ * has the needed wchar_t support and uses UCS4. Whether it\r
+ * implements this with the help of libc, or whether it has own code\r
+ * does not matter for us, because we don't use libc directly (Georg)\r
+*/\r
+#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)\r
+#  define USE_WCHAR_T\r
+#endif\r
+\r
+#if defined(MAKE_INTL_LIB) && defined(_MSC_VER)\r
+#define __attribute__(x)\r
+#define inline\r
+#define uintmax_t UINT_MAX\r
+#endif\r
+\r
+#ifdef _MSC_VER\r
+#ifdef HAVE_CHMOD\r
+#undef HAVE_CHMOD\r
+#endif\r
+#endif\r
+\r
+#ifdef HAVE_CHMOD\r
+#define HAVE_MODE_T\r
+#endif\r
+\r
+\r
+\r
+#endif\r