/[groff]/groff/aclocal.m4
ViewVC logotype

Diff of /groff/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.45 by wl, Mon Feb 28 13:57:53 2005 UTC revision 1.46 by wl, Sat Apr 30 07:03:13 2005 UTC
# Line 266  extern "C" { void srand(unsigned int); } Line 266  extern "C" { void srand(unsigned int); }
266       [AC_MSG_RESULT([int])])       [AC_MSG_RESULT([int])])
267     AC_LANG_POP([C++])])     AC_LANG_POP([C++])])
268    
269    # In April 2005, autoconf's AC_TYPE_SIGNAL is still broken.
270    
271    AC_DEFUN([GROFF_TYPE_SIGNAL],
272      [AC_MSG_CHECKING([for return type of signal handlers])
273       for groff_declaration in \
274         'extern "C" void (*signal (int, void (*)(int)))(int);' \
275         'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
276         'void (*signal ()) ();'
277       do
278         AC_COMPILE_IFELSE([
279             AC_LANG_PROGRAM([[
280    
281    #include <sys/types.h>
282    #include <signal.h>
283    #ifdef signal
284    # undef signal
285    #endif
286    $groff_declaration
287    
288             ]],
289             [[
290    
291    int i;
292    
293             ]])
294           ],
295           [break],
296           [continue])
297       done
298    
299       if test -n "$groff_declaration"; then
300         AC_MSG_RESULT([void])
301         AC_DEFINE([RETSIGTYPE], [void],
302           [Define as the return type of signal handlers
303            (`int' or `void').])
304       else
305         AC_MSG_RESULT([int])
306         AC_DEFINE([RETSIGTYPE], [int],
307           [Define as the return type of signal handlers
308            (`int' or `void').])
309       fi])
310    
311  AC_DEFUN([GROFF_SYS_NERR],  AC_DEFUN([GROFF_SYS_NERR],
312    [AC_LANG_PUSH([C++])    [AC_LANG_PUSH([C++])
313     AC_MSG_CHECKING([for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>])     AC_MSG_CHECKING([for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>])

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26