Commit Graph

154 Commits

Author SHA1 Message Date
Tom Tromey
bb69c5018b Minor updates to readline configury
Christian's recent patches to gnulib made me realize that readline
should be changed to use AC_CONFIG_MACRO_DIRS (ACLOCAL_AMFLAGS is
deprecated) and that it can put the automake options into
configure.ac.  I also added no-define to the automake options.  This
doesn't matter much (we don't generate a config.h here), but gnulib
does it, and it does make configure slightly smaller.

readline/ChangeLog
2019-11-15  Tom Tromey  <tromey@adacore.com>

	* configure, Makefile.in: Rebuild.
	* configure.ac: Use AC_CONFIG_MACRO_DIRS.  Pass options to
	AM_INIT_AUTOMAKE.
	* Makefile.am (AUTOMAKE_OPTIONS, ACLOCAL_AMFLAGS): Remove.

Change-Id: If421599cc9dd9c4c3c37b9b439ab2c22c01742ed
2019-11-15 13:46:54 -07:00
Tom Tromey
6999161a2a Move readline to the readline/readline subdirectory
readline turns out to be a bit of a stumbling block for the project to
move gdbsupport (and then gdbserver) to the top-level.

The issue is that readline headers are intended to be included with
names like "readline/readline.h".  To support this, gdb effectively
adds a -I option pointing to the top-level source directory -- but,
importantly, this option is not used when the system readline is used.

For gdbsupport, a -I option like this would always be needed, but that
in turn would break the system readline case.  This was PR build/17077,
fixed in commit a8a5dbcab8.

Previously, we had discussed this on the gdb-patches list in terms of
removing readline from the tree

    https://sourceware.org/ml/gdb-patches/2019-09/msg00317.html

However, Eli expressed some concerns, and Joel did as well (off-list).

Given those concerns, and the fact that a patch-free local readline is
relatively new in gdb (it was locally patched for years), I changed my
mind and decided to handle this situation by moving the readline
sources down a level.

That is, upstream readline is now in readline/readline, and the
top-level readline directory just contains the minimal configury
needed to build that.

This fixes the problem because, when gdb unconditionally adds a
-I$(top_srcdir), this will not find readline headers.  A separate -I
will be needed instead, which is exactly what's needed for
--with-system-readline.

gdb/ChangeLog
2019-10-23  Tom Tromey  <tom@tromey.com>

	* Makefile.in (READLINE_DIR): Update.

gdb/doc/ChangeLog
2019-10-23  Tom Tromey  <tom@tromey.com>

	* Makefile.in (READLINE_DIR): Update.

readline/ChangeLog
2019-10-23  Tom Tromey  <tom@tromey.com>

	Move old contents to readline/ subdirectory.
	* aclocal.m4, configure, configure.ac, .gitignore, Makefile.am,
	Makefile.in, README: New files.

Change-Id: Ice156a2ee09ea68722b48f64d97146d7428ea9e4
2019-10-23 15:16:48 -06:00
Jason Molenda
1171f8d754 2000-02-07 Jason Molenda (jsm@bugshack.cygnus.com)
* gdb/config/i386/windows.mh,
	 gdb/doc/GDBvn.texi, gdb/doc/remote.texi,
	 gdb/testsuite/gdb.base/README, gdb/testsuite/gdb.base/crossload.exp,
	 gdb/testsuite/gdb.base/i486-elf.u, gdb/testsuite/gdb.base/i860-elf.u,
	 gdb/testsuite/gdb.base/m68k-aout.u,
	 gdb/testsuite/gdb.base/m68k-aout2.u,
	 gdb/testsuite/gdb.base/m68k-elf.u, gdb/testsuite/gdb.base/mips-ecoff.u,
	 gdb/testsuite/gdb.base/sparc-aout.u,
	 gdb/testsuite/gdb.base/sparc-elf.u,
	 gdb/tui/Makefile,
	 readline/ChangeLog: These files have been removed over the course
	 of the last year, but weren't cvs removed from the old GDB repository
	 on sourceware.
