2012-09-17 18:38:38 +02:00
|
|
|
# configure.ac -- Backtrace configure script.
|
2021-09-13 19:49:49 +02:00
|
|
|
# Copyright (C) 2012-2021 Free Software Foundation, Inc.
|
2012-09-17 18:38:38 +02:00
|
|
|
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are
|
|
|
|
# met:
|
|
|
|
|
|
|
|
# (1) Redistributions of source code must retain the above copyright
|
2016-09-11 15:44:07 +02:00
|
|
|
# notice, this list of conditions and the following disclaimer.
|
2012-09-17 18:38:38 +02:00
|
|
|
|
|
|
|
# (2) Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
2016-09-11 15:44:07 +02:00
|
|
|
# distribution.
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
# (3) The name of the author may not be used to
|
|
|
|
# endorse or promote products derived from this software without
|
|
|
|
# specific prior written permission.
|
|
|
|
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
|
|
|
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
|
|
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
AC_INIT(package-unused, version-unused,, libbacktrace)
|
|
|
|
AC_CONFIG_SRCDIR(backtrace.h)
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
|
2015-01-24 03:46:22 +01:00
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
AM_ENABLE_MULTILIB(, ..)
|
|
|
|
fi
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
target_alias=${target_alias-$host_alias}
|
|
|
|
|
2012-09-18 18:36:48 +02:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
libtool_VERSION=1:0:0
|
|
|
|
AC_SUBST(libtool_VERSION)
|
|
|
|
|
2012-09-28 08:13:00 +02:00
|
|
|
# 1.11.1: Require that version of automake.
|
|
|
|
# foreign: Don't require README, INSTALL, NEWS, etc.
|
|
|
|
# no-define: Don't define PACKAGE and VERSION.
|
|
|
|
# no-dependencies: Don't generate automatic dependencies.
|
|
|
|
# (because it breaks when using bootstrap-lean, since some of the
|
|
|
|
# headers are gone at "make install" time).
|
|
|
|
# -Wall: Issue all automake warnings.
|
|
|
|
# -Wno-portability: Don't warn about constructs supported by GNU make.
|
|
|
|
# (because GCC requires GNU make anyhow).
|
|
|
|
AM_INIT_AUTOMAKE([1.11.1 foreign no-dist no-define no-dependencies -Wall -Wno-portability])
|
2012-09-17 18:38:38 +02:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AC_ARG_WITH(target-subdir,
|
|
|
|
[ --with-target-subdir=SUBDIR Configuring in a subdirectory for target])
|
|
|
|
|
|
|
|
# We must force CC to /not/ be precious variables; otherwise
|
|
|
|
# the wrong, non-multilib-adjusted value will be used in multilibs.
|
|
|
|
# As a side effect, we have to subst CFLAGS ourselves.
|
|
|
|
m4_rename([_AC_ARG_VAR_PRECIOUS],[backtrace_PRECIOUS])
|
|
|
|
m4_define([_AC_ARG_VAR_PRECIOUS],[])
|
|
|
|
AC_PROG_CC
|
|
|
|
m4_rename_force([backtrace_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
|
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
|
|
|
AC_PROG_AWK
|
|
|
|
case "$AWK" in
|
|
|
|
"") AC_MSG_ERROR([can't build without awk]) ;;
|
|
|
|
esac
|
|
|
|
|
2019-01-17 14:42:30 +01:00
|
|
|
AC_CHECK_PROG(DWZ, dwz, dwz)
|
|
|
|
AM_CONDITIONAL(HAVE_DWZ, test "$DWZ" != "")
|
|
|
|
|
2015-08-27 16:08:19 +02:00
|
|
|
LT_INIT
|
2012-09-17 18:38:38 +02:00
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
2017-06-21 09:04:13 +02:00
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
backtrace_supported=yes
|
|
|
|
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
# We are compiling a GCC library. We can assume that the unwind
|
|
|
|
# library exists.
|
|
|
|
BACKTRACE_FILE="backtrace.lo simple.lo"
|
|
|
|
else
|
|
|
|
AC_CHECK_HEADER([unwind.h],
|
|
|
|
[AC_CHECK_FUNC([_Unwind_Backtrace],
|
|
|
|
[BACKTRACE_FILE="backtrace.lo simple.lo"],
|
|
|
|
[BACKTRACE_FILE="nounwind.lo"
|
|
|
|
backtrace_supported=no])],
|
|
|
|
[BACKTRACE_FILE="nounwind.lo"
|
|
|
|
backtrace_supported=no])
|
|
|
|
fi
|
|
|
|
AC_SUBST(BACKTRACE_FILE)
|
|
|
|
|
2012-10-02 15:14:25 +02:00
|
|
|
EXTRA_FLAGS=
|
2012-10-24 23:09:55 +02:00
|
|
|
if test -n "${with_target_subdir}"; then
|
2012-12-11 19:45:45 +01:00
|
|
|
EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
|
2012-10-24 23:09:55 +02:00
|
|
|
else
|
|
|
|
AC_CACHE_CHECK([for -funwind-tables option],
|
|
|
|
[libbacktrace_cv_c_unwind_tables],
|
|
|
|
[CFLAGS_hold="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -funwind-tables"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([static int f() { return 0; }], [return f();])],
|
|
|
|
[libbacktrace_cv_c_unwind_tables=yes],
|
|
|
|
[libbacktrace_cv_c_unwind_tables=no])
|
|
|
|
CFLAGS="$CFLAGS_hold"])
|
2012-12-11 19:45:45 +01:00
|
|
|
if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
|
|
|
|
EXTRA_FLAGS=-funwind-tables
|
|
|
|
fi
|
|
|
|
AC_CACHE_CHECK([for -frandom-seed=string option],
|
|
|
|
[libbacktrace_cv_c_random_seed_string],
|
|
|
|
[CFLAGS_hold="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([], [return 0;])],
|
|
|
|
[libbacktrace_cv_c_random_seed_string=yes],
|
|
|
|
[libbacktrace_cv_c_random_seed_string=no])
|
|
|
|
CFLAGS="$CFLAGS_hold"])
|
|
|
|
if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
|
|
|
|
EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
|
|
|
|
fi
|
2012-10-02 15:14:25 +02:00
|
|
|
fi
|
2017-11-17 22:11:42 +01:00
|
|
|
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
# Add CET specific flags is Intel CET is enabled.
|
|
|
|
GCC_CET_FLAGS(CET_FLAGS)
|
|
|
|
EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
|
|
|
|
fi
|
2012-10-02 15:14:25 +02:00
|
|
|
AC_SUBST(EXTRA_FLAGS)
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
|
|
|
|
-Wmissing-prototypes -Wold-style-definition \
|
|
|
|
-Wmissing-format-attribute -Wcast-qual],
|
|
|
|
[WARN_FLAGS])
|
|
|
|
|
2012-11-13 22:25:39 +01:00
|
|
|
if test -n "${with_target_subdir}"; then
|
2012-09-17 18:38:38 +02:00
|
|
|
WARN_FLAGS="$WARN_FLAGS -Werror"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(WARN_FLAGS)
|
|
|
|
|
2012-09-20 00:57:53 +02:00
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
GCC_CHECK_UNWIND_GETIPINFO
|
|
|
|
else
|
2012-10-26 19:34:59 +02:00
|
|
|
ac_save_CFFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
|
|
|
|
AC_MSG_CHECKING([for _Unwind_GetIPInfo])
|
2014-02-07 22:10:55 +01:00
|
|
|
AC_LINK_IFELSE(
|
2012-10-26 19:34:59 +02:00
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[#include "unwind.h"
|
|
|
|
struct _Unwind_Context *context;
|
|
|
|
int ip_before_insn = 0;],
|
|
|
|
[return _Unwind_GetIPInfo (context, &ip_before_insn);])],
|
|
|
|
[have_unwind_getipinfo=yes], [have_unwind_getipinfo=no])
|
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
|
|
AC_MSG_RESULT([$have_unwind_getipinfo])
|
2012-09-20 00:57:53 +02:00
|
|
|
if test "$have_unwind_getipinfo" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_GETIPINFO, 1, [Define if _Unwind_GetIPInfo is available.])
|
|
|
|
fi
|
|
|
|
fi
|
2012-09-17 18:38:38 +02:00
|
|
|
|
2015-08-27 16:08:19 +02:00
|
|
|
# Enable --enable-host-shared.
|
2013-10-15 22:33:55 +02:00
|
|
|
AC_ARG_ENABLE(host-shared,
|
|
|
|
[AS_HELP_STRING([--enable-host-shared],
|
|
|
|
[build host code as shared libraries])],
|
2015-08-27 16:08:19 +02:00
|
|
|
[PIC_FLAG=-fPIC], [PIC_FLAG=])
|
2012-09-17 18:38:38 +02:00
|
|
|
AC_SUBST(PIC_FLAG)
|
|
|
|
|
2020-05-12 18:23:56 +02:00
|
|
|
# Enable Intel CET on Intel CET enabled host if jit is enabled.
|
|
|
|
GCC_CET_HOST_FLAGS(CET_HOST_FLAGS)
|
|
|
|
case x$enable_languages in
|
|
|
|
*jit*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
CET_HOST_FLAGS=
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(CET_HOST_FLAGS)
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
# Test for __sync support.
|
|
|
|
AC_CACHE_CHECK([__sync extensions],
|
|
|
|
[libbacktrace_cv_sys_sync],
|
|
|
|
[if test -n "${with_target_subdir}"; then
|
2015-12-10 02:08:13 +01:00
|
|
|
case "${host}" in
|
|
|
|
hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
|
|
|
|
*) libbacktrace_cv_sys_sync=yes ;;
|
|
|
|
esac
|
2012-09-17 18:38:38 +02:00
|
|
|
else
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([int i;],
|
|
|
|
[__sync_bool_compare_and_swap (&i, i, i);
|
|
|
|
__sync_lock_test_and_set (&i, 1);
|
|
|
|
__sync_lock_release (&i);])],
|
|
|
|
[libbacktrace_cv_sys_sync=yes],
|
|
|
|
[libbacktrace_cv_sys_sync=no])
|
|
|
|
fi])
|
|
|
|
BACKTRACE_SUPPORTS_THREADS=0
|
|
|
|
if test "$libbacktrace_cv_sys_sync" = "yes"; then
|
|
|
|
BACKTRACE_SUPPORTS_THREADS=1
|
|
|
|
AC_DEFINE([HAVE_SYNC_FUNCTIONS], 1,
|
|
|
|
[Define to 1 if you have the __sync functions])
|
|
|
|
fi
|
|
|
|
AC_SUBST(BACKTRACE_SUPPORTS_THREADS)
|
|
|
|
|
2013-11-19 02:09:47 +01:00
|
|
|
# Test for __atomic support.
|
|
|
|
AC_CACHE_CHECK([__atomic extensions],
|
|
|
|
[libbacktrace_cv_sys_atomic],
|
|
|
|
[if test -n "${with_target_subdir}"; then
|
|
|
|
libbacktrace_cv_sys_atomic=yes
|
|
|
|
else
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([int i;],
|
|
|
|
[__atomic_load_n (&i, __ATOMIC_ACQUIRE);
|
|
|
|
__atomic_store_n (&i, 1, __ATOMIC_RELEASE);])],
|
|
|
|
[libbacktrace_cv_sys_atomic=yes],
|
|
|
|
[libbacktrace_cv_sys_atomic=no])
|
|
|
|
fi])
|
|
|
|
if test "$libbacktrace_cv_sys_atomic" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE_ATOMIC_FUNCTIONS], 1,
|
|
|
|
[Define to 1 if you have the __atomic functions])
|
|
|
|
fi
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
# The library needs to be able to read the executable itself. Compile
|
|
|
|
# a file to determine the executable format. The awk script
|
|
|
|
# filetype.awk prints out the file type.
|
|
|
|
AC_CACHE_CHECK([output filetype],
|
|
|
|
[libbacktrace_cv_sys_filetype],
|
|
|
|
[filetype=
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([int i;], [int j;])],
|
|
|
|
[filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`],
|
|
|
|
[AC_MSG_FAILURE([compiler failed])])
|
|
|
|
libbacktrace_cv_sys_filetype=$filetype])
|
|
|
|
|
|
|
|
# Match the file type to decide what files to compile.
|
|
|
|
FORMAT_FILE=
|
2015-05-29 10:40:20 +02:00
|
|
|
backtrace_supports_data=yes
|
2012-09-17 18:38:38 +02:00
|
|
|
case "$libbacktrace_cv_sys_filetype" in
|
|
|
|
elf*) FORMAT_FILE="elf.lo" ;;
|
2020-02-16 14:20:01 +01:00
|
|
|
macho) FORMAT_FILE="macho.lo" ;;
|
2015-05-29 10:40:20 +02:00
|
|
|
pecoff) FORMAT_FILE="pecoff.lo"
|
|
|
|
backtrace_supports_data=no
|
|
|
|
;;
|
2017-07-26 23:43:28 +02:00
|
|
|
xcoff*) FORMAT_FILE="xcoff.lo"
|
|
|
|
backtrace_supports_data=no
|
|
|
|
;;
|
2012-09-17 18:38:38 +02:00
|
|
|
*) AC_MSG_WARN([could not determine output file type])
|
|
|
|
FORMAT_FILE="unknown.lo"
|
|
|
|
backtrace_supported=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(FORMAT_FILE)
|
|
|
|
|
|
|
|
# ELF defines.
|
|
|
|
elfsize=
|
|
|
|
case "$libbacktrace_cv_sys_filetype" in
|
|
|
|
elf32) elfsize=32 ;;
|
|
|
|
elf64) elfsize=64 ;;
|
2015-05-29 10:40:20 +02:00
|
|
|
*) elfsize=unused
|
2012-09-17 18:38:38 +02:00
|
|
|
esac
|
|
|
|
AC_DEFINE_UNQUOTED([BACKTRACE_ELF_SIZE], [$elfsize], [ELF size: 32 or 64])
|
2019-01-29 17:25:46 +01:00
|
|
|
AM_CONDITIONAL(HAVE_ELF, test "$FORMAT_FILE" = "elf.lo")
|
2012-09-17 18:38:38 +02:00
|
|
|
|
2017-07-26 23:43:28 +02:00
|
|
|
# XCOFF defines.
|
|
|
|
xcoffsize=
|
|
|
|
case "$libbacktrace_cv_sys_filetype" in
|
|
|
|
xcoff32) xcoffsize=32 ;;
|
|
|
|
xcoff64) xcoffsize=64 ;;
|
|
|
|
*) xcoffsize=unused
|
|
|
|
esac
|
|
|
|
AC_DEFINE_UNQUOTED([BACKTRACE_XCOFF_SIZE], [$xcoffsize], [XCOFF size: 32 or 64])
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
BACKTRACE_SUPPORTED=0
|
|
|
|
if test "$backtrace_supported" = "yes"; then
|
|
|
|
BACKTRACE_SUPPORTED=1
|
|
|
|
fi
|
|
|
|
AC_SUBST(BACKTRACE_SUPPORTED)
|
|
|
|
|
2015-05-29 10:40:20 +02:00
|
|
|
BACKTRACE_SUPPORTS_DATA=0
|
|
|
|
if test "$backtrace_supports_data" = "yes"; then
|
|
|
|
BACKTRACE_SUPPORTS_DATA=1
|
|
|
|
fi
|
|
|
|
AC_SUBST(BACKTRACE_SUPPORTS_DATA)
|
|
|
|
|
2012-09-19 15:41:33 +02:00
|
|
|
GCC_HEADER_STDINT(gstdint.h)
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
AC_CHECK_HEADERS(sys/mman.h)
|
|
|
|
if test "$ac_cv_header_sys_mman_h" = "no"; then
|
|
|
|
have_mmap=no
|
|
|
|
else
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
# When built as a GCC target library, we can't do a link test. We
|
|
|
|
# simply assume that if we have mman.h, we have mmap.
|
|
|
|
have_mmap=yes
|
2015-08-24 20:48:28 +02:00
|
|
|
case "${host}" in
|
2019-09-03 17:08:28 +02:00
|
|
|
*-*-msdosdjgpp)
|
|
|
|
# DJGPP has sys/man.h, but no mmap
|
2015-08-24 20:48:28 +02:00
|
|
|
have_mmap=no ;;
|
|
|
|
esac
|
2012-09-17 18:38:38 +02:00
|
|
|
else
|
|
|
|
AC_CHECK_FUNC(mmap, [have_mmap=yes], [have_mmap=no])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$have_mmap" = "no"; then
|
|
|
|
VIEW_FILE=read.lo
|
|
|
|
ALLOC_FILE=alloc.lo
|
|
|
|
else
|
|
|
|
VIEW_FILE=mmapio.lo
|
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
This patch updates GCC to use autoconf 2.69 and automake 1.15.1.
(That's not the latest automake version, but it's the one used by
binutils-gdb, with which consistency is desirable, and in any case
seems a useful incremental update that should make a future update to
1.16.1 easier.)
The changes are generally similar to the binutils-gdb ones, and are
copied from there where shared files and directories are involved
(there are some further changes to such shared directories, however,
which I'd expect to apply to binutils-gdb once this patch is in GCC).
Largely, obsolete AC_PREREQ calls are removed, while many
AC_LANG_SOURCE calls are added to avoid warnings from aclocal and
autoconf. Multilib support is no longer included in core automake,
meaning that multilib.am needs copying from automake's contrib
directory into the GCC source tree. Autoconf 2.69 has Go support, so
local copies of that support are removed. I hope the D support will
soon be submitted to upstream autoconf so the local copy of that can
be removed in a future update. Changes to how automake generates
runtest calls mean quotes are removed from RUNTEST definitions in five
lib*/testsuite/Makefile.am files (libatomic, libgomp, libitm,
libphobos, libvtv; some others have RUNTEST definitions without
quotes, which are still OK); libgo and libphobos also get
-Wno-override added to AM_INIT_AUTOMAKE so those overrides of RUNTEST
do not generate automake warnings.
Note that the regeneration did not include regeneration of
fixincludes/config.h.in (attempting such regeneration resulted in all
the USED_FOR_TARGET conditionals disappearing; and I don't see
anything in the fixincludes/ directory that would result in such
conditionals being generated, unlike in the gcc/ directory). Also
note that libvtv/testsuite/other-tests/Makefile.in was not
regenerated; that directory is not listed as a subdirectory for which
Makefile.in gets regenerated by calling "automake" in libvtv/, so I'm
not sure how it's meant to be regenerated.
While I mostly fixed warnings should running aclocal / automake /
autoconf, there were various such warnings from automake in the
libgfortran, libgo, libgomp, liboffloadmic, libsanitizer, libphobos
directories that I did not fix, preferring to leave those to the
relevant subsystem maintainers. Specifically, most of those warnings
were of the following form (example from libgfortran):
Makefile.am:48: warning: source file 'caf/single.c' is in a subdirectory,
Makefile.am:48: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they
will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
I think it's best for the relevant maintainers to add subdir-objects
and do any other associated Makefile.am changes needed. In some cases
the paths in the warnings involved ../; I don't know if that adds any
extra complications to the use of subdir-objects.
I've tested this with native, cross and Canadian cross builds. The
risk of any OS-specific issues should I hope be rather lower than if a
libtool upgrade were included (we *should* do such an upgrade at some
point, but it's more complicated - it involves identifying all our
local libtool changes to see if any aren't included in the upstream
version we update to, and reverting an upstream libtool patch that's
inappropriate for use in GCC); I think it would be better to get this
update into GCC so that people can test in different configurations
and we can fix any issues found, rather than to try to get more and
more testing done before it goes in.
top level:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* multilib.am: New file. From automake.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ, use AC_LANG_SOURCE.
* ar-lib: New file.
* test-driver: New file.
* configure: Re-generate.
config:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* math.m4, tls.m4: Use AC_LANG_SOURCE.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* override.m4 (_GCC_AUTOCONF_VERSION): Bump from 2.64 to 2.69.
fixincludes:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, configure: Regenerate.
gcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use single
line for second argument of AC_DEFINE_UNQUOTED.
* doc/install.texi (Tools/packages necessary for modifying GCC):
Update to autoconf 2.69 and automake 1.15.1.
* aclocal.m4, config.in, configure: Regenerate.
gnattools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
gotools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* config/go.m4: Remove file.
* Makefile.am (ACLOCAL_AMFLAGS): Do not use -I ./config.
* configure.ac: Remove AC_PREREQ. Do not include config/go.m4.
* Makefile.in, aclocal.m4, configure: Regenerate.
intl:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS, remove AC_PREREQ.
* configure: Re-generate.
* config.h.in: Re-generate.
* aclocal.m4: Re-generate.
libada:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
libatomic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* acinclude.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libbacktrace:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libcc1:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libcpp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* aclocal.m4, config.in, configure: Regenerate.
libdecnumber:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* aclocal.m4.
libffi:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove doc/libffi.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, fficonfig.h.in,
include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
Regenerate.
libgcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* configure: Regenerate.
libgfortran:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libgo [logically part of this change but omitted from the commit]:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* config/go.m4: Remove file.
* config/libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use
-Wno-override in AM_INIT_AUTOMAKE call.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libgomp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libgomp.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libhsail-rt:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libiberty:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* config.in: Re-generate.
libitm:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libitm.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libobjc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, config.h.in, configure: Regenerate.
liboffloadmic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* plugin/Makefile.am: Include multilib.am.
* plugin/configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, plugin/Makefile.in,
plugin/aclocal.m4, plugin/configure: Regenerate.
libphobos:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use -Wno-override in
AM_INIT_AUTOMAKE call.
* m4/autoconf.m4: Add extra argument to AC_LANG_DEFINE call.
* m4/druntime/os.m4: Use AC_LANG_SOURCE.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, libdruntime/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
libquadmath:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.8. Add info-in-builddir.
(all-local): Define outside conditional code.
(CLEANFILES): Remove libquadmath.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libsanitizer:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, asan/Makefile.in, configure,
interception/Makefile.in, libbacktrace/Makefile.in,
lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
ubsan/Makefile.in: Regenerate.
libssp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.9.5.
* configure.ac: Remove AC_PREREQ. Quote argument to
AC_RUN_IFELSE.
* Makefile.in, aclocal.m4, configure: Regenerate.
libstdc++-v3:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, doc/Makefile.in,
include/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
python/Makefile.in, src/Makefile.in, src/c++11/Makefile.in,
src/c++17/Makefile.in, src/c++98/Makefile.in,
src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
libvtv:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
lto-plugin:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
zlib:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Modernize AC_INIT call, remove AC_PREREQ.
* Makefile.am (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add foreign.
* Makefile.in: Re-generate.
* aclocal.m4: Re-generate.
* configure: Re-generate.
From-SVN: r265695
2018-10-31 18:03:16 +01:00
|
|
|
AC_PREPROC_IFELSE([AC_LANG_SOURCE([
|
2012-09-17 18:38:38 +02:00
|
|
|
#include <sys/mman.h>
|
|
|
|
#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
|
|
|
|
#error no MAP_ANONYMOUS
|
|
|
|
#endif
|
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
This patch updates GCC to use autoconf 2.69 and automake 1.15.1.
(That's not the latest automake version, but it's the one used by
binutils-gdb, with which consistency is desirable, and in any case
seems a useful incremental update that should make a future update to
1.16.1 easier.)
The changes are generally similar to the binutils-gdb ones, and are
copied from there where shared files and directories are involved
(there are some further changes to such shared directories, however,
which I'd expect to apply to binutils-gdb once this patch is in GCC).
Largely, obsolete AC_PREREQ calls are removed, while many
AC_LANG_SOURCE calls are added to avoid warnings from aclocal and
autoconf. Multilib support is no longer included in core automake,
meaning that multilib.am needs copying from automake's contrib
directory into the GCC source tree. Autoconf 2.69 has Go support, so
local copies of that support are removed. I hope the D support will
soon be submitted to upstream autoconf so the local copy of that can
be removed in a future update. Changes to how automake generates
runtest calls mean quotes are removed from RUNTEST definitions in five
lib*/testsuite/Makefile.am files (libatomic, libgomp, libitm,
libphobos, libvtv; some others have RUNTEST definitions without
quotes, which are still OK); libgo and libphobos also get
-Wno-override added to AM_INIT_AUTOMAKE so those overrides of RUNTEST
do not generate automake warnings.
Note that the regeneration did not include regeneration of
fixincludes/config.h.in (attempting such regeneration resulted in all
the USED_FOR_TARGET conditionals disappearing; and I don't see
anything in the fixincludes/ directory that would result in such
conditionals being generated, unlike in the gcc/ directory). Also
note that libvtv/testsuite/other-tests/Makefile.in was not
regenerated; that directory is not listed as a subdirectory for which
Makefile.in gets regenerated by calling "automake" in libvtv/, so I'm
not sure how it's meant to be regenerated.
While I mostly fixed warnings should running aclocal / automake /
autoconf, there were various such warnings from automake in the
libgfortran, libgo, libgomp, liboffloadmic, libsanitizer, libphobos
directories that I did not fix, preferring to leave those to the
relevant subsystem maintainers. Specifically, most of those warnings
were of the following form (example from libgfortran):
Makefile.am:48: warning: source file 'caf/single.c' is in a subdirectory,
Makefile.am:48: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they
will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
I think it's best for the relevant maintainers to add subdir-objects
and do any other associated Makefile.am changes needed. In some cases
the paths in the warnings involved ../; I don't know if that adds any
extra complications to the use of subdir-objects.
I've tested this with native, cross and Canadian cross builds. The
risk of any OS-specific issues should I hope be rather lower than if a
libtool upgrade were included (we *should* do such an upgrade at some
point, but it's more complicated - it involves identifying all our
local libtool changes to see if any aren't included in the upstream
version we update to, and reverting an upstream libtool patch that's
inappropriate for use in GCC); I think it would be better to get this
update into GCC so that people can test in different configurations
and we can fix any issues found, rather than to try to get more and
more testing done before it goes in.
top level:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* multilib.am: New file. From automake.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ, use AC_LANG_SOURCE.
* ar-lib: New file.
* test-driver: New file.
* configure: Re-generate.
config:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* math.m4, tls.m4: Use AC_LANG_SOURCE.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* override.m4 (_GCC_AUTOCONF_VERSION): Bump from 2.64 to 2.69.
fixincludes:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, configure: Regenerate.
gcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use single
line for second argument of AC_DEFINE_UNQUOTED.
* doc/install.texi (Tools/packages necessary for modifying GCC):
Update to autoconf 2.69 and automake 1.15.1.
* aclocal.m4, config.in, configure: Regenerate.
gnattools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
gotools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* config/go.m4: Remove file.
* Makefile.am (ACLOCAL_AMFLAGS): Do not use -I ./config.
* configure.ac: Remove AC_PREREQ. Do not include config/go.m4.
* Makefile.in, aclocal.m4, configure: Regenerate.
intl:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS, remove AC_PREREQ.
* configure: Re-generate.
* config.h.in: Re-generate.
* aclocal.m4: Re-generate.
libada:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
libatomic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* acinclude.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libbacktrace:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libcc1:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libcpp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* aclocal.m4, config.in, configure: Regenerate.
libdecnumber:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* aclocal.m4.
libffi:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove doc/libffi.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, fficonfig.h.in,
include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
Regenerate.
libgcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* configure: Regenerate.
libgfortran:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libgo [logically part of this change but omitted from the commit]:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* config/go.m4: Remove file.
* config/libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use
-Wno-override in AM_INIT_AUTOMAKE call.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libgomp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libgomp.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libhsail-rt:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libiberty:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* config.in: Re-generate.
libitm:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libitm.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libobjc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, config.h.in, configure: Regenerate.
liboffloadmic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* plugin/Makefile.am: Include multilib.am.
* plugin/configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, plugin/Makefile.in,
plugin/aclocal.m4, plugin/configure: Regenerate.
libphobos:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use -Wno-override in
AM_INIT_AUTOMAKE call.
* m4/autoconf.m4: Add extra argument to AC_LANG_DEFINE call.
* m4/druntime/os.m4: Use AC_LANG_SOURCE.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, libdruntime/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
libquadmath:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.8. Add info-in-builddir.
(all-local): Define outside conditional code.
(CLEANFILES): Remove libquadmath.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libsanitizer:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, asan/Makefile.in, configure,
interception/Makefile.in, libbacktrace/Makefile.in,
lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
ubsan/Makefile.in: Regenerate.
libssp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.9.5.
* configure.ac: Remove AC_PREREQ. Quote argument to
AC_RUN_IFELSE.
* Makefile.in, aclocal.m4, configure: Regenerate.
libstdc++-v3:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, doc/Makefile.in,
include/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
python/Makefile.in, src/Makefile.in, src/c++11/Makefile.in,
src/c++17/Makefile.in, src/c++98/Makefile.in,
src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
libvtv:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
lto-plugin:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
zlib:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Modernize AC_INIT call, remove AC_PREREQ.
* Makefile.am (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add foreign.
* Makefile.in: Re-generate.
* aclocal.m4: Re-generate.
* configure: Re-generate.
From-SVN: r265695
2018-10-31 18:03:16 +01:00
|
|
|
])], [ALLOC_FILE=mmap.lo], [ALLOC_FILE=alloc.lo])
|
2012-09-17 18:38:38 +02:00
|
|
|
fi
|
|
|
|
AC_SUBST(VIEW_FILE)
|
|
|
|
AC_SUBST(ALLOC_FILE)
|
|
|
|
|
|
|
|
BACKTRACE_USES_MALLOC=0
|
|
|
|
if test "$ALLOC_FILE" = "alloc.lo"; then
|
|
|
|
BACKTRACE_USES_MALLOC=1
|
|
|
|
fi
|
|
|
|
AC_SUBST(BACKTRACE_USES_MALLOC)
|
|
|
|
|
2012-10-09 20:20:45 +02:00
|
|
|
# Check for dl_iterate_phdr.
|
|
|
|
AC_CHECK_HEADERS(link.h)
|
|
|
|
if test "$ac_cv_header_link_h" = "no"; then
|
|
|
|
have_dl_iterate_phdr=no
|
|
|
|
else
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
# When built as a GCC target library, we can't do a link test.
|
|
|
|
AC_EGREP_HEADER([dl_iterate_phdr], [link.h], [have_dl_iterate_phdr=yes],
|
|
|
|
[have_dl_iterate_phdr=no])
|
|
|
|
else
|
|
|
|
AC_CHECK_FUNC([dl_iterate_phdr], [have_dl_iterate_phdr=yes],
|
|
|
|
[have_dl_iterate_phdr=no])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$have_dl_iterate_phdr" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_DL_ITERATE_PHDR, 1, [Define if dl_iterate_phdr is available.])
|
|
|
|
fi
|
|
|
|
|
2020-02-16 14:20:01 +01:00
|
|
|
# Check for header file for Mach-O image functions.
|
|
|
|
AC_CHECK_HEADERS(mach-o/dyld.h)
|
|
|
|
|
2017-07-26 23:43:28 +02:00
|
|
|
# Check for loadquery.
|
|
|
|
AC_CHECK_HEADERS(sys/ldr.h)
|
|
|
|
if test "$ac_cv_header_sys_ldr_h" = "no"; then
|
|
|
|
have_loadquery=no
|
|
|
|
else
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
# When built as a GCC target library, we can't do a link test.
|
|
|
|
AC_EGREP_HEADER([loadquery], [sys/ldr.h], [have_loadquery=yes],
|
|
|
|
[have_loadquery=no])
|
|
|
|
else
|
|
|
|
AC_CHECK_FUNC([loadquery], [have_loadquery=yes],
|
|
|
|
[have_loadquery=no])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$have_loadquery" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_LOADQUERY, 1, [Define if AIX loadquery is available.])
|
|
|
|
fi
|
|
|
|
|
2012-09-18 20:06:28 +02:00
|
|
|
# Check for the fcntl function.
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
case "${host}" in
|
|
|
|
*-*-mingw*) have_fcntl=no ;;
|
|
|
|
*) have_fcntl=yes ;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
AC_CHECK_FUNC(fcntl, [have_fcntl=yes], [have_fcntl=no])
|
|
|
|
fi
|
|
|
|
if test "$have_fcntl" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE_FCNTL], 1,
|
|
|
|
[Define to 1 if you have the fcntl function])
|
|
|
|
fi
|
|
|
|
|
2020-05-11 19:51:21 +02:00
|
|
|
AC_CHECK_DECLS([strnlen, getpagesize])
|
2017-09-22 15:38:10 +02:00
|
|
|
AC_CHECK_FUNCS(lstat readlink)
|
2012-09-18 18:06:53 +02:00
|
|
|
|
2012-11-12 22:24:19 +01:00
|
|
|
# Check for getexecname function.
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
case "${host}" in
|
|
|
|
*-*-solaris2*) have_getexecname=yes ;;
|
|
|
|
*) have_getexecname=no ;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
AC_CHECK_FUNC(getexecname, [have_getexecname=yes], [have_getexecname=no])
|
|
|
|
fi
|
|
|
|
if test "$have_getexecname" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_GETEXECNAME, 1, [Define if getexecname is available.])
|
|
|
|
fi
|
|
|
|
|
2020-02-16 00:29:02 +01:00
|
|
|
# Check for sysctl definitions.
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for KERN_PROC],
|
|
|
|
[libbacktrace_cv_proc],
|
|
|
|
[AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/sysctl.h>
|
|
|
|
], [int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;])],
|
|
|
|
[libbacktrace_cv_proc=yes],
|
|
|
|
[libbacktrace_cv_proc=no])])
|
|
|
|
if test "$libbacktrace_cv_proc" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE_KERN_PROC], 1,
|
|
|
|
[Define to 1 if you have KERN_PROC and KERN_PROC_PATHNAME in <sys/sysctl.h>.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for KERN_PROG_ARGS],
|
|
|
|
[libbacktrace_cv_procargs],
|
|
|
|
[AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/sysctl.h>
|
|
|
|
], [int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;])],
|
|
|
|
[libbacktrace_cv_procargs=yes],
|
|
|
|
[libbacktrace_cv_procargs=no])])
|
|
|
|
if test "$libbacktrace_cv_procargs" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE_KERN_PROC_ARGS], 1,
|
|
|
|
[Define to 1 if you have KERN_PROCARGS and KERN_PROC_PATHNAME in <sys/sysctl.h>.])
|
|
|
|
fi
|
|
|
|
|
2017-10-02 13:56:25 +02:00
|
|
|
# Check for the clock_gettime function.
|
|
|
|
AC_CHECK_FUNCS(clock_gettime)
|
2017-10-02 13:56:39 +02:00
|
|
|
clock_gettime_link=
|
|
|
|
# At least for glibc, clock_gettime is in librt. But don't
|
|
|
|
# pull that in if it still doesn't give us the function we want. This
|
|
|
|
# test is copied from libgomp, and modified to not link in -lrt as
|
|
|
|
# we're using this for test timing only.
|
|
|
|
if test "$ac_cv_func_clock_gettime" = no; then
|
|
|
|
AC_CHECK_LIB(rt, clock_gettime,
|
2017-10-03 04:27:33 +02:00
|
|
|
[CLOCK_GETTIME_LINK=-lrt
|
2017-10-02 13:56:39 +02:00
|
|
|
AC_DEFINE(HAVE_CLOCK_GETTIME, 1,
|
|
|
|
[Define to 1 if you have the `clock_gettime' function.])])
|
|
|
|
fi
|
2017-10-03 04:27:33 +02:00
|
|
|
AC_SUBST(CLOCK_GETTIME_LINK)
|
2017-10-02 13:56:25 +02:00
|
|
|
|
2017-06-12 05:25:04 +02:00
|
|
|
dnl Test whether the compiler supports the -pthread option.
|
|
|
|
AC_CACHE_CHECK([whether -pthread is supported],
|
|
|
|
[libgo_cv_lib_pthread],
|
|
|
|
[CFLAGS_hold=$CFLAGS
|
|
|
|
CFLAGS="$CFLAGS -pthread"
|
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
This patch updates GCC to use autoconf 2.69 and automake 1.15.1.
(That's not the latest automake version, but it's the one used by
binutils-gdb, with which consistency is desirable, and in any case
seems a useful incremental update that should make a future update to
1.16.1 easier.)
The changes are generally similar to the binutils-gdb ones, and are
copied from there where shared files and directories are involved
(there are some further changes to such shared directories, however,
which I'd expect to apply to binutils-gdb once this patch is in GCC).
Largely, obsolete AC_PREREQ calls are removed, while many
AC_LANG_SOURCE calls are added to avoid warnings from aclocal and
autoconf. Multilib support is no longer included in core automake,
meaning that multilib.am needs copying from automake's contrib
directory into the GCC source tree. Autoconf 2.69 has Go support, so
local copies of that support are removed. I hope the D support will
soon be submitted to upstream autoconf so the local copy of that can
be removed in a future update. Changes to how automake generates
runtest calls mean quotes are removed from RUNTEST definitions in five
lib*/testsuite/Makefile.am files (libatomic, libgomp, libitm,
libphobos, libvtv; some others have RUNTEST definitions without
quotes, which are still OK); libgo and libphobos also get
-Wno-override added to AM_INIT_AUTOMAKE so those overrides of RUNTEST
do not generate automake warnings.
Note that the regeneration did not include regeneration of
fixincludes/config.h.in (attempting such regeneration resulted in all
the USED_FOR_TARGET conditionals disappearing; and I don't see
anything in the fixincludes/ directory that would result in such
conditionals being generated, unlike in the gcc/ directory). Also
note that libvtv/testsuite/other-tests/Makefile.in was not
regenerated; that directory is not listed as a subdirectory for which
Makefile.in gets regenerated by calling "automake" in libvtv/, so I'm
not sure how it's meant to be regenerated.
While I mostly fixed warnings should running aclocal / automake /
autoconf, there were various such warnings from automake in the
libgfortran, libgo, libgomp, liboffloadmic, libsanitizer, libphobos
directories that I did not fix, preferring to leave those to the
relevant subsystem maintainers. Specifically, most of those warnings
were of the following form (example from libgfortran):
Makefile.am:48: warning: source file 'caf/single.c' is in a subdirectory,
Makefile.am:48: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they
will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
I think it's best for the relevant maintainers to add subdir-objects
and do any other associated Makefile.am changes needed. In some cases
the paths in the warnings involved ../; I don't know if that adds any
extra complications to the use of subdir-objects.
I've tested this with native, cross and Canadian cross builds. The
risk of any OS-specific issues should I hope be rather lower than if a
libtool upgrade were included (we *should* do such an upgrade at some
point, but it's more complicated - it involves identifying all our
local libtool changes to see if any aren't included in the upstream
version we update to, and reverting an upstream libtool patch that's
inappropriate for use in GCC); I think it would be better to get this
update into GCC so that people can test in different configurations
and we can fix any issues found, rather than to try to get more and
more testing done before it goes in.
top level:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* multilib.am: New file. From automake.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ, use AC_LANG_SOURCE.
* ar-lib: New file.
* test-driver: New file.
* configure: Re-generate.
config:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* math.m4, tls.m4: Use AC_LANG_SOURCE.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* override.m4 (_GCC_AUTOCONF_VERSION): Bump from 2.64 to 2.69.
fixincludes:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, configure: Regenerate.
gcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use single
line for second argument of AC_DEFINE_UNQUOTED.
* doc/install.texi (Tools/packages necessary for modifying GCC):
Update to autoconf 2.69 and automake 1.15.1.
* aclocal.m4, config.in, configure: Regenerate.
gnattools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
gotools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* config/go.m4: Remove file.
* Makefile.am (ACLOCAL_AMFLAGS): Do not use -I ./config.
* configure.ac: Remove AC_PREREQ. Do not include config/go.m4.
* Makefile.in, aclocal.m4, configure: Regenerate.
intl:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS, remove AC_PREREQ.
* configure: Re-generate.
* config.h.in: Re-generate.
* aclocal.m4: Re-generate.
libada:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
libatomic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* acinclude.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libbacktrace:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libcc1:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libcpp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* aclocal.m4, config.in, configure: Regenerate.
libdecnumber:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* aclocal.m4.
libffi:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove doc/libffi.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, fficonfig.h.in,
include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
Regenerate.
libgcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* configure: Regenerate.
libgfortran:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libgo [logically part of this change but omitted from the commit]:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* config/go.m4: Remove file.
* config/libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use
-Wno-override in AM_INIT_AUTOMAKE call.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libgomp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libgomp.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libhsail-rt:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libiberty:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* config.in: Re-generate.
libitm:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libitm.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libobjc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, config.h.in, configure: Regenerate.
liboffloadmic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* plugin/Makefile.am: Include multilib.am.
* plugin/configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, plugin/Makefile.in,
plugin/aclocal.m4, plugin/configure: Regenerate.
libphobos:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use -Wno-override in
AM_INIT_AUTOMAKE call.
* m4/autoconf.m4: Add extra argument to AC_LANG_DEFINE call.
* m4/druntime/os.m4: Use AC_LANG_SOURCE.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, libdruntime/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
libquadmath:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.8. Add info-in-builddir.
(all-local): Define outside conditional code.
(CLEANFILES): Remove libquadmath.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libsanitizer:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, asan/Makefile.in, configure,
interception/Makefile.in, libbacktrace/Makefile.in,
lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
ubsan/Makefile.in: Regenerate.
libssp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.9.5.
* configure.ac: Remove AC_PREREQ. Quote argument to
AC_RUN_IFELSE.
* Makefile.in, aclocal.m4, configure: Regenerate.
libstdc++-v3:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, doc/Makefile.in,
include/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
python/Makefile.in, src/Makefile.in, src/c++11/Makefile.in,
src/c++17/Makefile.in, src/c++98/Makefile.in,
src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
libvtv:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
lto-plugin:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
zlib:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Modernize AC_INIT call, remove AC_PREREQ.
* Makefile.am (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add foreign.
* Makefile.in: Re-generate.
* aclocal.m4: Re-generate.
* configure: Re-generate.
From-SVN: r265695
2018-10-31 18:03:16 +01:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])],
|
2017-06-12 05:25:04 +02:00
|
|
|
[libgo_cv_lib_pthread=yes],
|
|
|
|
[libgo_cv_lib_pthread=no])
|
|
|
|
CFLAGS=$CFLAGS_hold])
|
|
|
|
PTHREAD_CFLAGS=
|
|
|
|
if test "$libgo_cv_lib_pthread" = yes; then
|
|
|
|
PTHREAD_CFLAGS=-pthread
|
|
|
|
fi
|
|
|
|
AC_SUBST(PTHREAD_CFLAGS)
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_PTHREAD, test "$libgo_cv_lib_pthread" = yes)
|
|
|
|
|
2020-07-08 05:42:21 +02:00
|
|
|
dnl Test whether the compiler and the linker support the -gdwarf-5 option.
|
libbacktrace: add DWARF 5 support
* dwarf.c (struct attr): Add val field.
(enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
(struct line_header): Add addrsize field.
(struct line_header_format): Define.
(struct unit): Add str_offsets_base, addr_base, and rnglists_base
fields.
(read_uint24): New static function.
(read_attribute): Add implicit_val parameter. Replace dwarf_str
and dwarf_str_size parameters with dwarf_sections parameter. Add
support for new DWARF 5 forms. Change all callers.
(resolve_string): New static function.
(resolve_addr_index): Likewise.
(read_abbrevs): Support DW_FORM_implicit_const.
(struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
and ranges_is_index fields.
(update_pcrange): Support DWARF 5 encodings.
(add_high_low_range): New static function, split out of
add_ranges.
(add_ranges_from_ranges): Likewise.
(add_ranges_from_rnglists): New static function.
(add_ranges): Just call new helper functions.
(find_address_ranges): Use resolve_string for strings, after
reading all attributes. Handle new DWARF 5 attributes.
(build_address_map): Support DWARF 5 compilation units.
(read_v2_paths): New static function, split out of
read_line_header.
(read_lnct): New static function.
(read_line_header_format_entries): Likewise.
(read_line_header): Add ddata parameter. Support DWARF 5 line
headers. Call new helper functions. Change all callers.
(read_line_program): Use addrsize from line program header. Don't
special case directory index 0 for DWARF 5.
(read_referenced_name): Use resolve_string.
(read_function_entry): Handle DWARF 5 encodings. Use
resolve_string.
* internal.h (enum dwarf_section): Add DEBUG_ADDR,
DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
* elf.c (dwarf_section_names): Add new section names.
* pecoff.c (dwarf_section_names): Likewise.
* xcoff.c (xcoff_add): Clear dwarf_sections before setting
fields.
* configure.ac: Define HAVE_DWARF5 automake conditional.
* Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
(dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
(dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
(dwarf5_alloc_LDADD): Likewise.
(BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
(CLEANFILES, clean-local): Define.
From-SVN: r279380
2019-12-13 21:04:47 +01:00
|
|
|
AC_CACHE_CHECK([whether -gdwarf-5 is supported],
|
|
|
|
[libbacktrace_cv_lib_dwarf5],
|
|
|
|
[CFLAGS_hold=$CFLAGS
|
|
|
|
CFLAGS="$CFLAGS -gdwarf-5"
|
2020-07-08 05:42:21 +02:00
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;], [return 0;])],
|
libbacktrace: add DWARF 5 support
* dwarf.c (struct attr): Add val field.
(enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
(struct line_header): Add addrsize field.
(struct line_header_format): Define.
(struct unit): Add str_offsets_base, addr_base, and rnglists_base
fields.
(read_uint24): New static function.
(read_attribute): Add implicit_val parameter. Replace dwarf_str
and dwarf_str_size parameters with dwarf_sections parameter. Add
support for new DWARF 5 forms. Change all callers.
(resolve_string): New static function.
(resolve_addr_index): Likewise.
(read_abbrevs): Support DW_FORM_implicit_const.
(struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
and ranges_is_index fields.
(update_pcrange): Support DWARF 5 encodings.
(add_high_low_range): New static function, split out of
add_ranges.
(add_ranges_from_ranges): Likewise.
(add_ranges_from_rnglists): New static function.
(add_ranges): Just call new helper functions.
(find_address_ranges): Use resolve_string for strings, after
reading all attributes. Handle new DWARF 5 attributes.
(build_address_map): Support DWARF 5 compilation units.
(read_v2_paths): New static function, split out of
read_line_header.
(read_lnct): New static function.
(read_line_header_format_entries): Likewise.
(read_line_header): Add ddata parameter. Support DWARF 5 line
headers. Call new helper functions. Change all callers.
(read_line_program): Use addrsize from line program header. Don't
special case directory index 0 for DWARF 5.
(read_referenced_name): Use resolve_string.
(read_function_entry): Handle DWARF 5 encodings. Use
resolve_string.
* internal.h (enum dwarf_section): Add DEBUG_ADDR,
DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
* elf.c (dwarf_section_names): Add new section names.
* pecoff.c (dwarf_section_names): Likewise.
* xcoff.c (xcoff_add): Clear dwarf_sections before setting
fields.
* configure.ac: Define HAVE_DWARF5 automake conditional.
* Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
(dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
(dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
(dwarf5_alloc_LDADD): Likewise.
(BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
(CLEANFILES, clean-local): Define.
From-SVN: r279380
2019-12-13 21:04:47 +01:00
|
|
|
[libbacktrace_cv_lib_dwarf5=yes],
|
|
|
|
[libbacktrace_cv_lib_dwarf5=no])
|
|
|
|
CFLAGS=$CFLAGS_hold])
|
|
|
|
AM_CONDITIONAL(HAVE_DWARF5, test "$libbacktrace_cv_lib_dwarf5" = yes)
|
|
|
|
|
2018-08-05 22:24:59 +02:00
|
|
|
AC_CHECK_LIB([z], [compress],
|
|
|
|
[AC_DEFINE(HAVE_ZLIB, 1, [Define if -lz is available.])])
|
re PR other/67165 (please enable libbacktrace to work with compressed debug sections)
PR other/67165
* elf.c (__builtin_prefetch): Define if not __GNUC__.
(unlikely): Define.
(SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
(b_elf_chdr): Define type.
(enum debug_section): Add ZDEBUG_xxx values.
(debug_section_names): Add names for new sections.
(struct debug_section_info): Add compressed field.
(elf_zlib_failed, elf_zlib_fetch): New static functions.
(HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
(HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
(HUFFMAN_SECONDARY_SHIFT): Define.
(ZDEBUG_TABLE_SIZE): Define.
(ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
(final_next_secondary): New static variable if
BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
(elf_zlib_inflate_table): New static function.
(BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
function to produce fixed Huffman table.
(elf_zlib_default_table): New static variable.
(elf_zlib_inflate): New static function.
(elf_zlib_verify_checksum): Likewise.
(elf_zlib_inflate_and_verify): Likewise.
(elf_uncompress_zdebug): Likewise.
(elf_uncompress_chdr): Likewise.
(backtrace_uncompress_zdebug): New extern function.
(elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
sections, and uncompress them.
* internal.h (backtrace_compress_zdebug): Declare.
* ztest.c: New file.
* configure.ac: Check for -lz and check whether the linker
supports --compress-debug-sections.
* Makefile.am (ztest_SOURCES): New variable.
(ztest_CFLAGS, ztest_LDADD): New variables.
(check_PROGRAMS): Add ztest.
(ctestg_SOURCES): New variable.
(ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
(ctesta_SOURCES): New variable.
(ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
(check_PROGRAMS): Add ctestg and ctesta.
* configure, config.h.in, Makefile.in: Rebuild.
From-SVN: r253275
2017-09-29 02:30:35 +02:00
|
|
|
AM_CONDITIONAL(HAVE_ZLIB, test "$ac_cv_lib_z_compress" = yes)
|
|
|
|
|
|
|
|
dnl Test whether the linker supports the --compress_debug_sections option.
|
|
|
|
AC_CACHE_CHECK([whether --compress-debug-sections is supported],
|
|
|
|
[libgo_cv_ld_compress],
|
|
|
|
[LDFLAGS_hold=$LDFLAGS
|
|
|
|
LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
|
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM(,)],
|
|
|
|
[libgo_cv_ld_compress=yes],
|
|
|
|
[libgo_cv_ld_compress=no])
|
|
|
|
LDFLAGS=$LDFLAGS_hold])
|
|
|
|
AM_CONDITIONAL(HAVE_COMPRESSED_DEBUG, test "$libgo_cv_ld_compress" = yes)
|
|
|
|
|
2017-09-20 23:09:37 +02:00
|
|
|
AC_ARG_VAR(OBJCOPY, [location of objcopy])
|
|
|
|
AC_CHECK_PROG(OBJCOPY, objcopy, objcopy,)
|
2019-01-29 17:25:46 +01:00
|
|
|
AC_CHECK_PROG(READELF, readelf, readelf)
|
2017-09-20 23:09:37 +02:00
|
|
|
AC_CACHE_CHECK([whether objcopy supports debuglink],
|
|
|
|
[libbacktrace_cv_objcopy_debuglink],
|
|
|
|
[if test -n "${with_target_subdir}"; then
|
|
|
|
libbacktrace_cv_objcopy_debuglink=no
|
2020-02-16 14:20:01 +01:00
|
|
|
elif ! test -n "${OBJCOPY}"; then
|
|
|
|
libbacktrace_cv_objcopy_debuglink=no
|
2021-09-13 19:49:49 +02:00
|
|
|
elif ${OBJCOPY} --help | fgrep add-gnu-debuglink >/dev/null 2>&1; then
|
2017-09-20 23:09:37 +02:00
|
|
|
libbacktrace_cv_objcopy_debuglink=yes
|
|
|
|
else
|
|
|
|
libbacktrace_cv_objcopy_debuglink=no
|
|
|
|
fi])
|
|
|
|
AM_CONDITIONAL(HAVE_OBJCOPY_DEBUGLINK, test "$libbacktrace_cv_objcopy_debuglink" = yes)
|
|
|
|
|
2020-02-16 14:20:01 +01:00
|
|
|
AC_ARG_VAR(DSYMUTIL, [location of dsymutil])
|
|
|
|
AC_CHECK_PROG(DSYMUTIL, dsymutil, dsymutil)
|
2020-09-28 22:47:25 +02:00
|
|
|
AM_CONDITIONAL(USE_DSYMUTIL, test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo")
|
2020-02-16 14:20:01 +01:00
|
|
|
|
libbacktrace: support MiniDebugInfo
libbacktrace/ChangeLog:
PR libbacktrace/93608
Add support for MiniDebugInfo.
* elf.c (struct elf_view): Define. Replace most uses of
backtrace_view with elf_view.
(elf_get_view): New static functions. Replace most calls of
backtrace_get_view with elf_get_view.
(elf_release_view): New static functions. Replace most calls of
backtrace_release_view with elf_release_view.
(elf_uncompress_failed): Rename from elf_zlib_failed. Change all
callers.
(LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
(LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
(LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
(LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
(LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
(LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
(LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
(LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
(LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
(LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
(LZMA_PROB_DIST_ALIGN_LEN): Define.
(LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
(LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
(LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
(LZMA_PROB_MATCH_LEN_MID_LEN): Define.
(LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
(LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
(LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
(LZMA_PROB_REP_LEN_LOW_LEN): Define.
(LZMA_PROB_REP_LEN_MID_LEN): Define.
(LZMA_PROB_REP_LEN_HIGH_LEN): Define.
(LZMA_PROB_LITERAL_LEN): Define.
(LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
(LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
(LZMA_PROB_IS_REP2_OFFSET): Define.
(LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
(LZMA_PROB_DIST_SLOT_OFFSET): Define.
(LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
(LZMA_PROB_DIST_ALIGN_OFFSET): Define.
(LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
(LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
(LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
(LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
(LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
(LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
(LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
(LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
(LZMA_PROB_REP_LEN_MID_OFFSET): Define.
(LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
(LZMA_PROB_LITERAL_OFFSET): Define.
(LZMA_PROB_TOTAL_COUNT): Define.
(LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
(LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
(LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
(LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
(LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
(LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
(LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
(LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
(elf_lzma_varint): New static function.
(elf_lzma_range_normalize): New static function.
(elf_lzma_bit, elf_lzma_integer): New static functions.
(elf_lzma_reverse_integer): New static function.
(elf_lzma_len, elf_uncompress_lzma_block): New static functions.
(elf_uncompress_lzma): New static function.
(backtrace_uncompress_lzma): New function.
(elf_add): Add memory and memory_size parameters. Change all
callers. Look for .gnu_debugdata section, and, if found,
decompress it and use it for symbols and debug info. Permit the
descriptor parameter to be -1.
* internal.h (backtrace_uncompress_lzma): Declare.
* mtest.c: New file.
* xztest.c: New file.
* configure.ac: Check for nm, xz, and comm programs. Check for
liblzma library.
(HAVE_MINIDEBUG): Define.
* Makefile.am (mtest_SOURCES): Define.
(mtest_CFLAGS, mtest_LDADD): Define.
(TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
(%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
(xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
(xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
(xztest_alloc_LDADD): Define.
(BUILDTESTS): Add mtest, xztest, xztest_alloc.
(CLEANFILES): Add files created by minidebug pattern.
(btest.lo): Correct INCDIR reference.
(mtest.lo, xztest.lo, ztest.lo): New targets.
* configure: Regenerate.
* config.h.in: Regenerate.
* Makefile.in: Regenerate.
2020-09-14 23:01:56 +02:00
|
|
|
AC_ARG_VAR(NM, [location of nm])
|
|
|
|
AC_CHECK_PROG(NM, nm, nm)
|
|
|
|
|
|
|
|
AC_CHECK_PROG(XZ, xz, xz)
|
|
|
|
AM_CONDITIONAL(HAVE_XZ, test "$XZ" != "")
|
|
|
|
AC_CHECK_PROG(COMM, comm, comm)
|
|
|
|
AM_CONDITIONAL(HAVE_COMM, test "$COMM" != "")
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_MINIDEBUG,
|
|
|
|
test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != "")
|
|
|
|
|
|
|
|
AC_CHECK_LIB([lzma], [lzma_auto_decoder],
|
|
|
|
[AC_DEFINE(HAVE_LIBLZMA, 1, [Define if -llzma is available.])])
|
|
|
|
AM_CONDITIONAL(HAVE_LIBLZMA, test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes)
|
|
|
|
|
2012-09-17 18:38:38 +02:00
|
|
|
AC_CACHE_CHECK([whether tests can run],
|
|
|
|
[libbacktrace_cv_sys_native],
|
|
|
|
[AC_RUN_IFELSE([AC_LANG_PROGRAM([], [return 0;])],
|
|
|
|
[libbacktrace_cv_sys_native=yes],
|
|
|
|
[libbacktrace_cv_sys_native=no],
|
|
|
|
[libbacktrace_cv_sys_native=no])])
|
|
|
|
AM_CONDITIONAL(NATIVE, test "$libbacktrace_cv_sys_native" = "yes")
|
|
|
|
|
|
|
|
if test "${multilib}" = "yes"; then
|
|
|
|
multilib_arg="--enable-multilib"
|
|
|
|
else
|
|
|
|
multilib_arg=
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CONFIG_FILES(Makefile backtrace-supported.h)
|
2019-01-29 17:25:46 +01:00
|
|
|
AC_CONFIG_FILES(install-debuginfo-for-buildid.sh, chmod +x install-debuginfo-for-buildid.sh)
|
2012-09-17 18:38:38 +02:00
|
|
|
|
|
|
|
# We need multilib support, but only if configuring for the target.
|
|
|
|
AC_CONFIG_COMMANDS([default],
|
|
|
|
[if test -n "$CONFIG_FILES"; then
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
|
|
|
|
# that multilib installs will end up installed in the correct place.
|
|
|
|
# The testsuite needs it for multilib-aware ABI baseline files.
|
|
|
|
# To work around this not being passed down from config-ml.in ->
|
|
|
|
# srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
|
|
|
|
# append it here. Only modify Makefiles that have just been created.
|
|
|
|
#
|
|
|
|
# Also, get rid of this simulated-VPATH thing that automake does.
|
|
|
|
cat > vpsed << \_EOF
|
|
|
|
s!`test -f '$<' || echo '$(srcdir)/'`!!
|
|
|
|
_EOF
|
|
|
|
for i in $SUBDIRS; do
|
|
|
|
case $CONFIG_FILES in
|
|
|
|
*${i}/Makefile*)
|
|
|
|
#echo "Adding MULTISUBDIR to $i/Makefile"
|
|
|
|
sed -f vpsed $i/Makefile > tmp
|
|
|
|
grep '^MULTISUBDIR =' Makefile >> tmp
|
|
|
|
mv tmp $i/Makefile
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
rm vpsed
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[
|
|
|
|
# Variables needed in config.status (file generation) which aren't already
|
|
|
|
# passed by autoconf.
|
|
|
|
SUBDIRS="$SUBDIRS"
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_OUTPUT
|