diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-10-18 08:43:05 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-10-18 08:43:05 +0000 |
commit | e4aa6ea1121d24409f9fd5068ce4d3823d4eafc1 (patch) | |
tree | b8550467b0f4a9e5be80d08a00573176a11929ff /newlib/configure | |
parent | 05b637e340d536f7c0d3aba51659bef31d191668 (diff) | |
download | newlib-e4aa6ea1121d24409f9fd5068ce4d3823d4eafc1.zip newlib-e4aa6ea1121d24409f9fd5068ce4d3823d4eafc1.tar.gz newlib-e4aa6ea1121d24409f9fd5068ce4d3823d4eafc1.tar.bz2 |
* 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')
-rwxr-xr-x | newlib/configure | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/newlib/configure b/newlib/configure index e05a2d3..958a5cd 100755 --- a/newlib/configure +++ b/newlib/configure @@ -788,6 +788,7 @@ enable_newlib_iconv_from_encodings enable_newlib_iconv_to_encodings enable_newlib_iconv_external_ccs enable_newlib_atexit_dynamic_alloc +enable_newlib_global_atexit enable_newlib_reent_small enable_newlib_fvwrite_in_streamio enable_newlib_fseek_optimization @@ -1457,6 +1458,7 @@ Optional Features: --enable-newlib-iconv-to-encodings enable specific comma-separated list of \"to\" iconv encodings to be built-in --enable-newlib-iconv-external-ccs enable capabilities to load external CCS files for iconv --disable-newlib-atexit-dynamic-alloc disable dynamic allocation of atexit entries + --enable-newlib-global-atexit enable atexit data structure as global --enable-newlib-reent-small enable small reentrant struct support --disable-newlib-fvwrite-in-streamio disable iov in streamio --disable-newlib-fseek-optimization disable fseek optimization @@ -2352,6 +2354,19 @@ else newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc} fi +# Check whether --enable-newlib-global-atexit was given. +if test "${enable_newlib_global_atexit+set}" = set; then : + enableval=$enable_newlib_global_atexit; if test "${newlib_global_atexit+set}" != set; then + case "${enableval}" in + yes) newlib_global_atexit=yes ;; + no) newlib_global_atexit=no ;; + *) as_fn_error $? "bad value ${enableval} for newlib-global-atexit option" "$LINENO" 5 ;; + esac + fi +else + newlib_global_atexit=no +fi + # Check whether --enable-newlib-reent-small was given. if test "${enable_newlib_reent_small+set}" = set; then : enableval=$enable_newlib_reent_small; case "${enableval}" in @@ -12321,6 +12336,13 @@ _ACEOF fi +if test "${newlib_global_atexit}" = "yes"; then +cat >>confdefs.h <<_ACEOF +#define _REENT_GLOBAL_ATEXIT 1 +_ACEOF + +fi + if test "${newlib_fvwrite_in_streamio}" = "yes"; then cat >>confdefs.h <<_ACEOF #define _FVWRITE_IN_STREAMIO 1 |