]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Always use kbuild for all Linux kernel configure probes
authorAaron M. Ucko <ucko@debian.org>
Tue, 7 Jul 2009 00:41:49 +0000 (17:41 -0700)
committerRuss Allbery <rra|account-1000002@unknown>
Wed, 4 Nov 2009 03:47:20 +0000 (19:47 -0800)
commit9ea7369ae13537270ffec085fdfd6d6effe231e6
tree18a0949aca9504c5d0df55b979d9c018d59e546b
parenta410b7fd45dde17d545b36b1f5e50d664f65e8c3
Always use kbuild for all Linux kernel configure probes

Some Linux kernel probes for the existence of header files were done
with file existence checks (test -f).  This breaks if the kernel build
system is stacking multiple directories of headers together with
compile-time -I include path options, as is the case for the current
Debian Linux header packages.  Instead, always use kbuild to check
whether a kernel header is available.

Similarly, use AC_TRY_KBUILD instead of AC_TRY_COMPILE when checking
for an SELinux kernel, since AC_TRY_COMPILE doesn't call into kbuild
and won't get the correct kernel header paths.

This is part of the fix for Debian Bug#521745 and has been included in
the Debian package since 1.4.10+dfsg1-1.

Reviewed-on: http://gerrit.openafs.org/5
Verified-by: Russ Allbery <rra@stanford.edu>
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit b7942950c2d1fcaa1e94ebbe91c8d2a9a7670cdb)
Change-Id: If42353162712271d88ffc0d1c743b903c03c75c6
Reviewed-on: http://gerrit.openafs.org/777
Tested-by: Russ Allbery <rra@stanford.edu>
src/cf/linux-test3.m4