From adc59d1b28f5c542efaea8365c24ab0df4db54a3 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Mon, 8 Feb 2010 14:41:49 -0500 Subject: [PATCH] b=21666 prevent use of OFED source dir instead of headers Try to determine if the user is pointing configure at the OFED source directory intead of the devel/headers directory and error out of configure if so and display an informative warning. i=panda i=whitebear --- lnet/autoconf/lustre-lnet.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 6297224..7d4cd84 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -529,6 +529,11 @@ else -f ${O2IBPATH}/include/rdma/ib_cm.h -a \ -f ${O2IBPATH}/include/rdma/ib_verbs.h -a \ -f ${O2IBPATH}/include/rdma/ib_fmr_pool.h \); then + if test \( -d ${O2IBPATH}/kernel_patches -a \ + -f ${O2IBPATH}/Makefile \); then + AC_MSG_RESULT([no]) + AC_MSG_ERROR([you appear to be trying to use the OFED distribution's source directory (${O2IBPATH}) rather than the "development/headers" directory which is likely in ${O2IBPATH%-*}]) + fi o2ib_found=true break fi -- 1.8.3.1