autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoconf-2.52 AC_FUNC_FNMATCH bug


From: Bruno Haible
Subject: autoconf-2.52 AC_FUNC_FNMATCH bug
Date: Fri, 21 Dec 2001 18:43:34 +0100 (CET)

Hi,

The AC_FUNC_FNMATCH in autoconf-2.52 refers to FNM_FILE_NAME and
FNM_LEADING_DIR. But the Linux man page says

    FNM_FILE_NAME     This is a GNU synonym for FNM_PATHNAME.
    FNM_LEADING_DIR   a GNU extension

And indeed, SUSV2 specifies only the flags
    FNM_NOMATCH, FNM_PATHNAME, FNM_PERIOD, FNM_NOESCAPE.
Likewise for the newest POSIX.

So this test effectively excludes all non-GNU implementations of fnmatch.
As such, the macro ought to be renamed AC_FUNC_FNMATCH_GNU or something
like that.

The real AC_FUNC_FNMATCH should only test whether the standard flags work.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]