From: Russ Allbery Date: Mon, 7 Jan 2008 18:33:15 +0000 (+0000) Subject: DEVEL15-linux-probe-warning-case-20080107 X-Git-Tag: openafs-devel-1_5_30~3 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6658bbe5432746f230e3496d27b286555dd44a0d;p=packages%2Fo%2Fopenafs.git DEVEL15-linux-probe-warning-case-20080107 LICENSE MIT Some older Linux kernels prefix warnings with "Warning:" rather than "WARNING:", so do the grep case-insensitively when finding missing symbols. (cherry picked from commit 58efc5029c832e6b1456c36b599e7e33d62cd9c6) --- diff --git a/src/cf/linux-test1.m4 b/src/cf/linux-test1.m4 index 2751a14cf..8c82baa87 100644 --- a/src/cf/linux-test1.m4 +++ b/src/cf/linux-test1.m4 @@ -29,7 +29,7 @@ MODULE_LICENSE("http://www.openafs.org/dl/license10.html"); _ACEOF echo make -C $LINUX_KERNEL_PATH M=$SRCDIR_PARENT/conftest.dir modules KBUILD_VERBOSE=1 >&AS_MESSAGE_LOG_FD && make -C $LINUX_KERNEL_PATH M=$SRCDIR_PARENT/conftest.dir modules KBUILD_VERBOSE=1 >&AS_MESSAGE_LOG_FD 2>conftest.err && - ! grep "^WARNING: .* undefined!$" conftest.err >/dev/null 2>&1 + ! grep -i "^WARNING: .* undefined!$" conftest.err >/dev/null 2>&1 then [$3] else sed '/^ *+/d' conftest.err >&AS_MESSAGE_LOG_FD