summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul <paul>2003-07-08 08:36:17 +0000
committerpaul <paul>2003-07-08 08:36:17 +0000
commit9c30ab6b897e08238a486dde2838ecab4fd5def3 (patch)
treec0afafdbe13b78a49bc505e724c80277be1810f8
parent9bcdb638923e3254b64744d02ceab62b8f2941a1 (diff)
2003-07-08 Tristan Horn <tristan+z@ethereal.net>
* configure.ac: Fix recognition of FreeBSD if /dev/ip is found.
-rwxr-xr-xconfigure.ac11
1 files changed, 9 insertions, 2 deletions
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;;