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-04-12 16:05:31 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-04-12 16:05:31 +0400
commitf7a4b388b0f7c49bc1542ae9829e6fb31bc9c611 (patch)
tree908cbe7edd91e596ad54e9c2b551720df5fc7a33 /newlib/configure
parent492ee4ee4b3afe434279078b2796c7233a55a256 (diff)
* acconfig.h (_WCHAR_ORIENT): Undef
* newlib.hin (_WCHAR_ORIENT): Undef * configure.in (--enable-newlib-wchar-orient): New option. * configure: Regenerated. * libc/configure.in (--enable-newlib-wchar-orient): New option. * libc/configure: Regenerated. * libc/stdio/Makefile.am (NEWLIB_WIDE_ORIENT): Use. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/local.h (ORIENT): Use _WCHAR_ORIENT to control the definition. Add alternative definition. * libc/stdio/vfprintf.c (__sfputs_r, __sprint_r): Use _WCHAR_ORIENT to control the wide char output.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-xnewlib/configure21
1 files changed, 21 insertions, 0 deletions
diff --git a/newlib/configure b/newlib/configure
index e57fcf7f5..cf14cd1ae 100755
--- a/newlib/configure
+++ b/newlib/configure
@@ -791,6 +791,7 @@ enable_newlib_atexit_dynamic_alloc
enable_newlib_reent_small
enable_newlib_fvwrite_in_streamio
enable_newlib_fseek_optimization
+enable_newlib_wide_orient
enable_multilib
enable_target_optspace
enable_malloc_debugging
@@ -1456,6 +1457,7 @@ Optional Features:
--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
+ --disable-newlib-wide-orient Turn off wide orientation in streamio
--enable-multilib build many library versions (default)
--enable-target-optspace optimize for space
--enable-malloc-debugging indicate malloc debugging requested
@@ -2381,6 +2383,18 @@ else
newlib_fseek_optimization=yes
fi
+# Check whether --enable-newlib_wide_orient was given.
+if test "${enable_newlib_wide_orient+set}" = set; then :
+ enableval=$enable_newlib_wide_orient; case "${enableval}" in
+ yes) newlib_wide_orient=yes ;;
+ no) newlib_wide_orient=no ;;
+ *) as_fn_error $? "bad value ${enableval} for newlib-wide-orient" "$LINENO" 5 ;;
+ esac
+else
+ newlib_wide_orient=yes
+fi
+
+
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
@@ -12276,6 +12290,13 @@ _ACEOF
fi
+if test "${newlib_wide_orient}" = "yes"; then
+cat >>confdefs.h <<_ACEOF
+#define _WIDE_ORIENT 1
+_ACEOF
+
+fi
+
if test "x${iconv_encodings}" != "x" \
|| test "x${iconv_to_encodings}" != "x" \