Hello,

I have installed libreadline 8.3 on the system in a way that it links with 
libtinfow, so linking with termcap should not be necessary (but I am not 100% 
on the last).

$ ldd /usr/local/lib/libreadline.so.8
        linux-vdso.so.1 (0x00007f51c555e000)
        libtinfow.so.6 => /usr/lib/libtinfow.so.6 (0x00007f51c5486000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f51c529f000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f51c5560000)

In an out-of-source/VPATH build for bash 5.3 I do 

> cd dynamic && ../configure --without-bash-malloc --with-installed-readline

which emits:

checking which library has the termcap functions... using gnutermcap
checking version of installed readline library... configure: WARNING: Could not 
test version of installed readline library.
configure: WARNING: installed readline library is too old to be linked with bash
configure: WARNING: using private bash version
checking for a BSD-compatible install... /usr/bin/install -c


and config.log contains:

configure:5741: result: using gnutermcap
configure:5774: checking version of installed readline library
configure:5833: gcc -o conftest -g -O2 -I/usr/local/include   -L./lib/termcap 
-L/usr/local/lib conftest.c  -lreadline ./lib/termcap/libtermcap.a >&5
/usr/local/lib/gcc/x86_64-pc-linux-gnu/15.1.0/../../../../x86_64-pc-linux-gnu/bin/ld:
 cannot find ./lib/termcap/libtermcap.a: No such file or directory
collect2: error: ld returned 1 exit status
configure:5833: $? = 1

Of course, ./configure cannot link with  ./lib/termcap/libtermcap.a before make 
is run!

Doing

$ make -C lib/termcap
$ ../configure --without-bash-malloc --with-installed-readline

shows

checking version of installed readline library... 8.3
checking for a BSD-compatible install... /usr/bin/install -c

The problem report is that to make ./configure --with-installed-readline detect 
libreadline on the system, first make has to be run.

Kind regards
  Дилян

Reply via email to