X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=m4%2Ffnmatch.m4;h=312990dc5afa7edcba405190df8186116cd938f9;hb=f0429c4a22e5b19eefbdbc684e9e175a1cca9a3e;hp=5654a41411959866b88e9995353b4fc3fee73466;hpb=8793fc2ca29e8ad7f04730c05e9446f8c12fed3d;p=chaz%2Ftar diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 index 5654a41..312990d 100644 --- a/m4/fnmatch.m4 +++ b/m4/fnmatch.m4 @@ -7,7 +7,8 @@ AC_DEFUN(AC_FUNC_FNMATCH, # Some versions of Solaris or SCO have a broken or incompatible fnmatch. # So we run a test program. If we are cross-compiling, take no chance. # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. -[AC_TRY_RUN([main() { +[AC_TRY_RUN([#include +main() { exit (fnmatch ("a*", "abc", 0) != 0 || fnmatch("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0); }],