Skip to content

Commit a7c6d59

Browse files
committed
Revert changes to config.h.in and use different file for cmake
1 parent 7dfc2d0 commit a7c6d59

File tree

3 files changed

+270
-108
lines changed

3 files changed

+270
-108
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if(HAVE_SOCKADDR_SA_LEN)
7272
endif()
7373

7474
# Generate config.h
75-
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h @ONLY)
75+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/config.h @ONLY)
7676

7777
# Set the C standard
7878
set(CMAKE_C_STANDARD 99)

config.h.cmake.in

+160
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
// cGenerated by cmake, do not modify.
2+
3+
// Define to 1 if you have the <arpa/inet.h> header file.
4+
#cmakedefine HAVE_ARPA_INET_H @HAVE_ARPA_INET_H@
5+
6+
// Define to 1 if you have the <dlfcn.h> header file.
7+
#cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@
8+
9+
// Define to 1 if you don't have `vprintf' but do have `_doprnt.'
10+
#cmakedefine HAVE_DOPRNT @HAVE_DOPRNT@
11+
12+
// Define to 1 if you have the <endian.h> header file.
13+
#cmakedefine HAVE_ENDIAN_H @HAVE_ENDIAN_H@
14+
15+
// Define to 1 if you have the `getifaddrs' function.
16+
#cmakedefine HAVE_GETIFADDRS @HAVE_GETIFADDRS@
17+
18+
// Define to 1 if you have the `inet_aton' function.
19+
#cmakedefine HAVE_INET_ATON @HAVE_INET_ATON@
20+
21+
// Define to 1 if you have the `inet_ntoa' function.
22+
#cmakedefine HAVE_INET_NTOA @HAVE_INET_NTOA@
23+
24+
// Define to 1 if you have the <inttypes.h> header file.
25+
#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@
26+
27+
// Define to 1 if you have the <linux/if_packet.h> header file.
28+
#cmakedefine HAVE_LINUX_IF_PACKET_H @HAVE_LINUX_IF_PACKET_H@
29+
30+
// Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise.
31+
#cmakedefine HAVE_MALLOC @HAVE_MALLOC@
32+
33+
// Define to 1 if you have the <memory.h> header file.
34+
#cmakedefine HAVE_MEMORY_H @HAVE_MEMORY_H@
35+
36+
// Define to 1 if you have the `memset' function.
37+
#cmakedefine HAVE_MEMSET @HAVE_MEMSET@
38+
39+
// Define to 1 if you have the <netinet/in.h> header file.
40+
#cmakedefine HAVE_NETINET_IN_H @HAVE_NETINET_IN_H@
41+
42+
// Define to 1 if you have the <ppc/endian.h> header file.
43+
#cmakedefine HAVE_PPC_ENDIAN_H @HAVE_PPC_ENDIAN_H@
44+
45+
// Define to 1 if your system has a GNU libc compatible `realloc' function, and to 0 otherwise.
46+
#cmakedefine HAVE_REALLOC @HAVE_REALLOC@
47+
48+
// Define to 1 if you have the `select' function.
49+
#cmakedefine HAVE_SELECT @HAVE_SELECT@
50+
51+
// define if socket address structures have length fields
52+
#cmakedefine HAVE_SOCKADDR_SA_LEN @HAVE_SOCKADDR_SA_LEN@
53+
54+
// Define to 1 if you have the `socket' function.
55+
#cmakedefine HAVE_SOCKET @HAVE_SOCKET@
56+
57+
// Define to 1 if stdbool.h conforms to C99.
58+
#cmakedefine HAVE_STDBOOL_H @HAVE_STDBOOL_H@
59+
60+
// Define to 1 if you have the <stddef.h> header file.
61+
#cmakedefine HAVE_STDDEF_H @HAVE_STDDEF_H@
62+
63+
// Define to 1 if you have the <stdint.h> header file.
64+
#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@
65+
66+
// Define to 1 if you have the <stdlib.h> header file.
67+
#cmakedefine HAVE_STDLIB_H @HAVE_STDLIB_H@
68+
69+
// Define to 1 if you have the `strchr' function.
70+
#cmakedefine HAVE_STRCHR @HAVE_STRCHR@
71+
72+
// Define to 1 if you have the `strdup' function.
73+
#cmakedefine HAVE_STRDUP @HAVE_STRDUP@
74+
75+
// Define to 1 if you have the `strerror' function.
76+
#cmakedefine HAVE_STRERROR @HAVE_STRERROR@
77+
78+
// Define to 1 if you have the <strings.h> header file.
79+
#cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@
80+
81+
// Define to 1 if you have the <string.h> header file.
82+
#cmakedefine HAVE_STRING_H @HAVE_STRING_H@
83+
84+
// Define to 1 if you have the <sys/ioctl.h> header file.
85+
#cmakedefine HAVE_SYS_IOCTL_H @HAVE_SYS_IOCTL_H@
86+
87+
// Define to 1 if you have the <sys/select.h> header file.
88+
#cmakedefine HAVE_SYS_SELECT_H @HAVE_SYS_SELECT_H@
89+
90+
// Define to 1 if you have the <sys/socket.h> header file.
91+
#cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@
92+
93+
// Define to 1 if you have the <sys/stat.h> header file.
94+
#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@
95+
96+
// Define to 1 if you have the <sys/types.h> header file.
97+
#cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@
98+
99+
// Define to 1 if you have the <unistd.h> header file.
100+
#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
101+
102+
// Define to 1 if you have the <unistd.hi> header file.
103+
#cmakedefine HAVE_UNISTD_HI @HAVE_UNISTD_HI@
104+
105+
// Define to 1 if you have the `vprintf' function.
106+
#cmakedefine HAVE_VPRINTF @HAVE_VPRINTF@
107+
108+
// Define to 1 if the system has the type `_Bool'.
109+
#cmakedefine HAVE__BOOL @HAVE__BOOL@
110+
111+
// Define to 1 if the system supports IPv6
112+
#cmakedefine IPV6 @IPV6@
113+
114+
// Name of package
115+
#cmakedefine PACKAGE @PACKAGE@
116+
117+
// Define to the address where bug reports for this package should be sent.
118+
#cmakedefine PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@
119+
120+
// Define to the full name of this package.
121+
#cmakedefine PACKAGE_NAME @PACKAGE_NAME@
122+
123+
// Define to the full name and version of this package.
124+
#cmakedefine PACKAGE_STRING @PACKAGE_STRING@
125+
126+
// Define to the one symbol short name of this package.
127+
#cmakedefine PACKAGE_TARNAME @PACKAGE_TARNAME@
128+
129+
// Define to the version of this package.
130+
#cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@
131+
132+
// Define to the type of arg 1 for `select'.
133+
#cmakedefine SELECT_TYPE_ARG1 @SELECT_TYPE_ARG1@
134+
135+
// Define to the type of args 2, 3 and 4 for `select'.
136+
#cmakedefine SELECT_TYPE_ARG234 @SELECT_TYPE_ARG234@
137+
138+
// Define to the type of arg 5 for `select'.
139+
#cmakedefine SELECT_TYPE_ARG5 @SELECT_TYPE_ARG5@
140+
141+
// Define to 1 if you have the ANSI C header files.
142+
#cmakedefine STDC_HEADERS @STDC_HEADERS@
143+
144+
// Define to 1 if you can safely include both <sys/time.h> and <time.h>.
145+
#cmakedefine TIME_WITH_SYS_TIME @TIME_WITH_SYS_TIME@
146+
147+
// Version number of package
148+
#cmakedefine VERSION @VERSION@
149+
150+
// Define to empty if `const' does not conform to ANSI C.
151+
#cmakedefine const @const@
152+
153+
// Define to rpl_malloc if the replacement function should be used.
154+
#cmakedefine malloc @malloc@
155+
156+
// Define to rpl_realloc if the replacement function should be used.
157+
#cmakedefine realloc @realloc@
158+
159+
// Define to `unsigned int' if <sys/types.h> does not define.
160+
#cmakedefine size_t @SIZE_T@

0 commit comments

Comments
 (0)