re PR libstdc++/8610 (large file support in libstdc++-v3 (std::streamoff type is...
authorPaolo Carlini <pcarlini@suse.de>
Wed, 22 Oct 2003 15:51:55 +0000 (15:51 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 22 Oct 2003 15:51:55 +0000 (15:51 +0000)
commit3d05b34592f594b7c91c62d44575add57593aa81
treeb26e41a70bfc32ae8a5ebbdb7c88efd4978dbb10
parent36ae3d8e5998a4aa42fa3e8c967f97853882f1ea
re PR libstdc++/8610 (large file support in libstdc++-v3 (std::streamoff type  is 32-bit  in GCC 3.2 whereas it was 64-bit in GCC 2.96))

2003-10-22  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/8610
* acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
checking for the availability of int64_t.
(GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
* configure.ac: Call here.
* acconfig.h: Add undef for the corresponding symbols.
* config/io/basic_file_stdio.cc (__basic_file<char>::open):
Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
(__basic_file<char>::seekoff): Likewise, call lseek64 when
available, otherwise lseek, checking the __off parameter.
* include/bits/postypes.h: Typedef __streamoff_base_type
to int64_t if available, otherwise long long.
* aclocal.m4: Regenerate.
* config.h.in: Likewise.
* configure: Likewise.

* acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
Use AC_TRY_LINK instead of AC_TRY_COMPILE.

From-SVN: r72806
libstdc++-v3/ChangeLog
libstdc++-v3/acconfig.h
libstdc++-v3/acinclude.m4
libstdc++-v3/aclocal.m4
libstdc++-v3/config.h.in
libstdc++-v3/config/io/basic_file_stdio.cc
libstdc++-v3/configure
libstdc++-v3/configure.ac
libstdc++-v3/include/bits/postypes.h