]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: disable VRRPD if not linux
authorMark Stapp <mjs@voltanet.io>
Tue, 17 Mar 2020 21:26:20 +0000 (17:26 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 18 Mar 2020 12:26:31 +0000 (08:26 -0400)
Only allow configure to try to build VRRPD on linux; other
platforms disable it.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
configure.ac

index 0d56b60e72a6af881621866e81647cc05358c62f..9aff63a31cdd1f239d76990d0024b3a065d78961 100755 (executable)
@@ -1791,6 +1791,22 @@ if test "$enable_rpki" = "yes"; then
   )
 fi
 
+dnl -------------------------------------
+dnl VRRP is only supported on linux
+dnl -------------------------------------
+if test "$enable_vrrpd" != "no"; then
+AC_MSG_CHECKING([for VRRP OS support])
+case "$host_os" in
+  linux*)
+    AC_MSG_RESULT([yes])
+    ;;
+  *)
+    AC_MSG_RESULT([no])
+    enable_vrrpd="no"
+    ;;
+esac
+fi
+
 dnl ------------------------------------------
 dnl Check whether rtrlib was build with ssh support
 dnl ------------------------------------------