aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-07-22 14:10:38 -0700
committerBrian Behlendorf <[email protected]>2011-07-22 15:07:16 -0700
commit0da78696904f6e0e7cfedd2a0296879f47717f4f (patch)
treea00f5e6c6fbce5ba0c2ef69fc59953c2e58c7308 /configure
parent22872ff5da0d12fe393e40d3e4b3c5a58d93e360 (diff)
Fix the configure CONFIG_* option detection
The latest kernels no longer define AUTOCONF_INCLUDED which was being used to detect the new style autoconf.h kernel configure options. This results in the CONFIG_* checks always failing incorrectly for newer kernels. The fix for this is a simplification of the testing method. Rather than attempting to explicitly include to renamed config header. It is simpler to unconditionally include <linux/module.h> which must pick up the correctly named header. Signed-off-by: Brian Behlendorf <[email protected]> Closes #320
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 4 insertions, 12 deletions
diff --git a/configure b/configure
index 381e22dd2..cb17d5cbc 100755
--- a/configure
+++ b/configure
@@ -12233,9 +12233,7 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
- #ifndef AUTOCONF_INCLUDED
- #include <linux/config.h>
- #endif
+ #include <linux/module.h>
int
main (void)
@@ -12306,9 +12304,7 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
- #ifndef AUTOCONF_INCLUDED
- #include <linux/config.h>
- #endif
+ #include <linux/module.h>
int
main (void)
@@ -16507,9 +16503,7 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
- #ifndef AUTOCONF_INCLUDED
- #include <linux/config.h>
- #endif
+ #include <linux/module.h>
int
main (void)
@@ -16580,9 +16574,7 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
- #ifndef AUTOCONF_INCLUDED
- #include <linux/config.h>
- #endif
+ #include <linux/module.h>
int
main (void)