aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-11-03 10:14:06 -0700
committerJesse Gross <jesse@nicira.com>2010-11-03 10:23:19 -0700
commit41793158ea9f5815f6f9284e9408f7997cd23aff (patch)
treeaf09df7ebd8b6b4ac79205b0269debfa9975847e /acinclude.m4
parent25fb35966e0db0574e4fca4d520c6239ef23482e (diff)
autoconf: Compat checks no longer support multiple files.
We now test that a file exists before grepping but that doesn't work if there are multiple possible files. For the one case that needs this (kmemdup) break the test into two: check the first file and if the pattern isn't found check the second file.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2296dbd9..26081238 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -191,8 +191,10 @@ AC_DEFUN([OVS_CHECK_LINUX26_COMPAT], [
OVS_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], [skb_warn_if_lro],
[OVS_DEFINE([HAVE_SKB_WARN_LRO])])
- OVS_GREP_IFELSE([$KSRC26/include/linux/string.h $KSRC26/include/linux/slab.h],
- [kmemdup], [OVS_DEFINE([HAVE_KMEMDUP])])
+ OVS_GREP_IFELSE([$KSRC26/include/linux/string.h], [kmemdup],
+ [OVS_DEFINE([HAVE_KMEMDUP])],
+ [OVS_GREP_IFELSE([$KSRC26/include/linux/slab.h], [kmemdup],
+ [OVS_DEFINE([HAVE_KMEMDUP])])])
OVS_GREP_IFELSE([$KSRC26/include/linux/types.h], [bool],
[OVS_DEFINE([HAVE_BOOL_TYPE])])