Skip to content

Commit

Permalink
Revert changes to config.h.in and use different file for cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
enwi committed Nov 10, 2024
1 parent 7dfc2d0 commit ff399c2
Show file tree
Hide file tree
Showing 3 changed files with 270 additions and 108 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
160 changes: 160 additions & 0 deletions config.h.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
// cGenerated by cmake, do not modify.

// Define to 1 if you have the <arpa/inet.h> header file.
#cmakedefine HAVE_ARPA_INET_H @HAVE_ARPA_INET_H@

// Define to 1 if you have the <dlfcn.h> 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 <endian.h> 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 <inttypes.h> header file.
#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@

// Define to 1 if you have the <linux/if_packet.h> 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 <memory.h> 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 <netinet/in.h> header file.
#cmakedefine HAVE_NETINET_IN_H @HAVE_NETINET_IN_H@

// Define to 1 if you have the <ppc/endian.h> 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 <stddef.h> header file.
#cmakedefine HAVE_STDDEF_H @HAVE_STDDEF_H@

// Define to 1 if you have the <stdint.h> header file.
#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@

// Define to 1 if you have the <stdlib.h> 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 <strings.h> header file.
#cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@

// Define to 1 if you have the <string.h> header file.
#cmakedefine HAVE_STRING_H @HAVE_STRING_H@

// Define to 1 if you have the <sys/ioctl.h> header file.
#cmakedefine HAVE_SYS_IOCTL_H @HAVE_SYS_IOCTL_H@

// Define to 1 if you have the <sys/select.h> header file.
#cmakedefine HAVE_SYS_SELECT_H @HAVE_SYS_SELECT_H@

// Define to 1 if you have the <sys/socket.h> header file.
#cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@

// Define to 1 if you have the <sys/stat.h> header file.
#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@

// Define to 1 if you have the <sys/types.h> header file.
#cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@

// Define to 1 if you have the <unistd.h> header file.
#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@

// Define to 1 if you have the <unistd.hi> 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 <sys/time.h> and <time.h>.
#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 <sys/types.h> does not define.
#cmakedefine size_t @SIZE_T@
Loading

0 comments on commit ff399c2

Please sign in to comment.