[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to something from the configure script into one of the test prog
From: |
Noah Misch |
Subject: |
Re: how to something from the configure script into one of the test programs? |
Date: |
Tue, 4 Apr 2006 07:09:34 -0700 |
User-agent: |
Mutt/1.5.6i |
On Tue, Apr 04, 2006 at 05:34:05AM -0600, Ed Hartnett wrote:
> AC_SUBST(TEMP_LARGE)
>
> But how do I use TEMP_LARGE when running my test program?
Automake will generate a `TEMP_LARGE = @TEMP_LARGE@' line in each Makefile.in,
so the value will be available to you as a macro in each Makefile.
> I have tried running a test script, and using $TEMP_LARGE in the
> script. This works if I supply TEMP_LARGE on the command line with the
> make command, but it doesn't pick up the TEMP_LARGE defined during
> configure.
You need to get TEMP_LARGE into a shell variable in that script. There are a
number of ways to do this. You could pass the variable through the environment
from your Makefile:
some-rule:
TEMP_LARGE=$(TEMP_LARGE) ./test-script