* acconfig.h (_UNBUF_STREAM_OPT): Undefine.
* newlib.hin (_UNBUF_STREAM_OPT): Undefine. * configure.in (--enable-newlib-unbuf-stream-opt): New option. * configure: Regenerate. * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't do optimization on unbuffered stream files. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Likewise. * README: Add description about the option. * newlib.hin (_UNBUF_STREAM_OPT): Undefine. * configure.in (--enable-newlib-unbuf-stream-opt): New option. * configure: Regenerate. * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't do optimization on unbuffered stream files. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Likewise. * README: Add description about the option.
This commit is contained in:
24
newlib/configure
vendored
24
newlib/configure
vendored
@ -793,6 +793,7 @@ enable_newlib_fvwrite_in_streamio
|
||||
enable_newlib_fseek_optimization
|
||||
enable_newlib_wide_orient
|
||||
enable_newlib_nano_malloc
|
||||
enable_newlib_unbuf_stream_opt
|
||||
enable_multilib
|
||||
enable_target_optspace
|
||||
enable_malloc_debugging
|
||||
@ -1460,6 +1461,7 @@ Optional Features:
|
||||
--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
|
||||
--disable-newlib-unbuf-stream-opt disable unbuffered stream optimization in streamio
|
||||
--enable-multilib build many library versions (default)
|
||||
--enable-target-optspace optimize for space
|
||||
--enable-malloc-debugging indicate malloc debugging requested
|
||||
@ -2410,6 +2412,19 @@ else
|
||||
newlib_nano_malloc=no
|
||||
fi
|
||||
|
||||
# Check whether --enable-newlib-unbuf-stream-opt was given.
|
||||
if test "${enable_newlib_unbuf_stream_opt+set}" = set; then :
|
||||
enableval=$enable_newlib_unbuf_stream_opt; if test "${newlib_unbuf_stream_opt+set}" != set; then
|
||||
case "${enableval}" in
|
||||
yes) newlib_unbuf_stream_opt=yes ;;
|
||||
no) newlib_unbuf_stream_opt=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-unbuf-stream-opt option" "$LINENO" 5 ;;
|
||||
esac
|
||||
fi
|
||||
else
|
||||
newlib_unbuf_stream_opt=yes
|
||||
fi
|
||||
|
||||
|
||||
# Make sure we can run config.sub.
|
||||
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
||||
@ -12314,7 +12329,14 @@ fi
|
||||
|
||||
if test "${newlib_nano_malloc}" = "yes"; then
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define NEWLIB_NANO_MALLOC 1
|
||||
#define _NANO_MALLOC 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
if test "${newlib_unbuf_stream_opt}" = "yes"; then
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define _UNBUF_STREAM_OPT 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
Reference in New Issue
Block a user