969a625cac455c534b8305491d3c24e4fcaaa885
[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 #cmakedefine HAVE_GNUC_VARARGS 1
10
11 #cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
12 #cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
13 #cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
14 #cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
15 #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
16 #cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
17 #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
18 #cmakedefine DBUS_SESSION_BUS_CONNECT_ADDRESS  "@DBUS_SESSION_BUS_CONNECT_ADDRESS@"
19 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
20 #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
21 #cmakedefine PACKAGE "@PACKAGE@"
22 /* Version number of package */
23 #cmakedefine DBUS_MAJOR_VERSION @DBUS_MAJOR_VERSION@
24 #cmakedefine DBUS_MINOR_VERSION @DBUS_MINOR_VERSION@
25 #cmakedefine DBUS_MICRO_VERSION @DBUS_MICRO_VERSION@
26 #cmakedefine DBUS_VERSION ((@DBUS_MAJOR_VERSION@ << 16) | (@DBUS_MINOR_VERSION@ << 8) | (@DBUS_MICRO_VERSION@))
27 #cmakedefine DBUS_VERSION_STRING "@DBUS_VERSION_STRING@"
28 #cmakedefine DBUS_ENABLE_STATS
29
30 #define VERSION DBUS_VERSION_STRING
31
32 #define TEST_LISTEN       "@TEST_LISTEN@"
33
34 // test binaries
35 #define DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
36 #define DBUS_EXEEXT "@EXEEXT@"
37
38 /* Full path to test file test/test-exit in builddir */
39 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
40
41 /* Some dbus features */
42 #cmakedefine DBUS_BUILD_TESTS 1
43 #cmakedefine DBUS_ENABLE_ANSI 1
44 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
45 #cmakedefine DBUS_DISABLE_ASSERT 1
46 #ifndef DBUS_DISABLE_ASSERT
47 #  define DBUS_ENABLE_ASSERT 1
48 #endif
49 #cmakedefine DBUS_DISABLE_CHECKS 1
50 #ifndef DBUS_DISABLE_CHECKS
51 #  define DBUS_ENABLE_CHECKS 1
52 #endif
53 /* xmldocs */
54 /* doxygen */
55 #cmakedefine DBUS_GCOV_ENABLED 1
56
57 /* abstract-sockets */
58
59 #cmakedefine HAVE_ABSTRACT_SOCKETS 1
60
61 #cmakedefine DBUS_PATH_OR_ABSTRACT_VALUE 1
62
63 #if (defined DBUS_PATH_OR_ABSTRACT_VALUE)
64 #define DBUS_PATH_OR_ABSTRACT @DBUS_PATH_OR_ABSTRACT_VALUE@
65 #endif
66
67 #ifdef DBUS_PATH_OR_ABSTRACT_VALUE
68 #undef DBUS_PATH_OR_ABSTRACT_VALUE
69 #endif
70
71 /* selinux */
72 /* kqueue */
73 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
74 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
75
76 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
77 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
78 #if (defined(__i386__) || defined(__x86_64__))
79 # define DBUS_HAVE_ATOMIC_INT 1
80 # define DBUS_USE_ATOMIC_INT_486 1
81 #endif
82
83 #cmakedefine DBUS_BUILD_X11 1
84 /* For the moment, the cmake build system doesn't have an equivalent of
85  * the autoconf build system's --disable-x11-autolaunch */
86 #ifdef DBUS_BUILD_X11
87 # define DBUS_ENABLE_X11_AUTOLAUNCH 1
88 #endif
89
90 #define DBUS_DEFAULT_MESSAGE_UNIX_FDS @DEFAULT_MESSAGE_UNIX_FDS@
91
92 #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
93
94 #cmakedefine DBUS_VA_COPY_FUNC
95 #if (defined DBUS_VA_COPY_FUNC)
96 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
97 #endif
98
99 #ifdef DBUS_VA_COPY_FUNC
100 #undef DBUS_VA_COPY_FUNC
101 #endif
102
103 #cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
104
105 // headers
106 /* Define to 1 if you have dirent.h */
107 #cmakedefine   HAVE_DIRENT_H 1
108
109 /* Define to 1 if you have io.h */
110 #cmakedefine   HAVE_IO_H 1
111
112 /* Define to 1 if you have grp.h */
113 #cmakedefine   HAVE_GRP_H 1
114
115 /* Define to 1 if you have sys/poll.h */
116 #cmakedefine    HAVE_POLL 1
117
118 /* Define to 1 if you have sys/time.h */
119 #cmakedefine    HAVE_SYS_TIME 1
120
121 /* Define to 1 if you have sys/wait.h */
122 #cmakedefine    HAVE_SYS_WAIT 1
123
124 /* Define to 1 if you have time.h */
125 #cmakedefine   HAVE_TIME_H 1
126
127 /* Define to 1 if you have ws2tcpip.h */
128 #cmakedefine   HAVE_WS2TCPIP_H
129
130 /* Define to 1 if you have wspiapi.h */
131 #cmakedefine   HAVE_WSPIAPI_H 1
132
133 /* Define to 1 if you have unistd.h */
134 #cmakedefine   HAVE_UNISTD_H 1
135
136 /* Define to 1 if you have stdio.h */
137 #cmakedefine   HAVE_STDIO_H 1
138
139 /* Define to 1 if you have sys/syslimits.h */
140 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
141
142 /* Define to 1 if you have errno.h */
143 #cmakedefine   HAVE_ERRNO_H 1
144
145 /* Define to 1 if you have signal.h */
146 #cmakedefine   HAVE_SIGNAL_H 1
147
148 /* Define to 1 if you have locale.h */
149 #cmakedefine   HAVE_LOCALE_H 1
150
151 /* Define to 1 if you have inttypes.h */
152 #cmakedefine   HAVE_INTTYPES_H 1
153
154 /* Define to 1 if you have stdint.h */
155 #cmakedefine   HAVE_STDINT_H 1
156
157 // symbols
158 /* Define to 1 if you have backtrace */
159 #cmakedefine   HAVE_BACKTRACE 1
160
161 /* Define to 1 if you have getgrouplist */
162 #cmakedefine   HAVE_GETGROUPLIST 1
163
164 /* Define to 1 if you have getpeerucred */
165 #cmakedefine   HAVE_GETPEERUCRED 1
166
167 /* Define to 1 if you have nanosleep */
168 #cmakedefine   HAVE_NANOSLEEP 1
169
170 /* Define to 1 if you have getpwnam_r */
171 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
172
173 /* Define to 1 if you have socketpair */
174 #cmakedefine   HAVE_SOCKETPAIR 1
175
176 /* Define to 1 if you have setenv */
177 #cmakedefine   HAVE_SETENV 1
178
179 /* Define to 1 if you have unsetenv */
180 #cmakedefine   HAVE_UNSETENV 1
181
182 /* Define to 1 if you have clearenv */
183 #cmakedefine   HAVE_CLEARENV 1
184
185 /* Define to 1 if you have writev */
186 #cmakedefine   HAVE_WRITEV 1
187
188 /* Define to 1 if you have socklen_t */
189 #cmakedefine   HAVE_SOCKLEN_T 1
190
191 /* Define to 1 if you have setlocale */
192 #cmakedefine   HAVE_SETLOCALE 1
193
194 /* Define to 1 if you have localeconv */
195 #cmakedefine   HAVE_LOCALECONV 1
196
197 /* Define to 1 if you have strtoll */
198 #cmakedefine   HAVE_STRTOLL 1
199
200 /* Define to 1 if you have strtoull */
201 #cmakedefine   HAVE_STRTOULL 1
202
203 // structs
204 /* Define to 1 if you have struct cmsgred */
205 #cmakedefine    HAVE_CMSGCRED 1
206
207 // system type defines
208 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
209 # define DBUS_WIN
210 # define DBUS_WIN_FIXME 1
211 # ifdef _WIN32_WCE
212 #  define DBUS_WINCE
213 # else
214 #  define DBUS_WIN32
215 # endif
216 #else
217 # define DBUS_UNIX
218 #endif 
219
220 #if defined(_WIN32) || defined(_WIN64)
221 // mingw mode_t
222 # ifdef HAVE_STDIO_H
223 #  include <stdio.h>
224 # endif
225 # ifndef _MSC_VER
226 #  define uid_t int
227 #  define gid_t int
228 # else
229 #  define snprintf _snprintf
230    typedef int mode_t;
231 #  if !defined(_WIN32_WCE)
232 #    define strtoll _strtoi64
233 #    define strtoull _strtoui64
234 #    define HAVE_STRTOLL 1
235 #    define HAVE_STRTOULL 1
236 #  endif
237 # endif
238 #endif  // defined(_WIN32) || defined(_WIN64)
239
240 #ifdef interface
241 #undef interface
242 #endif
243
244 #ifndef SIGHUP
245 #define SIGHUP  1
246 #endif
247
248 #cmakedefine DBUS_VERBOSE_C_S 1
249 #ifdef DBUS_VERBOSE_C_S
250 #define _dbus_verbose_C_S printf
251 #else
252 #define _dbus_verbose_C_S _dbus_verbose
253 #endif 
254
255 # if defined(_MSC_VER) && !defined(inline)
256 #define inline __inline
257 #endif
258
259 #endif  // _DBUS_CONFIG_H