2000-02-08 03:37:34 +00:00
Stan Shebs
7a292a7adf import gdb-19990422 snapshot 1999-04-26 18:34:20 +00:00
Stan Shebs
c906108c21 Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
Stan Shebs
071ea11e85 Initial creation of sourceware repository 1999-04-16 01:34:07 +00:00
Elena Zannoni
6938573fac Tue Feb 9 10:38:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* configure.in: Do not use the ./support directory.
	* configure: Regenerate.
1999-02-09 16:05:46 +00:00
Christopher Faylor
8dee1c8d22 * configure.in: Use LOCAL_CFLAGS rather than CFLAGS for
searching libtermcap directory.
	* configure: Regenerate.
1999-01-06 17:26:06 +00:00
Christopher Faylor
c450a7fe3f * configure.in: Search devo libtermcap directory for termcap.h
when compiling for cygwin.
	* configure: Regenerated.
1998-12-31 20:06:32 +00:00
Michael Meissner
fb9d16b9bd Do not copy old versions of libreadline.a/libhistory.a if they do not exist 1998-12-31 04:18:57 +00:00
Christopher Faylor
18ee5bf817 * cross-build/cygwin.cache: Add a couple more known settings.
* configure.in: Fix typo.
	* configure: Regenerated.
1998-12-30 04:50:59 +00:00
Elena Zannoni
e30e177994 Tue Dec 29 18:11:28 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* cross-build: new directory.

	* cross-build/cygwin.cache: new file. Used for Cygwin cross builds.
1998-12-29 23:16:42 +00:00
Elena Zannoni
c5ba05bf93 Tue Dec 29 18:11:28 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* configure.in: added tests for cross-build for Cygwin.
1998-12-29 23:12:23 +00:00
Jason Molenda
975c2886ba 1998-12-24 Jason Molenda (jsm@bugshack.cygnus.com)
* Makefile.in: Add CYGNUS LOCAL comment.
        * acconfig.h: Add missing defines.
        * config.h.bot: Add missing content.
        * configure, config.h.in: Regenerated.

config.h.in is a generated file, but the readline distribution
checked in could not regenerate this.  This set of changes fixes
that.
1998-12-25 00:35:35 +00:00
Elena Zannoni
229e1740df Wed Dec 23 16:21:41 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* Makefile.in: comment out the rule to rebuild configure by
	running autoconf.
1998-12-23 21:23:18 +00:00
Elena Zannoni
329d0a3702 Tue Dec 22 10:07:58 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* Import of Readline 2.2.1.
1998-12-22 21:53:33 +00:00
David Taylor
59bfc16ae3 The following changes were made by Jim Blandy
<jimb@zwingli.cygnus.com> and David Taylor
 	<taylor@texas.cygnus.com> as part of a project to merge in changes
 	made by HP; HP did not create ChangeLog entries.

	* config/mp-enable-tui: New file.
	(TUI_CFLAGS): Search devo's include directory, as long as we're
 	totally ruining modularity.
	(INCLUDE_SRCDIR): New var.
	(GDB_TUI_SRCDIR): Fix syntax error.

	* configure.in: Check the --enable-tui flag; if it's set, include
 	a makefile fragment that #defines TUI and adds the needed #include
 	directories.
	(*-*-hpux*): New host; use sysdep-hpux.h.

	* Makefile.in (.c.o): Check the variable set in the makefile
	fragment above.

	* display.c (term_goto): declare it.
	(insert_some_chars): set it.
	(delete_chars): set it.

	* readline.c: add tui include files surrounded by TUI.
	(rl_reset): new function, move some of rl_abort functionality to
 	here.
	(rl_abort): call rl_reset.
	(rl_getc): tui changes.
	(init_terminal_io): tui changes.

	* readline.h (tui_version, fputc_unfiltered, fputs_unfiltered,
	tui_tputs): declare if TUI is defined.

	* rltty.c (prepare_terminal_settings): additional comment.

	* signals.c: add tui include files surrounded by TUI.  move #if
 	and #endif to column 1 so HP's compiler will accept them.  Remove
 	declaration of tuiDoAndReturnToTop since it's declared in tui.h.
	(rl_handle_sigwinch): call tuiDoAndReturnToTop if TUI defined.
  	(rl_handle_sigwinch_on_clear): define if TUI defined.
	(rl_set_signals): if TUI, avoid infinite recursion.
	(rl_clear_signals): install rl_handle_sigwinch_on_clear.

	* sysdep-hpux.h: New file.
