From: Bruno Haible Date: Sat, 5 Feb 2011 12:52:41 +0000 (+0100) Subject: New module 'wmemchr', part 3. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=248223b210c479e6e4fbd31e180c5eda4fd7a6dc;p=pspp New module 'wmemchr', part 3. --- diff --git a/m4/wmemchr.m4 b/m4/wmemchr.m4 index 9a52b34f2d..b2a2052918 100644 --- a/m4/wmemchr.m4 +++ b/m4/wmemchr.m4 @@ -6,5 +6,10 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_WMEMCHR], [ - AC_REPLACE_FUNCS([wmemchr]) + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([wmemchr]) + if test $ac_cv_func_wmemchr = no; then + HAVE_WMEMCHR=0 + AC_LIBOBJ([wmemchr]) + fi ])