This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: How to reflect variables like "sysconfdir" in an executable.
- From: Bob Friesenhahn <bfriesen at simple dot dallas dot tx dot us>
- To: Hans Deragon <hans at deragon dot biz>
- Cc: automake at gnu dot org
- Date: Sun, 15 Feb 2004 17:28:27 -0600 (CST)
- Subject: 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