[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configure help

From: Bob Rossi
Subject: Re: Configure help
Date: Thu, 7 Jul 2005 10:34:25 -0400
User-agent: Mutt/1.3.28i

> Something like a
>   --with-readline[=included]
> might be useful, although I don't know of an established convention for
> the optional `=included' part.
> > Also, AC_CHECK_LIB can not even look for libreadline.a until after the
> > "make" is done. Is there a way to ./configure && make && make install
> > the readline package, and then continue with CGDB's configure?
> Well, if you use your prepackaged readline, there is no need to check
> for either the headers nor the library -- you know they _will_ be there.
> (Of course, in that case your should set appropriate flags
> for preprocessor and linker/libs.)  

Thanks for the general philosophy on how to accomplish this task, it's
much needed. I have several questions though,

I understand how to set the libs flag,
   LIBS="$LIBS -lreadline -lhistory"
however, I can't simply set the -I and -L flags because the path is
relative to the current build directory, right?

Is there a way to get the absolute path to the $srcdir/readline-5.0 in
the, so that I can simply say
-I$ABSOLUTE_srcdir/readline-5.0 -L$ABSOLUTE_srcdir/readline-5.0?

or do I have to have each specify the relatvie path back to
$srcdir/readline-5.0, and only if the internal readline is chosen?

BTW, what's the appropriate way to set the CFLAGS, CPPFLAGS and LDFLAGS?
This is what I have been doing,

LDFLAGS="-L$opt_with_readline_prefix/lib $LDFLAGS"
-I$opt_with_readline_prefix/include/readline $CFLAGS"
-I$opt_with_readline_prefix/include/readline $CPPFLAGS"

Thanks for the much needed help,
Bob Rossi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]