From f7a4b388b0f7c49bc1542ae9829e6fb31bc9c611 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 12 Apr 2013 12:05:31 +0000 Subject: * 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. --- newlib/configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'newlib/configure') 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" \ -- cgit v1.2.3