mbsnrtowcs: Work around Solaris 11.4 bug.
[gnulib.git] / m4 / localename.m4
bloba0e136754e9ef7b4aa9238f53ba1a0a44484864b
1 # localename.m4 serial 3
2 dnl Copyright (C) 2007, 2009-2018 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_LOCALENAME],
9   AC_REQUIRE([gt_LC_MESSAGES])
10   AC_REQUIRE([gt_INTL_MACOSX])
11   AC_CHECK_HEADERS_ONCE([langinfo.h])
12   AC_CHECK_FUNCS([setlocale uselocale])
13   dnl Solaris 12 provides getlocalename_l, while Illumos doesn't have
14   dnl it nor the equivalent.
15   if test $ac_cv_func_uselocale = yes; then
16     AC_CHECK_FUNCS([getlocalename_l])
17   fi