2002-11-30 Nathanael Nerode <neroden@gcc.gnu.org>

(Continuing slow-motion replay)
	* configure: More autoconf-style substitutions.
	* Makefile.tpl: More autoconf-style substitutions.
	* Makefile.in: Regenerate.

2002-11-30  Nathanael Nerode  <neroden@gcc.gnu.org>

	(Continuing slow-motion replay)
	* configure: Substitute more variables in a more autoconf-friendly
	way.  Simplify slightly.
	* Makefile.tpl: Make more variables substitutable in an
	autoconf-friendly way.
	* Makefile.in: Regenerate.
This commit is contained in:
Nathanael Nerode 2002-11-30 01:59:39 +00:00
parent 6ec2f0b6d6
commit c002f9d3f4
4 changed files with 103 additions and 72 deletions

View File

@ -1,3 +1,19 @@
2002-11-30 Nathanael Nerode <neroden@gcc.gnu.org>
(Continuing slow-motion replay)
* configure: More autoconf-style substitutions.
* Makefile.tpl: More autoconf-style substitutions.
* Makefile.in: Regenerate.
2002-11-30 Nathanael Nerode <neroden@gcc.gnu.org>
(Continuing slow-motion replay)
* configure: Substitute more variables in a more autoconf-friendly
way. Simplify slightly.
* Makefile.tpl: Make more variables substitutable in an
autoconf-friendly way.
* Makefile.in: Regenerate.
2002-11-29 Nathanael Nerode <neroden@gcc.gnu.org> 2002-11-29 Nathanael Nerode <neroden@gcc.gnu.org>
(Continuing slow-motion replay) (Continuing slow-motion replay)

View File

@ -26,6 +26,32 @@
NOTPARALLEL = .NOTPARALLEL NOTPARALLEL = .NOTPARALLEL
$(NOTPARALLEL): $(NOTPARALLEL):
VPATH=@srcdir@
links=@configlinks@
build_alias=@build_alias@
build_cpu=@build_cpu@
build_vendor=@build_vendor@
build_os=@build_os@
build_canonical=@build_cpu@-@build_vendor@-@build_os@
host_alias=@host_alias@
host_cpu=@host_cpu@
host_vendor=@host_vendor@
host_os=@host_os@
host_canonical=@host_cpu@-@host_vendor@-@host_os@
target_alias=@target_alias@
target_cpu=@target_cpu@
target_vendor=@target_vendor@
target_os=@target_os@
target_canonical=@target_cpu@-@target_vendor@-@target_os@
enable_shared = @enable_shared@
enable_threads = @enable_threads@
enable_version_specific_runtime_libs = @enable_version_specific_runtime_libs@
# The file containing GCC's version number.
gcc_version_trigger = @gcc_version_trigger@
gcc_version = @gcc_version@
srcdir = @srcdir@ srcdir = @srcdir@
prefix = @prefix@ prefix = @prefix@
@ -1818,6 +1844,9 @@ $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
# with the gnu make, this is done automatically. # with the gnu make, this is done automatically.
host_makefile_frag=@host_makefile_frag@
target_makefile_frag=@target_makefile_frag@
Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger) Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
$(SHELL) ./config.status $(SHELL) ./config.status

View File

@ -29,6 +29,32 @@ in
NOTPARALLEL = .NOTPARALLEL NOTPARALLEL = .NOTPARALLEL
$(NOTPARALLEL): $(NOTPARALLEL):
VPATH=@srcdir@
links=@configlinks@
build_alias=@build_alias@
build_cpu=@build_cpu@
build_vendor=@build_vendor@
build_os=@build_os@
build_canonical=@build_cpu@-@build_vendor@-@build_os@
host_alias=@host_alias@
host_cpu=@host_cpu@
host_vendor=@host_vendor@
host_os=@host_os@
host_canonical=@host_cpu@-@host_vendor@-@host_os@
target_alias=@target_alias@
target_cpu=@target_cpu@
target_vendor=@target_vendor@
target_os=@target_os@
target_canonical=@target_cpu@-@target_vendor@-@target_os@
enable_shared = @enable_shared@
enable_threads = @enable_threads@
enable_version_specific_runtime_libs = @enable_version_specific_runtime_libs@
# The file containing GCC's version number.
gcc_version_trigger = @gcc_version_trigger@
gcc_version = @gcc_version@
srcdir = @srcdir@ srcdir = @srcdir@
prefix = @prefix@ prefix = @prefix@
@ -1493,6 +1519,9 @@ $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
# with the gnu make, this is done automatically. # with the gnu make, this is done automatically.
host_makefile_frag=@host_makefile_frag@
target_makefile_frag=@target_makefile_frag@
Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger) Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
$(SHELL) ./config.status $(SHELL) ./config.status

101
configure vendored
View File