1998-12-08 16:33:13 +00:00
Geoffrey Noer
97aacc71ed Mon Nov 2 15:26:33 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: Check cygwin* instead of cygwin32*.
1998-11-02 23:27:41 +00:00
Jeff Law
ce23878776 * sysdep-hpux11.h: New file.
* configure.in (*-*-*-hpux11*): Use sysdep-hpux11.h.
1998-07-28 15:44:30 +00:00
Ian Lance Taylor
d470a746c4 * configure.bat: Remove obsolete file.
* examples/configure.bat: Remove obsolete file.
1998-07-23 21:49:12 +00:00
Ian Lance Taylor
cb342983ca * sysdep-6irix.h: New file.
* configure.in (*-*-irix6*): New host; use sysdep-6irix.h.
1998-05-13 17:43:33 +00:00
Jason Molenda
40c99833c7 Thu Apr 9 11:59:38 1998 Ian Dall (<Ian.Dall@dsto.defence.gov.au>
* configure.in (host==netbsd): Include config/mh-bsd44.
        * config/mh-bsd44: New file.
1998-04-09 19:01:30 +00:00
Michael Snyder
769e0a8a28 Wed Dec 3 16:48:20 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* rltty.c: fix typos.
1997-12-04 00:48:56 +00:00
Stu Grossman
8200045106 * tilde.c (tilde_word_expand): __MSDOS___ -> __MSDOS__ 1996-10-08 16:00:54 +00:00
Mark Alexander
de54e493db * rldefs.h: On Linux, include <termios.h> to fix compile error
in <termcap.h>.
1996-10-05 18:27:39 +00:00
Stu Grossman
4a1df52b1b * rldefs.h: Enable HANDLE_SIGNALS for cygwin32. 1996-09-05 01:07:37 +00:00
Michael Meissner
3d5aa9924a Recognize i686-*-* for pentium pro 1996-08-29 21:28:01 +00:00
Stu Grossman
ddde37207c * complete.c: Include <pwd.h> if not DOS, and if cygwin32 or not
win32.
	* configure.in:  Add test for *-*-cygwin32* to use config/mh-posix.
	* readline.c:  Move decl of tgetstr to rldefs.h.
	* (_rl_set_screen_size):  Remove redundant ifdef MINIMALs.
	* rldefs.h:  Don't do MINIMAL for cygwin32.  Cygwin32 now uses
	full-blown readline, except for termcap.
1996-08-17 01:32:25 +00:00
Stu Grossman
8633ce7a02 * rldefs.c: Get rid of define of SIGALRM if _WIN32 or __MSDOS__.
* Don't define ScreenCols/ScreenRows/... if cygwin32.
	* sysdep-norm.h:  Don't include <malloc.h> if cygwin32.
1996-08-12 04:11:17 +00:00
Fred Fish
51da2b4a48 * rldefs.h: If __osf__is defined, include <termio.h> instead of
<sgtty.h>.
1996-08-11 22:05:41 +00:00
Stu Grossman
46b6fdbd11 * bind.c complete.c history.c readline.c: Don't include sys/file.h.
* complete.c display.c parens.c readline.c rldefs.h rltty.c
	signals.c tilde.c:  Change refs to _MSC_VER and __WIN32__ to _WIN32.
	* signals.c (rl_signal_handler):  Ifdef out kill if _WIN32.
	* sysdep-norm.h:  Ifdef out include of dirent.h if _WIN32.
	Include malloc.h if _WIN32.
1996-08-09 16:02:46 +00:00
Michael Meissner
9e9cf21fec Fix warning generated under AIX 4.1.4 1996-07-18 20:01:29 +00:00
Jason Molenda
2774dbb845 * Makefile.in (datadir): Set to $(prefix)/share.
(docdir): Removed.
1996-06-25 14:07:27 +00:00
Fred Fish
88dd1b976c * sysdep-linux.h: New file.
* display.c: Add include of "sysdep.h" to get HAVE_VARARGS_H.
	* configure.in: Change pattern i[345]86-*-linux* into *-*-linux* to
	support non-x86 based Linux platforms.
1996-05-26 22:15:47 +00:00
Fred Fish
7b032c5fed * configure.in (*-*-gnu*): New host. 1996-04-08 05:20:25 +00:00
Fred Fish
e5821a93ce From: Miles Bader <miles@gnu.ai.mit.edu>
* config/mh-gnu: New file.
1996-04-08 05:09:57 +00:00
Fred Fish
230e9ef4a6 From: Robert Lipe <robertl@dgii.com>
* configure.in: SCO OpenServer 5 (a.k.a 3.2v5*) is more like
	SCO 3.2v4 than 3.2v2.
1996-04-07 21:00:40 +00:00
Steve Chamberlain
a06a83b637 * readline.c, display.c, complete.c: Add _MSC_VER to list of
things which can't do most things.
1996-01-04 02:48:20 +00:00
Geoffrey Noer
aee7f7a306 complete.c: Change WIN32 to __WIN32__, added #else return NULL
to end of that define.
1995-11-16 23:43:47 +00:00
Steve Chamberlain
b4fdbe09dc Tue Oct 31 10:38:58 1995 steve chamberlain <sac@slash.cygnus.com>
* display.c, parens.c, readline.c, rldefs.h: Change use of
	WIN32 to __WIN32__.
1995-10-31 18:40:29 +00:00
Fred Fish
17b90c4a61 * Makefile.in (BISON): Remove macro. 1995-10-10 20:44:07 +00:00
Steve Chamberlain
5718164625 * complete.c (filename_completion_function): Enable for
win32 when not MSC.
1995-10-10 15:49:23 +00:00
Peter Schauer
a27fbc3abf * configure.in: Handle powerpc-ibm-aix* like rs6000-ibm-aix*. 1995-10-08 11:20:01 +00:00
Michael Meissner
f30c1d4a4b Fix warnings under Linux 1995-10-08 00:45:37 +00:00
Michael Meissner
6b5151c236 Fix warnings under Linux 1995-10-08 00:44:03 +00:00
Steve Chamberlain
2e8f534a6c Fri Sep 29 15:19:23 1995 steve chamberlain <sac@slash.cygnus.com>
Fixes for when the host WIN32, but not MSC.
	* complete.c: Sometimes have pwd.h
	* parens.c: WIN32 has similar restrictions to __GO32__.
	* readline.c (__GO32__): Some of this moved into rldefs.h
	* signals.c (__GO32__): Likewise.
	* rldefs.h (MSDOS||WIN32) becomes MSDOS||MSC.
	(WIN32&&!WIN32): New definitions.
1995-09-29 22:28:44 +00:00
Ian Lance Taylor
1cd3bab3a0 * Makefile.in (maintainer-clean): New synonym for realclean. 1995-09-20 16:58:57 +00:00
Michael Meissner
8bfd30b27f Build without warnings under Linux. 1995-03-01 18:58:34 +00:00
Steve Chamberlain
a465efbb38 * rldefs.h: Define MINIMAL for __GO32__ and WIN32.
* complete.c, display.c, readline.c, rltty.c: Test MINIMAL
	instead of __GO32__.
1995-01-15 22:33:04 +00:00
Ian Lance Taylor
0f72c69c1c * configure.in: Change i[34]86 to i[345]86. 1994-08-24 17:05:33 +00:00