Hello

in configure.ac, we do (I simplify)

PACKAGE_DATA_DIR=${datadir}
ACSUBST([PACKAGE_DATA_DIR])

etc...

AC_CONFIG_FILES([
file
])

And in file.in:

path=@PACKAGE_DATA_DIR@

It's not good as $datadir is not defined at configure time.

One solution is to use a sed command in a make rule in Makefile.am.

Is there a better solution to do what we want ?

thank you

Vincent Torri

_______________________________________________
Autoconf mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to