autoconf
[Top][All Lists]
Advanced

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

Re: Forcing complete expansion of a PATH variable


From: Guido Draheim
Subject: Re: Forcing complete expansion of a PATH variable
Date: Wed, 23 Apr 2003 11:54:07 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020826

you need to eval/echo like in...

http://ac-archive.sf.net/Miscellaneous/ac_define_dir.html
http://ac-archive.sf.net/Miscellaneous/ac_subst_dir.html

Joshua Kwan schrieb:
Hi all,

My program has something like this in configure.in:

AC_ARG_WITH(musicpath,
        AC_HELP_STRING([--with-musicpath], [Path to install music files
        to (default: DATADIR/tetriword/music)]),
                musicpath=$withval,
                musicpath=${datadir}/${PACKAGE}/music)

So musicpath will default to ${datadir}/${PACKAGE}/music. This is good!

But later on:

if test $music = yes; then
echo "Music will be installed in     : $musicpath"
fi

This prints out:

Music will be installed in     : ${prefix}/share/tetriword/music

Ugh! Is there a non-hacky way that I can force the expansion of that
${prefix}?

(please CC me, i'm not subscribed to this list yet)

Regards,
Josh






reply via email to

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