From: Jeffrey Hutzelman Date: Sun, 20 Mar 2005 15:07:19 +0000 (+0000) Subject: linux-find-kernel-build-link-path-to-kernel-headers-20050320 X-Git-Tag: openafs-devel-1_5_0~715 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2cfd611;p=packages%2Fo%2Fopenafs.git linux-find-kernel-build-link-path-to-kernel-headers-20050320 look in /lib/modules for a path to the kernel build instead of just in /usr/src --- diff --git a/acinclude.m4 b/acinclude.m4 index a5fb5935d..2d041795c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -115,7 +115,10 @@ case $system in if test "x$with_linux_kernel_headers" != "x"; then LINUX_KERNEL_PATH="$with_linux_kernel_headers" else - LINUX_KERNEL_PATH="/usr/src/linux-2.4" + LINUX_KERNEL_PATH="/lib/modules/`uname -r`/build" + if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then + LINUX_KERNEL_PATH="/usr/src/linux-2.4" + fi if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then LINUX_KERNEL_PATH="/usr/src/linux" fi