diff options
| author | Ton Voon <ton.voon@opsera.com> | 2010-06-24 10:02:31 +0100 |
|---|---|---|
| committer | Ton Voon <ton.voon@opsera.com> | 2010-06-24 10:02:31 +0100 |
| commit | 342f3b403e888800fb1b0502bf4e0d8268358573 (patch) | |
| tree | 47a0031fcf01edae3131fc147304d14f6f2aee20 /gl/m4/eealloc.m4 | |
| parent | f789a37b057b6f34820ea4f95d63f53b5a84c980 (diff) | |
| download | monitoring-plugins-342f3b403e888800fb1b0502bf4e0d8268358573.tar.gz | |
Added unsetenv and setenv from gnulib
Diffstat (limited to 'gl/m4/eealloc.m4')
| -rw-r--r-- | gl/m4/eealloc.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gl/m4/eealloc.m4 b/gl/m4/eealloc.m4 new file mode 100644 index 00000000..63dd9202 --- /dev/null +++ b/gl/m4/eealloc.m4 | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # eealloc.m4 serial 2 | ||
| 2 | dnl Copyright (C) 2003, 2009, 2010 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 | |||
| 7 | AC_DEFUN([gl_EEALLOC], | ||
| 8 | [ | ||
| 9 | AC_REQUIRE([gl_EEMALLOC]) | ||
| 10 | AC_REQUIRE([gl_EEREALLOC]) | ||
| 11 | AC_REQUIRE([AC_C_INLINE]) | ||
| 12 | ]) | ||
| 13 | |||
| 14 | AC_DEFUN([gl_EEMALLOC], | ||
| 15 | [ | ||
| 16 | _AC_FUNC_MALLOC_IF( | ||
| 17 | [gl_cv_func_malloc_0_nonnull=1], | ||
| 18 | [gl_cv_func_malloc_0_nonnull=0]) | ||
| 19 | AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull], | ||
| 20 | [If malloc(0) is != NULL, define this to 1. Otherwise define this | ||
| 21 | to 0.]) | ||
| 22 | ]) | ||
| 23 | |||
| 24 | AC_DEFUN([gl_EEREALLOC], | ||
| 25 | [ | ||
| 26 | _AC_FUNC_REALLOC_IF( | ||
| 27 | [gl_cv_func_realloc_0_nonnull=1], | ||
| 28 | [gl_cv_func_realloc_0_nonnull=0]) | ||
| 29 | AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull], | ||
| 30 | [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this | ||
| 31 | to 0.]) | ||
| 32 | ]) | ||
