summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-10-15 05:27:19 +0000
committerwlemb <wlemb>2003-10-15 05:27:19 +0000
commit48d11a2ff13f1bc894d5b56a1aee6799b8697cd0 (patch)
tree33a3c6956f4d3f8cffa4c39016bfaf954c09160a /aclocal.m4
parenta438ede31d52463c67a716213c6303bde53e76e3 (diff)
downloadgroff-48d11a2ff13f1bc894d5b56a1aee6799b8697cd0.tar.gz
* aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
(GROFF_LIBC): New function. * configure.ac: Call GROFF_LIBC. Check for `kill'. * configure: Regenerated. * src/include/lib.h: Handle __MINGW32__. * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__. Add macro for `pipe'. Define P_tmpdir. * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe' correctly. * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]: Implement.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m423
1 files changed, 16 insertions, 7 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index af9543e2..f2fb403b 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,5 +1,5 @@
dnl Autoconf macros for groff.
-dnl Copyright (C) 1989-1995, 2001, 2002 Free Software Foundation, Inc.
+dnl Copyright (C) 1989-1995, 2001, 2002, 2003 Free Software Foundation, Inc.
dnl
dnl This file is part of groff.
dnl
@@ -201,12 +201,13 @@ dnl
dnl
AC_DEFUN(GROFF_SYS_NERR,
[AC_LANG_PUSH(C++)
-AC_MSG_CHECKING([for sys_nerr in <errno.h> or <stdio.h>])
+AC_MSG_CHECKING([for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>])
AC_TRY_COMPILE([#include <errno.h>
-#include <stdio.h>],
+#include <stdio.h>
+#include <stdlib.h>],
[int k; k = sys_nerr;],
AC_MSG_RESULT(yes);AC_DEFINE(HAVE_SYS_NERR, 1,
- [Define if you have sysnerr in <errno.h> or
+ [Define if you have sys_nerr in <errno.h> or
<stdio.h>.]),
AC_MSG_RESULT(no))
AC_LANG_POP(C++)])dnl
@@ -280,7 +281,7 @@ dnl
dnl
AC_DEFUN(GROFF_ARRAY_DELETE,
[AC_LANG_PUSH(C++)
-AC_MSG_CHECKING([whether ANSI array delete syntax supported])
+AC_MSG_CHECKING([whether ANSI array delete syntax is supported])
AC_TRY_COMPILE(, [char *p = new char[5]; delete [] p;],
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no);AC_DEFINE(ARRAY_DELETE_NEEDS_SIZE, 1,
@@ -512,13 +513,21 @@ AC_DEFUN(GROFF_INSTALL_INFO,
dnl
dnl
dnl At least one UNIX system, Apple Macintosh Rhapsody 5.5,
-dnl does not have -lm.
+dnl does not have -lm ...
dnl
AC_DEFUN(GROFF_LIBM,
[AC_CHECK_LIB(m,sin,LIBM=-lm)
AC_SUBST(LIBM)])dnl
dnl
dnl
+dnl ... while the MinGW implementation of GCC for Microsoft Win32
+dnl does not seem to have -lc.
+dnl
+AC_DEFUN(GROFF_LIBC,
+[AC_CHECK_LIB(c,main,LIBC=-lc)
+AC_SUBST(LIBC)])dnl
+dnl
+dnl
dnl We need top_srcdir to be absolute.
dnl
AC_DEFUN(GROFF_SRCDIR,
@@ -533,7 +542,7 @@ AC_DEFUN(GROFF_BUILDDIR,
AC_SUBST(groff_top_builddir)])dnl
dnl
dnl
-dnl Check for EBCDIC - stolen from the OS390 Unix LYNX port
+dnl Check for EBCDIC -- stolen from the OS390 Unix LYNX port
dnl
AC_DEFUN(GROFF_EBCDIC,
[AC_MSG_CHECKING([whether character set is EBCDIC])