Subject: Re: general "configure" question
To: til <tsteinmetz@khm.de>
From: Frederick Bruckman <fredb@immanent.net>
List: port-mac68k
Date: 02/18/2002 13:59:59
On Mon, 18 Feb 2002, til wrote:

> i tried to install the "mutella" client (command line Gnutella-
> http://mutella.sourceforge.net/) on my box. "./configure" complains about
> readline library not installed.
>
> checking for tcgetattr... yes
> checking for readline/readline.h... no
> checking for readline in readline.h... no
> checking for readline in readline.h with curses... no
> checking for readline in readline.h with ncurses... no
> checking for readline in readline.h with termcap... no
> configure: error: You must have readline library!
>
> so i used pkg_add to install the readline library, but the problem still
> appeared. how can i point configure scripts to search more locations for
> files they need ?

Some configure scripts accept an argument like
"--with-readline=/usr/pkg". Try it. If the script doesn't accept that,
you can usually force the issue thusly:

	export LD_RUN_PATH='/usr/pkg/lib:/usr/X11R6/lib'
	export LDFLAGS='-L/usr/pkg/lib -Wl,-R/usr/X11R6/lib'
	export LIBS='-L/usr/pkg/lib'
	export CFLAGS='-I/usr/pkg/include'
	export CPPFLAGS='-I/usr/pkg/include'
	configure

or some variation thereof. ["csh" users use "setenv" instead of
"export".]

The redundancy is often necessary, because "configure" always
recognizes "LIBS" and "CPPFLAGS", but doesn't always pass them to the
GNU makefiles. The GNU makefiles, on the other hand, usually respect
LDFLAGS and CFLAGS.

Frederick