Installation should be as simple as:

./configure
make
make install


If you don't have GNU readline 4.2 or later, the configure script will
complain; you can get it at ftp://ftp.gnu.org/gnu/readline/

configure can be called with a number of options (e.g. if you want to
install rlwrap in a non-standard place). Do 

./configure --help

to see them all. Most of them are not specific to rlwrap, the two that are:

--enable-spy-on-readline : If we want to keep the display tidy when
re-sizing the terminal window, we have to know whether or not readline
is in horizontal-scroll-mode (i.e. wheter long lines are scrolled or
wrapped). At present, this involves a look at a private readline
variable - if you feel guilty about that, leave this option off.

--enable-homegrown-redisplay: some people report ddouble echoing of
user input (up till now only on some SunOS systems). Enabling this
option will cure the problem - though the display will then flicker over
slow connections.

To uninstall, do 'make uninstall'

*** Installing as non-root

If you want to install rlwrap as non-root, you should call configure with 
the --prefix option, like:

./configure --prefix=$HOME 

after which 'make install' will install rlwrap in $HOME/bin

You may have to install GNU readline 4.2 first, (e.g using ./configure
--prefix=$HOME in the readline-4.2 directory)

rlwrap's configure script will not find this installation automatically, but

CFLAGS=-I$HOME/include CPPFLAGS=-I$HOME/include LDFLAGS=-L$HOME/lib ./configure --prefix=$HOME

should work. You can add '-static' to LDFLAGS if you want to build a statically linked rlwrap.


