1 # Configure a replacement for <sys/times.h>.
3 # Copyright (C) 2008 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.
8 # Written by Simon Josefsson.
10 AC_DEFUN([gl_SYS_TIMES_H],
12 AC_REQUIRE([gl_SYS_TIMES_H_DEFAULTS])
14 AC_CHECK_HEADERS_ONCE([sys/times.h])
15 if test $ac_cv_header_sys_times_h = yes; then
18 SYS_TIMES_H=sys/times.h
20 AC_SUBST([SYS_TIMES_H])
23 AC_DEFUN([gl_SYS_TIMES_MODULE_INDICATOR],
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
30 AC_DEFUN([gl_SYS_TIMES_H_DEFAULTS],
32 GNULIB_TIMES=0; AC_SUBST([GNULIB_TIMES])