@ -1276,83 +1276,40 @@ if [ -f ${srcdir}/${Makefile_in} ] ; then
esac esac
# real copy now in ./Makefile.tem # real copy now in ./Makefile.tem
# prepend warning about editing, and a bunch of variables. # record if we want runtime library stuff installed in libsubdir.
rm -f ${Makefile} # Blank means no.
cat > ${Makefile} <<EOF
# ${NO_EDIT}
VPATH = ${srcdir}
links = ${configlinks}
host_alias = ${host_alias}
host_cpu = ${host_cpu}
host_vendor = ${host_vendor}
host_os = ${host_os}
host_canonical = ${host_cpu}-${host_vendor}-${host_os}
target_alias = ${target_alias}
target_cpu = ${target_cpu}
target_vendor = ${target_vendor}
target_os = ${target_os}
target_canonical = ${target_cpu}-${target_vendor}-${target_os}
EOF
case "${build}" in
"") ;;
*) cat >> ${Makefile} << EOF
build_alias = ${build_alias}
build_cpu = ${build_cpu}
build_vendor = ${build_vendor}
build_os = ${build_os}
build_canonical = ${build_cpu}-${build_vendor}-${build_os}
EOF
esac
case "${package_makefile_frag}" in
"") ;;
/* | [A-Za-z]:[\\/]* ) echo package_makefile_frag = ${package_makefile_frag} >>${Makefile} ;;
*) echo package_makefile_frag = ${package_makefile_frag} >>${Makefile} ;;
esac
case "${target_makefile_frag}" in
"") ;;
/* | [A-Za-z]:[\\/]* ) echo target_makefile_frag = ${target_makefile_frag} >>${Makefile} ;;
*) echo target_makefile_frag = ${target_makefile_frag} >>${Makefile} ;;
esac
case "${host_makefile_frag}" in
"") ;;
/* | [A-Za-z]:[\\/]* ) echo host_makefile_frag = ${host_makefile_frag} >>${Makefile} ;;
*) echo host_makefile_frag = ${host_makefile_frag} >>${Makefile} ;;
esac
if [ "${site_makefile_frag}" != "" ] ; then
echo site_makefile_frag = ${site_makefile_frag} >>${Makefile}
fi
echo enable_shared = ${enable_shared} >> ${Makefile}
echo enable_threads = ${enable_threads} >> ${Makefile}
# record if we want to rumtime library stuff installed in libsubdir.
if test -z "${enable_version_specific_runtime_libs}"; then if test -z "${enable_version_specific_runtime_libs}"; then
echo enable_version_specific_runtime_libs = no >> ${Makefile} enable_version_specific_runtime_libs=no
else
echo enable_version_specific_runtime_libs = ${enable_version_specific_runtime_libs} >> ${Makefile}
fi fi
# Emit a macro which describes the file containing gcc's sed -e "s|@configlinks@|${configlinks}|" \
# version number. -e "s|@build_alias@|${build_alias}|" \
echo gcc_version_trigger = ${gcc_version_trigger} >> ${Makefile} -e "s|@build_cpu@|${build_cpu}|" \
# And emit a macro defining gcc's version number. -e "s|@build_vendor@|${build_vendor}|" \
echo gcc_version = ${gcc_version} >> ${Makefile} -e "s|@build_os@|${build_os}|" \
-e "s|@host_alias@|${host_alias}|" \
-e "s|@host_cpu@|${host_cpu}|" \
-e "s|@host_vendor@|${host_vendor}|" \
-e "s|@host_os@|${host_os}|" \
-e "s|@target_alias@|${target_alias}|" \
-e "s|@target_cpu@|${target_cpu}|" \
-e "s|@target_vendor@|${target_vendor}|" \
-e "s|@target_os@|${target_os}|" \
-e "s|@target_makefile_frag@|${target_makefile_frag}|" \
-e "s|@host_makefile_frag@|${host_makefile_frag}|" \
-e "s|@enable_shared@|${enable_shared}|" \
-e "s|@enable_threads@|${enable_threads}|" \
-e "s|@enable_version_specific_runtime_libs@|${enable_version_specific_runtime_libs}|" \
-e "s|@gcc_version_trigger@|${gcc_version_trigger}|" \
-e "s|@gcc_version@|${gcc_version}|" \
./Makefile.tem > ${Makefile}
mv -f ${Makefile} ./Makefile.tem
# Real copy now in Makefile.tem; no prologue.
# reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS, # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
# remove any form feeds. # remove any form feeds.
rm -f ./Makefile.tm2 sed -e "s|@configdirs@|${configdirs}|" \
sedtemp=sed.$$ -e "s|@prefix@|${prefix}|" \
cat >$sedtemp <<EOF
s:@configdirs@:${configdirs}:
EOF
sed -f $sedtemp ./Makefile.tem > ./Makefile.tm2
rm -f $sedtemp
rm -f ./Makefile.tem
mv ./Makefile.tm2 ./Makefile.tem
sed -e "s|@prefix@|${prefix}|" \
-e "s|@exec_prefix@|${exec_prefix}|" \ -e "s|@exec_prefix@|${exec_prefix}|" \
-e "s|@bindir@|${bindir}|" \ -e "s|@bindir@|${bindir}|" \
-e "s|@sbindir@|${sbindir}|" \ -e "s|@sbindir@|${sbindir}|" \
@ -1404,7 +1361,7 @@ EOF
-e "s:@DEFAULT_YACC@:${DEFAULT_YACC}:" \ -e "s:@DEFAULT_YACC@:${DEFAULT_YACC}:" \
-e "s:@DEFAULT_LEX@:${DEFAULT_LEX}:" \ -e "s:@DEFAULT_LEX@:${DEFAULT_LEX}:" \
-e "s:@DEFAULT_M4@:${DEFAULT_M4}:" \ -e "s:@DEFAULT_M4@:${DEFAULT_M4}:" \
./Makefile.tem >> ${Makefile} ./Makefile.tem > ${Makefile}
sed -e "s:@GDB_TK@:${GDB_TK}:" ${Makefile} >${Makefile}.tem sed -e "s:@GDB_TK@:${GDB_TK}:" ${Makefile} >${Makefile}.tem
mv -f ${Makefile}.tem ${Makefile} mv -f ${Makefile}.tem ${Makefile}