Would anybody know if there's any way of computing the name of an included file in autoconf ?

I have a project capable of building one of several variants currently based on an identity defined in configure.ac - my aim is to be able to identify the variant from the CLI when autoconf/configure is run and include an m4 file if/as appropriate. AFAICT, only string literals are allowed as the filename in either the include or sinclude macro calls ... and it's now starting to drive me to distraction =:-O

Any help most gratefully received

DP

有帮助吗?

解决方案

The identity is setup at configure runtime, not when configure is created. Any m4 level (e.g. m4sugar) manipulation of configure will happen before then, so this doesn't look possible.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top