It seems to me that adding ${ml_config_env} to the end of the
${ml_recprog} command line in config-ml.in shoudl do it. I.e.:
if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \
--with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \
- ${ac_configure_args} ${ml_srcdiroption} ; then
+ ${ac_configure_args} ${ml_config_env} ${ml_srcdiroption} ; then
Well dang, it worked. It's a bit ugly, but it works. The reason I say
it is ugly is because now we pass the wrong CXX variable first and then
we pass the right CXX variable after it, both on the configure command
line. I only tested this on x86_64 so far, I'll put it in my nightly
sources to test on HPPA and IA64 over the weekend.