X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=stRhZNPZ+rAwGX8vOCmI15uZ1wOhRZSoBc64550AEGBrOzSWiD4Re
	Pttzn0m0yGkakOzZazx4NS+VkLT8vav9VIV54AN9Uhog2utO4AIjTaHmv/GDPZKA
	hjYWfPlu5OTiEpYrXiv3bsNOsCoIzEzP27HvWgTlR6lYQ0AWYQB/8g=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=n/X1uiCVGbhfadymkwEvRZom/f8=; b=a5VDr7pa9oN9dQDSQA1339i72Amc
	Xv8nOpA2YXQtbAul+6lhshBQaTYNIEPPDI+kV1qMdMtg349DmUBTRYVrn/hSgxEb
	BepY/Vd5bwfBqSeyICVZwsV4B/qSQFyD0PuGzylacmkhOFmVMhRs921ORNgjfEx3
	uM8zMDokgoi9fZk=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epa.gov>
Subject: Re: pinfo configure problem - configure.ac (0/1)
Date: Tue, 13 May 2014 17:11:02 -0400
Lines: 33
Message-ID: <og25n9d8s3vmasq7njj937u737r5lrhnh4@4ax.com>
References: <05u3n9l6l8pgdeuidskcplb1930mmjtu05@4ax.com> <20140513110518.GN2436@calimero.vinschen.de> <ui14n9t5gv0sepatqtpocqqlodgcve9gi3@4ax.com> <20140513115410.GP2436@calimero.vinschen.de> <sfe4n955rf2f5571oepq2l0tffi4hr1l4b@4ax.com> <537269E3.5080509@redhat.com> <err4n99d6s6t1o1bebv4rf50p9vt7qhh2l@4ax.com> <537275F3.6070108@redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Archive: encrypt
X-IsSubscribed: yes

> On 05/13/2014 01:19 PM, Andrew Schulman wrote:
> 
> > 
> > AC_CHECK_CURSES calls AC_CHECK_CURSES_COMPILE, which is the step that
> > fails.  I've included it below.  The key step seems to be that it calls
> > AC_LINK_IFELSE, with the curses libs (-lncursesw) appended to LDFLAGS.
> 
> That's a bug in AC_CHECK_CURSES_COMPILE, and should be reported to
> whoever wrote that macro.  The autoconf manual says that LDFLAGS is for
> -L options, while LIBS is for -l options.

OK.  I think the author of pinfo is long gone, but I'll submit a patch
upstream in case someone is interested.

> > 
> > dnl
> > dnl check if the curses header we found, works
> > dnl
> > AC_DEFUN([AC_CHECK_CURSES_COMPILE], [
> > 
> >     dnl save CFLAGS and LDFLAGS and set new ones
> >     CFLAGS_OLD=$CFLAGS
> >     CFLAGS="$CFLAGS $curses_includes"
> >     LDFLAGS_OLD=$LDFLAGS
> >     LDFLAGS="$LDFLAGS $curses_libs"
> 
> and this is a blatant case of using the wrong env-var for library
> probing.  s/LDFLAGS/LIBS/ on these lines, before running autoreconf, and
> that should fix it without you manually having to pass LIBS= at the
> configure command line.

Sounds good.  Thanks again.
Andrew


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

