add check for abstract sockets (cherry picked from commit 5b657984f4bc5544a8df560adcd...
[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
7 #cmakedefine HAVE_GNUC_VARARGS 1
8
9 #cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
10 #cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
11 #cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
12 #cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
13 #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
14 #cmakedefine DAEMON_NAME "@DAEMON_NAME@"
15 #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
16 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
17 //#cmakedefine DBUS_SESSION_BUS_DEFAULT_ADDRESS "@DBUS_SESSION_BUS_DEFAULT_ADDRESS@"
18 #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
19 #cmakedefine PACKAGE "@PACKAGE@"
20 /* Version number of package */
21 #cmakedefine VERSION "@VERSION@"
22 #cmakedefine DBUS_MAJOR_VERSION ${VERSION_MAJOR}
23 #cmakedefine DBUS_MINOR_VERSION ${VERSION_MINOR}
24 #cmakedefine DBUS_MICRO_VERSION ${VERSION_RELEASE}
25 #cmakedefine DBUS_VERSION ((@VERSION_MAJOR@ << 16) | (@VERSION_MINOR@ << 8) | (@VERSION_RELEASE@))
26 #cmakedefine DBUS_VERSION_STRING "@VERSION@"
27
28 // test binaries
29 /* Full path to test file test/test-exit in builddir */
30 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
31 /* Full path to test file test/test-exit in builddir */
32 #define TEST_EXIT_BINARY          "@TEST_EXIT_BINARY@"
33 /* Full path to test file test/test-segfault in builddir */
34 #define TEST_SEGFAULT_BINARY      "@TEST_SEGFAULT_BINARY@"
35 /* Full path to test file test/test-service in builddir */
36 #define TEST_SERVICE_BINARY       "@TEST_SERVICE_BINARY@"
37 /* Full path to test file test/test-shell-service in builddir */
38 #define TEST_SHELL_SERVICE_BINARY "@TEST_SHELL_SERVICE_BINARY@"
39 /* Full path to test file test/test-sleep-forever in builddir */
40 #define TEST_SLEEP_FOREVER_BINARY "@TEST_SLEEP_FOREVER_BINARY@"
41
42 /* Some dbus features */
43 #cmakedefine DBUS_BUILD_TESTS 1
44 #cmakedefine DBUS_ENABLE_ANSI 1
45 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
46 #cmakedefine DBUS_DISABLE_ASSERTS 1
47 #cmakedefine DBUS_DISABLE_CHECKS 1
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 #cmakedefine DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1
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
81 #cmakedefine DBUS_VA_COPY_FUNC
82 #if (defined DBUS_VA_COPY_FUNC)
83 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
84 #endif
85
86 #ifdef DBUS_VA_COPY_FUNC
87 #undef DBUS_VA_COPY_FUNC
88 #endif
89
90 #cmakedefine DBUS_VA_COPY_AS_ARRAY 1
91
92 // headers
93 /* Define to 1 if you have dirent.h */
94 #cmakedefine   HAVE_DIRENT_H 1
95
96 /* Define to 1 if you have io.h */
97 #cmakedefine   HAVE_IO_H 1
98
99 /* Define to 1 if you have grp.h */
100 #cmakedefine   HAVE_GRP_H 1
101
102 /* Define to 1 if you have sys/poll.h */
103 #cmakedefine    HAVE_POLL 1
104
105 /* Define to 1 if you have sys/time.h */
106 #cmakedefine    HAVE_SYS_TIME 1
107
108 /* Define to 1 if you have sys/wait.h */
109 #cmakedefine    HAVE_SYS_WAIT 1
110
111 /* Define to 1 if you have time.h */
112 #cmakedefine   HAVE_TIME_H 1
113
114 /* Define to 1 if you have wspiapi.h */
115 #cmakedefine   HAVE_WSPIAPI_H 1
116
117 /* Define to 1 if you have unistd.h */
118 #cmakedefine   HAVE_UNISTD_H 1
119
120 /* Define to 1 if you have errno.h */
121 #cmakedefine   HAVE_ERRNO_H 1
122
123 /* Define to 1 if you have stdio.h */
124 #cmakedefine   HAVE_STDIO_H 1
125
126 /* Define to 1 if you have sys/syslimits.h */
127 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
128
129 // symbols
130 /* Define to 1 if you have backtrace */
131 #cmakedefine   HAVE_BACKTRACE 1
132
133 /* Define to 1 if you have getgrouplist */
134 #cmakedefine   HAVE_GETGROUPLIST 1
135
136 /* Define to 1 if you have getpeerucred */
137 #cmakedefine   HAVE_GETPEERUCRED 1
138
139 /* Define to 1 if you have nanosleep */
140 #cmakedefine   HAVE_NANOSLEEP 1
141
142 /* Define to 1 if you have getpwnam_r */
143 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
144
145 /* Define to 1 if you have socketpair */
146 #cmakedefine   HAVE_SOCKETPAIR 1
147
148 /* Define to 1 if you have setenv */
149 #cmakedefine   HAVE_SETENV 1
150
151 /* Define to 1 if you have unsetenv */
152 #cmakedefine   HAVE_UNSETENV 1
153
154 /* Define to 1 if you have writev */
155 #cmakedefine   HAVE_WRITEV 1
156
157 /* Define to 1 if you have socklen_t */
158 #cmakedefine   HAVE_SOCKLEN_T 1
159
160 // structs
161 /* Define to 1 if you have struct cmsgred */
162 #cmakedefine    HAVE_CMSGCRED 1
163
164 // system type defines
165 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
166 # define DBUS_WIN
167 # define DBUS_WIN_FIXME 1
168 # ifdef _WIN32_WCE
169 #  define DBUS_WINCE
170 # else
171 #  define DBUS_WIN32
172 # endif
173 #else
174 # define DBUS_UNIX
175 #endif 
176
177 #if defined(_WIN32) || defined(_WIN64)
178 // mingw mode_t
179 # ifdef HAVE_STDIO_H
180 #  include <stdio.h>
181 # endif
182 # ifndef _MSC_VER
183 #  define uid_t int
184 #  define gid_t int
185 # else
186 #  define snprintf _snprintf
187 #  define strtoll _strtoi64
188 #  define strtoull _strtoui64
189    typedef int mode_t;
190 # endif
191 #endif  // defined(_WIN32) || defined(_WIN64)
192
193 #ifdef interface
194 #undef interface
195 #endif
196
197 #ifndef SIGHUP
198 #define SIGHUP  1
199 #endif
200
201 #cmakedefine DBUS_VERBOSE_C_S 1
202 #ifdef DBUS_VERBOSE_C_S
203 #define _dbus_verbose_C_S printf
204 #else
205 #define _dbus_verbose_C_S _dbus_verbose
206 #endif 
207
208 #endif  // _DBUS_CONFIG_H