From ff399c2de425b3aab4aec1c09e93fd81ffce898f Mon Sep 17 00:00:00 2001 From: Moritz Wirger Date: Sun, 10 Nov 2024 18:22:52 +0100 Subject: [PATCH] Revert changes to config.h.in and use different file for cmake --- CMakeLists.txt | 2 +- config.h.cmake.in | 160 ++++++++++++++++++++++++++++++++++ config.h.in | 216 +++++++++++++++++++++++----------------------- 3 files changed, 270 insertions(+), 108 deletions(-) create mode 100644 config.h.cmake.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 8334f1c..3ed6401 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,7 +72,7 @@ if(HAVE_SOCKADDR_SA_LEN) endif() # Generate config.h -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h @ONLY) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/config.h @ONLY) # Set the C standard set(CMAKE_C_STANDARD 99) diff --git a/config.h.cmake.in b/config.h.cmake.in new file mode 100644 index 0000000..cb4b898 --- /dev/null +++ b/config.h.cmake.in @@ -0,0 +1,160 @@ +// cGenerated by cmake, do not modify. + +// Define to 1 if you have the header file. +#cmakedefine HAVE_ARPA_INET_H @HAVE_ARPA_INET_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@ + +// Define to 1 if you don't have `vprintf' but do have `_doprnt.' +#cmakedefine HAVE_DOPRNT @HAVE_DOPRNT@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_ENDIAN_H @HAVE_ENDIAN_H@ + +// Define to 1 if you have the `getifaddrs' function. +#cmakedefine HAVE_GETIFADDRS @HAVE_GETIFADDRS@ + +// Define to 1 if you have the `inet_aton' function. +#cmakedefine HAVE_INET_ATON @HAVE_INET_ATON@ + +// Define to 1 if you have the `inet_ntoa' function. +#cmakedefine HAVE_INET_NTOA @HAVE_INET_NTOA@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_LINUX_IF_PACKET_H @HAVE_LINUX_IF_PACKET_H@ + +// Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. +#cmakedefine HAVE_MALLOC @HAVE_MALLOC@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_MEMORY_H @HAVE_MEMORY_H@ + +// Define to 1 if you have the `memset' function. +#cmakedefine HAVE_MEMSET @HAVE_MEMSET@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_NETINET_IN_H @HAVE_NETINET_IN_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_PPC_ENDIAN_H @HAVE_PPC_ENDIAN_H@ + +// Define to 1 if your system has a GNU libc compatible `realloc' function, and to 0 otherwise. +#cmakedefine HAVE_REALLOC @HAVE_REALLOC@ + +// Define to 1 if you have the `select' function. +#cmakedefine HAVE_SELECT @HAVE_SELECT@ + +// define if socket address structures have length fields +#cmakedefine HAVE_SOCKADDR_SA_LEN @HAVE_SOCKADDR_SA_LEN@ + +// Define to 1 if you have the `socket' function. +#cmakedefine HAVE_SOCKET @HAVE_SOCKET@ + +// Define to 1 if stdbool.h conforms to C99. +#cmakedefine HAVE_STDBOOL_H @HAVE_STDBOOL_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_STDDEF_H @HAVE_STDDEF_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_STDLIB_H @HAVE_STDLIB_H@ + +// Define to 1 if you have the `strchr' function. +#cmakedefine HAVE_STRCHR @HAVE_STRCHR@ + +// Define to 1 if you have the `strdup' function. +#cmakedefine HAVE_STRDUP @HAVE_STRDUP@ + +// Define to 1 if you have the `strerror' function. +#cmakedefine HAVE_STRERROR @HAVE_STRERROR@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_STRING_H @HAVE_STRING_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_SYS_IOCTL_H @HAVE_SYS_IOCTL_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_SYS_SELECT_H @HAVE_SYS_SELECT_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@ + +// Define to 1 if you have the header file. +#cmakedefine HAVE_UNISTD_HI @HAVE_UNISTD_HI@ + +// Define to 1 if you have the `vprintf' function. +#cmakedefine HAVE_VPRINTF @HAVE_VPRINTF@ + +// Define to 1 if the system has the type `_Bool'. +#cmakedefine HAVE__BOOL @HAVE__BOOL@ + +// Define to 1 if the system supports IPv6 +#cmakedefine IPV6 @IPV6@ + +// Name of package +#cmakedefine PACKAGE @PACKAGE@ + +// Define to the address where bug reports for this package should be sent. +#cmakedefine PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@ + +// Define to the full name of this package. +#cmakedefine PACKAGE_NAME @PACKAGE_NAME@ + +// Define to the full name and version of this package. +#cmakedefine PACKAGE_STRING @PACKAGE_STRING@ + +// Define to the one symbol short name of this package. +#cmakedefine PACKAGE_TARNAME @PACKAGE_TARNAME@ + +// Define to the version of this package. +#cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@ + +// Define to the type of arg 1 for `select'. +#cmakedefine SELECT_TYPE_ARG1 @SELECT_TYPE_ARG1@ + +// Define to the type of args 2, 3 and 4 for `select'. +#cmakedefine SELECT_TYPE_ARG234 @SELECT_TYPE_ARG234@ + +// Define to the type of arg 5 for `select'. +#cmakedefine SELECT_TYPE_ARG5 @SELECT_TYPE_ARG5@ + +// Define to 1 if you have the ANSI C header files. +#cmakedefine STDC_HEADERS @STDC_HEADERS@ + +// Define to 1 if you can safely include both and . +#cmakedefine TIME_WITH_SYS_TIME @TIME_WITH_SYS_TIME@ + +// Version number of package +#cmakedefine VERSION @VERSION@ + +// Define to empty if `const' does not conform to ANSI C. +#cmakedefine const @const@ + +// Define to rpl_malloc if the replacement function should be used. +#cmakedefine malloc @malloc@ + +// Define to rpl_realloc if the replacement function should be used. +#cmakedefine realloc @realloc@ + +// Define to `unsigned int' if does not define. +#cmakedefine size_t @SIZE_T@ diff --git a/config.h.in b/config.h.in index cb4b898..63e6f25 100644 --- a/config.h.in +++ b/config.h.in @@ -1,160 +1,162 @@ -// cGenerated by cmake, do not modify. +/* config.h.in. Generated from configure.in by autoheader. */ -// Define to 1 if you have the header file. -#cmakedefine HAVE_ARPA_INET_H @HAVE_ARPA_INET_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_ARPA_INET_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H -// Define to 1 if you don't have `vprintf' but do have `_doprnt.' -#cmakedefine HAVE_DOPRNT @HAVE_DOPRNT@ +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ +#undef HAVE_DOPRNT -// Define to 1 if you have the header file. -#cmakedefine HAVE_ENDIAN_H @HAVE_ENDIAN_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_ENDIAN_H -// Define to 1 if you have the `getifaddrs' function. -#cmakedefine HAVE_GETIFADDRS @HAVE_GETIFADDRS@ +/* Define to 1 if you have the `getifaddrs' function. */ +#undef HAVE_GETIFADDRS -// Define to 1 if you have the `inet_aton' function. -#cmakedefine HAVE_INET_ATON @HAVE_INET_ATON@ +/* Define to 1 if you have the `inet_aton' function. */ +#undef HAVE_INET_ATON -// Define to 1 if you have the `inet_ntoa' function. -#cmakedefine HAVE_INET_NTOA @HAVE_INET_NTOA@ +/* Define to 1 if you have the `inet_ntoa' function. */ +#undef HAVE_INET_NTOA -// Define to 1 if you have the header file. -#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_LINUX_IF_PACKET_H @HAVE_LINUX_IF_PACKET_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_LINUX_IF_PACKET_H -// Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. -#cmakedefine HAVE_MALLOC @HAVE_MALLOC@ +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and + to 0 otherwise. */ +#undef HAVE_MALLOC -// Define to 1 if you have the header file. -#cmakedefine HAVE_MEMORY_H @HAVE_MEMORY_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H -// Define to 1 if you have the `memset' function. -#cmakedefine HAVE_MEMSET @HAVE_MEMSET@ +/* Define to 1 if you have the `memset' function. */ +#undef HAVE_MEMSET -// Define to 1 if you have the header file. -#cmakedefine HAVE_NETINET_IN_H @HAVE_NETINET_IN_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_NETINET_IN_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_PPC_ENDIAN_H @HAVE_PPC_ENDIAN_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_PPC_ENDIAN_H -// Define to 1 if your system has a GNU libc compatible `realloc' function, and to 0 otherwise. -#cmakedefine HAVE_REALLOC @HAVE_REALLOC@ +/* Define to 1 if your system has a GNU libc compatible `realloc' function, + and to 0 otherwise. */ +#undef HAVE_REALLOC -// Define to 1 if you have the `select' function. -#cmakedefine HAVE_SELECT @HAVE_SELECT@ +/* Define to 1 if you have the `select' function. */ +#undef HAVE_SELECT -// define if socket address structures have length fields -#cmakedefine HAVE_SOCKADDR_SA_LEN @HAVE_SOCKADDR_SA_LEN@ +/* define if socket address structures have length fields */ +#undef HAVE_SOCKADDR_SA_LEN -// Define to 1 if you have the `socket' function. -#cmakedefine HAVE_SOCKET @HAVE_SOCKET@ +/* Define to 1 if you have the `socket' function. */ +#undef HAVE_SOCKET -// Define to 1 if stdbool.h conforms to C99. -#cmakedefine HAVE_STDBOOL_H @HAVE_STDBOOL_H@ +/* Define to 1 if stdbool.h conforms to C99. */ +#undef HAVE_STDBOOL_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_STDDEF_H @HAVE_STDDEF_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_STDDEF_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_STDLIB_H @HAVE_STDLIB_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H -// Define to 1 if you have the `strchr' function. -#cmakedefine HAVE_STRCHR @HAVE_STRCHR@ +/* Define to 1 if you have the `strchr' function. */ +#undef HAVE_STRCHR -// Define to 1 if you have the `strdup' function. -#cmakedefine HAVE_STRDUP @HAVE_STRDUP@ +/* Define to 1 if you have the `strdup' function. */ +#undef HAVE_STRDUP -// Define to 1 if you have the `strerror' function. -#cmakedefine HAVE_STRERROR @HAVE_STRERROR@ +/* Define to 1 if you have the `strerror' function. */ +#undef HAVE_STRERROR -// Define to 1 if you have the header file. -#cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_STRING_H @HAVE_STRING_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_SYS_IOCTL_H @HAVE_SYS_IOCTL_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_IOCTL_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_SYS_SELECT_H @HAVE_SYS_SELECT_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SELECT_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SOCKET_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@ +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H -// Define to 1 if you have the header file. -#cmakedefine HAVE_UNISTD_HI @HAVE_UNISTD_HI@ +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_HI -// Define to 1 if you have the `vprintf' function. -#cmakedefine HAVE_VPRINTF @HAVE_VPRINTF@ +/* Define to 1 if you have the `vprintf' function. */ +#undef HAVE_VPRINTF -// Define to 1 if the system has the type `_Bool'. -#cmakedefine HAVE__BOOL @HAVE__BOOL@ +/* Define to 1 if the system has the type `_Bool'. */ +#undef HAVE__BOOL -// Define to 1 if the system supports IPv6 -#cmakedefine IPV6 @IPV6@ +/* Define to 1 if the system supports IPv6 */ +#undef IPV6 -// Name of package -#cmakedefine PACKAGE @PACKAGE@ +/* Name of package */ +#undef PACKAGE -// Define to the address where bug reports for this package should be sent. -#cmakedefine PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@ +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT -// Define to the full name of this package. -#cmakedefine PACKAGE_NAME @PACKAGE_NAME@ +/* Define to the full name of this package. */ +#undef PACKAGE_NAME -// Define to the full name and version of this package. -#cmakedefine PACKAGE_STRING @PACKAGE_STRING@ +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING -// Define to the one symbol short name of this package. -#cmakedefine PACKAGE_TARNAME @PACKAGE_TARNAME@ +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME -// Define to the version of this package. -#cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@ +/* Define to the version of this package. */ +#undef PACKAGE_VERSION -// Define to the type of arg 1 for `select'. -#cmakedefine SELECT_TYPE_ARG1 @SELECT_TYPE_ARG1@ +/* Define to the type of arg 1 for `select'. */ +#undef SELECT_TYPE_ARG1 -// Define to the type of args 2, 3 and 4 for `select'. -#cmakedefine SELECT_TYPE_ARG234 @SELECT_TYPE_ARG234@ +/* Define to the type of args 2, 3 and 4 for `select'. */ +#undef SELECT_TYPE_ARG234 -// Define to the type of arg 5 for `select'. -#cmakedefine SELECT_TYPE_ARG5 @SELECT_TYPE_ARG5@ +/* Define to the type of arg 5 for `select'. */ +#undef SELECT_TYPE_ARG5 -// Define to 1 if you have the ANSI C header files. -#cmakedefine STDC_HEADERS @STDC_HEADERS@ +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS -// Define to 1 if you can safely include both and . -#cmakedefine TIME_WITH_SYS_TIME @TIME_WITH_SYS_TIME@ +/* Define to 1 if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME -// Version number of package -#cmakedefine VERSION @VERSION@ +/* Version number of package */ +#undef VERSION -// Define to empty if `const' does not conform to ANSI C. -#cmakedefine const @const@ +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const -// Define to rpl_malloc if the replacement function should be used. -#cmakedefine malloc @malloc@ +/* Define to rpl_malloc if the replacement function should be used. */ +#undef malloc -// Define to rpl_realloc if the replacement function should be used. -#cmakedefine realloc @realloc@ +/* Define to rpl_realloc if the replacement function should be used. */ +#undef realloc -// Define to `unsigned int' if does not define. -#cmakedefine size_t @SIZE_T@ +/* Define to `unsigned int' if does not define. */ +#undef size_t