(AC_FUNC_MATCH): Detect d*/*1 vs d/s/1 bug.

This commit is contained in:
Paul Eggert
2000-10-24 06:18:37 +00:00
parent 85e724550f
commit a6f11d4092

View File

@@ -11,6 +11,7 @@ AC_DEFUN(AC_FUNC_FNMATCH,
[AC_TRY_RUN([#include <fnmatch.h>
main() {
exit (fnmatch ("a*", "abc", 0) != 0
|| fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) != FNM_NOMATCH
|| fnmatch("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
|| fnmatch("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
|| fnmatch("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0);