On Fri, Feb 09, 2001 at 10:48:38AM -0600, Michael Bletzinger wrote:
: The thing is, that since every AC_SUBST'd variable is transformed into a
: make variable, you can already specify all sorts of derived stuff using
: make variables in Makefile.am's with the CVS automake. For example:
: 
: in the configure.in
: 
: AC_SUBST(arch)
: AC_SUBST(nonthreaded)
: AC_SUBST(nonthreaded_sources)
: 
: 
: and in the Makefile.am
: 
: foo_SOURCES = foo.c fee_$(arch).c
: 
: lib_LTLIBRARIES = libfoo_$(nonthreaded).la
: 
: libfoo___nonthreaded__la_SOURCES = foo.c $(nonthreaded_sources)

Ah, I missed this "hack" when I started trying.  I don't consider it to
be "supported", though, since you need to transform the characters...

: So I'm not sure that doing autoconf substitution really adds anything.  

If nothing else, it will de-obfuscate such hacks as the one above :)

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'

Reply via email to