Configure doesn't check for a 'curses' lib in the readline test #433

Open
parrot opened this Issue Dec 23, 2009 · 1 comment

Projects

None yet

1 participant

@parrot
parrot commented Dec 23, 2009

Parrot doesn't build with readline support on OpenSolaris because readline needs tgetnum et al. from Solaris' "curses" lib. The configure script tries to fall back to "ncurses" which still fails on OSOL.

Originally http://trac.parrot.org/parrot/ticket/1390 by carlin

@parrot
parrot commented Dec 23, 2009

1314 byte attachment from carlin
at http://trac.parrot.org/parrot/raw-attachment/ticket/1390/check-for-curses-lib.patch

```Index: config/auto/readline.pm

--- config/auto/readline.pm (revision 43076)
+++ config/auto/readline.pm (working copy)
@@ -61,6 +61,7 @@
else {
# a second chance with ncurses
$extra_libs .= ' ';

  •    my $tmp = $extra_libs;
     $extra_libs .= $self->_select_lib( {
         conf            => $conf,
         osname          => $osname,
    
    @@ -75,6 +76,23 @@
    }
    _handle_readline($conf, $extra_libs);
    }
  •    else {
    
  •        # a third chance with curses
    
  •        $extra_libs = $tmp . $self->_select_lib( {
    
  •            conf            => $conf,
    
  •            osname          => $osname,
    
  •            cc              => $cc,
    
  •            win32_nongcc    => 'curses.lib',
    
  •            default         => '-lcurses',
    
  •        } );
    
  •        eval { $conf->cc_build( q{}, $extra_libs) };
    
  •        if ( !$@ ) {
    
  •            if ( $conf->cc_run() ) {
    
  •                $has_readline = $self->_evaluate_cc_run($verbose);
    
  •            }
    
  •            _handle_readline($conf, $extra_libs);
    
  •        }
    
  •    }
    
    }
    $conf->data->set( HAS_READLINE => $has_readline );
    $self->set_result($has_readline ? 'yes' : 'no');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment