]> git.puffer.fish Git - mirror/frr.git/commitdiff
config: Disable pimd on OpenBSD 6.1 891/head
authorJafar Al-Gharaibeh <jafar@atcorp.com>
Tue, 1 Aug 2017 21:26:01 +0000 (16:26 -0500)
committerJafar Al-Gharaibeh <jafar@atcorp.com>
Wed, 2 Aug 2017 15:12:19 +0000 (10:12 -0500)
OpenBSD dropped support for PIM in 6.1. Error out if the user does not
disable pimd explicitly.

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
configure.ac

index a67f5934e39ae3e545fb3dcc11cebf0ad1a4657f..6b5cd19a5f5bcad7b0c585cfda03aa377e1aeeb8 100755 (executable)
@@ -868,6 +868,16 @@ case "$host_os" in
 
     AC_DEFINE(OPEN_BSD,,OpenBSD)
     AC_DEFINE(KAME,1,KAME IPv6)
+
+    if test "x${enable_pimd}" != "xno"; then
+      case "$host_os" in
+      openbsd6.0)
+        ;;
+      openbsd[6-9]*)
+        AC_MSG_FAILURE([pimd cannot be enabled as PIM support has been removed from OpenBSD 6.1])
+        ;;
+      esac
+    fi
     ;;
   *)
     AC_MSG_RESULT([BSD])