gcc 2.96: A configure fix to replace "$(...)" with "${...}"
Maciej W. Rozycki
macro@ds2.pg.gda.pl
Fri Jun 2 10:20:00 GMT 2000
Hello,
I believe it's gcc that maintains the master copy of the toplevel
configure script hence I am sending the following patch here.
There are two places in the script a "$(...)" type variable references
are used. While for make they are interchangeable with "${...}" type
references, for the shell their meanings differ. Actually the latter type
is interchangeable between these two programs and is used elsewhere as
well as within configure scripts generated by autoconf.
The following patch allows constructs such as `./configure
--libdir='${exec_prefix}'/<path>' work as expected. The patch was
generated from the binutils tree but it applies cleanly against gcc 2.96
as of May 1st.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
diff -u --recursive --new-file binutils.macro/configure binutils/configure
--- binutils.macro/configure Tue Aug 10 12:46:33 1999
+++ binutils/configure Sun Oct 3 22:05:30 1999
@@ -579,7 +579,7 @@
# default exec_prefix
case "${exec_prefixoption}" in
-"") exec_prefix="\$(prefix)" ;;
+"") exec_prefix="\${prefix}" ;;
*) ;;
esac
@@ -779,7 +779,7 @@
# Some systems (e.g., one of the i386-aix systems the gas testers are
# using) don't handle "\$" correctly, so don't use it here.
-tooldir='$(exec_prefix)'/${target_alias}
+tooldir='${exec_prefix}'/${target_alias}
if [ "${host_alias}" != "${target_alias}" ] ; then
if [ "${program_prefixoption}" = "" ] ; then
More information about the Gcc-bugs
mailing list