aboutsummaryrefslogtreecommitdiff
path: root/cmakeconfig.h.in
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-19 14:55:13 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-19 14:55:13 -0700
commit4e145de1143f597ef8277b51c5524af1e994f277 (patch)
tree2a9bdd2c8cfb0913cdbfd5a09d75b625dc43a947 /cmakeconfig.h.in
parent937177d43b747c314c202f2b6019cd99182754a0 (diff)
Clean up the ether_hostton() stuff.
On platforms where the OS's ether_hostton man page says "include this", include that. However, that doesn't always declare it, so still check whether it really declares ether_hostton(). Just use AC_CHECK_DECL() to do the checks - that fails either if the headers in question don't exists or if they exist buf don't end up declaring ether_hostton(). Check these in CMake as well.
Diffstat (limited to 'cmakeconfig.h.in')
-rw-r--r--cmakeconfig.h.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in
index 2e148dd8..a57776b7 100644
--- a/cmakeconfig.h.in
+++ b/cmakeconfig.h.in
@@ -1,5 +1,8 @@
/* cmakeconfig.h.in */
+/* Define to 1 if arpa/inet.h declares `ether_hostton' */
+#cmakedefine ARPA_INET_H_DECLARES_ETHER_HOSTTON 1
+
/* Enable optimizer debugging */
#cmakedefine BDEBUG 1
@@ -18,8 +21,7 @@
/* define if you have vdag_set_device_info() */
#cmakedefine HAVE_DAG_VDAG 1
-/* Define to 1 if you have the declaration of `ether_hostton', and to 0 if you
- don't. */
+/* Define to 1 if you have the declaration of `ether_hostton' */
#cmakedefine HAVE_DECL_ETHER_HOSTTON 1
/* if passive_req_t primitive exists */
@@ -94,12 +96,6 @@
/* Define to 1 if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H 1
-/* Define to 1 if you have the <netinet/ether.h> header file. */
-#cmakedefine HAVE_NETINET_ETHER_H 1
-
-/* Define to 1 if you have the <netinet/if_ether.h> header file. */
-#cmakedefine HAVE_NETINET_IF_ETHER_H 1
-
/* Define to 1 if you have the <netpacket/packet.h> header file. */
#cmakedefine HAVE_NETPACKET_PACKET_H 1
@@ -247,6 +243,9 @@
/* Define to 1 if netinet/if_ether.h declares `ether_hostton' */
#cmakedefine NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON 1
+/* Define to 1 if net/ethernet.h declares `ether_hostton' */
+#cmakedefine NET_ETHERNET_H_DECLARES_ETHER_HOSTTON 1
+
/* do not use protochain */
#cmakedefine NO_PROTOCHAIN 1
@@ -301,6 +300,9 @@
/* Define to 1 if you have the ANSI C header files. */
#cmakedefine STDC_HEADERS 1
+/* Define to 1 if sys/ethernet.h declares `ether_hostton' */
+#cmakedefine SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON 1
+
/* Enable parser debugging */
#cmakedefine YYDEBUG 1