[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: interpolating automake variables?
From: |
Tom Tromey |
Subject: |
Re: interpolating automake variables? |
Date: |
14 Jun 2001 19:05:18 -0600 |
>>>>> "Rusty" == Rusty Ballinger <address@hidden> writes:
Rusty> Is there a simpler way to do this? It seems like you'd wind up
Rusty> doing a lot of work which automake already does.
Another method is to use a macro (available at the macro archive) to
expand $prefix or whatever at configure time into a separate variable
which you AC_SUBST, and then just go ahead and use AC_OUTPUT.
In some ways this isn't as friendly.
Automake itself takes the cheapo hack route:
my $prefix = "@prefix@";
my $perllibdir = $ENV{'perllibdir'} || "@datadir@/@PACKAGE@";
This is ugly, but it has worked for years.
Tom