aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2012-06-29 21:11:24 +0000
committerBen Pfaff <blp@nicira.com>2012-06-29 14:42:38 -0700
commit9360d9b7b50c52298c9bd47ab07b5c8c8ae074de (patch)
tree7fbe3d92708e193071c080967792384dd0d647bb /acinclude.m4
parent55abbe6977a15890b787ed35378d0f168384799b (diff)
Route-table implementation for (Free)BSD
This is a trivial implementation of the route-table functionality for FreeBSD, as needed by ofproto/ofproto-dpif-sflow.c. It has not yet been extensively tested. Signed-off-by: Ed Maste <emaste@freebsd.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index d33653dc..43f044a9 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -287,6 +287,17 @@ AC_DEFUN([OVS_CHECK_IF_PACKET],
[Define to 1 if net/if_packet.h is available.])
fi])
+dnl Checks for net/if_dl.h
+AC_DEFUN([OVS_CHECK_IF_DL],
+ [AC_CHECK_HEADER([net/if_dl.h],
+ [HAVE_IF_DL=yes],
+ [HAVE_IF_DL=no])
+ AM_CONDITIONAL([HAVE_IF_DL], [test "$HAVE_IF_DL" = yes])
+ if test "$HAVE_IF_DL" = yes; then
+ AC_DEFINE([HAVE_IF_DL], [1],
+ [Define to 1 if net/if_dl.h is available.])
+ fi])
+
dnl Checks for buggy strtok_r.
dnl
dnl Some versions of glibc 2.7 has a bug in strtok_r when compiling