diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-04-12 12:05:31 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-04-12 12:05:31 +0000 |
commit | f7a4b388b0f7c49bc1542ae9829e6fb31bc9c611 (patch) | |
tree | 908cbe7edd91e596ad54e9c2b551720df5fc7a33 /newlib/libc/configure | |
parent | 492ee4ee4b3afe434279078b2796c7233a55a256 (diff) | |
download | cygnal-f7a4b388b0f7c49bc1542ae9829e6fb31bc9c611.tar.gz cygnal-f7a4b388b0f7c49bc1542ae9829e6fb31bc9c611.tar.bz2 cygnal-f7a4b388b0f7c49bc1542ae9829e6fb31bc9c611.zip |
* 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/libc/configure')
-rwxr-xr-x | newlib/libc/configure | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/newlib/libc/configure b/newlib/libc/configure index e46f4867d..4a1ab6b99 100755 --- a/newlib/libc/configure +++ b/newlib/libc/configure @@ -749,6 +749,8 @@ build newlib_basedir MAY_SUPPLY_SYSCALLS_FALSE MAY_SUPPLY_SYSCALLS_TRUE +NEWLIB_WIDE_ORIENT_FALSE +NEWLIB_WIDE_ORIENT_TRUE target_alias host_alias build_alias @@ -791,6 +793,7 @@ ac_subst_files='' ac_user_opts=' enable_option_checking enable_newlib_io_pos_args +enable_newlib_wide_orient enable_multilib enable_target_optspace enable_malloc_debugging @@ -1440,6 +1443,7 @@ Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-newlib-io-pos-args enable printf-family positional arg support + --disable-newlib-wide-orient Turn off wide char orient in streamio --enable-multilib build many library versions (default) --enable-target-optspace optimize for space --enable-malloc-debugging indicate malloc debugging requested @@ -2212,6 +2216,26 @@ else newlib_io_pos_args=no 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 + + if test x$newlib_wide_orient = xyes; then + NEWLIB_WIDE_ORIENT_TRUE= + NEWLIB_WIDE_ORIENT_FALSE='#' +else + NEWLIB_WIDE_ORIENT_TRUE='#' + NEWLIB_WIDE_ORIENT_FALSE= +fi + + # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |