/[bison]/bison/m4/timevar.m4
ViewVC logotype

Diff of /bison/m4/timevar.m4

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

revision 1.1 by akim, Wed Jul 31 19:52:13 2002 UTC revision 1.2 by eggert, Sun Oct 13 05:59:40 2002 UTC
# Line 1  Line 1 
1  # -*-Autoconf-*-  # -*-Autoconf-*-
2  # Checks required to run `stage', a nonportable memory/time tracker.  # Checks required to run `timevar', a nonportable memory/time tracker.
3  #  #
4  # Copyright (C) 2002 Free Software Foundation, Inc.  # Copyright (C) 2002 Free Software Foundation, Inc.
5  #  #
# Line 21  Line 21 
21  # serial 1  # serial 1
22    
23  AC_DEFUN([BISON_PREREQ_TIMEVAR],  AC_DEFUN([BISON_PREREQ_TIMEVAR],
24  [AC_CHECK_HEADERS([sys/resource.h sys/times.h])  [AC_CHECK_HEADERS([sys/resource.h sys/time.h sys/times.h])
25    
26  AC_CHECK_FUNCS([times])  AC_CHECK_FUNCS([times])
27    
28  AC_CHECK_DECLS([getrusage, times, clock, sysconf], [], [],  AC_CHECK_DECLS([getrusage, times, clock, sysconf], [], [],
29  [$ac_includes_default  [$ac_includes_default
30  #if HAVE_SYS_RESOURCE_H  #if HAVE_SYS_TIME_H
31  # include <sys/resource.h>  # include <sys/time.h>
32  #endif  #endif
33  #if HAVE_SYS_TIMES_H  #if HAVE_SYS_TIMES_H
34  # include <sys/times.h>  # include <sys/times.h>
35  #endif  #endif
36    #if HAVE_SYS_RESOURCE_H
37    # include <sys/resource.h>
38    #endif
39  ])  ])
40    
41  AC_CHECK_TYPES([clock_t, struct tms], [], [],  AC_CHECK_TYPES([clock_t, struct tms], [], [],
42  [$ac_includes_default  [$ac_includes_default
43  #if HAVE_SYS_RESOURCE_H  #if HAVE_SYS_TIME_H
44  # include <sys/resource.h>  # include <sys/time.h>
45  #endif  #endif
46  #if HAVE_SYS_TIMES_H  #if HAVE_SYS_TIMES_H
47  # include <sys/times.h>  # include <sys/times.h>
48  #endif  #endif
49    #if HAVE_SYS_RESOURCE_H
50    # include <sys/resource.h>
51    #endif
52  ])  ])
53  ])  ])

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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