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