Re: [RFA/RFC] (hppa/tui) Fix build failure due to missing wborder

Andrew Cagney
2004-02-24T23:34:59Z

> Hello,
>
> Re: http://sources.redhat.com/ml/gdb-patches/2004-02/msg00654.html
>
> On HP/UX, the GDB build fails during the link due to a missing wborder.
> I found the symbol in libcur_colr.sl. To fix the build, I suggest the
> following change, although I could conceive that this is not the best
> way of handling this. Comments and suggestions warmly welcome.

[ditto ...]

> 2004-02-23 J. Brobecker <brobecker@gnat.com>
>
> * configure.in (LIBS): Add -lcur_colr when TUI is enabled and
> when using the HP curses library.
> * configure: Regenerate.
>
> Tested on HP/UX 11.00, and x86-linux.

I wonder, should configure be checking that wborder can be found with
something like:

AC_SEARCH_LIBS(wborder, [ncurses Hcurses cur_colr curses pdcurses], [],
[AC_MSG_WARN([no library containing wborder found])])

and then just test that both ac_cv_search_initscr and
ac_cv_search_wborder are not "no"?

Andrew