Merge branch 'dbus-1.10'
[platform/upstream/dbus.git] / cmake / config.h.cmake
1 /* config.h. Generated by cmake from config.h.cmake */
2
3 #ifndef _DBUS_CONFIG_H
4 #define _DBUS_CONFIG_H
5 /****************************/
6 /* indicate that we are building with cmake */
7 #define DBUS_CMAKE 1
8
9 @AUTOPACKAGE_CONFIG_H_TEMPLATE@
10
11 /*
12  * Variables defined by AC_DEFINE in ../configure.ac
13  * should be placed in this file
14 */
15 #cmakedefine HAVE_GNUC_VARARGS 1
16
17 #cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
18 #cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
19 #cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
20 #cmakedefine DBUS_PREFIX "@DBUS_PREFIX@"
21 #cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
22 #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
23 #cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
24 #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
25 #cmakedefine DBUS_SESSION_BUS_CONNECT_ADDRESS  "@DBUS_SESSION_BUS_CONNECT_ADDRESS@"
26 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
27 #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
28
29 #cmakedefine DBUS_ENABLE_STATS
30
31 #define TEST_LISTEN       "@TEST_LISTEN@"
32
33 // test binaries
34 #define DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
35 #define DBUS_EXEEXT "@EXEEXT@"
36
37 /* Some dbus features */
38 #cmakedefine DBUS_ENABLE_ANSI 1
39 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
40 #cmakedefine DBUS_DISABLE_ASSERT 1
41 #ifndef DBUS_DISABLE_ASSERT
42 #  define DBUS_ENABLE_ASSERT 1
43 #endif
44 #cmakedefine DBUS_DISABLE_CHECKS 1
45 #ifndef DBUS_DISABLE_CHECKS
46 #  define DBUS_ENABLE_CHECKS 1
47 #endif
48 /* xmldocs */
49 /* doxygen */
50 #cmakedefine DBUS_GCOV_ENABLED 1
51
52 /* abstract-sockets */
53
54 #cmakedefine HAVE_ABSTRACT_SOCKETS 1
55
56 #cmakedefine DBUS_PATH_OR_ABSTRACT_VALUE 1
57
58 #if (defined DBUS_PATH_OR_ABSTRACT_VALUE)
59 #define DBUS_PATH_OR_ABSTRACT @DBUS_PATH_OR_ABSTRACT_VALUE@
60 #endif
61
62 #ifdef DBUS_PATH_OR_ABSTRACT_VALUE
63 #undef DBUS_PATH_OR_ABSTRACT_VALUE
64 #endif
65
66 /* selinux */
67 /* kqueue */
68 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
69 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
70
71 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
72 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
73 #if (defined(__i386__) || defined(__x86_64__))
74 # define DBUS_HAVE_ATOMIC_INT 1
75 # define DBUS_USE_ATOMIC_INT_486 1
76 #endif
77
78 #cmakedefine DBUS_BUILD_X11 1
79 /* For the moment, the cmake build system doesn't have an equivalent of
80  * the autoconf build system's --disable-x11-autolaunch */
81 #ifdef DBUS_BUILD_X11
82 # define DBUS_ENABLE_X11_AUTOLAUNCH 1
83 #endif
84
85 #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
86
87 #cmakedefine DBUS_VA_COPY_FUNC
88 #if (defined DBUS_VA_COPY_FUNC)
89 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
90 #endif
91
92 #ifdef DBUS_VA_COPY_FUNC
93 #undef DBUS_VA_COPY_FUNC
94 #endif
95
96 #cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
97
98 #cmakedefine DBUS_WITH_GLIB 1
99 #cmakedefine GLIB_VERSION_MIN_REQUIRED @GLIB_VERSION_MIN_REQUIRED@
100 #cmakedefine GLIB_VERSION_MAX_ALLOWED  @GLIB_VERSION_MAX_ALLOWED@
101
102 // headers
103 #cmakedefine HAVE_ALLOCA_H
104 #cmakedefine HAVE_BYTESWAP_H
105 #cmakedefine HAVE_CRT_EXTERNS_H
106
107 /* Define to 1 if you have dirent.h */
108 #cmakedefine   HAVE_DIRENT_H 1
109
110 #cmakedefine HAVE_DLFCN_H
111
112 /* Define to 1 if you have errno.h */
113 #cmakedefine   HAVE_ERRNO_H 1
114
115 #cmakedefine HAVE_EXECINFO_H
116 #cmakedefine HAVE_EXPAT_H
117
118 /* Define to 1 if you have grp.h */
119 #cmakedefine   HAVE_GRP_H 1
120
121 /* Define to 1 if you have inttypes.h */
122 #cmakedefine   HAVE_INTTYPES_H 1
123
124 /* Define to 1 if you have io.h */
125 #cmakedefine   HAVE_IO_H 1
126
127 /* Define to 1 if you have locale.h */
128 #cmakedefine   HAVE_LOCALE_H 1
129
130 #cmakedefine HAVE_MEMORY_H
131
132 /* Define to 1 if you have sys/poll.h */
133 #cmakedefine    HAVE_POLL 1
134
135 /* Define to 1 if you have signal.h */
136 #cmakedefine   HAVE_SIGNAL_H 1
137
138 /* Define to 1 if you have stdint.h */
139 #cmakedefine   HAVE_STDINT_H 1
140
141 #cmakedefine HAVE_STDLIB_H
142
143 /* Define to 1 if you have stdio.h */
144 #cmakedefine   HAVE_STDIO_H 1
145
146 #cmakedefine HAVE_STRINGS_H
147 #cmakedefine HAVE_STRING_H
148 #cmakedefine HAVE_SYSLOG_H
149 #cmakedefine HAVE_SYS_EVENTS_H
150 #cmakedefine HAVE_SYS_INOTIFY_H
151 #cmakedefine HAVE_SYS_PRCTL_H
152 #cmakedefine HAVE_SYS_RESOURCE_H
153 #cmakedefine HAVE_SYS_STAT_H
154
155 /* Define to 1 if you have sys/syslimits.h */
156 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
157
158 /* Define to 1 if you have sys/time.h */
159 #cmakedefine    HAVE_SYS_TIME_H 1
160
161 #cmakedefine HAVE_SYS_TYPES_H
162
163 #cmakedefine HAVE_SYS_UIO_H
164
165 /* Define to 1 if you have sys/wait.h */
166 #cmakedefine    HAVE_SYS_WAIT_H 1
167
168 /* Define to 1 if you have time.h */
169 #cmakedefine   HAVE_TIME_H 1
170
171 /* Define to 1 if you have unistd.h */
172 #cmakedefine   HAVE_UNISTD_H 1
173
174 /* Define to 1 if you have ws2tcpip.h */
175 #cmakedefine   HAVE_WS2TCPIP_H
176
177 // symbols
178 /* Define to 1 if you have backtrace */
179 #cmakedefine   HAVE_BACKTRACE 1
180
181 /* Define to 1 if you have getgrouplist */
182 #cmakedefine   HAVE_GETGROUPLIST 1
183
184 /* Define to 1 if you have getpeerucred */
185 #cmakedefine   HAVE_GETPEERUCRED 1
186
187 /* Define to 1 if you have nanosleep */
188 #cmakedefine   HAVE_NANOSLEEP 1
189
190 /* Define to 1 if you have getpwnam_r */
191 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
192
193 /* Define to 1 if you have socketpair */
194 #cmakedefine   HAVE_SOCKETPAIR 1
195
196 /* Define to 1 if you have setenv */
197 #cmakedefine   HAVE_SETENV 1
198
199 /* Define to 1 if you have unsetenv */
200 #cmakedefine   HAVE_UNSETENV 1
201
202 /* Define to 1 if you have clearenv */
203 #cmakedefine   HAVE_CLEARENV 1
204
205 /* Define to 1 if you have writev */
206 #cmakedefine   HAVE_WRITEV 1
207
208 /* Define to 1 if you have socklen_t */
209 #cmakedefine   HAVE_SOCKLEN_T 1
210
211 /* Define to 1 if you have setlocale */
212 #cmakedefine   HAVE_SETLOCALE 1
213
214 /* Define to 1 if you have localeconv */
215 #cmakedefine   HAVE_LOCALECONV 1
216
217 /* Define to 1 if you have strtoll */
218 #cmakedefine   HAVE_STRTOLL 1
219
220 /* Define to 1 if you have strtoull */
221 #cmakedefine   HAVE_STRTOULL 1
222
223 /* Define to 1 if you have pip2 */
224 #cmakedefine   HAVE_PIPE2
225
226 #cmakedefine HAVE_ACCEPT4 1
227 #cmakedefine HAVE_DIRFD 1
228 #cmakedefine HAVE_INOTIFY_INIT1 1
229 #cmakedefine HAVE_UNIX_FD_PASSING 1
230
231 // structs
232 /* Define to 1 if you have struct cmsgred */
233 #cmakedefine    HAVE_CMSGCRED 1
234
235 #cmakedefine FD_SETSIZE @FD_SETSIZE@
236
237 #cmakedefine DBUS_USER "@DBUS_USER@"
238 #cmakedefine DBUS_TEST_USER "@DBUS_TEST_USER@"
239
240 // system type defines
241 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
242 # define DBUS_WIN
243 # define DBUS_WIN_FIXME 1
244 # ifdef _WIN32_WCE
245 #  define DBUS_WINCE
246 # else
247 #  define DBUS_WIN32
248 # endif
249 #else
250 # define DBUS_UNIX
251 #endif 
252
253 #if defined(_WIN32) || defined(_WIN64)
254 // mingw mode_t
255 # ifdef HAVE_STDIO_H
256 #  include <stdio.h>
257 # endif
258 # ifndef _MSC_VER
259 #  define uid_t int
260 #  define gid_t int
261 # else
262 #  define snprintf _snprintf
263    typedef int mode_t;
264 #  if !defined(_WIN32_WCE)
265 #    define strtoll _strtoi64
266 #    define strtoull _strtoui64
267 #    define HAVE_STRTOLL 1
268 #    define HAVE_STRTOULL 1
269 #  endif
270 # endif
271 #endif  // defined(_WIN32) || defined(_WIN64)
272
273 #ifdef interface
274 #undef interface
275 #endif
276
277 #ifndef SIGHUP
278 #define SIGHUP  1
279 #endif
280
281 #cmakedefine DBUS_VERBOSE_C_S 1
282 #ifdef DBUS_VERBOSE_C_S
283 #define _dbus_verbose_C_S printf
284 #else
285 #define _dbus_verbose_C_S _dbus_verbose
286 #endif 
287
288 # if defined(_MSC_VER) && !defined(inline)
289 #define inline __inline
290 #endif
291
292 #ifdef DBUS_WIN
293 #define FD_SETSIZE @FD_SETSIZE@
294 #endif
295
296 #endif  // _DBUS_CONFIG_H