head	1.1;
branch	1.1.1;
access;
symbols
	RELENG_8_4:1.1.1.10.0.30
	RELENG_9_1_0_RELEASE:1.1.1.10
	RELENG_9_1:1.1.1.10.0.28
	RELENG_9_1_BP:1.1.1.10
	RELENG_8_3_0_RELEASE:1.1.1.10
	RELENG_8_3:1.1.1.10.0.26
	RELENG_8_3_BP:1.1.1.10
	RELENG_9_0_0_RELEASE:1.1.1.10
	RELENG_9_0:1.1.1.10.0.24
	RELENG_9_0_BP:1.1.1.10
	RELENG_9:1.1.1.10.0.22
	RELENG_9_BP:1.1.1.10
	RELENG_7_4_0_RELEASE:1.1.1.10
	RELENG_8_2_0_RELEASE:1.1.1.10
	RELENG_7_4:1.1.1.10.0.20
	RELENG_7_4_BP:1.1.1.10
	RELENG_8_2:1.1.1.10.0.18
	RELENG_8_2_BP:1.1.1.10
	RELENG_8_1_0_RELEASE:1.1.1.10
	RELENG_8_1:1.1.1.10.0.16
	RELENG_8_1_BP:1.1.1.10
	RELENG_7_3_0_RELEASE:1.1.1.10
	RELENG_7_3:1.1.1.10.0.14
	RELENG_7_3_BP:1.1.1.10
	RELENG_8_0_0_RELEASE:1.1.1.10
	RELENG_8_0:1.1.1.10.0.12
	RELENG_8_0_BP:1.1.1.10
	RELENG_8:1.1.1.10.0.10
	RELENG_8_BP:1.1.1.10
	RELENG_7_2_0_RELEASE:1.1.1.10
	RELENG_7_2:1.1.1.10.0.8
	RELENG_7_2_BP:1.1.1.10
	RELENG_7_1_0_RELEASE:1.1.1.10
	RELENG_6_4_0_RELEASE:1.1.1.8.2.1
	RELENG_7_1:1.1.1.10.0.6
	RELENG_7_1_BP:1.1.1.10
	RELENG_6_4:1.1.1.8.2.1.0.4
	RELENG_6_4_BP:1.1.1.8.2.1
	RELENG_7_0_0_RELEASE:1.1.1.10
	RELENG_6_3_0_RELEASE:1.1.1.8.2.1
	RELENG_7_0:1.1.1.10.0.4
	RELENG_7_0_BP:1.1.1.10
	RELENG_6_3:1.1.1.8.2.1.0.2
	RELENG_6_3_BP:1.1.1.8.2.1
	RELENG_7:1.1.1.10.0.2
	RELENG_7_BP:1.1.1.10
	RELENG_6_2_0_RELEASE:1.1.1.8
	v5_2:1.1.1.10
	RELENG_6_2:1.1.1.8.0.8
	RELENG_6_2_BP:1.1.1.8
	RELENG_5_5_0_RELEASE:1.1.1.7
	RELENG_5_5:1.1.1.7.0.10
	RELENG_5_5_BP:1.1.1.7
	RELENG_6_1_0_RELEASE:1.1.1.8
	RELENG_6_1:1.1.1.8.0.6
	RELENG_6_1_BP:1.1.1.8
	v5_1:1.1.1.9
	RELENG_6_0_0_RELEASE:1.1.1.8
	RELENG_6_0:1.1.1.8.0.4
	RELENG_6_0_BP:1.1.1.8
	RELENG_6:1.1.1.8.0.2
	RELENG_6_BP:1.1.1.8
	RELENG_5_4_0_RELEASE:1.1.1.7
	RELENG_5_4:1.1.1.7.0.8
	RELENG_5_4_BP:1.1.1.7
	RELENG_4_11_0_RELEASE:1.1.1.4.2.1
	RELENG_4_11:1.1.1.4.2.1.0.18
	RELENG_4_11_BP:1.1.1.4.2.1
	RELENG_5_3_0_RELEASE:1.1.1.7
	v5_0:1.1.1.8
	RELENG_5_3:1.1.1.7.0.6
	RELENG_5_3_BP:1.1.1.7
	RELENG_5:1.1.1.7.0.4
	RELENG_5_BP:1.1.1.7
	RELENG_4_10_0_RELEASE:1.1.1.4.2.1
	RELENG_4_10:1.1.1.4.2.1.0.16
	RELENG_4_10_BP:1.1.1.4.2.1
	RELENG_5_2_1_RELEASE:1.1.1.7
	RELENG_5_2_0_RELEASE:1.1.1.7
	RELENG_5_2:1.1.1.7.0.2
	RELENG_5_2_BP:1.1.1.7
	RELENG_4_9_0_RELEASE:1.1.1.4.2.1
	RELENG_4_9:1.1.1.4.2.1.0.14
	RELENG_4_9_BP:1.1.1.4.2.1
	v4_3:1.1.1.7
	RELENG_5_1_0_RELEASE:1.1.1.6
	RELENG_5_1:1.1.1.6.0.4
	RELENG_5_1_BP:1.1.1.6
	RELENG_4_8_0_RELEASE:1.1.1.4.2.1
	RELENG_4_8:1.1.1.4.2.1.0.12
	RELENG_4_8_BP:1.1.1.4.2.1
	RELENG_5_0_0_RELEASE:1.1.1.6
	RELENG_5_0:1.1.1.6.0.2
	RELENG_5_0_BP:1.1.1.6
	RELENG_4_7_0_RELEASE:1.1.1.4.2.1
	RELENG_4_7:1.1.1.4.2.1.0.10
	RELENG_4_7_BP:1.1.1.4.2.1
	RELENG_4_6_2_RELEASE:1.1.1.4.2.1
	RELENG_4_6_1_RELEASE:1.1.1.4.2.1
	RELENG_4_6_0_RELEASE:1.1.1.4.2.1
	RELENG_4_6:1.1.1.4.2.1.0.8
	RELENG_4_6_BP:1.1.1.4.2.1
	RELENG_4_5_0_RELEASE:1.1.1.4.2.1
	RELENG_4_5:1.1.1.4.2.1.0.6
	RELENG_4_5_BP:1.1.1.4.2.1
	RELENG_4_4_0_RELEASE:1.1.1.4.2.1
	RELENG_4_4:1.1.1.4.2.1.0.4
	RELENG_4_4_BP:1.1.1.4.2.1
	RELENG_4_3_0_RELEASE:1.1.1.4.2.1
	RELENG_4_3:1.1.1.4.2.1.0.2
	RELENG_4_3_BP:1.1.1.4.2.1
	v4_2:1.1.1.6
	RELENG_4_2_0_RELEASE:1.1.1.4.2.1
	RELENG_4_1_1_RELEASE:1.1.1.4.2.1
	PRE_SMPNG:1.1.1.5
	RELENG_4_1_0_RELEASE:1.1.1.4.2.1
	RELENG_3_5_0_RELEASE:1.1.1.3.2.1
	v4_1:1.1.1.5
	RELENG_4_0_0_RELEASE:1.1.1.4
	RELENG_4:1.1.1.4.0.2
	RELENG_4_BP:1.1.1.4
	RELENG_3_4_0_RELEASE:1.1.1.3.2.1
	RELENG_3_3_0_RELEASE:1.1.1.3.2.1
	RELENG_3_2_PAO:1.1.1.3.0.4
	RELENG_3_2_PAO_BP:1.1.1.3
	v4_0:1.1.1.4
	RELENG_3_2_0_RELEASE:1.1.1.3
	RELENG_3_1_0_RELEASE:1.1.1.3
	RELENG_3:1.1.1.3.0.2
	RELENG_3_BP:1.1.1.3
	RELENG_2_2_8_RELEASE:1.1.1.1
	RELENG_3_0_0_RELEASE:1.1.1.3
	RELENG_2_2_7_RELEASE:1.1.1.1
	v2_2:1.1.1.3
	RELENG_2_2_6_RELEASE:1.1.1.1
	bash-2_01_1:1.1.1.2
	RELENG_2_2_5_RELEASE:1.1.1.1
	v2_1:1.1.1.2
	RELENG_2_2_2_RELEASE:1.1.1.1
	RELENG_2_2:1.1.1.1.0.2
	bash-2_0:1.1.1.1
	FSF:1.1.1;
