linux-probe-warning-case-20080107
authorRuss Allbery <rra@stanford.edu>
Mon, 7 Jan 2008 18:14:54 +0000 (18:14 +0000)
committerRuss Allbery <rra@stanford.edu>
Mon, 7 Jan 2008 18:14:54 +0000 (18:14 +0000)
LICENSE MIT

Some older Linux kernels prefix warnings with "Warning:" rather than
"WARNING:", so do the grep case-insensitively when finding missing symbols.

src/cf/linux-test1.m4

index 2751a14..8c82baa 100644 (file)
@@ -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