VirtualBox

source: kBuild/trunk/src/grep/m4/localename.m4

Last change on this file was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

  • Property svn:eol-style set to LF
File size: 1.3 KB
Line 
1# localename.m4 serial 8
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN([gl_LOCALENAME],
8[
9 AC_REQUIRE([gl_LOCALE_H_DEFAULTS])
10 AC_REQUIRE([gl_LOCALE_T])
11 AC_REQUIRE([gt_LC_MESSAGES])
12 AC_REQUIRE([gt_INTL_THREAD_LOCALE_NAME])
13 AC_REQUIRE([gt_INTL_MACOSX])
14 AC_CHECK_HEADERS_ONCE([langinfo.h])
15 if test $HAVE_LOCALE_T = 1; then
16 AC_CHECK_FUNCS_ONCE([newlocale duplocale freelocale])
17 gl_func_newlocale="$ac_cv_func_newlocale"
18 gl_func_duplocale="$ac_cv_func_duplocale"
19 gl_func_freelocale="$ac_cv_func_freelocale"
20 else
21 dnl In 2019, some versions of z/OS lack the locale_t type and have broken
22 dnl newlocale, duplocale, freelocale functions.
23 gl_func_newlocale=no
24 gl_func_duplocale=no
25 gl_func_freelocale=no
26 fi
27 if test $gl_func_newlocale != yes; then
28 HAVE_NEWLOCALE=0
29 fi
30 if test $gl_func_duplocale != yes; then
31 HAVE_DUPLOCALE=0
32 fi
33 if test $gl_func_freelocale != yes; then
34 HAVE_FREELOCALE=0
35 fi
36 if test $gt_localename_enhances_locale_funcs = yes; then
37 REPLACE_NEWLOCALE=1
38 REPLACE_DUPLOCALE=1
39 REPLACE_FREELOCALE=1
40 fi
41])
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette