automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Hans Deragon
Subject: Re: How to reflect variables like "sysconfdir" in an executable.
Date: Sun, 15 Feb 2004 18:38:33 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116

Bob Friesenhahn wrote:
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
address@hidden
http://www.simplesystems.org/users/bfriesen


Bingo.  I confirm that this work.  Thanks.


Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc.     Open source:
http://www.deragon.biz        http://autopoweroff.sourceforge.net
mailto://address@hidden     (Automatically poweroff home servers)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]