Make configure builtin-aware.
authorEtienne Dechamps <etienne.dechamps@ovh.net>
Tue, 17 Jul 2012 08:36:43 +0000 (10:36 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Jul 2012 20:40:18 +0000 (13:40 -0700)
commit319a99a3d440480fe9c37f637cb9cac8e0f20ded
tree22d62c05e2edde3e334484e2a0a8a0b4b2470b63
parentb2c5198b1996c9053c1bae38755f76125c8cb169
Make configure builtin-aware.

This patch adds a new option to configure: --enable-linux-builtin. When
this option is used, the following happens:

 - Compilation of kernel modules is disabled.

 - A failure to find UTS_RELEASE is followed by a suggestion to run
   "make prepare" on the kernel source tree.

This patch also adds a new test which tries to compile an empty module
as a basic toolchain sanity test. If it fails and the option was
specified, the error is followed by a suggestion to run "make scripts"
on the kernel source tree.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #851
config/kernel.m4
config/zfs-build.m4
configure