locks; strict;
comment	@# @;


1.1
date	97.01.04.22.09.18;	author ache;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.01.04.22.09.18;	author ache;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.06.07.12.17.37;	author ache;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	98.04.28.06.18.53;	author ache;	state Exp;
branches
	1.1.1.3.2.1;
next	1.1.1.4;

1.1.1.4
date	99.05.28.01.58.31;	author ache;	state Exp;
branches
	1.1.1.4.2.1;
next	1.1.1.5;

1.1.1.5
date	2000.03.19.21.17.32;	author ache;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2001.04.11.02.33.06;	author ache;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2003.08.31.17.55.41;	author ache;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2004.10.18.07.02.36;	author ache;	state Exp;
branches
	1.1.1.8.2.1;
next	1.1.1.9;

1.1.1.9
date	2006.03.27.22.47.06;	author ache;	state Exp;
branches;
next	1.1.1.10;

1.1.1.10
date	2006.12.31.09.06.24;	author ache;	state Exp;
branches
	1.1.1.10.30.1;
next	;

1.1.1.3.2.1
date	99.08.18.19.15.19;	author obrien;	state Exp;
branches;
next	;

1.1.1.4.2.1
date	2000.07.06.23.04.23;	author ache;	state Exp;
branches;
next	;

1.1.1.8.2.1
date	2007.04.17.03.23.11;	author rafan;	state Exp;
branches;
next	;

