wmempcpy.m4 644 B

123456789101112131415161718192021
  1. # wmempcpy.m4 serial 1
  2. dnl Copyright (C) 2020-2021 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. AC_DEFUN([gl_FUNC_WMEMPCPY],
  7. [
  8. AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
  9. dnl Persuade glibc <wchar.h> to declare wmempcpy().
  10. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
  11. dnl The wmempcpy() declaration in lib/wchar.in.h uses 'restrict'.
  12. AC_REQUIRE([AC_C_RESTRICT])
  13. AC_CHECK_FUNCS_ONCE([wmempcpy])
  14. if test $ac_cv_func_wmempcpy = no; then
  15. HAVE_WMEMPCPY=0
  16. fi
  17. ])