This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to reflect variables like "sysconfdir" in an executable.


On Sun, 15 Feb 2004, Hans Deragon wrote:
>
> Thanks.  It almost works.  The problem is that it substitute "@datadir@" with
> "${prefix}/share".  That is not right.  ${prefix} must be expanded.  Python
> does not understand ${prefix}.  Any suggestions?  In should be something like
> "/usr/share" in my script.

Do something like

eval "eval DATA_DIR=$datadir"
AC_SUBST(DATA_DIR)

and then use

@DATA_DIR@

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]