update nearly all FSF copyright year lists to include 2009
[gnulib.git] / m4 / sys_times_h.m4
1 # Configure a replacement for <sys/times.h>.
2
3 # Copyright (C) 2008, 2009 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # Written by Simon Josefsson.
9
10 AC_DEFUN([gl_SYS_TIMES_H],
11 [
12   AC_REQUIRE([gl_SYS_TIMES_H_DEFAULTS])
13
14   AC_CHECK_HEADERS_ONCE([sys/times.h])
15   if test $ac_cv_header_sys_times_h = yes; then
16     SYS_TIMES_H=
17   else
18     SYS_TIMES_H=sys/times.h
19   fi
20   AC_SUBST([SYS_TIMES_H])
21 ])
22
23 AC_DEFUN([gl_SYS_TIMES_MODULE_INDICATOR],
24 [
25   dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
26   AC_REQUIRE([gl_SYS_TIMES_H_DEFAULTS])
27   GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
28 ])
29
30 AC_DEFUN([gl_SYS_TIMES_H_DEFAULTS],
31 [
32   GNULIB_TIMES=0; AC_SUBST([GNULIB_TIMES])
33 ])