Commit 625afa23 by Richard Guenther Committed by Richard Biener

re PR bootstrap/54138 (configuring --without-cloog but executable links against system cloog)

2012-09-03  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/54138
	* configure.ac: Re-organize ISL / CLOOG checks to allow
	disabling with either --without-isl or --without-cloog.
	* configure: Regenerated.
	* config/cloog.m4: Adjust.
	* config/isl.m4: Adjust.

From-SVN: r190895
parent bda2b772
2012-09-03 Richard Guenther <rguenther@suse.de>
PR bootstrap/54138
* configure.ac: Re-organize ISL / CLOOG checks to allow
disabling with either --without-isl or --without-cloog.
* configure: Regenerated.
2012-09-03 Georg-Johann Lay <avr@gjlay.de> 2012-09-03 Georg-Johann Lay <avr@gjlay.de>
* configure.ac (noconfigdirs,target=avr): Add target-libquadmath. * configure.ac (noconfigdirs,target=avr): Add target-libquadmath.
......
2012-09-03 Richard Guenther <rguenther@suse.de>
PR bootstrap/54138
* config/cloog.m4: Adjust for toplevel reorg.
* config/isl.m4: Adjust.
2012-08-26 Art Haas <ahaas@impactweather.com> 2012-08-26 Art Haas <ahaas@impactweather.com>
* cloog.m4 (CLOOG_INIT_FLAGS): Use = instead of == in test. * cloog.m4 (CLOOG_INIT_FLAGS): Use = instead of == in test.
......
...@@ -22,12 +22,6 @@ ...@@ -22,12 +22,6 @@
# Initialize clooglibs/clooginc according to the user input. # Initialize clooglibs/clooginc according to the user input.
AC_DEFUN([CLOOG_INIT_FLAGS], AC_DEFUN([CLOOG_INIT_FLAGS],
[ [
AC_ARG_WITH(cloog,
[AS_HELP_STRING(
[--with-cloog=PATH],
[Specify prefix directory for the installed CLooG-PPL package.
Equivalent to --with-cloog-include=PATH/include
plus --with-cloog-lib=PATH/lib])])
AC_ARG_WITH([cloog-include], AC_ARG_WITH([cloog-include],
[AS_HELP_STRING( [AS_HELP_STRING(
[--with-cloog-include=PATH], [--with-cloog-include=PATH],
...@@ -72,11 +66,7 @@ AC_DEFUN([CLOOG_INIT_FLAGS], ...@@ -72,11 +66,7 @@ AC_DEFUN([CLOOG_INIT_FLAGS],
fi fi
clooginc="-DCLOOG_INT_GMP ${clooginc}" clooginc="-DCLOOG_INT_GMP ${clooginc}"
clooglibs="${clooglibs} -lcloog-isl ${isllibs}" clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
dnl Flags needed for CLOOG
AC_SUBST(clooglibs)
AC_SUBST(clooginc)
] ]
) )
......
...@@ -23,12 +23,6 @@ ...@@ -23,12 +23,6 @@
# Initialize isllibs/islinc according to the user input. # Initialize isllibs/islinc according to the user input.
AC_DEFUN([ISL_INIT_FLAGS], AC_DEFUN([ISL_INIT_FLAGS],
[ [
AC_ARG_WITH(isl,
[AS_HELP_STRING(
[--with-isl=PATH],
[Specify prefix directory for the installed ISL package.
Equivalent to --with-isl-include=PATH/include
plus --with-isl-lib=PATH/lib])])
AC_ARG_WITH([isl-include], AC_ARG_WITH([isl-include],
[AS_HELP_STRING( [AS_HELP_STRING(
[--with-isl-include=PATH], [--with-isl-include=PATH],
...@@ -73,12 +67,6 @@ AC_DEFUN([ISL_INIT_FLAGS], ...@@ -73,12 +67,6 @@ AC_DEFUN([ISL_INIT_FLAGS],
islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
ENABLE_ISL_CHECK=no ENABLE_ISL_CHECK=no
fi fi
isllibs="${isllibs} -lisl"
dnl Flags needed for ISL
AC_SUBST(isllibs)
AC_SUBST(islinc)
] ]
) )
......
...@@ -646,7 +646,6 @@ extra_host_libiberty_configure_flags ...@@ -646,7 +646,6 @@ extra_host_libiberty_configure_flags
clooginc clooginc
clooglibs clooglibs
islinc islinc
isllibs
poststage1_ldflags poststage1_ldflags
poststage1_libs poststage1_libs
stage1_libs stage1_libs
...@@ -768,11 +767,11 @@ with_stage1_ldflags ...@@ -768,11 +767,11 @@ with_stage1_ldflags
with_stage1_libs with_stage1_libs
with_boot_libs with_boot_libs
with_boot_ldflags with_boot_ldflags
with_cloog
with_isl with_isl
with_isl_include with_isl_include
with_isl_lib with_isl_lib
enable_isl_version_check enable_isl_version_check
with_cloog
with_cloog_include with_cloog_include
with_cloog_lib with_cloog_lib
enable_cloog_version_check enable_cloog_version_check
...@@ -1521,16 +1520,16 @@ Optional Packages: ...@@ -1521,16 +1520,16 @@ Optional Packages:
--with-boot-libs=LIBS libraries for stage2 and later --with-boot-libs=LIBS libraries for stage2 and later
--with-boot-ldflags=FLAGS --with-boot-ldflags=FLAGS
linker flags for stage2 and later linker flags for stage2 and later
--with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
package. Equivalent to
--with-cloog-include=PATH/include plus
--with-cloog-lib=PATH/lib
--with-isl=PATH Specify prefix directory for the installed ISL --with-isl=PATH Specify prefix directory for the installed ISL
package. Equivalent to package. Equivalent to
--with-isl-include=PATH/include plus --with-isl-include=PATH/include plus
--with-isl-lib=PATH/lib --with-isl-lib=PATH/lib
--with-isl-include=PATH Specify directory for installed ISL include files --with-isl-include=PATH Specify directory for installed ISL include files
--with-isl-lib=PATH Specify the directory for the installed ISL library --with-isl-lib=PATH Specify the directory for the installed ISL library
--with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
package. Equivalent to
--with-cloog-include=PATH/include plus
--with-cloog-lib=PATH/lib
--with-cloog-include=PATH --with-cloog-include=PATH
Specify directory for installed CLooG include files Specify directory for installed CLooG include files
--with-cloog-lib=PATH Specify the directory for the installed CLooG --with-cloog-lib=PATH Specify the directory for the installed CLooG
...@@ -5609,7 +5608,15 @@ fi ...@@ -5609,7 +5608,15 @@ fi
# Check for ISL # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
# Basic setup is inlined here, actual checks are in config/cloog.m4 and
# config/isl.m4
# Check whether --with-cloog was given.
if test "${with_cloog+set}" = set; then :
withval=$with_cloog;
fi
# Check whether --with-isl was given. # Check whether --with-isl was given.
...@@ -5618,6 +5625,13 @@ if test "${with_isl+set}" = set; then : ...@@ -5618,6 +5625,13 @@ if test "${with_isl+set}" = set; then :
fi fi
# Treat either --without-cloog or --without-isl as a request to disable
# GRAPHITE support and skip all following checks.
if test "x$with_isl" != "xno" &&
test "x$with_cloog" != "xno"; then
# Check for ISL
# Check whether --with-isl-include was given. # Check whether --with-isl-include was given.
if test "${with_isl_include+set}" = set; then : if test "${with_isl_include+set}" = set; then :
withval=$with_isl_include; withval=$with_isl_include;
...@@ -5664,14 +5678,8 @@ fi ...@@ -5664,14 +5678,8 @@ fi
ENABLE_ISL_CHECK=no ENABLE_ISL_CHECK=no
fi fi
isllibs="${isllibs} -lisl"
if test "x$with_isl" != "xno"; then
if test "${ENABLE_ISL_CHECK}" = yes ; then if test "${ENABLE_ISL_CHECK}" = yes ; then
_isl_saved_CFLAGS=$CFLAGS _isl_saved_CFLAGS=$CFLAGS
_isl_saved_LDFLAGS=$LDFLAGS _isl_saved_LDFLAGS=$LDFLAGS
...@@ -5727,7 +5735,6 @@ $as_echo "$gcc_cv_isl" >&6; } ...@@ -5727,7 +5735,6 @@ $as_echo "$gcc_cv_isl" >&6; }
if test "x${with_isl}" = xno; then if test "x${with_isl}" = xno; then
graphite_requested=no graphite_requested=no
elif test "x${with_isl}" != x \ elif test "x${with_isl}" != x \
...@@ -5753,15 +5760,9 @@ $as_echo "$gcc_cv_isl" >&6; } ...@@ -5753,15 +5760,9 @@ $as_echo "$gcc_cv_isl" >&6; }
fi fi
fi
# Check for CLOOG
# Check whether --with-cloog was given. if test "x$gcc_cv_isl" != "xno"; then
if test "${with_cloog+set}" = set; then : # Check for CLOOG
withval=$with_cloog;
fi
# Check whether --with-cloog-include was given. # Check whether --with-cloog-include was given.
...@@ -5810,16 +5811,9 @@ fi ...@@ -5810,16 +5811,9 @@ fi
fi fi
clooginc="-DCLOOG_INT_GMP ${clooginc}" clooginc="-DCLOOG_INT_GMP ${clooginc}"
clooglibs="${clooglibs} -lcloog-isl ${isllibs}" clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
if test "x$isllibs" = x && test "x$islinc" = x; then
clooglibs=
clooginc=
elif test "x$with_cloog" != "xno"; then
...@@ -5891,18 +5885,30 @@ $as_echo "$gcc_cv_cloog" >&6; } ...@@ -5891,18 +5885,30 @@ $as_echo "$gcc_cv_cloog" >&6; }
&& test "x${clooglibs}" = x \ && test "x${clooglibs}" = x \
&& test "x${clooginc}" = x ; then && test "x${clooginc}" = x ; then
as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
fi fi
fi
fi fi
# If either the ISL or the CLooG check failed, disable builds of in-tree # If either the ISL or the CLooG check failed, disable builds of in-tree
# variants of both # variants of both
if test "x$clooglibs" = x && test "x$clooginc" = x; then if test "x$with_isl" = xno ||
test "x$with_cloog" = xno ||
test "x$gcc_cv_cloog" = xno ||
test "x$gcc_cv_isl" = xno; then
noconfigdirs="$noconfigdirs cloog isl" noconfigdirs="$noconfigdirs cloog isl"
islinc=
clooginc=
clooglibs=
fi fi
# Check for LTO support. # Check for LTO support.
# Check whether --enable-lto was given. # Check whether --enable-lto was given.
if test "${enable_lto+set}" = set; then : if test "${enable_lto+set}" = set; then :
......
...@@ -1513,44 +1513,71 @@ AC_ARG_WITH(boot-ldflags, ...@@ -1513,44 +1513,71 @@ AC_ARG_WITH(boot-ldflags,
fi]) fi])
AC_SUBST(poststage1_ldflags) AC_SUBST(poststage1_ldflags)
# Check for ISL # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
dnl Provide configure switches and initialize islinc & isllibs # Basic setup is inlined here, actual checks are in config/cloog.m4 and
dnl with user input. # config/isl.m4
ISL_INIT_FLAGS
if test "x$with_isl" != "xno"; then AC_ARG_WITH(cloog,
[AS_HELP_STRING(
[--with-cloog=PATH],
[Specify prefix directory for the installed CLooG-ISL package.
Equivalent to --with-cloog-include=PATH/include
plus --with-cloog-lib=PATH/lib])])
AC_ARG_WITH(isl,
[AS_HELP_STRING(
[--with-isl=PATH],
[Specify prefix directory for the installed ISL package.
Equivalent to --with-isl-include=PATH/include
plus --with-isl-lib=PATH/lib])])
# Treat either --without-cloog or --without-isl as a request to disable
# GRAPHITE support and skip all following checks.
if test "x$with_isl" != "xno" &&
test "x$with_cloog" != "xno"; then
# Check for ISL
dnl Provide configure switches and initialize islinc & isllibs
dnl with user input.
ISL_INIT_FLAGS
dnl The minimal version of ISL required for Graphite. dnl The minimal version of ISL required for Graphite.
ISL_CHECK_VERSION(0,10) ISL_CHECK_VERSION(0,10)
dnl Only execute fail-action, if ISL has been requested. dnl Only execute fail-action, if ISL has been requested.
ISL_IF_FAILED([ ISL_IF_FAILED([
AC_MSG_ERROR([Unable to find a usable ISL. See config.log for details.])]) AC_MSG_ERROR([Unable to find a usable ISL. See config.log for details.])])
fi
# Check for CLOOG if test "x$gcc_cv_isl" != "xno"; then
dnl Provide configure switches and initialize clooginc & clooglibs # Check for CLOOG
dnl with user input. dnl Provide configure switches and initialize clooginc & clooglibs
CLOOG_INIT_FLAGS dnl with user input.
if test "x$isllibs" = x && test "x$islinc" = x; then CLOOG_INIT_FLAGS
clooglibs= dnl The minimal version of CLooG required for Graphite.
clooginc= dnl
elif test "x$with_cloog" != "xno"; then dnl If we use CLooG-Legacy, the provided version information is
dnl The minimal version of CLooG required for Graphite. dnl ignored.
dnl CLOOG_CHECK_VERSION(0,17,0)
dnl If we use CLooG-Legacy, the provided version information is
dnl ignored. dnl Only execute fail-action, if CLooG has been requested.
CLOOG_CHECK_VERSION(0,17,0) CLOOG_IF_FAILED([
AC_MSG_ERROR([Unable to find a usable CLooG. See config.log for details.])])
dnl Only execute fail-action, if CLooG has been requested. fi
CLOOG_IF_FAILED([
AC_MSG_ERROR([Unable to find a usable CLooG. See config.log for details.])])
fi fi
# If either the ISL or the CLooG check failed, disable builds of in-tree # If either the ISL or the CLooG check failed, disable builds of in-tree
# variants of both # variants of both
if test "x$clooglibs" = x && test "x$clooginc" = x; then if test "x$with_isl" = xno ||
test "x$with_cloog" = xno ||
test "x$gcc_cv_cloog" = xno ||
test "x$gcc_cv_isl" = xno; then
noconfigdirs="$noconfigdirs cloog isl" noconfigdirs="$noconfigdirs cloog isl"
islinc=
clooginc=
clooglibs=
fi fi
AC_SUBST(islinc)
AC_SUBST(clooglibs)
AC_SUBST(clooginc)
# Check for LTO support. # Check for LTO support.
AC_ARG_ENABLE(lto, AC_ARG_ENABLE(lto,
[AS_HELP_STRING([--enable-lto], [enable link time optimization support])], [AS_HELP_STRING([--enable-lto], [enable link time optimization support])],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment