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.
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_CACHE_CHECK([whether the utimes function works],
[gl_cv_func_working_utimes],
AC_CACHE_CHECK([whether the utimes function works],
[gl_cv_func_working_utimes],
]])],
[gl_cv_func_working_utimes=yes],
[gl_cv_func_working_utimes=no],
]])],
[gl_cv_func_working_utimes=yes],
[gl_cv_func_working_utimes=no],
- if test $gl_cv_func_working_utimes = yes; then
- AC_DEFINE([HAVE_WORKING_UTIMES], [1], [Define if utimes works properly. ])
- fi
+ case "$gl_cv_func_working_utimes" in
+ *yes)
+ AC_DEFINE([HAVE_WORKING_UTIMES], [1], [Define if utimes works properly.])
+ ;;
+ esac