Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-06-19 19:58:50 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-06-19 19:58:50 +0400
commit82c19d335abd0ee957ad5c3167755a545521504a (patch)
tree6f334addf726d1047c0130a107ab1dcf75e1890b /newlib/configure
parent04f8f69cb711ae5ec609eda786b64bb0726fd5b4 (diff)
* 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.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-xnewlib/configure24
1 files changed, 23 insertions, 1 deletions
diff --git a/newlib/configure b/newlib/configure
index fe55eb115..7f6155d54 100755
--- a/newlib/configure
+++ b/newlib/configure
@@ -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