diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2013-04-10 18:47:46 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2013-04-10 18:47:46 +0000 |
commit | 602cec7f1eb17b96525d09752fd1f0ad474e3202 (patch) | |
tree | 32e10a62bf758fcbb8951c4361a974a7066461c3 /newlib/configure | |
parent | b49dae4a4443858b2ce51daac3883ad0f1473145 (diff) | |
download | cygnal-602cec7f1eb17b96525d09752fd1f0ad474e3202.tar.gz cygnal-602cec7f1eb17b96525d09752fd1f0ad474e3202.tar.bz2 cygnal-602cec7f1eb17b96525d09752fd1f0ad474e3202.zip |
2013-04-10 Bin Cheng <bin.cheng@arm.com>
* acconfig.h (_FSEEK_OPTIMIZATION): Undef
* newlib.hin (_FSEEK_OPTIMIZATION): Undef
* configure.in (--disable-newlib-fseek-optimization): New option.
* configure: Regenerated.
* libc/stdio/fflush.c (__sflush_r): Use _FSEEK_OPTIMIZATION to
control fseek optimization.
* libc/stdio/fseeko.c (_fseeko_r): Ditto.
* libc/stdio/makebuf.c (__smakebuf_r): Ditto.
* libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-x | newlib/configure | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/newlib/configure b/newlib/configure index 71499b57f..e57fcf7f5 100755 --- a/newlib/configure +++ b/newlib/configure @@ -790,6 +790,7 @@ enable_newlib_iconv_external_ccs enable_newlib_atexit_dynamic_alloc enable_newlib_reent_small enable_newlib_fvwrite_in_streamio +enable_newlib_fseek_optimization enable_multilib enable_target_optspace enable_malloc_debugging @@ -1454,6 +1455,7 @@ Optional Features: --disable-newlib-atexit-alloc disable dynamic allocation of atexit entries --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 --enable-multilib build many library versions (default) --enable-target-optspace optimize for space --enable-malloc-debugging indicate malloc debugging requested @@ -2366,6 +2368,19 @@ else newlib_fvwrite_in_streamio=yes fi +# Check whether --enable-newlib-fseek-optimization was given. +if test "${enable_newlib_fseek_optimization+set}" = set; then : + enableval=$enable_newlib_fseek_optimization; if test "${newlib_fseek_optimization+set}" != set; then + case "${enableval}" in + yes) newlib_fseek_optimization=yes ;; + no) newlib_fseek_optimization=no ;; + *) as_fn_error $? "bad value ${enableval} for newlib-fseek-optimization option" "$LINENO" 5 ;; + esac + fi +else + newlib_fseek_optimization=yes +fi + # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || @@ -11666,7 +11681,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11654 "configure" +#line 11684 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11772,7 +11787,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11760 "configure" +#line 11790 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12254,6 +12269,13 @@ _ACEOF fi +if test "${newlib_fseek_optimization}" = "yes"; then +cat >>confdefs.h <<_ACEOF +#define _FSEEK_OPTIMIZATION 1 +_ACEOF + +fi + if test "x${iconv_encodings}" != "x" \ || test "x${iconv_to_encodings}" != "x" \ |