diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-03-16 00:32:13 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-03-16 00:32:13 +0300 |
commit | 826b5591dd604ef68abadff7c8cb7c19e221b9af (patch) | |
tree | 1d1cd77cbe1ec91d5bc33e3879db3efdddbfc8c4 /newlib/configure.in | |
parent | 14ba5e14d9226cb4dd1b2a72781ee02e9f2bf8a2 (diff) |
2007-03-15 Jeff Johnston <jjohnstn@redhat.com>
* configure.in: Add new --enable-newlib-reent-small option.
* configure: Regenerated.
* acconfig.h: Add _WANT_REENT_SMALL.
* newlib.hin: Regenerated minus PACKAGE macros to add
_WANT_REENT_SMALL macro.
* libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
if not already set.
* libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
there is no buffer.
* libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
use reentrant pointer passed in when resetting the file
pointer to one of the std streams.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r-- | newlib/configure.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in index 2b8dc7a9b..378dd942c 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -97,6 +97,15 @@ AC_ARG_ENABLE(newlib-atexit-dynamic-alloc, esac fi], [newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}])dnl +dnl Support --enable-newlib-reent-small +AC_ARG_ENABLE(newlib-reent-small, +[ --enable-newlib-reent-small enable small reentrant struct support], +[case "${enableval}" in + yes) newlib_reent_small=yes;; + no) newlib_reent_small=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for newlib-reent-small option) ;; + esac], [newlib_reent_small=])dnl + NEWLIB_CONFIGURE(.) dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and @@ -232,6 +241,10 @@ if test "${newlib_io_pos_args}" = "yes"; then AC_DEFINE_UNQUOTED(_WANT_IO_POS_ARGS) fi +if test "${newlib_reent_small}" = "yes"; then +AC_DEFINE_UNQUOTED(_WANT_REENT_SMALL) +fi + if test "${newlib_mb}" = "yes"; then AC_DEFINE_UNQUOTED(_MB_CAPABLE) AC_DEFINE_UNQUOTED(_MB_LEN_MAX,8) |