1 |
# -*- Autoconf -*- |
# -*- Autoconf -*- |
2 |
# Checks required to run `timevar', a time tracker. |
# Checks required to run `timevar', a time tracker. |
3 |
# |
# |
4 |
# Copyright (C) 2002 Free Software Foundation, Inc. |
# Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
5 |
# |
# |
6 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
7 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
18 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
19 |
# 02111-1307 USA |
# 02111-1307 USA |
20 |
|
|
21 |
# serial 1 |
# serial 2 |
22 |
|
|
23 |
AC_DEFUN([BISON_PREREQ_TIMEVAR], |
AC_DEFUN([BISON_PREREQ_TIMEVAR], |
24 |
[AC_CHECK_HEADERS([sys/resource.h sys/time.h sys/times.h]) |
[AC_CHECK_HEADERS([sys/time.h sys/times.h]) |
25 |
|
AC_CHECK_HEADERS([sys/resource.h],,, |
26 |
|
[$ac_includes_default |
27 |
|
#if HAVE_SYS_TIME_H |
28 |
|
# include <sys/time.h> |
29 |
|
#endif |
30 |
|
#ifdef HAVE_SYS_TIMES_H |
31 |
|
# include <sys/times.h> |
32 |
|
#endif |
33 |
|
]) |
34 |
AC_CHECK_FUNCS([times]) |
AC_CHECK_FUNCS([times]) |
35 |
|
|
36 |
AC_CHECK_DECLS([getrusage, times, clock, sysconf], [], [], |
AC_CHECK_DECLS([getrusage, times, clock, sysconf], [], [], |