]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: only default-enable nhrpd on Linux 257/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 7 Mar 2017 15:56:57 +0000 (16:56 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 7 Mar 2017 15:56:57 +0000 (16:56 +0100)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
configure.ac

index be10637d43d977a61d77d02260fde61ed025f8d9..96d3d3894d69ae7832b2051dcf3b57d724c222ec 100755 (executable)
@@ -1188,10 +1188,15 @@ else
 fi
 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
-  NHRPD="nhrpd"
+  if test "${enable_nhrpd}" = "yes"; then
+    AC_MSG_ERROR([nhrpd requires kernel APIs that are only present on Linux.])
+  fi
 fi
 AM_CONDITIONAL(NHRPD, test "x$NHRPD" = "xnhrpd")
 
@@ -1299,7 +1304,7 @@ AC_SUBST(HAVE_LIBPCREPOSIX)
 dnl ------------------
 dnl check C-Ares library
 dnl ------------------
-if test "${enable_nhrpd}" != "no";then
+if test "${NHRPD}" != ""; then
    PKG_CHECK_MODULES([CARES], [libcares])
 fi