I'm sorry to be such a pain, but this just isn't working. Here's what I
have.
--configure.in
AC_INIT(test.in)
PACKAGE=test
AC_PREFIX_DEFAULT(/usr/foo)
AC_DEFINE_DIR(CP_PREFIX, prefix)
AC_DEFINE_DIR(CP_LIBDIR, libdir)
CP_PKGLIBDIR=$CP_LIBDIR/$PACKAGE
AC_SUBST(CP_PREFIX)
AC_SUBST(CP_LIBDIR)
AC_SUBS
> "Ti" == Ti Leggett <[EMAIL PROTECTED]> writes:
Ti> Also, is there a way to have @libdir@ expanded out instead of to
Ti> the default ${prefix}/lib that it goes to? Thanks!
http://research.cys.de/autoconf-archive/Miscellaneous/ac_define_dir.html
Ahhh I didn't even see those (and haven't had a chance to do much
testing). Thanks! Now if I only could figure out how to use $prefix,
$libdir, $sysconfdir, etc. in configure.in. Also, is there a way to have
@libdir@ expanded out instead of to the default ${prefix}/lib that it
goes to? Thanks!
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
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!
Paul Berrevoets wrote:
>
> From what you gave ...
>
> c
>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
creatin
I'm reposting my original message because I never heard from anyone on
this. Does anyone have any idea on this. I looked through autoconf's m4
macros and couldn't figure out how to make this happen. Thanks.
---Original
I'm curious if there is a way to make autoconf expand variables
completely. Ta