From 9c30ab6b897e08238a486dde2838ecab4fd5def3 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 8 Jul 2003 08:36:17 +0000 Subject: 2003-07-08 Tristan Horn * configure.ac: Fix recognition of FreeBSD if /dev/ip is found. --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 000729be..ce98af1e 100755 --- a/configure.ac +++ b/configure.ac @@ -403,8 +403,13 @@ done case $zebra_rtread in "/proc/net/route") RTREAD_METHOD="rtread_proc.o" zebra_rtread="proc";; - "/dev/ip") RTREAD_METHOD="rtread_getmsg.o" - zebra_rtread="getmsg";; + "/dev/ip") + case "$host" in + *-freebsd*) RTREAD_METHOD=rtread_sysctl.o + zebra_rtread="sysctl";; + *) RTREAD_METHOD="rtread_getmsg.o" + zebra_rtread="getmsg";; + esac;; *) RTREAD_METHOD="rtread_sysctl.o" zebra_rtread="sysctl";; esac @@ -465,6 +470,8 @@ case $zebra_ipforward_path in case "$host" in *-nec-sysv4*) IPFORWARD=ipforward_ews.o zebra_ipforward_path="ews";; + *-freebsd*) IPFORWARD=ipforward_sysctl.o + zebra_ipforward_path="sysctl";; *) IPFORWARD=ipforward_solaris.o zebra_ipforward_path="solaris";; esac;; -- cgit v1.2.1