linux-try-more-kernel-paths-20030410
authorDerrick Brashear <shadow@dementia.org>
Thu, 10 Apr 2003 20:57:22 +0000 (20:57 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 10 Apr 2003 20:57:22 +0000 (20:57 +0000)
FIXES 1364

try /usr/src/linux-2.4 in addition to /usr/src/linux

acinclude.m4

index ac6ef5b..91a5e38 100644 (file)
@@ -101,7 +101,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"
+                  LINUX_KERNEL_PATH="/usr/src/linux-2.4"
+                  if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then
+                    LINUX_KERNEL_PATH="/usr/src/linux"
+                  fi
                 fi
                 if test -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then
                  linux_kvers=`fgrep UTS_RELEASE $LINUX_KERNEL_PATH/include/linux/version.h |awk 'BEGIN { FS="\"" } { print $[]2 }'|tail -1`