diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-05-29 12:37:59 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-05-29 12:37:59 +0000 |
commit | a83263b981a6b222d6305023682e57e4a0f387c4 (patch) | |
tree | 5683cc14f025673fa879c8734855e8ef0a848afe /newlib/configure | |
parent | 6b6cafe9330dbd629ac9ba7f893d15795ee17320 (diff) | |
download | cygnal-a83263b981a6b222d6305023682e57e4a0f387c4.tar.gz cygnal-a83263b981a6b222d6305023682e57e4a0f387c4.tar.bz2 cygnal-a83263b981a6b222d6305023682e57e4a0f387c4.zip |
* configure.in (--enable-newlib-nano-malloc): New option.
* configure: Regenerated.
* libc/configure.in (--enable-newlib-nano-malloc): New option.
* libc/configure: Regenerated.
* libc/stdlib/Makefile.am (NEWLIB_NANO_MALLOC): Use.
* libc/stdlib/Makefile.in: Regenerated.
* libc/stdlib/nano-mallocr.c: New file, implementing nano
version malloc family functions.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-x | newlib/configure | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/newlib/configure b/newlib/configure index a91700c21..fe55eb115 100755 --- a/newlib/configure +++ b/newlib/configure @@ -792,6 +792,7 @@ enable_newlib_reent_small enable_newlib_fvwrite_in_streamio enable_newlib_fseek_optimization enable_newlib_wide_orient +enable_newlib_nano_malloc enable_multilib enable_target_optspace enable_malloc_debugging @@ -1458,6 +1459,7 @@ Optional Features: --disable-newlib-fvwrite-in-streamio disable iov in streamio --disable-newlib-fseek-optimization disable fseek optimization --disable-newlib-wide-orient Turn off wide orientation in streamio + --enable-newlib-nano-malloc use small-footprint nano-malloc implementation --enable-multilib build many library versions (default) --enable-target-optspace optimize for space --enable-malloc-debugging indicate malloc debugging requested @@ -2395,6 +2397,19 @@ else fi +# Check whether --enable-newlib-nano-malloc was given. +if test "${enable_newlib_nano_malloc+set}" = set; then : + enableval=$enable_newlib_nano_malloc; if test "${newlib_nano_malloc+set}" != set; then + case "${enableval}" in + yes) newlib_nano_malloc=yes ;; + no) newlib_nano_malloc=no ;; + *) as_fn_error $? "bad value ${enableval} for newlib-nano-malloc option" "$LINENO" 5 ;; + esac + fi +else + newlib_nano_malloc=no +fi + # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || @@ -12297,6 +12312,13 @@ _ACEOF fi +if test "${newlib_nano_malloc}" = "yes"; then +cat >>confdefs.h <<_ACEOF +#define NEWLIB_NANO_MALLOC 1 +_ACEOF + +fi + if test "x${iconv_encodings}" != "x" \ || test "x${iconv_to_encodings}" != "x" \ |