1/* 2 * cmake_coap_config.h -- cmake configuration for libcoap 3 * 4 * Copyright (C) 2020 Carlos Gomes Martinho <carlos.gomes_martinho@siemens.com> 5 * Copyright (C) 2021-2023 Jon Shallow <supjps-libcoap@jpshallow.com> 6 * 7 * SPDX-License-Identifier: BSD-2-Clause 8 * 9 * This file is part of the CoAP library libcoap. Please see README for terms 10 * of use. 11 */ 12 13#ifndef COAP_CONFIG_H_ 14#define COAP_CONFIG_H_ 15 16#if ! defined(_WIN32) 17#define _GNU_SOURCE 18#endif 19 20/* Define to 1 if you have <ws2tcpip.h> header file. */ 21#cmakedefine HAVE_WS2TCPIP_H @HAVE_WS2TCPIP_H@ 22 23/* Define to 1 if the system has small stack size. */ 24#cmakedefine COAP_CONSTRAINED_STACK @COAP_CONSTRAINED_STACK@ 25 26/* Define to 1 if you have <winsock2.h> header file. */ 27#cmakedefine HAVE_WINSOCK2_H @HAVE_WINSOCK2_H@ 28 29/* Define to 1 if the library has client support. */ 30#cmakedefine COAP_CLIENT_SUPPORT @COAP_CLIENT_SUPPORT@ 31 32/* Define to 1 if the library has server support. */ 33#cmakedefine COAP_SERVER_SUPPORT @COAP_SERVER_SUPPORT@ 34 35/* Define to 1 if the library is to have observe persistence. */ 36#cmakedefine COAP_WITH_OBSERVE_PERSIST @COAP_WITH_OBSERVE_PERSIST@ 37 38/* Define to 1 if the system has epoll support. */ 39#cmakedefine COAP_EPOLL_SUPPORT @COAP_EPOLL_SUPPORT@ 40 41/* Define to 1 if the library has OSCORE support. */ 42#cmakedefine COAP_OSCORE_SUPPORT @COAP_OSCORE_SUPPORT@ 43 44/* Define to 1 if the library has WebSockets support. */ 45#cmakedefine COAP_WS_SUPPORT @COAP_WS_SUPPORT@ 46 47/* Define to 1 if the library has async separate response support. */ 48#cmakedefine COAP_ASYNC_SUPPORT @COAP_ASYNC_SUPPORT@ 49 50/* Define to 0-8 for maximum logging level. */ 51#cmakedefine COAP_MAX_LOGGING_LEVEL @COAP_MAX_LOGGING_LEVEL@ 52 53/* Define to 1 to build without TCP support. */ 54#cmakedefine01 COAP_DISABLE_TCP 55 56/* Define to 1 to build with IPv4 support. */ 57#cmakedefine COAP_IPV4_SUPPORT @COAP_IPV4_SUPPORT@ 58 59/* Define to 1 to build with IPv6 support. */ 60#cmakedefine COAP_IPV6_SUPPORT @COAP_IPV6_SUPPORT@ 61 62/* Define to 1 to build with Unix socket support. */ 63#cmakedefine COAP_AF_UNIX_SUPPORT @COAP_AF_UNIX_SUPPORT@ 64 65/* Define to 1 to build with Q-Block (RFC 9177) support. */ 66#cmakedefine COAP_Q_BLOCK_SUPPORT @COAP_Q_BLOCK_SUPPORT@ 67 68/* Define to 1 if you have the <arpa/inet.h> header file. */ 69#cmakedefine HAVE_ARPA_INET_H @HAVE_ARPA_INET_H@ 70 71/* Define to 1 if you have the <assert.h> header file. */ 72#cmakedefine HAVE_ASSERT_H @HAVE_ASSERT_H@ 73 74/* Define to 1 if you have the <dlfcn.h> header file. */ 75#cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@ 76 77/* Define to 1 if you have the `getaddrinfo' function. */ 78#cmakedefine HAVE_GETADDRINFO @HAVE_GETADDRINFO@ 79 80/* Define to 1 if you have the <inttypes.h> header file. */ 81#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@ 82 83/* Define to 1 if you have the <erno.h> header file. */ 84#cmakedefine HAVE_ERRNO_H @HAVE_ERRNO_H@ 85 86/* Define to 1 if the system has openssl */ 87#cmakedefine COAP_WITH_LIBOPENSSL @COAP_WITH_LIBOPENSSL@ 88 89/* Define to 1 if the system has libgnutls28 */ 90#cmakedefine COAP_WITH_LIBGNUTLS @COAP_WITH_LIBGNUTLS@ 91 92/* Define to 1 if the system has libtinydtls */ 93#cmakedefine COAP_WITH_LIBTINYDTLS @COAP_WITH_LIBTINYDTLS@ 94 95/* Define to 1 if the system has libmbedtls */ 96#cmakedefine COAP_WITH_LIBMBEDTLS @COAP_WITH_LIBMBEDTLS@ 97 98/* Define to 1 if you have the <limits.h> header file. */ 99#cmakedefine HAVE_LIMITS_H @HAVE_LIMITS_H@ 100 101/* Define to 1 if you have the `malloc' function. */ 102#cmakedefine HAVE_MALLOC @HAVE_MALLOC@ 103 104/* Define to 1 if you have the <memory.h> header file. */ 105#cmakedefine HAVE_MEMORY_H @HAVE_MEMORY_H@ 106 107/* Define to 1 if you have the `memset' function. */ 108#cmakedefine HAVE_MEMSET @HAVE_MEMSET@ 109 110/* Define to 1 if you have the `if_nametoindex' function. */ 111#cmakedefine HAVE_IF_NAMETOINDEX @HAVE_IF_NAMETOINDEX@ 112 113/* Define to 1 if you have the <netdb.h> header file. */ 114#cmakedefine HAVE_NETDB_H @HAVE_NETDB_H@ 115 116/* Define to 1 if you have the <net/if.h> header file. */ 117#cmakedefine HAVE_NET_IF_H @HAVE_NET_IF_H@ 118 119/* Define to 1 if you have the <netinet/in.h> header file. */ 120#cmakedefine HAVE_NETINET_IN_H @HAVE_NETINET_IN_H@ 121 122/* Define to 1 if you have the <pthread.h> header file. */ 123#cmakedefine HAVE_PTHREAD_H @HAVE_PTHREAD_H@ 124 125/* Define to 1 if you have the `pthread_mutex_lock' function. */ 126#cmakedefine HAVE_PTHREAD_MUTEX_LOCK @HAVE_PTHREAD_MUTEX_LOCK@ 127 128/* Define to 1 if you have the `select' function. */ 129#cmakedefine HAVE_SELECT @HAVE_SELECT@ 130 131/* Define to 1 if you have the `socket' function. */ 132#cmakedefine HAVE_SOCKET @HAVE_SOCKET@ 133 134/* Define to 1 if you have the <stdint.h> header file. */ 135#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@ 136 137/* Define to 1 if you have the <stdlib.h> header file. */ 138#cmakedefine HAVE_STDLIB_H @HAVE_STDLIB_H@ 139 140/* Define to 1 if you have the `strcasecmp' function. */ 141#cmakedefine HAVE_STRCASECMP @HAVE_STRCASECMP@ 142 143/* Define to 1 if you have the <strings.h> header file. */ 144#cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@ 145 146/* Define to 1 if you have the <string.h> header file. */ 147#cmakedefine HAVE_STRING_H @HAVE_STRING_H@ 148 149/* Define to 1 if you have the `strnlen' function. */ 150#cmakedefine HAVE_STRNLEN @HAVE_STRNLEN@ 151 152/* Define to 1 if you have the `strrchr' function. */ 153#cmakedefine HAVE_STRRCHR @HAVE_STRRCHR@ 154 155/* Define to 1 if you have the `getrandom' function. */ 156#cmakedefine HAVE_GETRANDOM @HAVE_GETRANDOM@ 157 158/* Define to 1 if you have the `randon' function. */ 159#cmakedefine HAVE_RANDOM @HAVE_RANDOM@ 160 161/* Define to 1 if the system has the type `struct cmsghdr'. */ 162#cmakedefine HAVE_STRUCT_CMSGHDR @HAVE_STRUCT_CMSGHDR@ 163 164/* Define to 1 if you have the <sys/ioctl.h> header file. */ 165#cmakedefine HAVE_SYS_IOCTL_H @HAVE_SYS_IOCTL_H@ 166 167/* Define to 1 if you have the <sys/socket.h> header file. */ 168#cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@ 169 170/* Define to 1 if you have the <sys/stat.h> header file. */ 171#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@ 172 173/* Define to 1 if you have the <sys/time.h> header file. */ 174#cmakedefine HAVE_SYS_TIME_H @HAVE_SYS_TIME_H@ 175 176/* Define to 1 if you have the <sys/types.h> header file. */ 177#cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@ 178 179/* Define to 1 if you have the <sys/unistd.h> header file. */ 180#cmakedefine HAVE_SYS_UNISTD_H @HAVE_SYS_UNISTD_H@ 181 182/* Define to 1 if you have the <time.h> header file. */ 183#cmakedefine HAVE_TIME_H @HAVE_TIME_H@ 184 185/* Define to 1 if you have the <unistd.h> header file. */ 186#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@ 187 188/* Define to the address where bug reports for this package should be sent. */ 189#cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@" 190 191/* Define to the full name of this package. */ 192#cmakedefine PACKAGE_NAME "@PACKAGE_NAME@" 193 194/* Define to the full name and version of this package. */ 195#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@" 196 197/* Define to the one symbol short name of this package. */ 198#cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@" 199 200/* Define to the home page for this package. */ 201#cmakedefine PACKAGE_URL "@PACKAGE_URL@" 202 203/* Define to the version of this package. */ 204#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@" 205 206#if defined(_MSC_VER) && (_MSC_VER < 1900) && !defined(snprintf) 207#define snprintf _snprintf 208#endif 209 210#endif /* COAP_CONFIG_H_ */ 211