Ti Leggett wrote:
> That's what I want but that's not what I get. When configure does it's
> substitutions it doesn't seem to expand variables that are used to
> define other variables. If that worked for you I guess I need to figure
> out what's different. Thanks!
This will happen if you use
CP_LIBDIR='$CP_PREFIX/lib'
but not if you use
CP_LIBDIR=$CP_PREFIX/lib
or
CP_LIBDIR="$CP_PREFIX/lib"
--
Paul
>
>
> Paul Berrevoets wrote:
> >
> > From what you gave ...
> >
> > configure.in:
> > AC_INIT(test.in)
> > PACKAGE=test
> > CP_PREFIX=/usr/local
> > CP_LIBDIR=$CP_PREFIX/lib
> > CP_PKGLIBDIR=$CP_LIBDIR/$PACKAGE
> > AC_SUBST(CP_PREFIX)
> > AC_SUBST(CP_LIBDIR)
> > AC_SUBST(CP_PKGLIBDIR)
> > AC_OUTPUT(test)
> >
> > test.in:
> > @CP_PREFIX@
> > @CP_LIBDIR@
> > @CP_PKGLIBDIR@
> >
> > $ ./configure
> > creating cache ./config.cache
> > updating cache ./config.cache
> > creating ./config.status
> > creating test
> >
> > $ cat test
> > /usr/local
> > /usr/local/lib
> > /usr/local/lib/test
> >
> > This is what you want isn't it?
> > --
> > Paul
> >
>
> --
> -Ti Leggett
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]