#1395: let ./configure check for a GNUreadline framework
--------------------------------+-------------------------------------------
    Reporter:  [EMAIL PROTECTED]    |        Owner:             
        Type:  feature request  |       Status:  reopened   
    Priority:  normal           |    Milestone:  6.8 branch 
   Component:  Build System     |      Version:  6.8        
    Severity:  normal           |   Resolution:             
    Keywords:                   |   Difficulty:  Easy (1 hr)
          Os:  MacOS X          |     Testcase:             
Architecture:  Multiple         |  
--------------------------------+-------------------------------------------
Comment (by guest):

 In order to use my local GNUreadline framework I had to change
 `libraries/readline/configure.ac` (attached) and
 `libraries/readline/include/HsReadline.h`. The case distinction in the
 latter file did not work because recursively included files like
 `readline/rlstdc.h` did not have the `GNUreadline/` prefix.

 (I wonder if (or why) this worked for a global `GNUreadline.framework` in
 `/Libary/Frameworks/`.)

 So I left `HsReadline.h` as:
 {{{
 #ifndef HSREADLINE_H
 #define HSREADLINE_H

 #include "HsReadlineConfig.h"
 #include <stdio.h>
 #include <readline/readline.h>
 #include <readline/history.h>

 extern void hs_rl_message (const char *s);

 #endif
 }}}

 Regarding `configure.ac` I have no idea how to best check first for a
 global framework and then for a local one and if `READLINE_CFLAGS` and
 `READLINE_LDFLAGS` need to be extended or can be simply set.

 I'm also not sure if the modified file `HsReadline.h` works now with a
 global framework or if `READLINE_CFLAGS` has to be set to
 `-I/Library/Frameworks/GNUreadline.framework/Headers`, too.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1395#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to