Re: 3.0.6 patches

Albert Chin <[email protected]>
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
On Thu, Jul 08, 2004 at 04:03:17PM +0400, Alexander V. Lukyanov wrote:
> On Wed, Jul 07, 2004 at 11:28:30AM -0500, Albert Chin wrote:
> > 1. [acconfig.h, configure.ac]
> >    Remove use of acconfig.h (deprecated in newer versions of autoconf)
> > 2. [lib/fnmatch.h, m4/fnmatch.h, configure.ac]
> >    Drop AC_FUNC_FNMATCH and LFTP_GNU_FNMATCH in favor of
> >    AC_FUNC_FNMATCH_GNU. This removes m4/fnmatch.m4 and moves
> >    lib/fnmatch.h to lib/fnmatch_.h
> > 3. Replace custom AC__GNU_SOURCE with AC_GNU_SOURCE
> 
> I have applied the patch. Thanks!
> 
> BTW, what was the reason for fnmatch.h renaming?

From autoconf.info:
 - Macro: AC_FUNC_FNMATCH_GNU
     Behave like `AC_REPLACE_FNMATCH' (_replace_) but also test whether
     `fnmatch' supports GNU extensions.  Detect common implementation
     bugs, for example, the bugs in the GNU C Library 2.1.

 - Macro: AC_REPLACE_FNMATCH
     If the `fnmatch' function does not conform to POSIX (see
     `AC_FUNC_FNMATCH'), ask for its `AC_LIBOBJ' replacement.

     The files `fnmatch.c', `fnmatch_loop.c', and `fnmatch_.h' in the
						   ^^^^^^^^^^
     `AC_LIBOBJ' replacement directory are assumed to contain a copy of
     the source code of GNU `fnmatch'.  If necessary, this source code
     is compiled as an `AC_LIBOBJ' replacement, and the `fnmatch_.h'
     file is linked to `fnmatch.h' so that it can be included in place
     of the system `<fnmatch.h>'.

-- 
albert chin ([email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.