forked from Mirror/frr
build: only default-enable nhrpd on Linux
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
c838ce0e03
commit
42350cfc6e
13
configure.ac
13
configure.ac
|
@ -1188,10 +1188,15 @@ else
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(LDPD, test "x$LDPD" = "xldpd")
|
AM_CONDITIONAL(LDPD, test "x$LDPD" = "xldpd")
|
||||||
|
|
||||||
if test "${enable_nhrpd}" = "no";then
|
NHRPD=""
|
||||||
NHRPD=""
|
if test "$opsys" = "gnu-linux"; then
|
||||||
|
if test "${enable_nhrpd}" != "no"; then
|
||||||
|
NHRPD="nhrpd"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
NHRPD="nhrpd"
|
if test "${enable_nhrpd}" = "yes"; then
|
||||||
|
AC_MSG_ERROR([nhrpd requires kernel APIs that are only present on Linux.])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(NHRPD, test "x$NHRPD" = "xnhrpd")
|
AM_CONDITIONAL(NHRPD, test "x$NHRPD" = "xnhrpd")
|
||||||
|
|
||||||
|
@ -1299,7 +1304,7 @@ AC_SUBST(HAVE_LIBPCREPOSIX)
|
||||||
dnl ------------------
|
dnl ------------------
|
||||||
dnl check C-Ares library
|
dnl check C-Ares library
|
||||||
dnl ------------------
|
dnl ------------------
|
||||||
if test "${enable_nhrpd}" != "no";then
|
if test "${NHRPD}" != ""; then
|
||||||
PKG_CHECK_MODULES([CARES], [libcares])
|
PKG_CHECK_MODULES([CARES], [libcares])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue