How can I pass a string verbatim from autoconf.ac to automake.am.
Example, in autoconf.ac, I’d like to give MYPATH = "-I$MYENVPATH -I$SOMEOTHERPATH" and subsequently, get MYPATH exactly as I gave, inside automake.am
AC_SUBST is trying to deference and cause issues.
To prevent the shell from evaluating variables inside strings (if that is whay you meant by “
AC_SUBSTis trying to dereference”), use simple quotes:This should output the following line in
Makefile:However this does not make a lot of sense to me:
makeneeds variable names to be enclosed in braces or parentheses (when their name has more than one letter). Probably what you really want is something like: