]> git.lyx.org Git - features.git/blob - development/cmake/config.h.cmake
cec1d0e3f7602766f30274a9e76f4f34b32ef41d
[features.git] / development / cmake / config.h.cmake
1 /*
2  * \file config.h
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * This is the compilation configuration file for LyX.
7  * It was generated by cmake.
8  * You might want to change some of the defaults if something goes wrong
9  * during the compilation.
10  */
11
12 #ifndef _CONFIG_H
13 #define _CONFIG_H
14
15 // obligatory flags
16 #define QT_NO_STL 1
17 #define QT_NO_KEYWORDS 1
18 #define HAVE_ICONV 1
19
20 #include "configCompiler.h"
21
22 #ifdef LYX_ENABLE_PCH
23 #include "pcheaders.h"
24 #endif
25
26
27 #cmakedefine LYX_DEVEL_VERSION 1
28 #if defined(LYX_DEVEL_VERSION)
29         #define DEVEL_VERSION 1
30 #else
31         #undef DEVEL_VERSION
32 #endif
33 #cmakedefine PACKAGE "${PACKAGE}"
34 #cmakedefine PACKAGE_VERSION "${PACKAGE_VERSION}"
35 #define PACKAGE_STRING "LyX ${PACKAGE_VERSION}"
36 #cmakedefine PACKAGE_BUGREPORT "${PACKAGE_BUGREPORT}"
37 #cmakedefine LYX_DATE "${LYX_DATE}"
38 #cmakedefine VERSION_INFO "${VERSION_INFO}"
39 #cmakedefine LYX_DIR_VER "${LYX_DIR_VER}"
40 #cmakedefine LYX_USERDIR_VER "${LYX_USERDIR_VER}"
41 #define LYX_MAJOR_VERSION ${LYX_MAJOR_VERSION}
42 #define LYX_MINOR_VERSION ${LYX_MINOR_VERSION}
43
44 #define PROGRAM_SUFFIX "${PROGRAM_SUFFIX}"
45 #define LYX_ABS_INSTALLED_DATADIR "${LYX_ABS_INSTALLED_DATADIR}"
46 #define LYX_ABS_INSTALLED_LOCALEDIR "${LYX_ABS_INSTALLED_LOCALEDIR}"
47 #define LYX_ABS_TOP_SRCDIR "${TOP_SRC_DIR}"
48
49 #cmakedefine USE_POSIX_PACKAGING 1
50 #cmakedefine USE_WINDOWS_PACKAGING 1
51 #cmakedefine USE_MACOSX_PACKAGING 1
52 #cmakedefine PATH_MAX ${PATH_MAX}
53
54 #cmakedefine WORDS_BIGENDIAN 1
55
56 #cmakedefine LYX_MERGE_FILES 1
57
58 #cmakedefine LYX_USE_TR1 1
59 #cmakedefine LYX_USE_TR1_REGEX 1
60
61 #cmakedefine ASPELL_FOUND 1
62 #ifdef ASPELL_FOUND
63 #define USE_ASPELL 1
64 #endif
65
66 #cmakedefine AIKSAURUSLIB_FOUND 1
67 #ifdef AIKSAURUSLIB_FOUND
68 #define HAVE_LIBAIKSAURUS 1
69 #define AIKSAURUS_H_LOCATION "${AIKSAURUSLIB_H}"
70 #endif
71
72 #cmakedefine ENCHANT_FOUND 1
73 #ifdef ENCHANT_FOUND
74 #define USE_ENCHANT 1
75 #endif
76
77 #cmakedefine HUNSPELL_FOUND 1
78 #ifdef HUNSPELL_FOUND
79 #define USE_HUNSPELL 1
80 #endif
81
82 #cmakedefine LYX_NLS 1
83 #ifdef LYX_NLS
84 #define ENABLE_NLS 1
85 // These are needed when building included gettext (taken from autoconf macro)
86 #cmakedefine LYX_EXTERNAL_LIBINTL 1
87 #if !defined(LYX_EXTERNAL_LIBINTL)
88 // this only makes sense when LYX_EXTERNAL_LIBINTL is OFF.
89 #define __libc_lock_t                   gl_lock_t
90 #define __libc_lock_define              gl_lock_define
91 #define __libc_lock_define_initialized  gl_lock_define_initialized
92 #define __libc_lock_init                gl_lock_init
93 #define __libc_lock_lock                gl_lock_lock
94 #define __libc_lock_unlock              gl_lock_unlock
95 #define __libc_lock_recursive_t                   gl_recursive_lock_t
96 #define __libc_lock_define_recursive              gl_recursive_lock_define
97 #define __libc_lock_define_initialized_recursive  gl_recursive_lock_define_initialized
98 #define __libc_lock_init_recursive                gl_recursive_lock_init
99 #define __libc_lock_lock_recursive                gl_recursive_lock_lock
100 #define __libc_lock_unlock_recursive              gl_recursive_lock_unlock
101 #define glthread_in_use  libintl_thread_in_use
102 #define glthread_lock_init     libintl_lock_init
103 #define glthread_lock_lock     libintl_lock_lock
104 #define glthread_lock_unlock   libintl_lock_unlock
105 #define glthread_lock_destroy  libintl_lock_destroy
106 #define glthread_rwlock_init     libintl_rwlock_init
107 #define glthread_rwlock_rdlock   libintl_rwlock_rdlock
108 #define glthread_rwlock_wrlock   libintl_rwlock_wrlock
109 #define glthread_rwlock_unlock   libintl_rwlock_unlock
110 #define glthread_rwlock_destroy  libintl_rwlock_destroy
111 #define glthread_recursive_lock_init     libintl_recursive_lock_init
112 #define glthread_recursive_lock_lock     libintl_recursive_lock_lock
113 #define glthread_recursive_lock_unlock   libintl_recursive_lock_unlock
114 #define glthread_recursive_lock_destroy  libintl_recursive_lock_destroy
115 #define glthread_once                 libintl_once
116 #define glthread_once_call            libintl_once_call
117 #define glthread_once_singlethreaded  libintl_once_singlethreaded
118 #define hash_string                     libintl_hash_string
119 #endif /* LYX_EXTERNAL_LIBINTL */
120 #endif
121
122
123 #endif // config.h guard
124
125
126
127 // Unguarded cleanup of global namespace:
128
129 #ifdef ColorMode
130 #undef ColorMode
131 #endif
132
133 #ifdef FocusOut
134 #undef FocusOut
135 #endif
136
137 #ifdef FocusIn
138 #undef FocusIn
139 #endif
140
141 #ifdef KeyRelease
142 #undef KeyRelease
143 #endif
144
145 #ifdef CursorShape
146 #undef CursorShape
147 #endif
148
149 #ifdef IGNORE
150 #undef IGNORE
151 #endif
152
153 #ifdef GrayScale
154 #undef GrayScale
155 #endif
156
157 #ifdef Status
158 #undef Status
159 #endif
160
161 #ifdef IN
162 #undef IN
163 #endif
164
165 #ifdef KeyPress
166 #undef KeyPress
167 #endif
168