From b879806f2fdd2eca7092d7b854d6cbbbbbd0493b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 14 Aug 2014 13:46:09 +0930 Subject: 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. --- bfd/configure.ac | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bfd/configure.ac') diff --git a/bfd/configure.ac b/bfd/configure.ac index 017304f4557..ba98e3935e8 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) -- cgit v1.2.1