Re: RFC: Use program_transform_name correctly

Felix Lee
2003-10-07T23:59:25Z

Daniel Jacobowitz <drow@mvista.com>:
> Eh, you're right, this will teach me to answer without looking. From
> gcc/Makefile.in:
> t='$(program_transform_cross_name)'; echo ar | sed -e $$t ; \
> That's the idiom we should use here.

yeah, $$t should be unquoted because configure does the quoting,
so that a transformation that has quotes will work correctly.
however, this is only for "recent" versions of autoconf, where
recent is "some version of autoconf after 2.13 that still says
'generated by 2.13' at the top of configure".

autoconf 2.13 and before will sometimes leave
program_transform_name null, which will cause that sed to fail.

the newer autoconfs will make sure program_transform_name is
's,x,x,' if it would otherwise be null.
--