diff options
author | wlemb <wlemb> | 2000-05-31 14:18:41 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2000-05-31 14:18:41 +0000 |
commit | 8e3dd5967e77a57e8e2359e80421686ed0f9c622 (patch) | |
tree | 0ebf8d45f42e54635deeba0dcbeba2e68e368490 /aclocal.m4 | |
parent | bbc23036e5152f165a47f9247c4bfbed293bfd31 (diff) | |
download | groff-8e3dd5967e77a57e8e2359e80421686ed0f9c622.tar.gz |
* src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
strncasecmp().
* aclocal.m4 (GROFF_SRAND): New function to test the return value
of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
* configure.in: Use it.
* src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
* configure, Makefile.in: Updated.
* configure.in: Add test for strncasecmp().
* src/include/lib.h: Use it.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -136,6 +136,19 @@ AC_MSG_RESULT(yes);AC_DEFINE(STDIO_H_DECLARES_PCLOSE)) AC_LANG_RESTORE])dnl dnl dnl +dnl srand() of SunOS 4.1.3 has return type int instead of void +dnl +AC_DEFUN(GROFF_SRAND, +[AC_LANG_SAVE +AC_LANG_CPLUSPLUS +AC_MSG_CHECKING([for return type of srand]) +AC_TRY_COMPILE([#include <stdlib.h> +extern "C" { void srand(unsigned int); }],, +AC_MSG_RESULT(void);AC_DEFINE(RET_TYPE_SRAND_IS_VOID), +AC_MSG_RESULT(int)) +AC_LANG_RESTORE])dnl +dnl +dnl AC_DEFUN(GROFF_SYS_NERR, [AC_LANG_SAVE AC_LANG_CPLUSPLUS |