Top-Level configure needs autoconf 2.13
Mohan Embar
gnustuff@thisiscool.com
Sun Dec 3 22:41:00 GMT 2006
Hi All,
This is in reference to:
http://gcc.gnu.org/ml/java/2006-12/msg00021.html
The top-level configure for gcj-eclipse-merge-branch needs
autoconf 2.13, not 2.59.
In particular, the problem I'm experiencing is that
this section in configure.in:
=================================================
# Base args. Strip norecursion, cache-file, srcdir, host, build,
# target and nonopt. These are the ones we might not want to pass
# down to subconfigures. Also strip program-prefix, program-suffix,
# and program-transform-name, so that we can pass down a consistent
# program-transform-name. If autoconf has put single quotes around
# any of these arguments (because they contain shell metacharacters)
# then this will fail; in practice this only happens for
# --program-transform-name, so be sure to override --program-transform-name
# at the end of the argument list.
# These will be expanded by make, so quote '$'.
cat <<\EOF_SED > conftestsed
s/ --no[[^ ]]*/ /g
s/ --c[[a-z-]]*[[= ]][[^ ]]*//g
s/ --sr[[a-z-]]*[[= ]][[^ ]]*//g
s/ --ho[[a-z-]]*[[= ]][[^ ]]*//g
s/ --bu[[a-z-]]*[[= ]][[^ ]]*//g
s/ --t[[a-z-]]*[[= ]][[^ ]]*//g
s/ --program-[[pst]][[a-z-]]*[[= ]][[^ ]]*//g
s/ -cache-file[[= ]][[^ ]]*//g
s/ -srcdir[[= ]][[^ ]]*//g
s/ -host[[= ]][[^ ]]*//g
s/ -build[[= ]][[^ ]]*//g
s/ -target[[= ]][[^ ]]*//g
s/ -program-prefix[[= ]][[^ ]]*//g
s/ -program-suffix[[= ]][[^ ]]*//g
s/ -program-transform-name[[= ]][[^ ]]*//g
s/ [[^' -][^ ]*] / /
s/^ *//;s/ *$//
s,\$,$$,g
EOF_SED
sed -f conftestsed <<EOF_SED > conftestsed.out
${ac_configure_args}
EOF_SED
baseargs=`cat conftestsed.out`
rm -f conftestsed conftestsed.out
=================================================
...fails to strip crucial things like --host, --target, etc.
from ac_configure_args because autoconf 2.59 is single-quoting
each command-line argument and they therefore don't start
with a space character, as the above script requires.
One solution would be to fix the actual problem, but doing so
seems to far exceed the scope of gcj-eclipse-merge-branch.
I don't really know how to submit this as a patch
other than a small changelog saying I regenerated
configure with autoconf 2.13.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/
More information about the Java-patches
mailing list