diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-09-23 20:23:59 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-09-23 20:23:59 +0000 |
commit | 588034d1015147066e3ca45506eda4c9b5ef976d (patch) | |
tree | 99fad2450c08a3dd056153c7f65646a57b40de10 /m4 | |
parent | a40376f4c53ca668aa1625f1d92fe74ff37ff4b5 (diff) | |
download | coreutils-588034d1015147066e3ca45506eda4c9b5ef976d.tar.xz |
(_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
bug reported by Jim Meyering.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/fnmatch.m4 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 index bca15add1..863265151 100644 --- a/m4/fnmatch.m4 +++ b/m4/fnmatch.m4 @@ -27,9 +27,15 @@ AC_DEFUN([_AC_FUNC_FNMATCH_IF], # include <fnmatch.h> # define y(a, b, c) (fnmatch (a, b, c) == 0) # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) + static int + fnm (char const *pattern, char const *string, int flags) + { + return fnmatch (pattern, string, flags); + } ], [exit - (!(y ("a*", "abc", 0) + (!((fnm ? fnm : fnmatch) ("a*", "", 0) == FNM_NOMATCH + && y ("a*", "abc", 0) && n ("d*/*1", "d/s/1", FNM_PATHNAME) && y ("a\\\\bc", "abc", 0) && n ("a\\\\bc", "abc", FNM_NOESCAPE) |