aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.ac
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-14 13:46:09 +0930
committerAlan Modra <amodra@gmail.com>2014-08-14 13:46:09 +0930
commitb879806f2fdd2eca7092d7b854d6cbbbbbd0493b (patch)
treea59c6a936d98145ac0def25de34aafef89675366 /bfd/configure.ac
parent23ebe1a0bd86fdae83ca738cf75be67b58703756 (diff)
downloadgdb-b879806f2fdd2eca7092d7b854d6cbbbbbd0493b.zip
gdb-b879806f2fdd2eca7092d7b854d6cbbbbbd0493b.tar.gz
gdb-b879806f2fdd2eca7092d7b854d6cbbbbbd0493b.tar.bz2
configury changes to make ld plugin support controlled by --enable-plugins
This also makes --enable-plugins default to on for hosts that can support plugins, so we have consistent lto toolchain support. The ACX_LARGEFILE moves aren't strictly necessary, but are harmless and will be necessary if plugin support is extended to more hosts via libtool's dlopen support. I started down that path then decided it was more work than I was interested in doing. (ACX_LARGEFILE invokes AC_PLUGINS.) config/ * plugins.m4: Test for dlfcn.h or windows.h here to set default for --enable-plugins. Report error if someone tries to enable plugins on a host we don't support. bfd/ * configure.ac: Delete redundant plugin related checks. * configure: Regenerate. binutils/ * configure.ac: Move ACX_LARGEFILE after LT_INIT. * config.in: Regenerate. * configure: Regenerate. gas/ * configure.ac: Move ACX_LARGEFILE after LT_INIT. * config.in: Regenerate. * configure: Regenerate. gprof/ * configure.ac: Move ACX_LARGEFILE after LT_INIT. * configure: Regenerate. * gconfig.in: Regenerate. ld/ * configure.ac: Move AC_PROG_CC and other macros earlier. Delete plugin checks now done in config/plugins.m4. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'bfd/configure.ac')
-rw-r--r--bfd/configure.ac6
1 files changed, 0 insertions, 6 deletions
diff --git a/bfd/configure.ac b/bfd/configure.ac
index 017304f..ba98e39 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -48,10 +48,6 @@ ACX_LARGEFILE
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
if test "$plugins" = "yes"; then
- if test "$enable_dlopen" != "yes" ; then
- AC_MSG_ERROR([
- Building BFD with plugin support requires a host that supports -ldl.])
- fi
enable_targets="$enable_targets plugin"
fi
@@ -217,8 +213,6 @@ GCC_HEADER_STDINT(bfd_stdint.h)
AC_HEADER_TIME
AC_HEADER_DIRENT
-AC_CHECK_HEADERS(windows.h dlfcn.h)
-
ACX_HEADER_STRING
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
AC_CHECK_FUNCS(strtoull getrlimit)