This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: interpolating automake variables?


>>>>> "Rusty" == Rusty Ballinger <rusty@rlyeh.engr.sgi.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]