In GNU Autotools, the directory variables
$localstatedir expand to
Therefore we want to overwrite
/var/lib in our Autotools build system, since we're using it to define a macro in our code:
But if the user provides a custom
--localstatedir=…, we want to use that instead.
How can this be accomplished?
So far I've managed to put a
localstatedir=/var/lib to our
configure.ac, which does the first part correctly. But I haven't found a way to redefine that later, e.g.
./configure --localstatedir=/custom/dir. Is this possible?