]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-suse-kernel-source-path-update-20060912
authorDerrick Brashear <shadow@dementia.org>
Tue, 12 Sep 2006 20:00:09 +0000 (20:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 12 Sep 2006 20:00:09 +0000 (20:00 +0000)
no one can ever agree on anything

(cherry picked from commit 94ff5651cb84a26ab931626392908684fae913f3)

acinclude.m4

index ee364638e2bea0b7f6f83db1d901cbc80bdcdeb7..4f79c56caf5189dc480bf35cdfd3331fae726bf2 100644 (file)
@@ -122,7 +122,10 @@ case $system in
                 if test "x$with_linux_kernel_headers" != "x"; then
                   LINUX_KERNEL_PATH="$with_linux_kernel_headers"
                 else
-                  LINUX_KERNEL_PATH="/lib/modules/`uname -r`/build"
+                  LINUX_KERNEL_PATH="/lib/modules/`uname -r`/source"
+                  if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then
+                    LINUX_KERNEL_PATH="/lib/modules/`uname -r`/build"
+                  fi
                   if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then
                     LINUX_KERNEL_PATH="/usr/src/linux-2.4"
                   fi