LT_INIT([dlopen])
-# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
-ACX_LARGEFILE
+AC_PLUGINS
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
enable_targets="$enable_targets plugin"
fi
+case "${target}" in
+changequote(,)dnl
+ sparc-*-solaris*|i[3-7]86-*-solaris*)
+changequote([,])dnl
+ # On native 32bit sparc and ia32 solaris, large-file and procfs support
+ # are mutually exclusive; and without procfs support, the elf module
+ # cannot provide certain routines such as elfcore_write_prpsinfo
+ # or elfcore_write_prstatus. So unless the user explicitly requested
+ # large-file support through the --enable-largefile switch, disable
+ # large-file support in favor of procfs support.
+ if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
+ if test "$plugins" = "no"; then
+ enable_largefile="no"
+ fi
+ fi
+ ;;
+esac
+
+AC_SYS_LARGEFILE
+
AC_ARG_ENABLE(64-bit-bfd,
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
[case "${enableval}" in