X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=acinclude.m4;h=64384d90fb4ba69234a7c5727b6e66e15c5e4abe;hb=2e8a4c31abe39ce4443d046d86c595fd73351900;hp=81e9948807f765afce9e2e1870e59eb880b67a2d;hpb=0b6d72fc776179703ba2cc8d8b3ea878a29cad61;p=openvswitch diff --git a/acinclude.m4 b/acinclude.m4 index 81e99488..64384d90 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -123,16 +123,6 @@ AC_DEFUN([OVS_CHECK_VETH], [ fi ]) -AC_DEFUN([OVS_CHECK_GRE], [ - AC_MSG_CHECKING([whether to build gre module]) - if test "$sublevel" -ge 18; then - AC_MSG_RESULT([yes]) - AC_SUBST([BUILD_GRE], 1) - else - AC_MSG_RESULT([no]) - fi -]) - AC_DEFUN([OVS_CHECK_LOG2_H], [ AC_MSG_CHECKING([for $KSRC26/include/linux/log2.h]) if test -e $KSRC26/include/linux/log2.h; then @@ -172,6 +162,8 @@ AC_DEFUN([OVS_CHECK_LINUX26_COMPAT], [ [OVS_DEFINE([HAVE_NLA_GET_BE16])]) OVS_GREP_IFELSE([$KSRC26/include/linux/in.h], [ipv4_is_multicast], [OVS_DEFINE([HAVE_IPV4_IS_MULTICAST])]) + OVS_GREP_IFELSE([$KSRC26/include/linux/string.h $KSRC26/include/linux/slab.h], + [kmemdup], [OVS_DEFINE([HAVE_KMEMDUP])]) # Check for the proto_data_valid member in struct sk_buff. The [^@] # is necessary because some versions of this header remove the # member but retain the kerneldoc comment that describes it (which @@ -181,7 +173,6 @@ AC_DEFUN([OVS_CHECK_LINUX26_COMPAT], [ [OVS_DEFINE([HAVE_PROTO_DATA_VALID])]) OVS_CHECK_LOG2_H OVS_CHECK_VETH - OVS_CHECK_GRE if cmp -s datapath/linux-2.6/kcompat.h.new \ datapath/linux-2.6/kcompat.h >/dev/null 2>&1; then rm datapath/linux-2.6/kcompat.h.new