1.1.1.10.30.1
date	2006.12.31.09.06.24;	author svnexp;	state dead;
branches;
next	1.1.1.10.30.2;

1.1.1.10.30.2
date	2013.03.28.13.01.30;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@This is the distribution of the Gnu Readline library.  See the file
STANDALONE for a description of the #defines that can be passed via
the makefile to build readline on different systems.

The file rlconf.h contains defines that enable and disable certain
readline features.
@


1.1.1.1
log
@Libreadline.
@
text
@@


1.1.1.2
log
@Virgin import of readline-2.1, unneded docs deleted
@
text
@d1 3
a3 35
Introduction
============

This is the Gnu Readline library, version 2.1.

The Readline library provides a set of functions for use by applications
that allow users to edit command lines as they are typed in.  Both
Emacs and vi editing modes are available.  The Readline library includes
additional functions to maintain a list of previously-entered command
lines, to recall and perhaps reedit those lines, and perform csh-like
history expansion on previous commands.

The history facilites are also placed into a separate library, the
History library, as part of the build process.  The History library
may be used without Readline in applications which desire its
capabilities.

The Readline library is free software, distributed under the terms of
the GNU Public License, version 2.  For more information, see the file
COPYING.

To build the library, try typing `./configure', then `make'.  The
configuration process is automated, so no further intervention should
be necessary.  Readline builds with `gcc' by default if it is
available.  If you want to use `cc' instead, type

        CC=cc ./configure

if you are using a Bourne-style shell.  If you are not, the following
may work:

        env CC=cc ./configure

Read the file INSTALL in this directory for more information about how
to customize and control the build process.
d6 1
a6 75
Readline features.

Examples
========

There are several example programs that use Readline features in the
examples directory.  The `rl' program is of particular interest.  It
is a command-line interface to Readline, suitable for use in shell
scripts in place of `read'.

