Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8c9fd20
)
updated the configure test for fnmatch() to see if FNM_PATHNAME is
author
Andrew Tridgell
<tridge@samba.org>
Wed, 27 Oct 1999 13:17:16 +0000
(13:17 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 27 Oct 1999 13:17:16 +0000
(13:17 +0000)
working correctly.
configure.in
patch
|
blob
|
blame
|
history
diff --git
a/configure.in
b/configure.in
index
6c411d6
..
ab2ccc3
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-57,7
+57,8
@@
AC_CHECK_FUNCS(strlcat strlcpy)
AC_CACHE_CHECK([for working fnmatch],rsync_cv_HAVE_FNMATCH,[
AC_TRY_RUN([#include <fnmatch.h>
-main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }],
+main() { exit((fnmatch("*.o", "x.o", FNM_PATHNAME) == 0 &&
+ fnmatch("a/b/*", "a/b/c/d", FNM_PATHNAME) != 0) ? 0: 1); }],
rsync_cv_HAVE_FNMATCH=yes,rsync_cv_HAVE_FNMATCH=no,rsync_cv_HAVE_FNMATCH=cross)])
if test x"$rsync_cv_HAVE_FNMATCH" = x"yes"; then
AC_DEFINE(HAVE_FNMATCH)