]> git.ipfire.org Git - thirdparty/openvpn.git/blame - config.h.cmake.in
doc: Correct typos in multiple documentation files
[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. */
143#undef HAVE_GETRLIMIT
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
238/* Define to 1 if you have the `readv' function. */
239#undef HAVE_READV
240
241/* Define to 1 if you have the `recvmsg' function. */
242#cmakedefine HAVE_RECVMSG
243#cmakedefine HAVE_SENDMSG
244
245/* Define to 1 if you have the <resolv.h> header file. */
246#cmakedefine HAVE_RESOLV_H
247
248/* sa_family_t, needed to hold AF_* info */
249#cmakedefine HAVE_SA_FAMILY_T
250
251/* Define to 1 if you have the `sd_booted' function. */
252#undef HAVE_SD_BOOTED
253
254/* Define to 1 if you have the `setgid' function. */
255#cmakedefine HAVE_SETGID
256
257/* Define to 1 if you have the `setgroups' function. */
258#undef HAVE_SETGROUPS
259
260/* Define to 1 if you have the `setsid' function. */
8ae6c48d 261#cmakedefine HAVE_SETSID
01341840
AS
262
263/* Define to 1 if you have the `setsockopt' function. */
264#define HAVE_SETSOCKOPT 1
265
266/* Define to 1 if you have the `setuid' function. */
267#cmakedefine HAVE_SETUID
268
269/* Define to 1 if you have the <signal.h> header file. */
270#undef HAVE_SIGNAL_H
271
272/* Define to 1 if you have the `socket' function. */
273#undef HAVE_SOCKET
274
275/* struct sock_extended_err needed for extended socket error support */
276#undef HAVE_SOCK_EXTENDED_ERR
277
278/* Define to 1 if you have the `stat' function. */
279#define HAVE_STAT 1
280
281/* Define to 1 if you have the <stdarg.h> header file. */
282#define HAVE_STDARG_H 1
283
284/* Define to 1 if you have the <stdint.h> header file. */
285#define HAVE_STDINT_H 1
286
287/* Define to 1 if you have the <stdio.h> header file. */
288#define HAVE_STDIO_H 1
289
290/* Define to 1 if you have the <stdlib.h> header file. */
291#define HAVE_STDLIB_H 1
292
293/* Define to 1 if you have the `strdup' function. */
294#undef HAVE_STRDUP
295
296/* Define to 1 if you have the <strings.h> header file. */
297#define HAVE_STRINGS_H 1
298
299/* Define to 1 if you have the <string.h> header file. */
300#define HAVE_STRING_H 1
301
302/* Define to 1 if you have the `strsep' function. */
303#undef HAVE_STRSEP
304
305/* Define to 1 if you have the `syslog' function. */
8ae6c48d 306#cmakedefine HAVE_SYSLOG
01341840
AS
307
308/* Define to 1 if you have the <syslog.h> header file. */
309#cmakedefine HAVE_SYSLOG_H
310
311/* Define to 1 if you have the `system' function. */
312#undef HAVE_SYSTEM
313
314/* Define to 1 if you have the <systemd/sd-daemon.h> header file. */
315#undef HAVE_SYSTEMD_SD_DAEMON_H
316
317/* Define to 1 if you have the <sys/epoll.h> header file. */
318#cmakedefine HAVE_SYS_EPOLL_H
319
320/* Define to 1 if you have the <sys/file.h> header file. */
321#undef HAVE_SYS_FILE_H
322
323/* Define to 1 if you have the <sys/inotify.h> header file. */
324#cmakedefine HAVE_SYS_INOTIFY_H
325
326/* Define to 1 if you have the <sys/ioctl.h> header file. */
327#cmakedefine HAVE_SYS_IOCTL_H
328
329/* Define to 1 if you have the <sys/kern_control.h> header file. */
330#undef HAVE_SYS_KERN_CONTROL_H
331
332/* Define to 1 if you have the <sys/mman.h> header file. */
333#cmakedefine HAVE_SYS_MMAN_H
334
335/* Define to 1 if you have the <sys/socket.h> header file. */
336#cmakedefine HAVE_SYS_SOCKET_H
337
338/* Define to 1 if you have the <sys/sockio.h> header file. */
339#undef HAVE_SYS_SOCKIO_H
340
341/* Define to 1 if you have the <sys/stat.h> header file. */
342#define HAVE_SYS_STAT_H 1
343
344/* Define to 1 if you have the <sys/time.h> header file. */
345#cmakedefine HAVE_SYS_TIME_H
346
347/* Define to 1 if you have the <sys/types.h> header file. */
348#undef HAVE_SYS_TYPES_H
349
350/* Define to 1 if you have the <sys/uio.h> header file. */
351#cmakedefine HAVE_SYS_UIO_H
352
353/* Define to 1 if you have the <sys/un.h> header file. */
354#cmakedefine HAVE_SYS_UN_H
355
356/* Define to 1 if you have the <sys/wait.h> header file. */
357#cmakedefine HAVE_SYS_WAIT_H
358
359/* Define to 1 if you have the <tap-windows.h> header file. */
360#undef HAVE_TAP_WINDOWS_H
361
362/* Define to 1 if you have the `time' function. */
363#define HAVE_TIME 1
364
365/* Define to 1 if you have the <time.h> header file. */
366#define HAVE_TIME_H 1
367
368/* Define to 1 if you have the <uapi.h> header file. */
369#undef HAVE_UAPI_H
370
371/* Define to 1 if you have the <unistd.h> header file. */
372#cmakedefine HAVE_UNISTD_H
373
374/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
375#undef HAVE_VALGRIND_MEMCHECK_H
376
377/* Define to 1 if you have the <versionhelpers.h> header file. */
378#undef HAVE_VERSIONHELPERS_H
379
380/* Define to 1 if you have the `vfork' function. */
381#undef HAVE_VFORK
382
383/* Define to 1 if you have the <vfork.h> header file. */
384#undef HAVE_VFORK_H
385
386/* Define to 1 if you have the `vsnprintf' function. */
387#undef HAVE_VSNPRINTF
388
389/* we always assume a recent mbed TLS version */
390#define HAVE_CTR_DRBG_UPDATE_RET 1
391
392/* Path to ifconfig tool */
393#define IFCONFIG_PATH "@IFCONFIG_PATH@"
394
395/* Path to iproute tool */
396#define IPROUTE_PATH "@IPROUTE_PATH@"
397
398/* Path to route tool */
399#define ROUTE_PATH "@ROUTE_PATH@"
400
e8881ec6
FL
401/* OpenVPN version in Windows resource format - string */
402#define OPENVPN_VERSION_RESOURCE @OPENVPN_VERSION_RESOURCE@
01341840
AS
403
404/* Name of package */
405#define PACKAGE "openvpn"
406
407/* Define to the address where bug reports for this package should be sent. */
408#undef PACKAGE_BUGREPORT
409
410/* Define to the full name of this package. */
411#define PACKAGE_NAME "OpenVPN"
412
413/* Define to the full name and version of this package. */
414#define PACKAGE_STRING "OpenVPN @OPENVPN_VERSION_MAJOR@.@OPENVPN_VERSION_MINOR@@OPENVPN_VERSION_PATCH@"
415
416/* Define to the version of this package. */
417#define PACKAGE_VERSION "@OPENVPN_VERSION_MAJOR@.@OPENVPN_VERSION_MINOR@@OPENVPN_VERSION_PATCH@"
418
01341840
AS
419/* Path to systemd-ask-password tool */
420#undef SYSTEMD_ASK_PASSWORD_PATH
421
422/* systemd is newer than v216 */
423#define SYSTEMD_NEWER_THAN_216
424
425/* The tap-windows id */
426#define TAP_WIN_COMPONENT_ID "tap0901"
427
428/* The tap-windows version number is required for OpenVPN */
429#define TAP_WIN_MIN_MAJOR 9
430
431/* The tap-windows version number is required for OpenVPN */
432#define TAP_WIN_MIN_MINOR 9
433
434/* Are we running on Mac OS X? */
435#cmakedefine TARGET_DARWIN
436
437/* Are we running on FreeBSD? */
438#cmakedefine TARGET_FREEBSD
439
440/* Are we running on Linux? */
441#cmakedefine TARGET_LINUX
442
443/* Are we running WIN32? */
444#cmakedefine TARGET_WIN32
445
446#define TARGET_ALIAS "@CMAKE_SYSTEM_NAME@"
447
448/* Enable GNU extensions on systems that have them. */
449#ifndef _GNU_SOURCE
450# define _GNU_SOURCE 1
451#endif
452
453
454#if defined(_WIN32)
455#include <inttypes.h>
456typedef uint32_t in_addr_t;
457typedef uint16_t in_port_t;
458
459#define SIGHUP 1
460#define SIGINT 2
461#define SIGUSR1 10
462#define SIGUSR2 12
463#define SIGTERM 15
464#endif
465
466#if defined(_MSC_VER)
467#include <BaseTsd.h>
468typedef SSIZE_T ssize_t;
469#define strncasecmp strnicmp
470#define strcasecmp _stricmp
471
01341840
AS
472#define S_IRUSR 0
473#define S_IWUSR 0
474#define R_OK 4
475#define W_OK 2
476#define X_OK 1
477#define F_OK 0
478#endif