This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/RFC] (hppa/tui) Fix build failure due to missing wborder
Date: Wed, 25 Feb 2004 10:59:46 -0800
From: Joel Brobecker <brobecker@gnat.com>
--7iMSBzlTiPOCCT2k
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Tue, Feb 24, 2004 at 09:09:42PM -0500, Daniel Jacobowitz wrote:
> Try this instead:
> AC_CHECK_FUNC(wborder, [],
> [AC_SEARCH_LIBS(wborder, [cur_colr], [],
> [AC_MSG_WARN([...])])])
Very clever! I didn't know that AC_CHECK_FUNC was using $LIBS to
link its test program...
Except that AC_SEARCH_LIBS is clever enough itself. It first tries to
find the function in the libraries already present.
AC_SEARCH_LIBS (initscr, [ncurses ...]), [], [AC_MSG_WARN...])
AC_SEARCH_LIBS (wborder, cur_clr, [], [AC_MSG_WARN...])
Should do exactly what you want.
Mark