]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/largefile.m4
* largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS.
[thirdparty/gcc.git] / config / largefile.m4
CommitLineData
d3b31d8b
JK
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
6AC_DEFUN([ACX_LARGEFILE],[dnl
01b0b881
JK
7
8# As the $enable_largefile decision depends on --enable-plugins we must set it
9# even in directories otherwise not depending on the $plugins option.
10
11AC_PLUGINS
12
d3b31d8b
JK
13case "${host}" in
14changequote(,)dnl
15 sparc-*-solaris*|i[3-7]86-*-solaris*)
16changequote([,])dnl
17 # On native 32bit sparc and ia32 solaris, large-file and procfs support
18 # are mutually exclusive; and without procfs support, the bfd/ elf module
19 # cannot provide certain routines such as elfcore_write_prpsinfo
20 # or elfcore_write_prstatus. So unless the user explicitly requested
21 # large-file support through the --enable-largefile switch, disable
22 # large-file support in favor of procfs support.
23 test "${target}" = "${host}" -a "x$plugins" = xno \
24 && : ${enable_largefile="no"}
25 ;;
26esac
27
28AC_SYS_LARGEFILE
29])