Merged 6Wind patch.

This commit is contained in:
hasso 2003-05-25 20:03:48 +00:00
parent 81dfcaa2e2
commit d2de34829e
3 changed files with 56 additions and 11 deletions

View file

@ -32,7 +32,7 @@
#undef HAVE_IPV6 #undef HAVE_IPV6
/* Define if you wish to support ipv6 router advertisment. */ /* Define if you wish to support ipv6 router advertisment. */
/* #undef HAVE_RTADV */ #undef HAVE_RTADV
/* whether system has GNU regex */ /* whether system has GNU regex */
#undef HAVE_GNU_REGEX #undef HAVE_GNU_REGEX
@ -40,6 +40,9 @@
/* whether system has SNMP library */ /* whether system has SNMP library */
#undef HAVE_SNMP #undef HAVE_SNMP
/* whether systme has a ifra_lifetime field */
#undef HAVE_IFRA_LIFETIME
/* whether sockaddr has a sa_len field */ /* whether sockaddr has a sa_len field */
#undef HAVE_SA_LEN #undef HAVE_SA_LEN
@ -88,6 +91,9 @@
/* Define if you have KAME project ipv6 stack. */ /* Define if you have KAME project ipv6 stack. */
#undef KAME #undef KAME
/* Define if you have 6WIND MUSICA IPv6 stack. */
#undef MUSICA
/* Define if you have Linux ipv6 stack. */ /* Define if you have Linux ipv6 stack. */
#undef LINUX_IPV6 #undef LINUX_IPV6
@ -139,6 +145,12 @@
/* Define if FreeBSD 3.2 */ /* Define if FreeBSD 3.2 */
#undef FREEBSD_32 #undef FREEBSD_32
/* Define if FreeBSD */
#undef FREEBSD
/* Define if SIXOS */
#undef SIXOS
/* Define if OpenBSD */ /* Define if OpenBSD */
#undef OPEN_BSD #undef OPEN_BSD

3
config.sub vendored
View file

@ -995,7 +995,8 @@ case $os in
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* | -storm-chaos*) | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -sixos*)
# Remember, each alternative MUST END IN *, to match a version number. # Remember, each alternative MUST END IN *, to match a version number.
;; ;;
-qnx*) -qnx*)

View file

