mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +00:00
[build] configure needs to check for struct icmphdr for IRDP
2007-06-22 Paul Jakma <paul.jakma@sun.com> * configure.ac: IRDP also depends on struct icmphdr, enabling only on in_pktinfo breaks when an OS acquires pktinfo, as Solaris NV has. Reported by Jim Carlson.
This commit is contained in:
parent
8454b05606
commit
11770e1086
@ -1,3 +1,9 @@
|
|||||||
|
2007-06-22 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
|
* configure.ac: IRDP also depends on struct icmphdr, enabling
|
||||||
|
only on in_pktinfo breaks when an OS acquires pktinfo, as
|
||||||
|
Solaris NV has. Reported by Jim Carlson.
|
||||||
|
|
||||||
2007-05-10 Paul Jakma <paul.jakma@sun.com>
|
2007-05-10 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
* configure.ac: Add back check for inet_aton, which got dropped
|
* configure.ac: Add back check for inet_aton, which got dropped
|
||||||
|
21
configure.ac
21
configure.ac
@ -418,7 +418,7 @@ m4_define([QUAGGA_INCLUDES],
|
|||||||
|
|
||||||
AC_CHECK_HEADERS([sys/un.h net/if.h netinet/in_systm.h netinet/in_var.h \
|
AC_CHECK_HEADERS([sys/un.h net/if.h netinet/in_systm.h netinet/in_var.h \
|
||||||
net/if_dl.h net/if_var.h net/netopt.h net/route.h \
|
net/if_dl.h net/if_var.h net/netopt.h net/route.h \
|
||||||
inet/nd.h arpa/inet.h \
|
inet/nd.h arpa/inet.h netinet/ip_icmp.h \
|
||||||
fcntl.h stddef.h sys/ioctl.h syslog.h wchar.h wctype.h \
|
fcntl.h stddef.h sys/ioctl.h syslog.h wchar.h wctype.h \
|
||||||
sys/sysctl.h sys/sockio.h kvm.h sys/conf.h],
|
sys/sysctl.h sys/sockio.h kvm.h sys/conf.h],
|
||||||
[], [], QUAGGA_INCLUDES)
|
[], [], QUAGGA_INCLUDES)
|
||||||
@ -462,6 +462,10 @@ QUAGGA_INCLUDES
|
|||||||
#if HAVE_ARPA_INET_H
|
#if HAVE_ARPA_INET_H
|
||||||
# include <arpa/inet.h>
|
# include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
/* Required for IDRP */
|
||||||
|
#if HAVE_NETINET_IP_ICMP_H
|
||||||
|
# include <netinet/ip_icmp.h>
|
||||||
|
#endif
|
||||||
])dnl
|
])dnl
|
||||||
|
|
||||||
dnl V6 headers are checked below, after we check for v6
|
dnl V6 headers are checked below, after we check for v6
|
||||||
@ -1204,8 +1208,7 @@ AC_CHECK_TYPES([struct sockaddr, struct sockaddr_in,
|
|||||||
socklen_t,
|
socklen_t,
|
||||||
struct ifaliasreq, struct if6_aliasreq, struct in6_aliasreq,
|
struct ifaliasreq, struct if6_aliasreq, struct in6_aliasreq,
|
||||||
struct nd_opt_adv_interval, struct rt_addrinfo,
|
struct nd_opt_adv_interval, struct rt_addrinfo,
|
||||||
struct nd_opt_homeagent_info, struct nd_opt_adv_interval,
|
struct nd_opt_homeagent_info, struct nd_opt_adv_interval],
|
||||||
struct in_pktinfo],
|
|
||||||
[], [], QUAGGA_INCLUDES)
|
[], [], QUAGGA_INCLUDES)
|
||||||
|
|
||||||
AC_CHECK_MEMBERS([struct sockaddr.sa_len,
|
AC_CHECK_MEMBERS([struct sockaddr.sa_len,
|
||||||
@ -1216,12 +1219,16 @@ AC_CHECK_MEMBERS([struct sockaddr.sa_len,
|
|||||||
[], [], QUAGGA_INCLUDES)
|
[], [], QUAGGA_INCLUDES)
|
||||||
|
|
||||||
dnl ---------------------------
|
dnl ---------------------------
|
||||||
dnl pktinfo checks
|
dnl IRDP/pktinfo/icmphdr checks
|
||||||
dnl ---------------------------
|
dnl ---------------------------
|
||||||
AC_CHECK_TYPES([struct in_pktinfo],
|
AC_CHECK_TYPES([struct in_pktinfo],
|
||||||
[if test "${enable_irdp}" != "no"; then
|
[AC_CHECK_TYPES([struct icmphdr],
|
||||||
AC_DEFINE(HAVE_IRDP,, IRDP)
|
[if test "${enable_irdp}" != "no"; then
|
||||||
fi],
|
AC_DEFINE(HAVE_IRDP,, IRDP)
|
||||||
|
fi],
|
||||||
|
[if test "${enable_irdp}" = "yes"; then
|
||||||
|
AC_MSG_ERROR(['IRDP requires in_pktinfo at the moment!'])
|
||||||
|
fi], [QUAGGA_INCLUDES])],
|
||||||
[if test "${enable_irdp}" = "yes"; then
|
[if test "${enable_irdp}" = "yes"; then
|
||||||
AC_MSG_ERROR(['IRDP requires in_pktinfo at the moment!'])
|
AC_MSG_ERROR(['IRDP requires in_pktinfo at the moment!'])
|
||||||
fi], [QUAGGA_INCLUDES])
|
fi], [QUAGGA_INCLUDES])
|
||||||
|
Loading…
Reference in New Issue
Block a user