]> git.pld-linux.org Git - packages/groff.git/blame - groff-ac.patch
- tabs in preamble
[packages/groff.git] / groff-ac.patch
CommitLineData
447e95da
JR
1--- groff-1.18.1.4/aclocal.m4~ 2002-06-18 11:36:43.000000000 +0200
2+++ groff-1.18.1.4/aclocal.m4 2006-11-07 14:22:02.000000000 +0100
3@@ -547,18 +547,20 @@
4 dnl
5 dnl If mkstemp() isn't available, use our own mkstemp.cc file.
6 dnl
7-AC_DEFUN(GROFF_MKSTEMP,
8+AC_DEFUN([GROFF_MKSTEMP],
9 [AC_MSG_CHECKING([for mkstemp])
10-AC_LANG_PUSH(C++)
11-AC_LIBSOURCE(mkstemp.cc)
12-AC_TRY_LINK([#include <stdlib.h>
13+AC_LANG_PUSH([C++])
14+AC_LIBSOURCE([mkstemp.cc])
15+AC_LINK_IFELSE([
16+AC_LANG_PROGRAM([[
17+#include <stdlib.h>
18 #include <unistd.h>
19-int (*f) (char *);],
20-[f = mkstemp;],
21-AC_MSG_RESULT(yes);AC_DEFINE(HAVE_MKSTEMP, 1,
22- [Define if you have mkstemp().]),
23-AC_MSG_RESULT(no);_AC_LIBOBJ(mkstemp))
24-AC_LANG_POP(C++)])dnl
25+int (*f) (char *);]],[[f = mkstemp;]])],
26+[AC_MSG_RESULT([yes])
27+AC_DEFINE([HAVE_MKSTEMP], [1], [Define if you have mkstemp().])],
28+[AC_MSG_RESULT(no)
29+_AC_LIBOBJ([mkstemp])])
30+AC_LANG_POP([C++])])dnl
31 dnl
32 dnl
33 dnl Test whether <inttypes.h> exists, doesn't clash with <sys/types.h>,
This page took 0.032469 seconds and 4 git commands to generate.