Shared Libraries
================

There is skeletal support for building shared versions of the
Readline and History libraries.

Typing `make shared' will cause shared versions of the Readline and
History libraries to be built on SunOS 4.1.x.  For versions of Unix
other than SunOS, you will have to make some changes to Makefile.in.
The relevant variables are:

PICFLAG		Options to give to the compiler to produce position-independent
		code.  The value `-fpic' works for most versions of gcc.
SHLIB_OPTS	Options to give to the linker to produce a shared library.
		The value `-assert pure-text -ldl' works on SunOS 4.1.x.
		The value `-Bshareable' works for some versions of GNU ld.

MAJOR		The major version number of the shared library.  You should
		not need to change this.
MINOR		The minor version number of the shared library.  Some systems,
		such as SVR4 and its descendents (e.g., Solaris, Unixware),
		do not use minor version numbers.  For those systems, this
		variable should be left unset.

LD		The linker.  The value of `ld' is correct for SunOS 4.1.x.
		You may need to change it to `gcc'; make sure to change
		SHLIB_OPTS if you do so.

Once you have edited Makefile.in, type `make Makefile' to rebuild the
Makefile, then `make shared' to build the shared libraries.

Documentation
=============

The documentation for the Readline and History libraries appears in the
`doc' subdirectory.  There are two texinfo files and a Unix-style manual
page describing the programming facilities available in the Readline
library.  The texinfo files include both user and programmer's manuals.

Reporting Bugs
==============

Bug reports for Readline should be sent to:

        bug-readline@@prep.ai.mit.edu

When reporting a bug, please include the following information:

        * the version number and release status of Readline (e.g., 2.1-release)
        * the machine and OS that it is running on
        * a list of the compilation flags or the contents of `config.h', if
          appropriate
        * a description of the bug
        * a recipe for recreating the bug reliably
        * a fix for the bug if you have one!

If you would like to contact the Readline maintainer directly, send mail
to bash-maintainers@@prep.ai.mit.edu.

Since Readline is developed along with bash, the bug-bash@@prep.ai.mit.edu
mailing list (mirrored to the Usenet newsgroup gnu.bash.bug) often contains
Readline bug reports and fixes.

Chet Ramey
chet@@po.cwru.edu
@


1.1.1.3
log
@V2.2 import
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 2.2
d92 1
a92 1
        bug-readline@@gnu.org
d96 1
a96 1
        * the version number and release status of Readline (e.g., 2.2-release)
d105 1
a105 1
to bash-maintainers@@gnu.org.
d107 3
a109 3
Since Readline is developed along with bash, the bug-bash@@gnu.org mailing
list (mirrored to the Usenet newsgroup gnu.bash.bug) often contains
Readline bug reports and fixes. 
@


1.1.1.3.2.1
log
@MFC: upgrade to readline-4.0.
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 4.0.
d37 2
a38 2
The file rlconf.h contains C preprocessor defines that enable and disable
certain Readline features.
d52 26
a77 77
Readline and History libraries.  The configure script creates
a Makefile in the `shlib' subdirectory, and typing `make shared'
will cause shared versions of the Readline and History libraries
to be built on supported platforms.

Configure calls the script support/shobj-conf to test whether or
not shared library creation is supported and to generate the values
of variables that are substituted into shlib/Makefile.  If you
try to build shared libraries on an unsupported platform, `make'
will display a message asking you to update support/shobj-conf for
your platform.

If you need to update support/shobj-conf, you will need to create
a `stanza' for your operating system and compiler.  The script uses
the value of host_os and ${CC} as determined by configure.  For
instance, FreeBSD 2.2.5 with any version of gcc is identified as
`freebsd2.2.5-gcc*'.

In the stanza for your operating system-compiler pair, you will need to
define several variables.  They are:

SHOBJ_CC	The C compiler used to compile source files into shareable
		object files.  This is normally set to the value of ${CC}
		by configure, and should not need to be changed.

SHOBJ_CFLAGS	Flags to pass to the C compiler ($SHOBJ_CC) to create
		position-independent code.  If you are using gcc, this
		should probably be set to `-fpic'.

