From: Bruno Haible Date: Thu, 31 Dec 2009 20:31:35 +0000 (+0100) Subject: times: Update after sys_times changed. X-Git-Tag: v0.1~4944 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=68aaf7d59ae9d33108f317a44039dc98442844a8;p=gnulib.git times: Update after sys_times changed. --- diff --git a/ChangeLog b/ChangeLog index 78d2a5ce5..348b309f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2009-12-31 Bruno Haible + times: Update after sys_times changed. + * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES. + * modules/times (Files): Add it. + (configure.ac): Invoke gl_FUNC_TIMES. + +2009-12-31 Bruno Haible + Use AC_C_INLINE where necessary. * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE. * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise. diff --git a/m4/times.m4 b/m4/times.m4 new file mode 100644 index 000000000..a3d1b951d --- /dev/null +++ b/m4/times.m4 @@ -0,0 +1,15 @@ +# times.m4 serial 1 +dnl Copyright (C) 2009 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_TIMES], +[ + AC_REQUIRE([gl_SYS_TIMES_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([times]) + if test $ac_cv_func_times = no; then + HAVE_TIMES=0 + AC_LIBOBJ([times]) + fi +]) diff --git a/modules/times b/modules/times index b34bf396b..dad7eb9b7 100644 --- a/modules/times +++ b/modules/times @@ -3,15 +3,13 @@ times() function: get process times Files: lib/times.c +m4/times.m4 Depends-on: sys_times configure.ac: -AC_CHECK_FUNCS_ONCE([times]) -if test $ac_cv_func_times = no; then - AC_LIBOBJ([times]) -fi +gl_FUNC_TIMES gl_SYS_TIMES_MODULE_INDICATOR([times]) Makefile.am: