Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#665 Configure scripts don't search libtinfo for tgetent

build problems
closed-fixed
Sam Steingold
None
5
2014-05-11
2014-05-05
Jason Miller
No

--with-readline requires termcap compatible information. The configure scripts search libncurses and libtermcap, but not libtinfo, which is an increasingly common place to find things. I couldn't quite figure out how the config scripts are generated, but merely adding tinfo to AC_SEARCH_LIBS in termcap.m4 should generate the right thing.

I manually patched two configure scripts to search for libtinfo, and can report that it works just fine.

--- a/src/configure
+++ b/src/configure
@@ -28613,7 +28613,7 @@ return tgetent ();
return 0;
}
_ACEOF
-for ac_lib in '' ncurses termcap; do
+for ac_lib in '' ncurses termcap tinfo; do
if test -z "$ac_lib"; then
ac_res="none required"
else
--- a/modules/readline/configure
+++ b/modules/readline/configure
@@ -3783,7 +3783,7 @@ return tgetent ();
return 0;
}
_ACEOF
-for ac_lib in '' ncurses termcap; do
+for ac_lib in '' ncurses termcap tinfo; do
if test -z "$ac_lib"; then
ac_res="none required"
else

Discussion

  • Sam Steingold
    Sam Steingold
    2014-05-05

    which platform lacks libncurses but has libtinfo?
    thanks!

     
  • Sam Steingold
    Sam Steingold
    2014-05-11

    • status: open --> closed-fixed
    • assigned_to: Sam Steingold