[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prefix for file in source directory used in ./configure?
From: |
Jason Sewall |
Subject: |
Re: Prefix for file in source directory used in ./configure? |
Date: |
Sun, 25 Apr 2010 15:21:25 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Russ Allbery writes:
> Jason Sewall writes:
>
> > I have a script in the same directory as my configure.ac that tries to
> > clean what commit in my VC we're building.
>
> > GIT_VERSION=`./GIT-VERSION-GEN`
>
> > Obviously, that './' in there doesn't work if I try to configure outside
> > my source directory. What variable do I need add as prefix to that path
> > to let builds outside the source tree find that script?
>
> If that reference is in a Makefile.am or something similar, you want
> either $(abs_top_srcdir) or $(top_srcdir). I tend to use the abs_*
> versions as a matter of course since they avoid weird issues.
I've actually got an AH_TEMPLATE, etc associated with that definition above; I'd
like to have the version end up in config.h. What is the equivalent of
$(abs_top_srcdir) in configure.ac?
Thanks,
Jason