Commit 7e2dbcef by Nathanael Nerode

configure.in: Switch more things to use maybe dependencies.

2003-05-19  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.in: Switch more things to use maybe dependencies.
	* Makefile.tpl: Switch more things to use maybe dependencies.
	Factor out common code from autogen IF statements.
	* configure: Regenerate.
	* Makefile.in: Regenerate.

From-SVN: r66982
parent fb9fc9f9
2003-05-19 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Switch more things to use maybe dependencies.
* Makefile.tpl: Switch more things to use maybe dependencies.
Factor out common code from autogen IF statements.
* configure: Regenerate.
* Makefile.in: Regenerate.
2003-05-14 Kelley Cook <kelleycook@wideopenwest.com>
* configure.in: Accept i[3456789]86 for machine type.
......
......@@ -743,8 +743,13 @@ check:
$(MAKE) do-check NOTPARALLEL=parallel-ok
# Only include modules actually being configured and built.
do-check: @check_host_modules@ \
@check_target_modules@
do-check: maybe-check-gcc [+
FOR host_modules +] \
maybe-check-[+module+][+
ENDFOR host_modules +][+
FOR target_modules +] \
maybe-check-target-[+module+][+
ENDFOR target_modules +]
# Automated reporting of test results.
......@@ -772,11 +777,18 @@ mail-report-with-warnings.log: warning.log
.PHONY: install uninstall
install: installdirs install-host install-target
.PHONY: install-host-nogcc
install-host-nogcc: [+
FOR host_modules +] \
maybe-install-[+module+][+
ENDFOR host_modules +]
.PHONY: install-host
install-host: maybe-install-gcc [+
FOR host_modules +] \
maybe-install-[+module+][+
ENDFOR host_modules +]
.PHONY: install-target
install-target: [+
FOR target_modules +] \
......@@ -800,7 +812,7 @@ install.all: install-no-fixedincludes
# install-no-fixedincludes is used because Cygnus can not distribute
# the fixed header files.
.PHONY: install-no-fixedincludes
install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
install-no-fixedincludes: installdirs install-host-nogcc \
install-target gcc-no-fixedincludes
### other supporting targets
......@@ -962,11 +974,11 @@ all-[+module+]: configure-[+module+]
+] $(X11_FLAGS_TO_PASS)[+
ENDIF with_x +] all)
.PHONY: check-[+module+] maybe-check-[+module+]
maybe-check-[+module+]:
[+ IF no_check +]
.PHONY: check-[+module+]
check-[+module+]:
[+ ELIF no_check_cross +]
.PHONY: check-[+module+]
# This module is only tested in a native toolchain.
check-[+module+]:
@if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
......@@ -979,7 +991,6 @@ check-[+module+]:
ENDIF with_x +] check); \
fi
[+ ELSE check +]
.PHONY: check-[+module+]
check-[+module+]:
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
......@@ -990,13 +1001,11 @@ check-[+module+]:
ENDIF with_x +] check)
[+ ENDIF no_check +]
[+ IF no_install +]
.PHONY: install-[+module+] maybe-install-[+module+]
maybe-install-[+module+]:
[+ IF no_install +]
install-[+module+]:
[+ ELSE install +]
.PHONY: install-[+module+] maybe-install-[+module+]
maybe-install-[+module+]:
install-[+module+]: installdirs
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
......@@ -1101,12 +1110,13 @@ all-target-[+module+]: configure-target-[+module+]
+] 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' [+
ENDIF raw_cxx
+] all)
.PHONY: check-target-[+module+] maybe-check-target-[+module+]
maybe-check-target-[+module+]:
[+ IF no_check +]
# Dummy target for uncheckable module.
.PHONY: check-target-[+module+]
check-target-[+module+]:
[+ ELSE check +]
.PHONY: check-target-[+module+]
check-target-[+module+]:
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
......@@ -1118,14 +1128,13 @@ check-target-[+module+]:
ENDIF raw_cxx
+] check)
[+ ENDIF no_check +]
[+ IF no_install +]
.PHONY: install-target-[+module+] maybe-install-target-[+module+]
maybe-install-target-[+module+]:
[+ IF no_install +]
# Dummy target for uninstallable.
install-target-[+module+]:
[+ ELSE install +]
.PHONY: install-target-[+module+] maybe-install-target-[+module+]
maybe-install-target-[+module+]:
install-target-[+module+]: installdirs
@r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
......
......@@ -1620,19 +1620,6 @@ for module in ${build_modules} ; do
configure_build_modules=configure-build-${module}
done
check_host_modules=
install_host_modules=
for module in ${configdirs} ; do
check_host_modules="${check_host_modules} check-${module}"
install_host_modules="${install_host_modules} install-${module}"
done
install_host_modules_nogcc=`echo "${install_host_modules}" | sed -e 's/install-gcc//g'`
check_target_modules=
for module in ${target_configdirs} ; do
check_target_modules="${check_target_modules} check-target-${module}"
done
# Determine whether gdb needs tk/tcl or not.
# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
# and in that case we want gdb to be built without tk. Ugh!
......@@ -1668,7 +1655,7 @@ rm -f maybedep.tmp
echo '# maybedep.tmp' > maybedep.tmp
# Make-targets which may need maybe dependencies.
mts="configure all install"
mts="configure all install check"
# Loop over modules and make-targets.
for module in ${build_modules} ; do
......@@ -1994,13 +1981,10 @@ AC_SUBST(all_build_modules)
# Host module lists & subconfigure args.
AC_SUBST(host_configargs)
AC_SUBST(configdirs)
AC_SUBST(check_host_modules)
AC_SUBST(install_host_modules_nogcc)
# Target module lists & subconfigure args.
AC_SUBST(target_configargs)
AC_SUBST(target_configdirs)
AC_SUBST(check_target_modules)
# Build tools.
AC_SUBST(BISON)
......
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