havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
[gnulib.git] / m4 / wcsftime.m4
blob8734af8ad6ae52bd41b1030312ebe37f1a8c28ea
1 # wcsftime.m4 serial 1
2 dnl Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 AC_DEFUN([gl_FUNC_WCSFTIME],
9   AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
10   AC_REQUIRE([AC_CANONICAL_HOST])
11   AC_CHECK_FUNCS_ONCE([wcsftime])
12   if test $ac_cv_func_wcsftime = no; then
13     HAVE_WCSFTIME=0
14   else
15     case "$host_os" in
16       mingw*) REPLACE_WCSFTIME=1 ;;
17     esac
18   fi