Correct SunOS and Solaris version number notation to match Sun's usage.
[gnulib.git] / m4 / utime.m4
1 #serial 5
2
3 dnl From Jim Meyering
4 dnl Replace the utime function on systems that need it.
5
6 dnl FIXME
7
8 AC_DEFUN([jm_FUNC_UTIME],
9 [
10   AC_REQUIRE([AC_FUNC_UTIME_NULL])
11   if test $ac_cv_func_utime_null = no; then
12     AC_LIBOBJ(utime)
13     AC_DEFINE(utime, rpl_utime,
14       [Define to rpl_utime if the replacement function should be used.])
15     gl_PREREQ_UTIME
16   fi
17 ])
18
19 # Prerequisites of lib/utime.c.
20 AC_DEFUN([gl_PREREQ_UTIME],
21 [
22   AC_CHECK_HEADERS_ONCE(utime.h)
23   AC_REQUIRE([jm_CHECK_TYPE_STRUCT_UTIMBUF])
24   jm_FUNC_UTIMES_NULL
25 ])