bb446c820947bd8af4606d3bf5e4e2652523eec4
[gnulib.git] / m4 / utimens.m4
1 dnl Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 AC_DEFUN([gl_UTIMENS],
7 [
8   AC_LIBSOURCES([utimens.c, utimens.h])
9   AC_LIBOBJ([utimens])
10
11   dnl Prerequisites of lib/utimens.c.
12   AC_REQUIRE([gl_TIMESPEC])
13   AC_REQUIRE([gl_FUNC_UTIMES])
14   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
15   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_UTIMBUF])
16   AC_CHECK_FUNCS_ONCE(futimes)
17 ])