Blame gettext-tools/gnulib-m4/eealloc.m4

Packit Bot 06c835
# eealloc.m4 serial 3
Packit Bot 06c835
dnl Copyright (C) 2003, 2009-2015 Free Software Foundation, Inc.
Packit Bot 06c835
dnl This file is free software; the Free Software Foundation
Packit Bot 06c835
dnl gives unlimited permission to copy and/or distribute it,
Packit Bot 06c835
dnl with or without modifications, as long as this notice is preserved.
Packit Bot 06c835
Packit Bot 06c835
AC_DEFUN([gl_EEALLOC],
Packit Bot 06c835
[
Packit Bot 06c835
  AC_REQUIRE([gl_EEMALLOC])
Packit Bot 06c835
  AC_REQUIRE([gl_EEREALLOC])
Packit Bot 06c835
])
Packit Bot 06c835
Packit Bot 06c835
AC_DEFUN([gl_EEMALLOC],
Packit Bot 06c835
[
Packit Bot 06c835
  _AC_FUNC_MALLOC_IF(
Packit Bot 06c835
    [gl_cv_func_malloc_0_nonnull=1],
Packit Bot 06c835
    [gl_cv_func_malloc_0_nonnull=0])
Packit Bot 06c835
  AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull],
Packit Bot 06c835
    [If malloc(0) is != NULL, define this to 1.  Otherwise define this
Packit Bot 06c835
     to 0.])
Packit Bot 06c835
])
Packit Bot 06c835
Packit Bot 06c835
AC_DEFUN([gl_EEREALLOC],
Packit Bot 06c835
[
Packit Bot 06c835
  _AC_FUNC_REALLOC_IF(
Packit Bot 06c835
    [gl_cv_func_realloc_0_nonnull=1],
Packit Bot 06c835
    [gl_cv_func_realloc_0_nonnull=0])
Packit Bot 06c835
  AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull],
Packit Bot 06c835
    [If realloc(NULL,0) is != NULL, define this to 1.  Otherwise define this
Packit Bot 06c835
     to 0.])
Packit Bot 06c835
])