autoconf
[Top][All Lists]
Advanced

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

Forcing complete expansion of a variable


From: Joshua Kwan
Subject: Forcing complete expansion of a variable
Date: Tue, 22 Apr 2003 21:32:13 -0700
User-agent: Mutt/1.5.4i

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

-- 
New PGP public key: 0x27AFC3EE

Attachment: pgpakVEUUJ6Mo.pgp
Description: PGP signature


reply via email to

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