On Sun, Apr 10, 2005 at 05:52:01PM +0200, Gabriel Dos Reis wrote: > Daniel Jacobowitz <[EMAIL PROTECTED]> writes: > > | On Sun, Apr 10, 2005 at 05:02:36PM +0200, Gabriel Dos Reis wrote: > | > > | > Hi, > | > > | > The following is from libibtery.h > | > > | > /* HAVE_DECL_* is a three-state macro: undefined, 0 or 1. If it is > | > undefined, we haven't run the autoconf check so provide the > | > declaration without arguments. If it is 0, we checked and failed > | > to find the declaration so provide a fully prototyped one. If it > | > is 1, we found it so don't provide any declaration at all. */ > | > > | > However, that appears to be incorrect because what configure output in > | > config.h is not HAVE_DECL_XXX, but HAVE_XXX. Therefore, it appears > | > that libiberty would be misdetecting declarations -- it thinks > | > something is missing, whereas in fact it is not. > | > > | > Am I missing something here? > | > | Try adding an AC_CHECK_DECLS call for basename. That will define > | HAVE_DECL_BASENAME. > > Thanks. I tried it, but I did not have much success -- configure is > outputting HAVE_BASENAME instead of HAVE_DECL_BASENAME.
You should have both; did you rerun autoheader? AC_CHECK_FUNCS will genereate HAVE_BASENAME. -- Daniel Jacobowitz CodeSourcery, LLC