autoconf
[Top][All Lists]
Advanced

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

Re: Help with path expansion


From: Ralf Wildenhues
Subject: Re: Help with path expansion
Date: Thu, 20 Jan 2011 07:43:54 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

* Mike Gran wrote on Wed, Jan 19, 2011 at 06:26:24PM CET:
>     pkgsitedir="$datadir/$PACKAGE_NAME"
>     AC_MSG_WARN([]
>        [The modules will be installed in ${pkgsitedir}.])
> 
> When I run it, I get the text
> 
>     configure: WARNING:
>        The modules will be installed in ${datarootdir}/blammo.
> 
> Is there a way to have this warning output the full path, e.g.
> for it to say something like
> 
>        The modules will be installed in /usr/local/share/blammo

Try

pkgsitedir="$datadir/$PACKAGE_NAME"
eval "expanded_pkgsitedir=\"$pkgsitedir\""
eval "expanded_pkgsitedir=\"$expanded_pkgsitedir\""
AC_MSG_NOTICE([]
   [The modules will be installed in ${expanded_pkgsitedir}.])

but please don't use the expanded value elsewhere; see the FAQ
  info Autoconf "Defining Directories"

and references therein.  Hope that helps.

Cheers,
Ralf



reply via email to

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