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

acinclude.m4

index b541d6c965c173712764240e6fe96c7ff53f9ec4..a5a6da9c08ffc89edcdc4ee8c45ede186ca7e598 100644 (file)
@@ -120,7 +120,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