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