From ee2fb9eb60f34103739b42fbc70431cb6cdf141e Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 11 Nov 2009 04:54:32 +0000 Subject: binutils/ * configure.in: Stop checking for fopen64 and stat64. * strings.c (file_off, file_open, statbuf, file_stat): Remove. (strings_file): Change file_off to file_ptr, file_open to fopen, statbuf to struct stat and file_stat to stat. (get_char): Change parameter type file_off * to file_ptr *. (print_strings): Change parameter and variable `start' type file_off to file_ptr. * configure: Regenerate. * config.in: Regenerate. --- binutils/configure | 114 ----------------------------------------------------- 1 file changed, 114 deletions(-) (limited to 'binutils/configure') diff --git a/binutils/configure b/binutils/configure index 9fdcaa0..f1eaaa1 100755 --- a/binutils/configure +++ b/binutils/configure @@ -12554,120 +12554,6 @@ $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h fi -# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE -# needs to be defined for it -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fopen64" >&5 -$as_echo_n "checking for fopen64... " >&6; } -if test "${bu_cv_have_fopen64+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -FILE *f = fopen64 ("/tmp/foo","r"); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - bu_cv_have_fopen64=yes -else - saved_CPPFLAGS=$CPPFLAGS - CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -FILE *f = fopen64 ("/tmp/foo","r"); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE" -else - bu_cv_have_fopen64=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - CPPFLAGS=$saved_CPPFLAGS -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_have_fopen64" >&5 -$as_echo "$bu_cv_have_fopen64" >&6; } -if test "$bu_cv_have_fopen64" != no; then - -$as_echo "#define HAVE_FOPEN64 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat64" >&5 -$as_echo_n "checking for stat64... " >&6; } -if test "${bu_cv_have_stat64+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -struct stat64 st; stat64 ("/tmp/foo", &st); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - bu_cv_have_stat64=yes -else - saved_CPPFLAGS=$CPPFLAGS - CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -struct stat64 st; stat64 ("/tmp/foo", &st); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE" -else - bu_cv_have_stat64=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - CPPFLAGS=$saved_CPPFLAGS -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_have_stat64" >&5 -$as_echo "$bu_cv_have_stat64" >&6; } -if test "$bu_cv_have_stat64" != no; then - -$as_echo "#define HAVE_STAT64 1" >>confdefs.h - -fi -if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \ - || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then - -$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h - - CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" -fi - # Some systems have frexp only in -lm, not in -lc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5 $as_echo_n "checking for library containing frexp... " >&6; } -- cgit v1.1