3 dnl Determine whether to add fnmatch.o to LIBOBJS and to
4 dnl define fnmatch to rpl_fnmatch.
6 dnl If you use this macro in a package, you should
7 dnl add the following two lines to acconfig.h:
8 dnl /* Define to rpl_fnmatch if the replacement function should be used. */
12 AC_DEFUN(jm_FUNC_FNMATCH,
14 AC_REQUIRE([AM_GLIBC])
16 if test $ac_cv_func_fnmatch_works = no \
17 && test $ac_cv_gnu_library = no; then
18 LIBOBJS="$LIBOBJS fnmatch.o"
19 AC_DEFINE_UNQUOTED(fnmatch, rpl_fnmatch)