SHOBJ_LD	The link editor to be used to create the shared library from
		the object files created by $SHOBJ_CC.  If you are using
		gcc, a value of `gcc' will probably work.

SHOBJ_LDFLAGS	Flags to pass to SHOBJ_LD to enable shared object creation.
		If you are using gcc, `-shared' may be all that is necessary.
		These should be the flags needed for generic shared object
		creation.

SHLIB_XLDFLAGS	Additional flags to pass to SHOBJ_LD for shared library
		creation.  Many systems use the -R option to the link
		editor to embed a path within the library for run-time
		library searches.  A reasonable value for such systems would
		be `-R$(libdir)'.

SHLIB_LIBS	Any additional libraries that shared libraries should be
		linked against when they are created.

SHLIB_LIBSUFF	The suffix to add to `libreadline' and `libhistory' when
		generating the filename of the shared library.  Many systems
		use `so'; HP-UX uses `sl'.

SHLIB_LIBVERSION The string to append to the filename to indicate the version
		of the shared library.  It should begin with $(SHLIB_LIBSUFF),
		and possibly include version information that allows the
		run-time loader to load the version of the shared library
		appropriate for a particular program.  Systems using shared
		libraries similar to SunOS 4.x use major and minor library
		version numbers; for those systems a value of
		`$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
		Systems based on System V Release 4 don't use minor version
		numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
		Other Unix versions use different schemes.

SHLIB_STATUS	Set this to `supported' when you have defined the other
		necessary variables.  Make uses this to determine whether
		or not shared library creation should be attempted.

You should look at the existing stanzas in support/shobj-conf for ideas.

Once you have updated support/shobj-conf, re-run configure and type
`make shared'.  The shared libraries will be created in the shlib
subdirectory.

Since shared libraries are not created on all platforms, `make install'
will not automatically install the shared libraries.  To install them,
change the current directory to shlib and type `make install'.  Running
`make install-shared' from the top-level build directory will also work.
d96 1
a96 1
        * the version number and release status of Readline (e.g., 4.0-release)
@


1.1.1.4
log
@readline v4.0
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 4.0.
d37 2
a38 2
The file rlconf.h contains C preprocessor defines that enable and disable
certain Readline features.
d52 26
a77 77
Readline and History libraries.  The configure script creates
a Makefile in the `shlib' subdirectory, and typing `make shared'
will cause shared versions of the Readline and History libraries
to be built on supported platforms.

Configure calls the script support/shobj-conf to test whether or
not shared library creation is supported and to generate the values
of variables that are substituted into shlib/Makefile.  If you
try to build shared libraries on an unsupported platform, `make'
will display a message asking you to update support/shobj-conf for
your platform.

If you need to update support/shobj-conf, you will need to create
a `stanza' for your operating system and compiler.  The script uses
the value of host_os and ${CC} as determined by configure.  For
instance, FreeBSD 2.2.5 with any version of gcc is identified as
`freebsd2.2.5-gcc*'.

In the stanza for your operating system-compiler pair, you will need to
define several variables.  They are:

SHOBJ_CC	The C compiler used to compile source files into shareable
		object files.  This is normally set to the value of ${CC}
		by configure, and should not need to be changed.

SHOBJ_CFLAGS	Flags to pass to the C compiler ($SHOBJ_CC) to create
		position-independent code.  If you are using gcc, this
		should probably be set to `-fpic'.

SHOBJ_LD	The link editor to be used to create the shared library from
		the object files created by $SHOBJ_CC.  If you are using
		gcc, a value of `gcc' will probably work.

SHOBJ_LDFLAGS	Flags to pass to SHOBJ_LD to enable shared object creation.
		If you are using gcc, `-shared' may be all that is necessary.
		These should be the flags needed for generic shared object
		creation.

SHLIB_XLDFLAGS	Additional flags to pass to SHOBJ_LD for shared library
		creation.  Many systems use the -R option to the link
		editor to embed a path within the library for run-time
		library searches.  A reasonable value for such systems would
		be `-R$(libdir)'.

SHLIB_LIBS	Any additional libraries that shared libraries should be
		linked against when they are created.

SHLIB_LIBSUFF	The suffix to add to `libreadline' and `libhistory' when
		generating the filename of the shared library.  Many systems
		use `so'; HP-UX uses `sl'.

SHLIB_LIBVERSION The string to append to the filename to indicate the version
		of the shared library.  It should begin with $(SHLIB_LIBSUFF),
		and possibly include version information that allows the
		run-time loader to load the version of the shared library
		appropriate for a particular program.  Systems using shared
		libraries similar to SunOS 4.x use major and minor library
		version numbers; for those systems a value of
		`$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
		Systems based on System V Release 4 don't use minor version
		numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
		Other Unix versions use different schemes.

SHLIB_STATUS	Set this to `supported' when you have defined the other
		necessary variables.  Make uses this to determine whether
		or not shared library creation should be attempted.

You should look at the existing stanzas in support/shobj-conf for ideas.

Once you have updated support/shobj-conf, re-run configure and type
`make shared'.  The shared libraries will be created in the shlib
subdirectory.

Since shared libraries are not created on all platforms, `make install'
will not automatically install the shared libraries.  To install them,
change the current directory to shlib and type `make install'.  Running
`make install-shared' from the top-level build directory will also work.
d96 1
a96 1
        * the version number and release status of Readline (e.g., 4.0-release)
@


1.1.1.4.2.1
log
@MFC: upgrade to 4.1
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 4.1.
@


1.1.1.5
log
@Initial import of v4.1
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 4.1.
@


1.1.1.6
log
@v4.2 initial import
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 4.2.
a39 3
The special make target `everything' will build the static and shared
libraries (if the target platform supports them) and the examples.

d67 2
a68 2
instance, FreeBSD 4.2 using the ELF object file format  with any
version of gcc is identified as `freebsdelf4.2-gcc*'.
d147 1
a147 1
        * the version number and release status of Readline (e.g., 4.2-release)
@


1.1.1.7
log
@Virgin import of GNU Readline 4.3
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 4.3.
d19 2
a20 2
the [GNU] General Public License, version 2.  For more information, see
the file COPYING.
a59 3
If `configure' is given the `--enable-shared' option, it will attempt
to build the shared libraries by default on supported platforms.

d70 2
a71 2
instance, FreeBSD 4.2 with any version of gcc is identified as
`freebsd4.2-gcc*'.
d128 4
a131 5
If shared libraries are created, `make install' will install them. 
You may install only the shared libraries by running `make
install-shared' from the top-level build directory.  Running `make
install' in the shlib subdirectory will also work.  If you don't want
to install any created shared libraries, run `make install-static'. 
d136 4
a139 6
The documentation for the Readline and History libraries appears in
the `doc' subdirectory.  There are three texinfo files and a
Unix-style manual page describing the facilities available in the
Readline library.  The texinfo files include both user and
programmer's manuals.  HTML versions of the manuals appear in the
`doc' subdirectory as well. 
@


1.1.1.8
log
@Virgin import of GNU Readline 5.0
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 5.0.
@


1.1.1.8.2.1
log
@MFC readline 5.2 patchset 002

Approved by:	delphij (mentor)
OKed by:	ache
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 5.2.
a104 3
SHLIB_LIBPREF	The prefix to use when generating the filename of the shared
		library.  The default is `lib'; Cygwin uses `cyg'.

a120 11
SHLIB_DLLVERSION The version number for shared libraries that determines API
		compatibility between readline versions and the underlying
		system.  Used only on Cygwin.  Defaults to $SHLIB_MAJOR, but
		can be overridden at configuration time by defining DLLVERSION
		in the environment.

