diff --git a/acinclude.m4 b/acinclude.m4 index 84cd588535..f132f2268f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -684,10 +684,8 @@ else fi _AFS_SYSNAME=`echo $AFS_SYSNAME|sed s/XX\$/$AFS_SYSKVERS/` AFS_SYSNAME="$_AFS_SYSNAME" - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="-I${LINUX_KERNEL_PATH}/include $CPPFLAGS" - AC_TRY_COMPILE( - [#include ], + AC_TRY_KBUILD( + [], [#ifndef CONFIG_USERMODE #error not UML #endif], @@ -695,7 +693,6 @@ else if test "${ac_cv_linux_is_uml}" = yes; then _AFS_SYSNAME=`echo $AFS_SYSNAME|sed s/linux/umlinux/` fi - CPPFLAGS="$save_CPPFLAGS" AFS_SYSNAME="$_AFS_SYSNAME" ;; esac