* sysdep-norm.h: The usual alloca declarations.
* sysdep-aix.h: What AIX 3.1 on RS/6000 needs for alloca.
* history.c, readline.c: Use sysdep.h.
+Sat Nov 9 03:19:40 1991 John Gilmore (gnu at cygnus.com)
+
+ * configure.in: Make a link for sysdep.h. Specify commontargets.
+ * sysdep-norm.h: The usual alloca declarations.
+ * sysdep-aix.h: What AIX 3.1 on RS/6000 needs for alloca.
+ * history.c, readline.c: Use sysdep.h.
+
Thu Oct 24 21:58:46 1991 John Gilmore (gnu at cygnus.com)
* configure.in: aix is a Sys V as far as we're concerned.
configdirs=
srctrigger=readline.c
srcname="the readline library"
+commontargets=true
# per-host:
+files=sysdep-norm.h
+links=sysdep.h
+
case "${host_os}" in
-sysv* | irix* | aix*) host_makefile_frag=config/hm-sysv ;;
+m88kbcs | sysv* | irix*)
+ host_makefile_frag=config/hm-sysv
+ ;;
+
+aix*)
+ host_makefile_frag=config/hm-sysv
+ case "${host_arch}" in
+ rs6000) files=sysdep-aix.h
+ esac
+ ;;
esac
# per-target:
-
#include <sys/file.h>
#include <signal.h>
-#ifdef __GNUC__
-#define alloca __builtin_alloca
-#else
-#if defined (sparc) && defined (sun)
-#include <alloca.h>
-#endif
-#endif
+#include "sysdep.h"
#define NEW_TTY_DRIVER
#if defined (SYSV) || defined (hpux) || defined (Xenix)
wsatend = 1; /* flag for trailing whitespace */
ols = oe - 1; /* find last same */
nls = ne - 1;
- while ((*ols == *nls) && (ols > ofd) && (nls > nfd))
+ while ((ols > ofd) && (nls > nfd) && (*ols == *nls))
{
if (*ols != ' ')
wsatend = 0;
return;
}
- BC = tgetstr ("pc", &buffer);
- PC = buffer ? *buffer : 0;
+ PC = tgetstr ("pc", &buffer)? *buffer : 0;
term_backspace = tgetstr ("le", &buffer);