This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA] fix compilation warning in libiberty.h
- From: Adam Nemet <anemet at lnxw dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Jerome Guitton <guitton at adacore dot com>, binutils at sources dot redhat dot com
- Date: Fri, 22 Apr 2005 16:05:19 -0700
- Subject: Re: [RFA] fix compilation warning in libiberty.h
- References: <20050331132734.GA25521@adacore.com><20050331144312.GA2694@nevyn.them.org>
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