Re: test for basename failure

2010-11-15 Thread Eric Blake
On 11/15/2010 12:01 AM, Paul Eggert wrote: > On 11/14/2010 04:16 PM, Jerker Bäck wrote: >> Nothing to do with autoconf then? > > That's right. Though they probably need to do something more complicated > than what you suggest. Perhaps they should use gnulib's basename package; > it should do the

Re: test for basename failure

2010-11-14 Thread Paul Eggert
On 11/14/2010 04:16 PM, Jerker Bäck wrote: > Nothing to do with autoconf then? That's right. Though they probably need to do something more complicated than what you suggest. Perhaps they should use gnulib's basename package; it should do the right thing.

Re: test for basename failure

2010-11-14 Thread Jerker Bäck
One example program is GNU binutils and the BFD library As follows: configure.in : line 197 AC_CHECK_DECLS(basename) I guess, if they have added AC_CHECK_HEADERS(libgen.h) everything would have been OK. Nothing to do with autoconf then? > -Original Message- > From: Paul Eggert [mailto:]

Re: test for basename failure

2010-11-14 Thread Paul Eggert
On 11/14/2010 10:31 AM, Jerker Bäck wrote: > autoconf test for basename fails for Interix (and probably all BSDs) > > libgen.h : char * basename(char* path); (POSIX standard 1003.1-2008) > > Failure is due to libgen.h is not included by the test. > Is this deliberate for some reason? autoconf it

test for basename failure

2010-11-14 Thread Jerker Bäck
autoconf test for basename fails for Interix (and probably all BSDs) libgen.h : char * basename(char* path); (POSIX standard 1003.1-2008) Failure is due to libgen.h is not included by the test. Is this deliberate for some reason? Thanks JB