diff options
author | Andy Wingo <wingo@pobox.com> | 2009-06-19 13:01:11 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2009-06-19 13:01:11 +0200 |
commit | ffca4c2203d85bc4d9e348d77053d21112e665af (patch) | |
tree | 74de2f6d886c455186ad1ebb412d10dc30c914cb /m4/eealloc.m4 | |
parent | 5b55e29320449c8c68112129e1cadbfa7944af11 (diff) |
gnulib-tool --import canonicalize-lgpl
Diffstat (limited to 'm4/eealloc.m4')
-rw-r--r-- | m4/eealloc.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/m4/eealloc.m4 b/m4/eealloc.m4 new file mode 100644 index 000000000..3c9c0b52a --- /dev/null +++ b/m4/eealloc.m4 @@ -0,0 +1,32 @@ +# eealloc.m4 serial 2 +dnl Copyright (C) 2003, 2009 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_EEALLOC], +[ + AC_REQUIRE([gl_EEMALLOC]) + AC_REQUIRE([gl_EEREALLOC]) + AC_REQUIRE([AC_C_INLINE]) +]) + +AC_DEFUN([gl_EEMALLOC], +[ + _AC_FUNC_MALLOC_IF( + [gl_cv_func_malloc_0_nonnull=1], + [gl_cv_func_malloc_0_nonnull=0]) + AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull], + [If malloc(0) is != NULL, define this to 1. Otherwise define this + to 0.]) +]) + +AC_DEFUN([gl_EEREALLOC], +[ + _AC_FUNC_REALLOC_IF( + [gl_cv_func_realloc_0_nonnull=1], + [gl_cv_func_realloc_0_nonnull=0]) + AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull], + [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this + to 0.]) +]) |