>I'm trying to install openssh 2.3.0 with tcp wrappers support, however,
>when I run ./configure --with-tcp-wrappers I get a configure error:
>configure error: *** libwrap missing.
>I've already installed tcp wrappers and libwrap.a exists. How can I
>tell configure where to find libwrap?
I haven't tried it with openssh, but usually with configure it works
something like this:
$ CFLAGS='-I/usr/local/libwrap/include'
$ export CFLAGS
$ LDFLAGS='-L/usr/local/libwrap/lib'
$ export LDFLAGS
$ ./configure --with-tcp-wrappers
Sometimes it also works to do
$ ./configure --with-tcp-wrappers=/usr/local/libwrap
If none of that works, I usually trick the configure script into
doing the right thing. I do this by lying to it about what the compiler
is called. That is, instead of this:
$ CC=gcc
$ export CC
$ ./configure
I do something like this:
$ CC='gcc -I/usr/local/libwrap/include -L/usr/local/libwrap/lib'
$ export CC
$ ./configure
That way, as long as the Makefile runs $(CC) whenever it needs to
compile or link, it will be able to find what it needs. (For some
reason, some developers feel compelled to make their Makefiles and
configure scripts override settings of LDFLAGS and CFLAGS with stuff
that doesn't work in many cases, so sometimes this is the only way.)
- Logan