aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1992-02-08 08:57:08 +0000
committerK. Richard Pixley <rich@cygnus>1992-02-08 08:57:08 +0000
commitbcdbe02f820a40a3f01374cfdf7d18c0d7183117 (patch)
tree01b26d5937b844c164a0ddf28a21aa04946e5b09 /configure
parentb8972815d5c6db764d39ef1f2ba6f52de57e13a0 (diff)
downloadgdb-bcdbe02f820a40a3f01374cfdf7d18c0d7183117.zip
gdb-bcdbe02f820a40a3f01374cfdf7d18c0d7183117.tar.gz
gdb-bcdbe02f820a40a3f01374cfdf7d18c0d7183117.tar.bz2
In configure{.in} {host|target}_makefile_frag should name a file
relative to srcdir. I think it now does. configure has been corrected. configure.texi has been clarified.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 14 insertions, 8 deletions
diff --git a/configure b/configure
index f9a3989..6db69d3 100755
--- a/configure
+++ b/configure
@@ -535,8 +535,9 @@ EOF
case "${host_makefile_frag}" in
"") mv Makefile.tem ${Makefile} ;;
*)
+ host_makefile_frag=${srcdir}/${host_makefile_frag}
if [ -f ${host_makefile_frag} ] ; then
- sed -e "/^####/ r ${host_makefile_frag}" Makefile.tem >> ${Makefile}
+ sed -e "/^####/ r ${host_makefile_frag}" Makefile.tem > ${Makefile}
else
echo '***' Expected host makefile fragment \"${host_makefile_frag}\" 1>&2
echo '***' is missing in ${PWD}. 1>&2
@@ -546,13 +547,18 @@ EOF
# working copy now in ${Makefile}
# Conditionalize the makefile for this target.
- target_makefile_frag=${srcdir}/${target_makefile_frag}
- if [ -f ${target_makefile_frag} ] ; then
- sed -e "/^####/ r ${target_makefile_frag}" ${Makefile} >> Makefile.tem
- else
- mv ${Makefile} Makefile.tem
- target_makefile_frag=
- fi
+ case "${target_makefile_frag}" in
+ "") mv ${Makefile} Makefile.tem ;;
+ *)
+ target_makefile_frag=${srcdir}/${target_makefile_frag}
+ if [ -f ${target_makefile_frag} ] ; then
+ sed -e "/^####/ r ${target_makefile_frag}" ${Makefile} >> Makefile.tem
+ else
+ mv ${Makefile} Makefile.tem
+ target_makefile_frag=
+ fi
+ ;;
+ esac
# real copy now in Makefile.tem
# prepend warning about editting, and a bunch of variables.