2003-07-08 Tristan Horn <tristan+z@ethereal.net>
* configure.ac: Fix recognition of FreeBSD if /dev/ip is found.
diff --git a/configure.ac b/configure.ac
index 000729b..ce98af1 100755
--- a/configure.ac
+++ b/configure.ac
@@ -403,8 +403,13 @@
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 "$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;;