Re: AC_PATH_PROG: Using a variable for prog-to-check-for

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

 



Hi Harlan,

* Harlan Stenn wrote on Sat, Sep 13, 2008 at 05:23:41AM CEST:
> I wrote:
> > 
> >  PATH_NET_SNMP_CONFIG=whatever
> >  AC_PATH_PROG([PATH_NET_SNMP_CONFIG], [$PATH_NET_SNMP_CONFIG])
> > 
> > and that doesn't work (with autoconf 2.59).

What doesn't work with it?  It seems to work fine in a test here (with
both 2.59 and current).  Maybe there is some other code around it which
causes the problem (e.g., PATH_NET_SNMP_CONFIG is also a m4 defined
name, or these two lines are part of an underquoted expansion)?

> Looks like:
> 
>  PATH_NET_SNMP_CONFIG=whatever
>  AC_PATH_PROG([PATH_NET_SNMP_CONFIG], [$[]PATH_NET_SNMP_CONFIG])
> 
> is the ticket.

FWIW, the only change this quoting gets me is inside of a comment.
Looking at the diff of the configure scripts may hint you at what
is different for you.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux