summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog13
-rw-r--r--Makefile.in1
-rw-r--r--NEWS7
-rw-r--r--REVISION2
-rwxr-xr-xconfigure3
-rw-r--r--configure.ac2
-rw-r--r--src/include/posix.h4
-rw-r--r--src/roff/troff/input.cc13
-rw-r--r--src/utils/lookbib/lookbib.cc4
9 files changed, 31 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e35d5e8..203497bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
+2002-07-23 Werner LEMBERG <wl@gnu.org>
+
+ * configure.ac: Test for isatty.
+ * configure: Regenerated.
+ * src/include/posix.h: Check HAVE_ISATTY.
+ * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
+ * src/utils/lookbib/lookbib.cc: Include posix.h.
+ Don't declare isatty.
+
2002-07-21 Werner LEMBERG <wl@gnu.org>
+ * NEWS: Add `output' request.
+
+ * REVISION: Increased to 1.
+
Version 1.18.0 released
=======================
diff --git a/Makefile.in b/Makefile.in
index 4ab59e9c..a54d9a91 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -219,6 +219,7 @@ make_install_html=@make_install_html@
# -DHAVE_FMOD if you have fmod()
# -DHAVE_GETCWD if you have getcwd()
# -DHAVE_GETTIMEOFDAY if you have gettimeofday()
+# -DHAVE_ISATTY if you have isatty()
# -DHAVE_MKSTEMP if you have mkstemp()
# -DHAVE_MMAP if you have mmap()
# -DHAVE_PUTENV if you have putenv()
diff --git a/NEWS b/NEWS
index 14b6df4e..160c5382 100644
--- a/NEWS
+++ b/NEWS
@@ -108,8 +108,11 @@ o The syntax of the `substring' request has been changed: The first
character in a string now has index 0, the last character has index -1.
Note that this is an incompatible change.
+o To emit strings directly to the intermediate output, a new `output'
+ request has been added; it is similar to `\!' used at the top level.
+
o `.hpf' has been extended. It can now handle most TeX hyphenation
- patterns file without modification. To do that, the commands \patterns,
+ pattern files without modification. To do that, the commands \patterns,
\hyphenation, and \endinput are recognized. Please refer to groff_diff.7
for more information.
@@ -314,7 +317,7 @@ o A new script contributed by Bernd Warken <bwarken@mayn.de>. It displays
automatically.
Grog
-____
+----
o Documents using the mom macro package are recognized.
diff --git a/REVISION b/REVISION
index 573541ac..d00491fd 100644
--- a/REVISION
+++ b/REVISION
@@ -1 +1 @@
-0
+1
diff --git a/configure b/configure
index 22796975..ca4a19fa 100755
--- a/configure
+++ b/configure
@@ -5246,7 +5246,8 @@ LIBS="$saved_libs"
-for ac_func in gettimeofday rename strcasecmp strncasecmp strsep
+
+for ac_func in gettimeofday isatty rename strcasecmp strncasecmp strsep
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
diff --git a/configure.ac b/configure.ac
index 749840d8..75c47990 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,7 @@ saved_libs="$LIBS"
LIBS="$LIBS -lc $LIBM"
AC_REPLACE_FUNCS(fmod getcwd putenv snprintf strerror strtol)
LIBS="$saved_libs"
-AC_CHECK_FUNCS(gettimeofday rename strcasecmp strncasecmp strsep)
+AC_CHECK_FUNCS(gettimeofday isatty rename strcasecmp strncasecmp strsep)
GROFF_MKSTEMP
AC_DECL_SYS_SIGLIST
dnl checks for compiler characteristics
diff --git a/src/include/posix.h b/src/include/posix.h
index 9a03ecdb..e7f38cd1 100644
--- a/src/include/posix.h
+++ b/src/include/posix.h
@@ -57,3 +57,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef O_RDONLY
#define O_RDONLY 0
#endif
+
+#ifndef HAVE_ISATTY
+#define isatty(n) (1)
+#endif
diff --git a/src/roff/troff/input.cc b/src/roff/troff/input.cc
index 0dfa0e01..35e1d077 100644
--- a/src/roff/troff/input.cc
+++ b/src/roff/troff/input.cc
@@ -36,7 +36,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "defs.h"
#include "input.h"
-// Needed for getpid().
+// Needed for getpid() and isatty()
#include "posix.h"
#include "nonposix.h"
@@ -47,17 +47,6 @@ extern "C" {
}
#endif /* NEED_DECLARATION_PUTENV */
-#ifdef ISATTY_MISSING
-#undef isatty
-#define isatty(n) (1)
-#else /* not ISATTY_MISSING */
-#ifndef isatty
-extern "C" {
- int isatty(int);
-}
-#endif /* not isatty */
-#endif /* not ISATTY_MISSING */
-
#define MACRO_PREFIX "tmac."
#define MACRO_POSTFIX ".tmac"
#define INITIAL_STARTUP_FILE "troffrc"
diff --git a/src/utils/lookbib/lookbib.cc b/src/utils/lookbib/lookbib.cc
index 4cac219e..65e89bcf 100644
--- a/src/utils/lookbib/lookbib.cc
+++ b/src/utils/lookbib/lookbib.cc
@@ -31,8 +31,10 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "refid.h"
#include "search.h"
+/* for isatty() */
+#include "posix.h"
+
extern "C" {
- int isatty(int);
const char *Version_string;
}