Commit f8b2ac1e by Jeff Law

Merge in texinfo-3.11.

From-SVN: r18767
parent 8491377b
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl $Id: configure.in,v 1.2 1997/09/16 05:01:43 law Exp $ dnl $Id: configure.in,v 1.5 1998/03/24 18:05:13 law Exp $
AC_PREREQ(2.5) dnl
AC_INIT(texinfo.texi) AC_INIT(makeinfo/makeinfo.c)
AC_PREREQ(2.12)dnl Minimum Autoconf version required.
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([texinfo], [3.11])
dnl Checks for programs. dnl Checks for programs.
dnl AC_PROG_GCC_TRADITIONAL AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
EGCS_PROG_INSTALL EGCS_PROG_INSTALL
AC_PROG_RANLIB AC_PROG_RANLIB
# We do this for the sake of a more helpful warning in doc/Makefile.
TEXMF='$(datadir)/texmf'
AC_CHECK_PROG(TEXCONFIG, texconfig, true, false)
$TEXCONFIG && eval `texconfig confall | grep '^TEXMF='`
AC_SUBST(TEXMF)
AC_ISC_POSIX AC_ISC_POSIX
AC_MINIX AC_MINIX
AM_CYGWIN32 dnl CYGNUS LOCAL: Add AM_MAINTAINER_MODE and AM_EXEEXT
AM_MAINTAINER_MODE
AM_EXEEXT AM_EXEEXT
dnl Checks for libraries. dnl Checks for libraries.
# Needed on sysV68 for sigblock, sigsetmask. # Needed on sysV68 for sigblock, sigsetmask.
AC_CHECK_LIB(bsd, sigblock) AC_CHECK_LIB(bsd, sigblock)
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
# rather ncurses. So we check for it.
TERMLIBS= TERMLIBS=
for termlib in curses ncurses termcap terminfo termlib ; do for termlib in ncurses curses termcap terminfo termlib ; do
AC_CHECK_LIB(${termlib}, tputs, AC_CHECK_LIB(${termlib}, tputs,
[TERMLIBS="${TERMLIBS} -l${termlib}"; break]) [TERMLIBS="${TERMLIBS} -l${termlib}"; break])
done done
...@@ -27,22 +41,45 @@ AC_SUBST(TERMLIBS) ...@@ -27,22 +41,45 @@ AC_SUBST(TERMLIBS)
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h termios.h termio.h strings.h string.h varargs.h \ AC_CHECK_HEADERS(fcntl.h pwd.h string.h strings.h termcap.h termio.h \
sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/file.h) termios.h unistd.h \
sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h)
dnl Do not use <ncurses/termcap.h> unless we're linking with ncurses.
if test "x$termlib" = xncurses; then
AC_CHECK_HEADER(ncurses/termcap.h)
fi
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_OFF_T AC_TYPE_OFF_T
AC_TYPE_SIGNAL
AC_C_CONST AC_C_CONST
AC_STRUCT_TM AC_STRUCT_TM
dnl Checks for library functions. dnl Checks for library functions.
AC_FUNC_ALLOCA AC_FUNC_ALLOCA
AC_FUNC_VPRINTF
if test "$ac_cv_c_cross" = no; then if test "$ac_cv_c_cross" = no; then
AC_FUNC_SETVBUF_REVERSED AC_FUNC_SETVBUF_REVERSED
fi fi
AC_CHECK_FUNCS(setvbuf getcwd memset bzero strchr strcasecmp \ AC_CHECK_FUNCS(setvbuf getcwd memset bzero strchr strcasecmp \
vfprintf vsprintf strerror sigprocmask sigsetmask) sigprocmask sigsetmask)
dnl strcasecmp, strerror, xmalloc, xrealloc, probably others should be added. dnl strcasecmp, strerror, xmalloc, xrealloc, probably others should be added.
AC_REPLACE_FUNCS(memcpy memmove strdup) AC_REPLACE_FUNCS(memcpy memmove strdup strerror)
dnl Set of available languages and i18n macros.
ALL_LINGUAS="de fr"
AM_GNU_GETTEXT
AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
AC_OUTPUT(Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile) AC_OUTPUT([Makefile \
doc/Makefile \
emacs/Makefile \
info/Makefile \
intl/Makefile \
lib/Makefile \
makeinfo/Makefile \
po/Makefile.in \
util/Makefile \
],
[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile])
/* termdep.h -- System things that terminal.c depends on. /* termdep.h -- System things that terminal.c depends on.
$Id: termdep.h,v 1.2 1997/10/30 05:55:14 law Exp $ $Id: termdep.h,v 1.4 1998/03/24 18:06:50 law Exp $
This file is part of GNU Info, a program for reading online documentation This file is part of GNU Info, a program for reading online documentation
stored in Info format. stored in Info format.
Copyright (C) 1993, 96 Free Software Foundation, Inc. Copyright (C) 1993, 96, 97 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -22,33 +22,21 @@ ...@@ -22,33 +22,21 @@
Written by Brian Fox (bfox@ai.mit.edu). */ Written by Brian Fox (bfox@ai.mit.edu). */
#if !defined (_TERMDEP_H_) #ifndef INFO_TERMDEP_H
# define _TERMDEP_H_ #define INFO_TERMDEP_H
#if defined (HAVE_SYS_FCNTL_H) /* NeXT supplies <termios.h> but it is broken. Probably Autoconf should
# include <sys/fcntl.h> have a separate test, but anyway ... */
#else #ifdef NeXT
# include <fcntl.h> #undef HAVE_TERMIOS_H
#endif /* !HAVE_SYS_FCNTL_H */
#if defined (HAVE_SYS_FILE_H)
# include <sys/file.h>
#endif /* HAVE_SYS_FILE_H */
#if defined (HAVE_STRINGS_H)
# include <strings.h>
#else
# if defined (HAVE_STRING_H)
# include <string.h>
# endif
#endif #endif
#if defined (HAVE_TERMIOS_H) #ifdef HAVE_TERMIOS_H
# include <termios.h> # include <termios.h>
/* /*
* POSIX does not mandate that we have these and it may, in fact, be only POSIX does not mandate that we have these and it may, in fact, be only
* partially implemented partially implemented.
*/ */
# undef TIOCGETC # undef TIOCGETC
#else #else
# if defined (HAVE_TERMIO_H) # if defined (HAVE_TERMIO_H)
...@@ -67,15 +55,8 @@ ...@@ -67,15 +55,8 @@
# endif /* !HAVE_TERMIO_H */ # endif /* !HAVE_TERMIO_H */
#endif /* !HAVE_TERMIOS_H */ #endif /* !HAVE_TERMIOS_H */
#if defined (HAVE_SYS_TTOLD_H) #ifdef HAVE_SYS_TTOLD_H
# include <sys/ttold.h> # include <sys/ttold.h>
#endif /* HAVE_SYS_TTOLD_H */ #endif /* HAVE_SYS_TTOLD_H */
#if !defined (HAVE_STRCHR) #endif /* not INFO_TERMDEP_H */
# undef strchr
# undef strrchr
# define strchr index
# define strrchr rindex
#endif /* !HAVE_STRCHR */
#endif /* _TERMDEP_H_ */
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment