|
Packit |
aea12f |
# localename.m4 serial 6
|
|
Packit |
aea12f |
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
|
|
Packit |
aea12f |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
aea12f |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
aea12f |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_DEFUN([gl_LOCALENAME],
|
|
Packit |
aea12f |
[
|
|
Packit |
aea12f |
AC_REQUIRE([gl_LOCALE_H_DEFAULTS])
|
|
Packit |
aea12f |
AC_REQUIRE([gt_LC_MESSAGES])
|
|
Packit |
aea12f |
AC_REQUIRE([gt_INTL_THREAD_LOCALE_NAME])
|
|
Packit |
aea12f |
AC_REQUIRE([gt_INTL_MACOSX])
|
|
Packit |
aea12f |
AC_CHECK_HEADERS_ONCE([langinfo.h])
|
|
Packit |
aea12f |
AC_CHECK_FUNCS_ONCE([newlocale duplocale freelocale])
|
|
Packit |
aea12f |
if test $ac_cv_func_newlocale != yes; then
|
|
Packit |
aea12f |
HAVE_NEWLOCALE=0
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
if test $ac_cv_func_duplocale != yes; then
|
|
Packit |
aea12f |
HAVE_DUPLOCALE=0
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
if test $ac_cv_func_freelocale != yes; then
|
|
Packit |
aea12f |
HAVE_FREELOCALE=0
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
if test $gt_nameless_locales = yes; then
|
|
Packit |
aea12f |
REPLACE_NEWLOCALE=1
|
|
Packit |
aea12f |
REPLACE_DUPLOCALE=1
|
|
Packit |
aea12f |
REPLACE_FREELOCALE=1
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
])
|