eealloc.m4 951 B

1234567891011121314151617181920212223242526272829303132
  1. # eealloc.m4 serial 3
  2. dnl Copyright (C) 2003, 2009-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_EEALLOC],
  7. [
  8. AC_REQUIRE([gl_EEMALLOC])
  9. AC_REQUIRE([gl_EEREALLOC])
  10. ])
  11. AC_DEFUN([gl_EEMALLOC],
  12. [
  13. _AC_FUNC_MALLOC_IF(
  14. [gl_cv_func_malloc_0_nonnull=1],
  15. [gl_cv_func_malloc_0_nonnull=0])
  16. AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull],
  17. [If malloc(0) is != NULL, define this to 1. Otherwise define this
  18. to 0.])
  19. ])
  20. AC_DEFUN([gl_EEREALLOC],
  21. [
  22. _AC_FUNC_REALLOC_IF(
  23. [gl_cv_func_realloc_0_nonnull=1],
  24. [gl_cv_func_realloc_0_nonnull=0])
  25. AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull],
  26. [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this
  27. to 0.])
  28. ])