#8 cyassl-2.4.6: fails to configure --enable/disable-debug

closed-fixed
nobody
None
5
2013-01-31
2013-01-29
No

There is an error in m4/ax_debug.m4 which provices the --enable-debug and the --disable-debug flags. It incorrectly uses AC_ARG_ENABLE(feature, help-string, [action-if-given], [action-if-not-given]). It assumes that the action-if-given field is triggered when --enable-debug is passed and action-if-not-given is triggered if --disable-debug is given. This is a common mistake and its not how AC_ARG_ENABLE works. Rather action-if-given is triggered by *both* --enable-debug and --disable-debug while action-if-not-given is triggered if neither are given.

See http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Package-Options.html

Here's a patch to fix it. It should probably go to Brian Aker @ https://github.com/BrianAker/ddm4/

Discussion

  • Chris C
    Chris C
    2013-01-31

    • status: open --> closed-fixed