strcase.m4 943 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # strcase.m4 serial 4
  2. dnl Copyright (C) 2002, 2005-2006 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_STRCASE],
  7. [
  8. gl_FUNC_STRCASECMP
  9. gl_FUNC_STRNCASECMP
  10. ])
  11. AC_DEFUN([gl_FUNC_STRCASECMP],
  12. [
  13. dnl No known system has a strcasecmp() function that works correctly in
  14. dnl multibyte locales. Therefore we use our version always.
  15. AC_LIBOBJ(strcasecmp)
  16. gl_PREREQ_STRCASECMP
  17. ])
  18. AC_DEFUN([gl_FUNC_STRNCASECMP],
  19. [
  20. AC_REPLACE_FUNCS(strncasecmp)
  21. AC_CHECK_DECLS(strncasecmp)
  22. if test $ac_cv_func_strncasecmp = no; then
  23. gl_PREREQ_STRNCASECMP
  24. fi
  25. ])
  26. # Prerequisites of lib/strcasecmp.c.
  27. AC_DEFUN([gl_PREREQ_STRCASECMP], [
  28. AC_REQUIRE([gl_FUNC_MBRTOWC])
  29. :
  30. ])
  31. # Prerequisites of lib/strncasecmp.c.
  32. AC_DEFUN([gl_PREREQ_STRNCASECMP], [
  33. :
  34. ])