[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
pgpakVEUUJ6Mo.pgp
Description: PGP signature
- Forcing complete expansion of a variable,
Joshua Kwan <=
- Re: Forcing complete expansion of a PATH variable, Guido Draheim, 2003/04/23
- Re: Forcing complete expansion of a PATH variable, Joshua Kwan, 2003/04/23
- Re: Forcing complete expansion of a PATH variable, Raja R Harinath, 2003/04/23
- Re: Forcing complete expansion of a PATH variable, Joshua Kwan, 2003/04/23
- Re: Forcing complete expansion of a PATH variable, Guido Draheim, 2003/04/24
- Re: Forcing complete expansion of a PATH variable, Tim Van Holder, 2003/04/24
- Re: Forcing complete expansion of a PATH variable, Andreas Schwab, 2003/04/24