SHLIB_DOT	The character used to separate the name of the shared library
		from the suffix and version information.  The default is `.';
		systems like Cygwin which don't separate version information
		from the library name should set this to the empty string.

d172 1
a172 1
chet.ramey@@case.edu
@


1.1.1.9
log
@Virgin import of GNU Readline 5.1
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 5.1.
a104 3
SHLIB_LIBPREF	The prefix to use when generating the filename of the shared
		library.  The default is `lib'; Cygwin uses `cyg'.

a120 11
SHLIB_DLLVERSION The version number for shared libraries that determines API
		compatibility between readline versions and the underlying
		system.  Used only on Cygwin.  Defaults to $SHLIB_MAJOR, but
		can be overridden at configuration time by defining DLLVERSION
		in the environment.

SHLIB_DOT	The character used to separate the name of the shared library
		from the suffix and version information.  The default is `.';
		systems like Cygwin which don't separate version information
		from the library name should set this to the empty string.

@


1.1.1.10
log
@Virgin import of GNU Readline 5.2
@
text
@d4 1
a4 1
This is the Gnu Readline library, version 5.2.
d186 1
a186 1
chet.ramey@@case.edu
@


1.1.1.10.30.1
log
@file README was added on branch RELENG_8_4 on 2013-03-28 13:01:30 +0000
@
text
@d1 186
@


1.1.1.10.30.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 186
Introduction
============

This is the Gnu Readline library, version 5.2.

The Readline library provides a set of functions for use by applications
that allow users to edit command lines as they are typed in.  Both
Emacs and vi editing modes are available.  The Readline library includes
additional functions to maintain a list of previously-entered command
lines, to recall and perhaps reedit those lines, and perform csh-like
history expansion on previous commands.

The history facilites are also placed into a separate library, the
History library, as part of the build process.  The History library
may be used without Readline in applications which desire its
capabilities.

The Readline library is free software, distributed under the terms of
the [GNU] General Public License, version 2.  For more information, see
the file COPYING.

To build the library, try typing `./configure', then `make'.  The
configuration process is automated, so no further intervention should
be necessary.  Readline builds with `gcc' by default if it is
available.  If you want to use `cc' instead, type

        CC=cc ./configure

if you are using a Bourne-style shell.  If you are not, the following
may work:

        env CC=cc ./configure

Read the file INSTALL in this directory for more information about how
to customize and control the build process.

The file rlconf.h contains C preprocessor defines that enable and disable
certain Readline features.

The special make target `everything' will build the static and shared
libraries (if the target platform supports them) and the examples.

Examples
========

There are several example programs that use Readline features in the
examples directory.  The `rl' program is of particular interest.  It
is a command-line interface to Readline, suitable for use in shell
scripts in place of `read'.

Shared Libraries
================

There is skeletal support for building shared versions of the
Readline and History libraries.  The configure script creates
a Makefile in the `shlib' subdirectory, and typing `make shared'
will cause shared versions of the Readline and History libraries
to be built on supported platforms.

If `configure' is given the `--enable-shared' option, it will attempt
to build the shared libraries by default on supported platforms.

Configure calls the script support/shobj-conf to test whether or
not shared library creation is supported and to generate the values
of variables that are substituted into shlib/Makefile.  If you
try to build shared libraries on an unsupported platform, `make'
will display a message asking you to update support/shobj-conf for
your platform.

If you need to update support/shobj-conf, you will need to create
a `stanza' for your operating system and compiler.  The script uses
the value of host_os and ${CC} as determined by configure.  For
instance, FreeBSD 4.2 with any version of gcc is identified as
`freebsd4.2-gcc*'.

In the stanza for your operating system-compiler pair, you will need to
define several variables.  They are:

SHOBJ_CC	The C compiler used to compile source files into shareable
		object files.  This is normally set to the value of ${CC}
		by configure, and should not need to be changed.

SHOBJ_CFLAGS	Flags to pass to the C compiler ($SHOBJ_CC) to create
		position-independent code.  If you are using gcc, this
		should probably be set to `-fpic'.

