mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
bf41f30dde
. * config-ml.in: Sync with gcc sources. * config.guess: Likewise. * config.sub: Likewise. * configure.ac: Likewise. * configure: Regenerate. config * Sync with GCC sources: 2017-11-14 Boris Kolpackov <boris@codesynthesis.com> * gcc-plugin.m4: Add support for MinGW. 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> * cet.m4: New file. 2017-11-15 Alexandre Oliva <aoliva@redhat.com> * bootstrap-debug-lean.mk (do-compare): Use the contrib/compare-debug script. 2017-10-24 H.J. Lu <hongjiu.lu@intel.com> * bootstrap-cet.mk: New file. 2017-06-19 Martin Liska <mliska@suse.cz> * bootstrap-lto-noplugin.mk: Enable -flto in all PGO stages. * bootstrap-lto.mk: Likewise. 2017-06-03 Eric Botcazou <ebotcazou@adacore.com> * mt-android: New file. 2017-02-13 Richard Biener <rguenther@suse.de> * isl.m4: Remove support for ISL 0.14. 2017-01-19 Uros Bizjak <ubizjak@gmail.com> PR target/78478 * ax_check_define.m4: New file. 2017-01-17 Jakub Jelinek <jakub@redhat.com> PR other/79046 * acx.m4 (GCC_BASE_VER): New m4 function. (ACX_TOOL_DIRS): Require GCC_BASE_VER, for --with-gcc-major-version-only use just major number from BASE-VER. 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> PR go/78978 * hwcaps.m4 (GCC_CHECK_ASSEMBLER_HWCAP): New macro.
147 lines
4.0 KiB
Plaintext
147 lines
4.0 KiB
Plaintext
# This file is part of GCC.
|
|
#
|
|
# GCC is free software; you can redistribute it and/or modify it under
|
|
# the terms of the GNU General Public License as published by the Free
|
|
# Software Foundation; either version 3, or (at your option) any later
|
|
# version.
|
|
#
|
|
# GCC is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
# for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with GCC; see the file COPYING3. If not see
|
|
# <http://www.gnu.org/licenses/>.
|
|
#
|
|
# Contributed by Richard Guenther <rguenther@suse.de>
|
|
# Based on cloog.m4
|
|
|
|
# ISL_INIT_FLAGS ()
|
|
# -------------------------
|
|
# Provide configure switches for isl support.
|
|
# Initialize isllibs/islinc according to the user input.
|
|
AC_DEFUN([ISL_INIT_FLAGS],
|
|
[
|
|
AC_ARG_WITH([isl-include],
|
|
[AS_HELP_STRING(
|
|
[--with-isl-include=PATH],
|
|
[Specify directory for installed isl include files])])
|
|
AC_ARG_WITH([isl-lib],
|
|
[AS_HELP_STRING(
|
|
[--with-isl-lib=PATH],
|
|
[Specify the directory for the installed isl library])])
|
|
|
|
AC_ARG_ENABLE(isl-version-check,
|
|
[AS_HELP_STRING(
|
|
[--disable-isl-version-check],
|
|
[disable check for isl version])],
|
|
ENABLE_ISL_CHECK=$enableval,
|
|
ENABLE_ISL_CHECK=yes)
|
|
|
|
# Initialize isllibs and islinc.
|
|
case $with_isl in
|
|
no)
|
|
isllibs=
|
|
islinc=
|
|
;;
|
|
"" | yes)
|
|
;;
|
|
*)
|
|
isllibs="-L$with_isl/lib"
|
|
islinc="-I$with_isl/include"
|
|
;;
|
|
esac
|
|
if test "x${with_isl_include}" != x ; then
|
|
islinc="-I$with_isl_include"
|
|
fi
|
|
if test "x${with_isl_lib}" != x; then
|
|
isllibs="-L$with_isl_lib"
|
|
fi
|
|
dnl If no --with-isl flag was specified and there is in-tree isl
|
|
dnl source, set up flags to use that and skip any version tests
|
|
dnl as we cannot run them before building isl.
|
|
if test "x${islinc}" = x && test "x${isllibs}" = x \
|
|
&& test -d ${srcdir}/isl; then
|
|
isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
|
|
islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
|
|
ENABLE_ISL_CHECK=no
|
|
AC_MSG_WARN([using in-tree isl, disabling version check])
|
|
fi
|
|
|
|
isllibs="${isllibs} -lisl"
|
|
]
|
|
)
|
|
|
|
# ISL_REQUESTED (ACTION-IF-REQUESTED, ACTION-IF-NOT)
|
|
# ----------------------------------------------------
|
|
# Provide actions for failed isl detection.
|
|
AC_DEFUN([ISL_REQUESTED],
|
|
[
|
|
AC_REQUIRE([ISL_INIT_FLAGS])
|
|
|
|
if test "x${with_isl}" = xno; then
|
|
$2
|
|
elif test "x${with_isl}" != x \
|
|
|| test "x${with_isl_include}" != x \
|
|
|| test "x${with_isl_lib}" != x ; then
|
|
$1
|
|
else
|
|
$2
|
|
fi
|
|
]
|
|
)
|
|
|
|
# ISL_CHECK_VERSION ISL_CHECK_VERSION ()
|
|
# ----------------------------------------------------------------
|
|
# Test whether isl contains functionality added to the minimum expected version.
|
|
AC_DEFUN([ISL_CHECK_VERSION],
|
|
[
|
|
if test "${ENABLE_ISL_CHECK}" = yes ; then
|
|
_isl_saved_CFLAGS=$CFLAGS
|
|
_isl_saved_LDFLAGS=$LDFLAGS
|
|
_isl_saved_LIBS=$LIBS
|
|
|
|
CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
|
|
LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
|
|
LIBS="${_isl_saved_LIBS} -lisl -lgmp"
|
|
|
|
AC_MSG_CHECKING([for isl 0.15 or later])
|
|
AC_TRY_LINK([#include <isl/schedule.h>],
|
|
[isl_options_set_schedule_serialize_sccs (NULL, 0);],
|
|
[gcc_cv_isl=yes],
|
|
[gcc_cv_isl=no])
|
|
AC_MSG_RESULT([$gcc_cv_isl])
|
|
|
|
if test "${gcc_cv_isl}" = no ; then
|
|
AC_MSG_RESULT([required isl version is 0.15 or later])
|
|
fi
|
|
|
|
CFLAGS=$_isl_saved_CFLAGS
|
|
LDFLAGS=$_isl_saved_LDFLAGS
|
|
LIBS=$_isl_saved_LIBS
|
|
fi
|
|
]
|
|
)
|
|
|
|
# ISL_IF_FAILED (ACTION-IF-FAILED)
|
|
# ----------------------------------
|
|
# Executes ACTION-IF-FAILED, if GRAPHITE was requested and
|
|
# the checks failed.
|
|
AC_DEFUN([ISL_IF_FAILED],
|
|
[
|
|
ISL_REQUESTED([graphite_requested=yes], [graphite_requested=no])
|
|
|
|
if test "${gcc_cv_isl}" = no ; then
|
|
isllibs=
|
|
islinc=
|
|
fi
|
|
|
|
if test "${graphite_requested}" = yes \
|
|
&& test "x${isllibs}" = x \
|
|
&& test "x${islinc}" = x ; then
|
|
$1
|
|
fi
|
|
]
|
|
)
|