From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24505 invoked by alias); 22 Apr 2005 23:03:12 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 24444 invoked from network); 22 Apr 2005 23:03:01 -0000 Received: from unknown (HELO smtp.lynuxworks.com) (207.21.185.24) by sourceware.org with SMTP; 22 Apr 2005 23:03:01 -0000 Received: from newbast.lynuxworks.com (pop.lnxw.com [207.21.185.6]) by smtp.lynuxworks.com (8.12.9/8.12.9) with ESMTP id j3MN2E7O008184; Fri, 22 Apr 2005 16:02:14 -0700 Received: from anemet1.lynx.com (anemet1.Lynx.COM [172.17.1.85]) by newbast.lynuxworks.com (8.12.8/8.12.8) with ESMTP id j3MN2QqS017483; Fri, 22 Apr 2005 16:02:26 -0700 Received: (from anemet@localhost) by anemet1.lynx.com (8.9.3/8.8.7) id QAA24315; Fri, 22 Apr 2005 16:05:19 -0700 From: Adam Nemet MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17001.33583.831885.170218@anemet1.lynx.com> Date: Fri, 22 Apr 2005 23:03:00 -0000 To: Daniel Jacobowitz Cc: Jerome Guitton , binutils@sources.redhat.com Subject: Re: [RFA] fix compilation warning in libiberty.h In-Reply-To: <20050331144312.GA2694@nevyn.them.org> References: <20050331132734.GA25521@adacore.com> <20050331144312.GA2694@nevyn.them.org> X-SW-Source: 2005-04/txt/msg00641.txt.bz2 Daniel Jacobowitz writes: > On Thu, Mar 31, 2005 at 03:27:34PM +0200, Jerome Guitton wrote: >> +AC_MSG_CHECKING(for a declaration for basename) >> +AC_CACHE_VAL(bfd_cv_decl_basename, >> +[AC_TRY_COMPILE([#include "sysdep.h"], >> +[#ifndef basename > > Can't this be just AC_CHECK_DECLS(basename)? The checked in version was: AC_CHECK_DECLS(basename, , , [#include "sysdep.h"]) How is this supposed to find sysdep.h? I am getting: $ grep -C basename bfd/config.log configure:9522: $? = 0 configure:9534: result: yes configure:9545: checking whether basename is declared configure:9570: gcc -c -g -O2 conftest.c >&5 conftest.c:73:20: sysdep.h: No such file or directory Adam