delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/13/17:11:35

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epa DOT 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 AT 4ax DOT com> <20140513110518 DOT GN2436 AT calimero DOT vinschen DOT de> <ui14n9t5gv0sepatqtpocqqlodgcve9gi3 AT 4ax DOT com> <20140513115410 DOT GP2436 AT calimero DOT vinschen DOT de> <sfe4n955rf2f5571oepq2l0tffi4hr1l4b AT 4ax DOT com> <537269E3 DOT 5080509 AT redhat DOT com> <err4n99d6s6t1o1bebv4rf50p9vt7qhh2l AT 4ax DOT com> <537275F3 DOT 6070108 AT redhat DOT com>
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019