@ -81,7 +81,7 @@ AC_ARG_ENABLE(snmp,
[ --enable-snmp enable SNMP support]) [ --enable-snmp enable SNMP support])
AC_ARG_WITH(libpam, AC_ARG_WITH(libpam,
[ --with-libpam use libpam for PAM support in vtysh]) [ --with-libpam use libpam for PAM support in vtysh])
AC_ARG_ENABLE(tcpsock, AC_ARG_ENABLE(tcp-zebra,
[ --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon]) [ --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon])
dnl Temporary option until OSPF NSSA implementation complete dnl Temporary option until OSPF NSSA implementation complete
AC_ARG_ENABLE(nssa, AC_ARG_ENABLE(nssa,
@ -98,9 +98,8 @@ AC_ARG_ENABLE(ospf-te,
[ --enable-ospf-te enable Traffic Engineering Extension to OSPF]) [ --enable-ospf-te enable Traffic Engineering Extension to OSPF])
AC_ARG_ENABLE(multipath, AC_ARG_ENABLE(multipath,
[ --enable-multipath=ARG enable multipath function, ARG must be digit]) [ --enable-multipath=ARG enable multipath function, ARG must be digit])
AC_ARG_ENABLE(rtadv,
dnl AC_ARG_ENABLE(rtadv, [ --disable-rtadv disable IPV6 router advertisment feature])
dnl [ --enable-rtadv enable IPV6 router advertisment option])
if test "${enable_broken_aliases}" = "yes"; then if test "${enable_broken_aliases}" = "yes"; then
if test "${enable_netlink}" = "yes" if test "${enable_netlink}" = "yes"
@ -129,9 +128,13 @@ if test "${enable_ospf_te}" = "yes"; then
AC_DEFINE(HAVE_OSPF_TE,,OSPF TE) AC_DEFINE(HAVE_OSPF_TE,,OSPF TE)
fi fi
dnl if test "${enable_rtadv}" = "yes"; then AC_MSG_CHECKING(Should Zebra's RTADV be used)
dnl AC_DEFINE(HAVE_RTADV) if test "${enable_rtadv}" = "no"; then
dnl fi AC_MSG_RESULT(no)
else
AC_DEFINE(HAVE_RTADV)
AC_MSG_RESULT(yes)
fi
changequote(, )dnl changequote(, )dnl
@ -157,7 +160,7 @@ dnl -------------------
dnl Check header files. dnl Check header files.
dnl ------------------- dnl -------------------
AC_STDC_HEADERS AC_STDC_HEADERS
AC_CHECK_HEADERS(string.h stropts.h sys/conf.h sys/ksym.h sys/time.h sys/times.h sys/select.h sys/sysctl.h sys/sockio.h sys/types.h net/if_dl.h net/if_var.h linux/version.h kvm.h netdb.h netinet/in.h net/netopt.h netinet/in_var.h netinet/in6_var.h netinet/in6.h inet/nd.h asm/types.h netinet/icmp6.h netinet6/nd6.h libutil.h) AC_CHECK_HEADERS(string.h stropts.h sys/conf.h sys/ksym.h sys/time.h sys/times.h sys/select.h sys/sysctl.h sys/sockio.h sys/types.h net/if_dl.h net/if_var.h linux/version.h kvm.h netdb.h netinet/in.h net/netopt.h netinet/in_var.h netinet/in6_var.h netinet6/in6_var.h netinet/in6.h netinet6/in6.h inet/nd.h asm/types.h netinet/icmp6.h netinet6/nd6.h libutil.h)
dnl check some types dnl check some types
AC_C_CONST AC_C_CONST
@ -469,6 +472,23 @@ if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
fi fi
AC_MSG_RESULT(KAME) AC_MSG_RESULT(KAME)
fi fi
dnl -------------------------
dnl MUSICA IPv6
dnl default host check
dnl It is not used by Kheops
dnl -------------------------
if grep MUSICA /usr/include6/netinet6/in6.h >/dev/null 2>&1; then
zebra_cv_ipv6=yes
AC_DEFINE(HAVE_IPV6)
AC_DEFINE(MUSICA)
AC_DEFINE(KAME)
RIPNGD="ripngd"
OSPF6D="ospf6d"
if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
LIB_IPV6="-L/usr/local/v6/lib -linet6"
fi
AC_MSG_RESULT(MUSICA)
fi
dnl --------- dnl ---------
dnl NRL check dnl NRL check
dnl --------- dnl ---------
@ -788,13 +808,24 @@ net/if.h,
dnl ---------------------------- dnl ----------------------------
dnl check structure in6_aliasreq dnl check structure in6_aliasreq
dnl ---------------------------- dnl ----------------------------
AC_MSG_CHECKING(whether struct if6_aliasreq exist) AC_MSG_CHECKING(whether struct in6_aliasreq exist)
AC_EGREP_HEADER(in6_aliasreq, AC_EGREP_HEADER(in6_aliasreq,
netinet6/in6_var.h, netinet6/in6_var.h,
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_IN6_ALIASREQ,,in6_aliasreq)], AC_DEFINE(HAVE_IN6_ALIASREQ,,in6_aliasreq)],
AC_MSG_RESULT(no)) AC_MSG_RESULT(no))
dnl -----------------------------------
dnl check ifra_lifetime of in6_aliasreq
dnl -----------------------------------
AC_MSG_CHECKING(whether in6_aliasreq.ifra_lifetime exist)
AC_TRY_COMPILE([#include <sys/types.h>
#include <netinet6/in6_var.h>
],[static struct if6_aliasreq ac_i;int ac_j = sizeof (ac_i.ifra_lifetime);],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_IFRA_LIFETIME)],
AC_MSG_RESULT(no))
dnl --------------------------- dnl ---------------------------
dnl check structure rt_addrinfo dnl check structure rt_addrinfo
dnl --------------------------- dnl ---------------------------
@ -926,5 +957,6 @@ host operationg system : ${host_os}
source code location : ${srcdir} source code location : ${srcdir}
compiler : ${CC} compiler : ${CC}
compiler flags : ${CFLAGS} compiler flags : ${CFLAGS}
linker flags : ${LDFLAGS} ${LIBS}
directory for pid files : ${ac_piddir} directory for pid files : ${ac_piddir}
" "