* m4/Makefile.am: new version of file
[findutils.git] / m4 / fnmatch.m4
blobc560fd2fa19c189e96fd27d39fba0f91dc5dd994
1 #serial 2
3 dnl Determine whether to add fnmatch.o to LIBOBJS and to
4 dnl define fnmatch to rpl_fnmatch.
5 dnl
7 AC_DEFUN(jm_FUNC_FNMATCH,
9   AC_REQUIRE([AM_GLIBC])
10   AC_FUNC_FNMATCH
11   if test $ac_cv_func_fnmatch_works = no \
12       && test $ac_cv_gnu_library = no; then
13     AC_SUBST(LIBOBJS)
14     LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15     AC_DEFINE_UNQUOTED(fnmatch, rpl_fnmatch,
16       [Define to rpl_fnmatch if the replacement function should be used.])
17   fi