]> git.proxmox.com Git - mirror_zfs.git/commit - config/zfs-build.m4
Make --enable-debug fail when given bogus args
authorRichard Yao <richard.yao@clusterhq.com>
Tue, 23 Sep 2014 17:31:33 +0000 (13:31 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Aug 2017 17:16:04 +0000 (13:16 -0400)
commit6f174823cef105860a11f757f092942653c17869
treeb621bb3e7493c4bc10c7aba1efa9039f28630e09
parent1e0457e7f5384b0328ea499083120dd191d80c90
Make --enable-debug fail when given bogus args

Currently, bogus options to --enable-debug become --disable-debug. That
means that passing --enable-debug=true is analogous to --disable-debug,
but the result is counterintuitive. We switch to AS_CASE to allow us to
fail when given a bogus option.

Also, we modify the text printed to clarify that --enable-debug enables
assertions.

Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@clusterhq.com>
Closes #2734
config/zfs-build.m4