From: Paul Eggert Date: Thu, 25 Jan 2007 00:43:59 +0000 (+0000) Subject: * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b68a5fab9f41947904984f853647151b9e77fcf4;p=pspp * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once. --- diff --git a/ChangeLog b/ChangeLog index de48bf34ee..87ad9f5b01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361. Don't use 'exit'; just return from 'main'. + (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once. * lib/fnmatch_.h: Readjust white space and comments to match glibc, to avoid spurious diffs. diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 index a24452d1d8..3778742c9f 100644 --- a/m4/fnmatch.m4 +++ b/m4/fnmatch.m4 @@ -83,8 +83,8 @@ AC_DEFUN([_AC_LIBOBJ_FNMATCH], [AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_TYPE_MBSTATE_T])dnl AC_CHECK_DECLS([isblank], [], [], [#include ]) -AC_CHECK_FUNCS([btowc iswctype mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy]) -AC_CHECK_HEADERS([wctype.h]) +AC_CHECK_FUNCS_ONCE([btowc iswctype mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy]) +AC_CHECK_HEADERS_ONCE([wctype.h]) AC_LIBOBJ([fnmatch]) FNMATCH_H=fnmatch.h ])# _AC_LIBOBJ_FNMATCH