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

Daniel Jacobowitz
2004-02-25T02:09:47Z

On Tue, Feb 24, 2004 at 05:18:11PM -0800, Joel Brobecker wrote:
> > 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"?
>
> That's something I thought about, but then what happens if we found
> both initscr and wborder in the same library, for instance "ncurses".
> We would probably end up linking with the same -l<...> switch twice.
> Not very elegant. Would you prefer this approach, though? I figured
> that, since Hcurses is already HPUX-specific AFAIK, we might as well
> take advantage of that knowledge and add -lcur_colr as I did. On the
> other hand, mutter something about HP eventually finding their way to
> the bright side of the force and putting wborder back inside Hcurses...
>
> I prefer your suggestion too, shall I go ahead? Any objection?

Try this instead:
AC_CHECK_FUNC(wborder, [],
[AC_SEARCH_LIBS(wborder, [cur_colr], [],
[AC_MSG_WARN([...])])])

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer