OSDN Git Service

e75eb7753c490ce354c25c36e19ddffac8f36138
[pf3gnuchains/gcc-fork.git] / config / largefile.m4
1 # This macro wraps AC_SYS_LARGEFILE with one exception for Solaris.
2 # PR 9992/binutils: We have to replicate everywhere the behaviour of
3 # bfd's configure script so that all the directories agree on the size
4 # of structures used to describe files.
5
6 AC_DEFUN([ACX_LARGEFILE],[dnl
7 case "${host}" in
8 changequote(,)dnl
9   sparc-*-solaris*|i[3-7]86-*-solaris*)
10 changequote([,])dnl
11     # On native 32bit sparc and ia32 solaris, large-file and procfs support
12     # are mutually exclusive; and without procfs support, the bfd/ elf module
13     # cannot provide certain routines such as elfcore_write_prpsinfo
14     # or elfcore_write_prstatus.  So unless the user explicitly requested
15     # large-file support through the --enable-largefile switch, disable
16     # large-file support in favor of procfs support.
17     test "${target}" = "${host}" -a "x$plugins" = xno \
18       && : ${enable_largefile="no"}
19     ;;
20 esac
21
22 AC_SYS_LARGEFILE
23 ])