Fix the configure CONFIG_* option detection
[zfs.git] / config / kernel.m4
index 90dc6c0..5eaa4d8 100644 (file)
@@ -380,9 +380,7 @@ dnl #
 AC_DEFUN([ZFS_LINUX_CONFIG],
        [AC_MSG_CHECKING([whether Linux was built with CONFIG_$1])
        ZFS_LINUX_TRY_COMPILE([
-               #ifndef AUTOCONF_INCLUDED
-               #include <linux/config.h>
-               #endif
+               #include <linux/module.h>
        ],[
                #ifndef CONFIG_$1
                #error CONFIG_$1 not #defined