|
Packit Service |
4684c1 |
# localename.m4 serial 7
|
|
Packit Service |
4684c1 |
dnl Copyright (C) 2007, 2009-2020 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
dnl This file is free software; the Free Software Foundation
|
|
Packit Service |
4684c1 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit Service |
4684c1 |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
AC_DEFUN([gl_LOCALENAME],
|
|
Packit Service |
4684c1 |
[
|
|
Packit Service |
4684c1 |
AC_REQUIRE([gl_LOCALE_H_DEFAULTS])
|
|
Packit Service |
4684c1 |
AC_REQUIRE([gl_LOCALE_T])
|
|
Packit Service |
4684c1 |
AC_REQUIRE([gt_LC_MESSAGES])
|
|
Packit Service |
4684c1 |
AC_REQUIRE([gt_INTL_THREAD_LOCALE_NAME])
|
|
Packit Service |
4684c1 |
AC_REQUIRE([gt_INTL_MACOSX])
|
|
Packit Service |
4684c1 |
AC_CHECK_HEADERS_ONCE([langinfo.h])
|
|
Packit Service |
4684c1 |
if test $HAVE_LOCALE_T = 1; then
|
|
Packit Service |
4684c1 |
AC_CHECK_FUNCS_ONCE([newlocale duplocale freelocale])
|
|
Packit Service |
4684c1 |
gl_func_newlocale="$ac_cv_func_newlocale"
|
|
Packit Service |
4684c1 |
gl_func_duplocale="$ac_cv_func_duplocale"
|
|
Packit Service |
4684c1 |
gl_func_freelocale="$ac_cv_func_freelocale"
|
|
Packit Service |
4684c1 |
else
|
|
Packit Service |
4684c1 |
dnl In 2019, some versions of z/OS lack the locale_t type and have broken
|
|
Packit Service |
4684c1 |
dnl newlocale, duplocale, freelocale functions.
|
|
Packit Service |
4684c1 |
gl_func_newlocale=no
|
|
Packit Service |
4684c1 |
gl_func_duplocale=no
|
|
Packit Service |
4684c1 |
gl_func_freelocale=no
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
if test $gl_func_newlocale != yes; then
|
|
Packit Service |
4684c1 |
HAVE_NEWLOCALE=0
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
if test $gl_func_duplocale != yes; then
|
|
Packit Service |
4684c1 |
HAVE_DUPLOCALE=0
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
if test $gl_func_freelocale != yes; then
|
|
Packit Service |
4684c1 |
HAVE_FREELOCALE=0
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
if test $gt_nameless_locales = yes; then
|
|
Packit Service |
4684c1 |
REPLACE_NEWLOCALE=1
|
|
Packit Service |
4684c1 |
REPLACE_DUPLOCALE=1
|
|
Packit Service |
4684c1 |
REPLACE_FREELOCALE=1
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
])
|