fix-linux-headers-updating-in-configure-20010629
[openafs.git] / configure.in
index 25d6aff..4b4e209 100644 (file)
@@ -54,8 +54,8 @@ case $system in
                else
                        LINUX_KERNEL_PATH="/usr/src/linux"
                fi
-               if test -f "$with_linux_kernel_headers/include/linux/version.h"; then
-                linux_kvers=`fgrep UTS_RELEASE $with_linux_kernel_headers/include/linux/version.h |awk 'BEGIN { FS="\"" } { print $2 }'`
+               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 }'`
                 if test "x$linux_kvers" = "x"; then
                  AC_MSG_ERROR(Linux headers lack version definition)
                  exit 1
@@ -94,6 +94,10 @@ case $system in
                MKAFS_OSTYPE=DARWIN
                 AC_MSG_RESULT(ppc_darwin)
                 ;;
+       *-freebsd*)
+               MKAFS_OSTYPE=FBSD
+               AC_MSG_RESULT(i386_fbsd)
+               ;;
         *)
                 AC_MSG_RESULT($system)
                 ;;