mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
build: do not assume glibc on linux
The whole IPv6 stack detection could need refactoring. But this fixes the linux check to not assume glibc. Fixes build against musl c-library. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
c299ed717e
commit
3ef0b877f0
@ -1204,21 +1204,22 @@ dnl ----------
|
|||||||
if test "$zebra_cv_linux_ipv6" = "yes";then
|
if test "$zebra_cv_linux_ipv6" = "yes";then
|
||||||
AC_MSG_CHECKING(for GNU libc >= 2.1)
|
AC_MSG_CHECKING(for GNU libc >= 2.1)
|
||||||
AC_DEFINE(HAVE_IPV6,1,Linux IPv6)
|
AC_DEFINE(HAVE_IPV6,1,Linux IPv6)
|
||||||
|
AC_DEFINE(LINUX_IPV6,1,Linux IPv6 stack)
|
||||||
|
|
||||||
AC_EGREP_CPP(yes, [
|
AC_EGREP_CPP(yes, [
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
|
#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
|
||||||
yes
|
yes
|
||||||
#endif],
|
#endif],
|
||||||
[glibc=yes
|
[glibc=yes
|
||||||
AC_DEFINE(LINUX_IPV6,1,Linux IPv6 stack)
|
|
||||||
AC_MSG_RESULT(yes)],
|
AC_MSG_RESULT(yes)],
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
)
|
)
|
||||||
RIPNGD="ripngd"
|
RIPNGD="ripngd"
|
||||||
OSPF6D="ospf6d"
|
OSPF6D="ospf6d"
|
||||||
if test "$glibc" != "yes"; then
|
if test "$glibc" != "yes"; then
|
||||||
INCLUDES="-I/usr/inet6/include"
|
|
||||||
if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
|
if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
|
||||||
|
INCLUDES="-I/usr/inet6/include"
|
||||||
LIB_IPV6="-L/usr/inet6/lib -linet6"
|
LIB_IPV6="-L/usr/inet6/lib -linet6"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user