From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19690 invoked by alias); 13 May 2014 21:11:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19675 invoked by uid 89); 13 May 2014 21:11:19 -0000 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 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 13 May 2014 21:11:18 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkJyi-0003q5-UB for cygwin@cygwin.com; Tue, 13 May 2014 23:11:12 +0200 Received: from c-69-140-37-22.hsd1.md.comcast.net ([69.140.37.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 23:11:12 +0200 Received: from schulman.andrew by c-69-140-37-22.hsd1.md.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 23:11:12 +0200 To: cygwin@cygwin.com From: Andrew Schulman Subject: Re: pinfo configure problem - configure.ac (0/1) Date: Tue, 13 May 2014 21:15:00 -0000 Message-ID: References: <05u3n9l6l8pgdeuidskcplb1930mmjtu05@4ax.com> <20140513110518.GN2436@calimero.vinschen.de> <20140513115410.GP2436@calimero.vinschen.de> <537269E3.5080509@redhat.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 X-SW-Source: 2014-05/txt/msg00294.txt.bz2 > 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