* 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.
This commit is contained in:
21
newlib/configure
vendored
21
newlib/configure
vendored
@@ -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" \
|
||||
|
Reference in New Issue
Block a user