summaryrefslogtreecommitdiffstats
path: root/newlib/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/configure.in')
-rw-r--r--newlib/configure.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in
index 35a5d070b..daabcf276 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -123,6 +123,17 @@ AC_ARG_ENABLE(newlib-reent-small,
no) newlib_reent_small=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for newlib-reent-small option) ;;
esac], [newlib_reent_small=])dnl
+
+dnl Support --disable-newlib-fvwrite-in-streamio
+AC_ARG_ENABLE(newlib-fvwrite-in-streamio,
+[ --disable-newlib-fvwrite-in-streamio disable iov in streamio],
+[if test "${newlib_fvwrite_in_streamio+set}" != set; then
+ case "${enableval}" in
+ yes) newlib_fvwrite_in_streamio=yes ;;
+ no) newlib_fvwrite_in_streamio=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-fvwrite-in-streamio option) ;;
+ esac
+ fi], [newlib_fvwrite_in_streamio=yes])dnl
NEWLIB_CONFIGURE(.)
@@ -312,6 +323,10 @@ fi
if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
AC_DEFINE_UNQUOTED(_ATEXIT_DYNAMIC_ALLOC)
fi
+
+if test "${newlib_fvwrite_in_streamio}" = "yes"; then
+AC_DEFINE_UNQUOTED(_FVWRITE_IN_STREAMIO)
+fi
dnl
dnl Parse --enable-newlib-iconv-encodings option argument