Blame gnulib/m4/eealloc.m4

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