From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16524 invoked by alias); 26 Feb 2004 00:43:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16515 invoked from network); 26 Feb 2004 00:43:52 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 26 Feb 2004 00:43:52 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 73CE947D62; Wed, 25 Feb 2004 16:43:52 -0800 (PST) Date: Thu, 26 Feb 2004 00:43:00 -0000 From: Joel Brobecker To: Mark Kettenis Cc: cagney@gnu.org, gdb-patches@sources.redhat.com Subject: Re: [RFA/RFC] (hppa/tui) Fix build failure due to missing wborder Message-ID: <20040226004352.GA3425@gnat.com> References: <20040223220334.GH1273@gnat.com> <403BDFA0.5000504@gnu.org> <20040225011811.GG542@gnat.com> <20040225020942.GA23098@nevyn.them.org> <20040225185946.GI1105@gnat.com> <200402252030.i1PKUEav041255@elgar.kettenis.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <200402252030.i1PKUEav041255@elgar.kettenis.dyndns.org> User-Agent: Mutt/1.4i X-SW-Source: 2004-02/txt/msg00746.txt.bz2 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 522 > 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. Thanks for the tip! I checked the following change in. 2004-02-25 J. Brobecker * configure.in: Refine the previous change. * configure: Regenerate. Tested on hpux and x86-linux. -- Joel --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="configure.in.diff" Content-length: 1267 Index: configure.in =================================================================== RCS file: /cvs/src/src/gdb/configure.in,v retrieving revision 1.148 diff -u -p -r1.148 configure.in --- configure.in 25 Feb 2004 20:09:46 -0000 1.148 +++ configure.in 26 Feb 2004 00:41:27 -0000 @@ -152,9 +152,8 @@ AC_SEARCH_LIBS(initscr, [ncurses Hcurses # additional library. So if we did not find this function inside # the curses library, try some alternate libraries we know might # provide it. -AC_CHECK_FUNC(wborder, [wborder_available=yes], - [AC_SEARCH_LIBS(wborder, [cur_colr], [wborder_available=yes], - [AC_MSG_WARN([no wborder function found])])]) +AC_SEARCH_LIBS(wborder, [cur_colr], [], + [AC_MSG_WARN([wborder function not found, tui will be disabled])]) # Enable TUI. AC_ARG_ENABLE(tui, @@ -167,7 +166,7 @@ AC_ARG_ENABLE(tui, esac],enable_tui=yes) if test x"$enable_tui" = xyes; then if test -d $srcdir/tui; then - if test "$ac_cv_search_initscr" != no -a "$wborder_available" = "yes"; then + if test "$ac_cv_search_initscr" != no -a "$ac_cv_search_wborder" != no; then CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" --nFreZHaLTZJo0R7j--