mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 01:11:02 +00:00
ICU-480 nicer message for nl_langinfo(xxx)
X-SVN-Rev: 2691
This commit is contained in:
parent
614eb112b5
commit
a28f6e29d6
2 changed files with 7 additions and 7 deletions
8
icu4c/source/configure
vendored
8
icu4c/source/configure
vendored
|
@ -2782,12 +2782,12 @@ fi
|
|||
|
||||
|
||||
if test $U_HAVE_NL_LANGINFO -eq 1; then
|
||||
echo $ac_n "checking what to pass nl_langinfo to obtain the codeset""... $ac_c" 1>&6
|
||||
echo "configure:2787: checking what to pass nl_langinfo to obtain the codeset" >&5
|
||||
echo $ac_n "checking for nl_langinfo's argument to obtain the codeset""... $ac_c" 1>&6
|
||||
echo "configure:2787: checking for nl_langinfo's argument to obtain the codeset" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_nl_langinfo_codeset'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_cv_nl_langinfo_codeset="not found"
|
||||
ac_cv_nl_langinfo_codeset="unknown"
|
||||
for a in CODESET _NL_CTYPE_CODESET_NAME; do
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2794 "configure"
|
||||
|
@ -2809,7 +2809,7 @@ rm -f conftest*
|
|||
fi
|
||||
|
||||
echo "$ac_t""$ac_cv_nl_langinfo_codeset" 1>&6
|
||||
if test x$ac_cv_nl_langinfo_codeset != x"not found"
|
||||
if test x$ac_cv_nl_langinfo_codeset != unknown
|
||||
then
|
||||
U_HAVE_NL_LANGINFO_CODESET=1
|
||||
U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
|
||||
|
|
|
@ -327,13 +327,13 @@ U_NL_LANGINFO_CODESET=0
|
|||
AC_CHECK_FUNC(nl_langinfo,[U_HAVE_NL_LANGINFO=1],[U_HAVE_NL_LANGINFO=0])
|
||||
AC_SUBST(U_HAVE_NL_LANGINFO)
|
||||
if test $U_HAVE_NL_LANGINFO -eq 1; then
|
||||
AC_CACHE_CHECK([what to pass nl_langinfo to obtain the codeset],
|
||||
AC_CACHE_CHECK([for nl_langinfo's argument to obtain the codeset],
|
||||
ac_cv_nl_langinfo_codeset,
|
||||
[ac_cv_nl_langinfo_codeset="not found"
|
||||
[ac_cv_nl_langinfo_codeset="unknown"
|
||||
for a in CODESET _NL_CTYPE_CODESET_NAME; do
|
||||
AC_TRY_LINK([#include <langinfo.h>],[nl_langinfo($a);],[ac_cv_nl_langinfo_codeset="$a"; break])]
|
||||
done)
|
||||
if test x$ac_cv_nl_langinfo_codeset != x"not found"
|
||||
if test x$ac_cv_nl_langinfo_codeset != unknown
|
||||
then
|
||||
U_HAVE_NL_LANGINFO_CODESET=1
|
||||
U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
|
||||
|
|
Loading…
Add table
Reference in a new issue