[GHC] #12598: configure script: --enable-unregisterised default printed incorrectly
#12598: configure script: --enable-unregisterised default printed incorrectly -------------------------------------+------------------------------------- Reporter: mistydemeo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The help text for the --enable-unregisterised flag to configure renders incorrectly. Instead of printing the actual default, it instead prints the name of the variable holding the default: {{{ --enable-unregisterised Build an unregisterised compiler (enabled by default on platforms without registerised support) [default="$UnregisterisedDefault"] }}} This happens because the help text is generated via a call to the `AC_HELP_STRING` macro: {{{#!m4 AC_HELP_STRING([--enable-unregisterised], [Build an unregisterised compiler (enabled by default on platforms without registerised support) [default="$UnregisterisedDefault"]]) }}} According to the autoconf documentation, "the second argument of `AS_HELP_STRING` is treated as a whitespace separated list of text to be reformatted, and is not subject to macro expansion." (https://www.gnu.org /savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Pretty- Help-Strings.html) - hence why the name of the variable is included in the output instead of its value. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12598> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12598: configure script: --enable-unregisterised default printed incorrectly -------------------------------------+------------------------------------- Reporter: mistydemeo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ryan Scott <ryan.gl.scott@…>): In [changeset:"042c5930bff239337d21836db5b8d0ebf0180ffc/ghc" 042c5930/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="042c5930bff239337d21836db5b8d0ebf0180ffc" Add test for #12589 Commit af21e38855f7d517774542b360178b05045ecb08 fixed #12598. Let's add a test to make sure it stays fixed. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12598#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12598: configure script: --enable-unregisterised default printed incorrectly -------------------------------------+------------------------------------- Reporter: mistydemeo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): Oops, that was meant for #12589 (I accidentally switched the 9 and the 8 in the commit description). Please ignore the above automessage. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12598#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC