strcase.m4 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # strcase.m4 serial 11
  2. dnl Copyright (C) 2002, 2005-2017 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. AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
  14. AC_CHECK_FUNCS([strcasecmp])
  15. if test $ac_cv_func_strcasecmp = no; then
  16. HAVE_STRCASECMP=0
  17. fi
  18. ])
  19. AC_DEFUN([gl_FUNC_STRNCASECMP],
  20. [
  21. AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
  22. AC_CHECK_FUNCS([strncasecmp])
  23. if test $ac_cv_func_strncasecmp = yes; then
  24. HAVE_STRNCASECMP=1
  25. else
  26. HAVE_STRNCASECMP=0
  27. fi
  28. AC_CHECK_DECLS([strncasecmp])
  29. if test $ac_cv_have_decl_strncasecmp = no; then
  30. HAVE_DECL_STRNCASECMP=0
  31. fi
  32. ])
  33. # Prerequisites of lib/strcasecmp.c.
  34. AC_DEFUN([gl_PREREQ_STRCASECMP], [
  35. :
  36. ])
  37. # Prerequisites of lib/strncasecmp.c.
  38. AC_DEFUN([gl_PREREQ_STRNCASECMP], [
  39. :
  40. ])