Don't assume that gettimeofday and settimeofday exist or work.
[gnulib.git] / m4 / settime.m4
1 # settime.m4 serial 2
2 dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
3 dnl This file is free software, distributed under the terms of the GNU
4 dnl General Public License.  As a special exception to the GNU General
5 dnl Public License, this file may be distributed as part of a program
6 dnl that contains a configuration script generated by Autoconf, under
7 dnl the same distribution terms as the rest of that program.
8
9 AC_DEFUN([gl_SETTIME],
10 [
11   dnl Prerequisites of lib/settime.c.
12   AC_REQUIRE([gl_CLOCK_TIME])
13   AC_REQUIRE([gl_TIMESPEC])
14   AC_CHECK_FUNCS_ONCE(settimeofday stime)
15 ])