diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-10-18 12:43:05 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-10-18 12:43:05 +0400 |
commit | e4aa6ea1121d24409f9fd5068ce4d3823d4eafc1 (patch) | |
tree | b8550467b0f4a9e5be80d08a00573176a11929ff /newlib/configure.in | |
parent | 05b637e340d536f7c0d3aba51659bef31d191668 (diff) |
* configure.in (enable-newlib-global-atexit): New option.
* configure: Regenerated.
* newlib.hin (_REENT_GLOBAL_ATEXIT): Place-holder.
* README (enable-newlib-global-atexit): Description for
new option.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r-- | newlib/configure.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in index 8e742f786..d260815c1 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -115,6 +115,19 @@ AC_ARG_ENABLE(newlib-atexit-dynamic-alloc, esac fi], [newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}])dnl +dnl Support --enable-newlib-global-atexit +dnl Enable atexit data structure as global variables to save memory usage in +dnl _reent. +AC_ARG_ENABLE(newlib-global-atexit, +[ --enable-newlib-global-atexit enable atexit data structure as global], +[if test "${newlib_global_atexit+set}" != set; then + case "${enableval}" in + yes) newlib_global_atexit=yes ;; + no) newlib_global_atexit=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-global-atexit option) ;; + esac + fi], [newlib_global_atexit=no])dnl + dnl Support --enable-newlib-reent-small AC_ARG_ENABLE(newlib-reent-small, [ --enable-newlib-reent-small enable small reentrant struct support], @@ -383,6 +396,10 @@ if test "${newlib_atexit_dynamic_alloc}" = "yes"; then AC_DEFINE_UNQUOTED(_ATEXIT_DYNAMIC_ALLOC) fi +if test "${newlib_global_atexit}" = "yes"; then +AC_DEFINE_UNQUOTED(_REENT_GLOBAL_ATEXIT) +fi + if test "${newlib_fvwrite_in_streamio}" = "yes"; then AC_DEFINE_UNQUOTED(_FVWRITE_IN_STREAMIO) fi |