From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15725 invoked by alias); 25 Feb 2004 20:30:42 -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 15716 invoked from network); 25 Feb 2004 20:30:41 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 25 Feb 2004 20:30:41 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i1PKUGB3000374; Wed, 25 Feb 2004 21:30:16 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i1PKUGNx041258; Wed, 25 Feb 2004 21:30:16 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i1PKUEav041255; Wed, 25 Feb 2004 21:30:14 +0100 (CET) Date: Wed, 25 Feb 2004 20:30:00 -0000 Message-Id: <200402252030.i1PKUEav041255@elgar.kettenis.dyndns.org> From: Mark Kettenis To: brobecker@gnat.com CC: cagney@gnu.org, gdb-patches@sources.redhat.com In-reply-to: <20040225185946.GI1105@gnat.com> (message from Joel Brobecker on Wed, 25 Feb 2004 10:59:46 -0800) Subject: Re: [RFA/RFC] (hppa/tui) Fix build failure due to missing wborder References: <20040223220334.GH1273@gnat.com> <403BDFA0.5000504@gnu.org> <20040225011811.GG542@gnat.com> <20040225020942.GA23098@nevyn.them.org> <20040225185946.GI1105@gnat.com> X-SW-Source: 2004-02/txt/msg00742.txt.bz2 Date: Wed, 25 Feb 2004 10:59:46 -0800 From: Joel Brobecker --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