]> git.ipfire.org Git - thirdparty/openvpn.git/blame - config.h.cmake.in
configure.ac: Remove unused AC_TYPE_SIGNAL macro
[thirdparty/openvpn.git] / config.h.cmake.in
CommitLineData
01341840
AS
1
2/* Configuration settings */
3#define CONFIGURE_DEFINES "N/A"
4
5/* Enable async push */
6#cmakedefine ENABLE_ASYNC_PUSH
7
8/* Use mbed TLS library */
9#cmakedefine ENABLE_CRYPTO_MBEDTLS
10
11/* Use Openssl */
12#cmakedefine ENABLE_CRYPTO_OPENSSL
13
14/* Use wolfSSL crypto library */
15#cmakedefine ENABLE_CRYPTO_WOLFSSL
16
17/* Enable shared data channel offload */
18#cmakedefine ENABLE_DCO
19
20/* Enable debugging support (needed for verb>=4) */
21#define ENABLE_DEBUG 1
22
23/* We have persist tun capability */
24#cmakedefine ENABLE_FEATURE_TUN_PERSIST
25
26/* Enable internal fragmentation support */
27#define ENABLE_FRAGMENT 1
28
29/* Enable linux data channel offload */
30#cmakedefine ENABLE_LINUXDCO
31
32/* Enable LZ4 compression library */
33#cmakedefine ENABLE_LZ4
34
35/* Enable LZO compression library */
36#cmakedefine ENABLE_LZO
37
38/* Enable management server capability */
39#define ENABLE_MANAGEMENT 1
40
41/* Enable OFB and CFB cipher modes */
42#define ENABLE_OFB_CFB_MODE
43
44/* Enable PKCS11 */
e8881ec6 45#cmakedefine ENABLE_PKCS11
01341840
AS
46
47/* Enable plug-in support */
48#define ENABLE_PLUGIN 1
49
50/* Enable TCP Server port sharing */
51#cmakedefine ENABLE_PORT_SHARE
52
53/* SELinux support */
54#cmakedefine ENABLE_SELINUX
55
56/* enable sitnl support */
57#cmakedefine ENABLE_SITNL
58
59/* Enable systemd integration */
60/* #undef ENABLE_SYSTEMD */
61
62/* Enable --x509-username-field feature */
63#cmakedefine ENABLE_X509ALTUSERNAME
64
65/* Compiler supports anonymous unions */
66#define HAVE_ANONYMOUS_UNION_SUPPORT
67
68/* Define to 1 if you have the <arpa/inet.h> header file. */
69#cmakedefine HAVE_ARPA_INET_H 1
70
71/* Define to 1 if you have the `basename' function. */
72#cmakedefine HAVE_BASENAME
73
74/* Define to 1 if you have the `chdir' function. */
75#cmakedefine HAVE_CHDIR
76
77/* Define to 1 if you have the `chroot' function. */
78#cmakedefine HAVE_CHROOT
79
80/* Define to 1 if you have the `chsize' function. */
81#cmakedefine HAVE_CHSIZE
82
83/* struct cmsghdr needed for extended socket error support */
84#cmakedefine HAVE_CMSGHDR
85
e8881ec6
FL
86/* git version information in config-version.h */
87#cmakedefine HAVE_CONFIG_VERSION_H
88
01341840
AS
89/* Define to 1 if you have the `daemon' function. */
90#cmakedefine HAVE_DAEMON
91
92/* Define to 1 if you have the declaration of `SO_MARK', and to 0 if you
93don't. */
94#cmakedefine01 HAVE_DECL_SO_MARK
95
96/* Define to 1 if you have the <direct.h> header file. */
97#cmakedefine HAVE_DIRECT_H
98
99/* Define to 1 if you have the `dirname' function. */
100#cmakedefine HAVE_DIRNAME
101
102/* Define to 1 if you have the <dlfcn.h> header file. */
103#cmakedefine HAVE_DLFCN_H
104
105/* Define to 1 if you have the <dmalloc.h> header file. */
106#cmakedefine HAVE_DMALLOC_H
107
108/* Define to 1 if you have the `dup' function. */
109#cmakedefine HAVE_DUP
110
111/* Define to 1 if you have the `dup2' function. */
112#cmakedefine HAVE_DUP2
113
114/* Define to 1 if you have the `epoll_create' function. */
115#cmakedefine HAVE_EPOLL_CREATE
116
117/* Define to 1 if you have the <err.h> header file. */
118#cmakedefine HAVE_ERR_H
119
120/* Crypto library supports keying material exporter */
121#define HAVE_EXPORT_KEYING_MATERIAL 1
122
123/* Define to 1 if you have the <fcntl.h> header file. */
124#cmakedefine HAVE_FCNTL_H
125
126/* Define to 1 if you have the `fork' function. */
127#cmakedefine HAVE_FORK
128#cmakedefine HAVE_EXECVE
129
130/* Define to 1 if you have the `ftruncate' function. */
131#cmakedefine HAVE_FTRUNCATE
132
133/* Define to 1 if you have the `getgrnam' function. */
134#cmakedefine HAVE_GETGRNAM
135
136/* Define to 1 if you have the `getpeereid' function. */
137#cmakedefine HAVE_GETPEEREID
138
139/* Define to 1 if you have the `getpwnam' function. */
140#cmakedefine HAVE_GETPWNAM
141
142/* Define to 1 if you have the `getrlimit' function. */
28871fec 143#cmakedefine HAVE_GETRLIMIT
01341840
AS
144
145/* Define to 1 if you have the `getsockname' function. */
146#cmakedefine HAVE_GETSOCKNAME
147
148/* Define to 1 if you have the `gettimeofday' function. */
149#cmakedefine HAVE_GETTIMEOFDAY
150
151/* Define to 1 if you have the <grp.h> header file. */
152#cmakedefine HAVE_GRP_H
153
154/* struct in_pktinfo needed for IP_PKTINFO support */
155#cmakedefine HAVE_IN_PKTINFO
156
157/* Define to 1 if you have the <io.h> header file. */
158#cmakedefine HAVE_IO_H
159
160/* struct in_pktinfo.ipi_spec_dst needed for IP_PKTINFO support */
161#cmakedefine HAVE_IPI_SPEC_DST
162
163/* Define to 1 if you have the <libgen.h> header file. */
164#cmakedefine HAVE_LIBGEN_H
165
166/* Define to 1 if you have the <limits.h> header file. */
167#define HAVE_LIMITS_H 1
168
169/* Define to 1 if you have the <linux/if_tun.h> header file. */
170#cmakedefine HAVE_LINUX_IF_TUN_H
171
172/* Define to 1 if you have the <linux/sockios.h> header file. */
173#cmakedefine HAVE_LINUX_SOCKIOS_H
174
175/* Define to 1 if you have the <linux/types.h> header file. */
176#cmakedefine HAVE_LINUX_TYPES_H
177
178/* Define to 1 if you have the <lzoconf.h> header file. */
179#define HAVE_LZO_CONF_H
180
181/* Define to 1 if you have the <lzo1x.h> header file. */
182#define HAVE_LZO1X_H 1
183
184/* Define to 1 if you have the <lzoutil.h> header file. */
185#define HAVE_LZOUTIL_H 1
186
187/* Define to 1 if you have the `mlockall' function. */
188#cmakedefine HAVE_MLOCKALL
189
190/* struct msghdr needed for extended socket error support */
191#cmakedefine HAVE_MSGHDR
192
193/* Define to 1 if you have the <netdb.h> header file. */
194#cmakedefine HAVE_NETDB_H
195
196/* Define to 1 if you have the <netinet/in.h> header file. */
197#cmakedefine HAVE_NETINET_IN_H
198
01341840
AS
199/* Define to 1 if you have the <netinet/ip.h> header file. */
200#cmakedefine HAVE_NETINET_IP_H
201
202/* Define to 1 if you have the <netinet/tcp.h> header file. */
203#undef HAVE_NETINET_TCP_H
204
205/* Define to 1 if you have the <net/if.h> header file. */
206#cmakedefine HAVE_NET_IF_H
207
208/* Define to 1 if you have the <net/if_tun.h> header file. */
209#cmakedefine HAVE_NET_IF_TUN_H
210
211/* Define to 1 if you have the <net/if_utun.h> header file. */
212#cmakedefine01 HAVE_NET_IF_UTUN_H
213
214/* Define to 1 if you have the <net/tun/if_tun.h> header file. */
215#cmakedefine HAVE_NET_TUN_IF_TUN_H
216
217/* Define to 1 if you have the `nice' function. */
218#undef HAVE_NICE
219
220/* Define to 1 if you have the `openlog' function. */
8ae6c48d 221#cmakedefine HAVE_OPENLOG
01341840
AS
222
223/* OpenSSL engine support available */
224#undef HAVE_OPENSSL_ENGINE
225
226/* Define to 1 if you have the `poll' function. */
227#undef HAVE_POLL
228
229/* Define to 1 if you have the <poll.h> header file. */
230#cmakedefine HAVE_POLL_H
231
232/* Define to 1 if you have the `putenv' function. */
233#undef HAVE_PUTENV
234
235/* Define to 1 if you have the <pwd.h> header file. */
236#cmakedefine HAVE_PWD_H
237
01341840
AS
238
239/* Define to 1 if you have the `recvmsg' function. */
240#cmakedefine HAVE_RECVMSG
241#cmakedefine HAVE_SENDMSG
242
243/* Define to 1 if you have the <resolv.h> header file. */
244#cmakedefine HAVE_RESOLV_H
245
246/* sa_family_t, needed to hold AF_* info */
247#cmakedefine HAVE_SA_FAMILY_T
248
249/* Define to 1 if you have the `sd_booted' function. */
250#undef HAVE_SD_BOOTED
251
252/* Define to 1 if you have the `setgid' function. */
253#cmakedefine HAVE_SETGID
254
255/* Define to 1 if you have the `setgroups' function. */
256#undef HAVE_SETGROUPS
257
258/* Define to 1 if you have the `setsid' function. */
8ae6c48d 259#cmakedefine HAVE_SETSID
01341840
AS
260
261/* Define to 1 if you have the `setsockopt' function. */
262#define HAVE_SETSOCKOPT 1
263
264/* Define to 1 if you have the `setuid' function. */
265#cmakedefine HAVE_SETUID
266
267/* Define to 1 if you have the <signal.h> header file. */
268#undef HAVE_SIGNAL_H
269
270/* Define to 1 if you have the `socket' function. */
271#undef HAVE_SOCKET
272
273/* struct sock_extended_err needed for extended socket error support */
274#undef HAVE_SOCK_EXTENDED_ERR
275
276/* Define to 1 if you have the `stat' function. */
277#define HAVE_STAT 1
278
279/* Define to 1 if you have the <stdarg.h> header file. */
280#define HAVE_STDARG_H 1
281
282/* Define to 1 if you have the <stdint.h> header file. */
283#define HAVE_STDINT_H 1
284
285/* Define to 1 if you have the <stdio.h> header file. */
286#define HAVE_STDIO_H 1
287
288/* Define to 1 if you have the <stdlib.h> header file. */
289#define HAVE_STDLIB_H 1
290
291/* Define to 1 if you have the `strdup' function. */
292#undef HAVE_STRDUP
293
294/* Define to 1 if you have the <strings.h> header file. */
295#define HAVE_STRINGS_H 1
296
297/* Define to 1 if you have the <string.h> header file. */
298#define HAVE_STRING_H 1
299
300/* Define to 1 if you have the `strsep' function. */
301#undef HAVE_STRSEP
302
303/* Define to 1 if you have the `syslog' function. */
8ae6c48d 304#cmakedefine HAVE_SYSLOG
01341840
AS
305
306/* Define to 1 if you have the <syslog.h> header file. */
307#cmakedefine HAVE_SYSLOG_H
308
309/* Define to 1 if you have the `system' function. */
310#undef HAVE_SYSTEM
311
312/* Define to 1 if you have the <systemd/sd-daemon.h> header file. */
313#undef HAVE_SYSTEMD_SD_DAEMON_H
314
315/* Define to 1 if you have the <sys/epoll.h> header file. */
316#cmakedefine HAVE_SYS_EPOLL_H
317
318/* Define to 1 if you have the <sys/file.h> header file. */
319#undef HAVE_SYS_FILE_H
320
321/* Define to 1 if you have the <sys/inotify.h> header file. */
322#cmakedefine HAVE_SYS_INOTIFY_H
323
324/* Define to 1 if you have the <sys/ioctl.h> header file. */
325#cmakedefine HAVE_SYS_IOCTL_H
326
327/* Define to 1 if you have the <sys/kern_control.h> header file. */
328#undef HAVE_SYS_KERN_CONTROL_H
329
330/* Define to 1 if you have the <sys/mman.h> header file. */
331#cmakedefine HAVE_SYS_MMAN_H
332
333/* Define to 1 if you have the <sys/socket.h> header file. */
334#cmakedefine HAVE_SYS_SOCKET_H
335
336/* Define to 1 if you have the <sys/sockio.h> header file. */
337#undef HAVE_SYS_SOCKIO_H
338
339/* Define to 1 if you have the <sys/stat.h> header file. */
340#define HAVE_SYS_STAT_H 1
341
342/* Define to 1 if you have the <sys/time.h> header file. */
343#cmakedefine HAVE_SYS_TIME_H
344
345/* Define to 1 if you have the <sys/types.h> header file. */
346#undef HAVE_SYS_TYPES_H
347
348/* Define to 1 if you have the <sys/uio.h> header file. */
349#cmakedefine HAVE_SYS_UIO_H
350
351/* Define to 1 if you have the <sys/un.h> header file. */
352#cmakedefine HAVE_SYS_UN_H
353
354/* Define to 1 if you have the <sys/wait.h> header file. */
355#cmakedefine HAVE_SYS_WAIT_H
356
357/* Define to 1 if you have the <tap-windows.h> header file. */
358#undef HAVE_TAP_WINDOWS_H
359
360/* Define to 1 if you have the `time' function. */
361#define HAVE_TIME 1
362
363/* Define to 1 if you have the <time.h> header file. */
364#define HAVE_TIME_H 1
365
366/* Define to 1 if you have the <uapi.h> header file. */
367#undef HAVE_UAPI_H
368
369/* Define to 1 if you have the <unistd.h> header file. */
370#cmakedefine HAVE_UNISTD_H
371
372/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
373#undef HAVE_VALGRIND_MEMCHECK_H
374
375/* Define to 1 if you have the <versionhelpers.h> header file. */
376#undef HAVE_VERSIONHELPERS_H
377
378/* Define to 1 if you have the `vfork' function. */
379#undef HAVE_VFORK
380
381/* Define to 1 if you have the <vfork.h> header file. */
382#undef HAVE_VFORK_H
383
01341840 384/* we always assume a recent mbed TLS version */
b5faf1b2
MF
385#define HAVE_MBEDTLS_PSA_CRYPTO_H 1
386#define HAVE_MBEDTLS_SSL_TLS_PRF 1
387#define HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB 1
388#define HAVE_MBEDTLS_CTR_DRBG_UPDATE_RET 1
01341840
AS
389
390/* Path to ifconfig tool */
391#define IFCONFIG_PATH "@IFCONFIG_PATH@"
392
393/* Path to iproute tool */
394#define IPROUTE_PATH "@IPROUTE_PATH@"
395
396/* Path to route tool */
397#define ROUTE_PATH "@ROUTE_PATH@"
398
e8881ec6
FL
399/* OpenVPN version in Windows resource format - string */
400#define OPENVPN_VERSION_RESOURCE @OPENVPN_VERSION_RESOURCE@
01341840
AS
401
402/* Name of package */
403#define PACKAGE "openvpn"
404
405/* Define to the address where bug reports for this package should be sent. */
406#undef PACKAGE_BUGREPORT
407
408/* Define to the full name of this package. */
409#define PACKAGE_NAME "OpenVPN"
410
411/* Define to the full name and version of this package. */
412#define PACKAGE_STRING "OpenVPN @OPENVPN_VERSION_MAJOR@.@OPENVPN_VERSION_MINOR@@OPENVPN_VERSION_PATCH@"
413
414/* Define to the version of this package. */
415#define PACKAGE_VERSION "@OPENVPN_VERSION_MAJOR@.@OPENVPN_VERSION_MINOR@@OPENVPN_VERSION_PATCH@"
416
01341840
AS
417/* Path to systemd-ask-password tool */
418#undef SYSTEMD_ASK_PASSWORD_PATH
419
420/* systemd is newer than v216 */
421#define SYSTEMD_NEWER_THAN_216
422
423/* The tap-windows id */
424#define TAP_WIN_COMPONENT_ID "tap0901"
425
426/* The tap-windows version number is required for OpenVPN */
427#define TAP_WIN_MIN_MAJOR 9
428
429/* The tap-windows version number is required for OpenVPN */
430#define TAP_WIN_MIN_MINOR 9
431
432/* Are we running on Mac OS X? */
433#cmakedefine TARGET_DARWIN
434
435/* Are we running on FreeBSD? */
436#cmakedefine TARGET_FREEBSD
437
438/* Are we running on Linux? */
439#cmakedefine TARGET_LINUX
440
441/* Are we running WIN32? */
442#cmakedefine TARGET_WIN32
443
444#define TARGET_ALIAS "@CMAKE_SYSTEM_NAME@"
445
446/* Enable GNU extensions on systems that have them. */
447#ifndef _GNU_SOURCE
448# define _GNU_SOURCE 1
449#endif
450
451
452#if defined(_WIN32)
453#include <inttypes.h>
454typedef uint32_t in_addr_t;
455typedef uint16_t in_port_t;
456
457#define SIGHUP 1
458#define SIGINT 2
459#define SIGUSR1 10
460#define SIGUSR2 12
461#define SIGTERM 15
462#endif
463
464#if defined(_MSC_VER)
465#include <BaseTsd.h>
466typedef SSIZE_T ssize_t;
467#define strncasecmp strnicmp
468#define strcasecmp _stricmp
469
2fcfb77a
LS
470#define S_IRUSR _S_IREAD
471#define S_IWUSR _S_IWRITE
01341840
AS
472#define R_OK 4
473#define W_OK 2
474#define X_OK 1
475#define F_OK 0
476#endif