SHOBJ_LD	The link editor to be used to create the shared library from
		the object files created by $SHOBJ_CC.  If you are using
		gcc, a value of `gcc' will probably work.

SHOBJ_LDFLAGS	Flags to pass to SHOBJ_LD to enable shared object creation.
		If you are using gcc, `-shared' may be all that is necessary.
		These should be the flags needed for generic shared object
		creation.

SHLIB_XLDFLAGS	Additional flags to pass to SHOBJ_LD for shared library
		creation.  Many systems use the -R option to the link
		editor to embed a path within the library for run-time
		library searches.  A reasonable value for such systems would
		be `-R$(libdir)'.

SHLIB_LIBS	Any additional libraries that shared libraries should be
		linked against when they are created.

SHLIB_LIBPREF	The prefix to use when generating the filename of the shared
		library.  The default is `lib'; Cygwin uses `cyg'.

SHLIB_LIBSUFF	The suffix to add to `libreadline' and `libhistory' when
		generating the filename of the shared library.  Many systems
		use `so'; HP-UX uses `sl'.

SHLIB_LIBVERSION The string to append to the filename to indicate the version
		of the shared library.  It should begin with $(SHLIB_LIBSUFF),
		and possibly include version information that allows the
		run-time loader to load the version of the shared library
		appropriate for a particular program.  Systems using shared
		libraries similar to SunOS 4.x use major and minor library
		version numbers; for those systems a value of
		`$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
		Systems based on System V Release 4 don't use minor version
		numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
		Other Unix versions use different schemes.

SHLIB_DLLVERSION The version number for shared libraries that determines API
		compatibility between readline versions and the underlying
		system.  Used only on Cygwin.  Defaults to $SHLIB_MAJOR, but
		can be overridden at configuration time by defining DLLVERSION
		in the environment.

SHLIB_DOT	The character used to separate the name of the shared library
		from the suffix and version information.  The default is `.';
		systems like Cygwin which don't separate version information
		from the library name should set this to the empty string.

SHLIB_STATUS	Set this to `supported' when you have defined the other
		necessary variables.  Make uses this to determine whether
		or not shared library creation should be attempted.

You should look at the existing stanzas in support/shobj-conf for ideas.

Once you have updated support/shobj-conf, re-run configure and type
`make shared'.  The shared libraries will be created in the shlib
subdirectory.

If shared libraries are created, `make install' will install them. 
You may install only the shared libraries by running `make
install-shared' from the top-level build directory.  Running `make
install' in the shlib subdirectory will also work.  If you don't want
to install any created shared libraries, run `make install-static'. 

Documentation
=============

The documentation for the Readline and History libraries appears in
the `doc' subdirectory.  There are three texinfo files and a
Unix-style manual page describing the facilities available in the
Readline library.  The texinfo files include both user and
programmer's manuals.  HTML versions of the manuals appear in the
`doc' subdirectory as well. 

Reporting Bugs
==============

Bug reports for Readline should be sent to:

        bug-readline@@gnu.org

When reporting a bug, please include the following information:

        * the version number and release status of Readline (e.g., 4.2-release)
        * the machine and OS that it is running on
        * a list of the compilation flags or the contents of `config.h', if
          appropriate
        * a description of the bug
        * a recipe for recreating the bug reliably
        * a fix for the bug if you have one!

If you would like to contact the Readline maintainer directly, send mail
to bash-maintainers@@gnu.org.

Since Readline is developed along with bash, the bug-bash@@gnu.org mailing
list (mirrored to the Usenet newsgroup gnu.bash.bug) often contains
Readline bug reports and fixes. 

Chet Ramey
chet.ramey@@case.edu
@


