I've a configure.ac
file containing lines like:
AC_DEFINE(CONF_XDISP, ":8", "X screen number")
These constants are used in the C source for setting compile defaults. I also have a configuration file conf/bumblebee.conf
in which these defaults need to be set. I'm told that AC_SUBST
can be used to get @CONF_XDISP@
substituted for ":8"
such that the below line:
VGL_DISPLAY=@CONF_XDISP@
becomes:
VGL_DISPLAY=":8"
Making an AC_SUBST
line for each AC_DEFINE
does not look the best way to me as it includes a lot duplication of lines. How can I combine these options, such that I can use something like AC_DEFINE_SUBST
? Other ideas and suggestions to improve this are welcome too.
AC_SUBST
, it'll show up in the generatedconfigure
code. I don't know if there is a shell that cannot handle that, but safety I'll just leave the indentation away. – Ombre