Hello Roland,
* Roland Illig wrote on Thu, Nov 09, 2006 at 11:19:54AM CET:
>
> FOO_DIR="${bindir}"
> AC_SUBST(FOO_DIR)
> AC_DEFINE_UNQUOTED(FOO_DIR, "$FOO_DIR",
> [Directory where foo files are installed])
>
> The problem with that is that the value of bindir is usually
> '${prefix}/bin'
[...]
> What is the most elegant way of solving this?
See here:
http://www.gnu.org/software/autoconf/manual/html_node/Defining-Directories.html
If gnulib is an option for you, then you could use the configmake
module:
http://cvs.savannah.gnu.org/viewcvs/*checkout*/gnulib/gnulib/MODULES.html?rev=HEAD&content-type=text/html#module=configmake
Hope that helps.
Cheers,
Ralf
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf