зеркало из https://github.com/mozilla/gecko-dev.git
Only check for wcrtomb & mbrtowc when targetting OSX >= 10.3 or non-OSX builds.
Bug #233574 r=bryner
This commit is contained in:
Родитель
d62ad77af5
Коммит
75ff834028
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
50
configure.in
50
configure.in
|
@ -1895,30 +1895,6 @@ dnl Note that we assume that mac & win32 have short wchar (see nscore.h)
|
|||
AC_LANG_RESTORE
|
||||
fi
|
||||
|
||||
dnl check for wcrtomb/mbrtowc
|
||||
dnl =======================================================================
|
||||
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_CACHE_CHECK(for wcrtomb,
|
||||
ac_cv_have_wcrtomb,
|
||||
[AC_TRY_LINK([#include <wchar.h>],
|
||||
[mbstate_t ps={0};wcrtomb(0,'f',&ps);],
|
||||
ac_cv_have_wcrtomb="yes",
|
||||
ac_cv_have_wcrtomb="no")])
|
||||
if test "$ac_cv_have_wcrtomb" = "yes"; then
|
||||
AC_DEFINE(HAVE_WCRTOMB)
|
||||
fi
|
||||
AC_CACHE_CHECK(for mbrtowc,
|
||||
ac_cv_have_mbrtowc,
|
||||
[AC_TRY_LINK([#include <wchar.h>],
|
||||
[mbstate_t ps={0};mbrtowc(0,0,0,&ps);],
|
||||
ac_cv_have_mbrtowc="yes",
|
||||
ac_cv_have_mbrtowc="no")])
|
||||
if test "$ac_cv_have_mbrtowc" = "yes"; then
|
||||
AC_DEFINE(HAVE_MBRTOWC)
|
||||
fi
|
||||
AC_LANG_C
|
||||
|
||||
dnl Check for .hidden assembler directive and visibility attribute.
|
||||
dnl Borrowed from glibc configure.in
|
||||
dnl ===============================================================
|
||||
|
@ -2344,6 +2320,32 @@ if test -z "$MACOS_DEPLOYMENT_TARGET" || test "$MACOS_DEPLOYMENT_TARGET" -ge "10
|
|||
AC_CHECK_FUNCS(localtime_r strtok_r)
|
||||
fi
|
||||
|
||||
dnl check for wcrtomb/mbrtowc
|
||||
dnl =======================================================================
|
||||
if test -z "$MACOS_DEPLOYMENT_TARGET" || test "$MACOS_DEPLOYMENT_TARGET" -ge "100300"; then
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_CACHE_CHECK(for wcrtomb,
|
||||
ac_cv_have_wcrtomb,
|
||||
[AC_TRY_LINK([#include <wchar.h>],
|
||||
[mbstate_t ps={0};wcrtomb(0,'f',&ps);],
|
||||
ac_cv_have_wcrtomb="yes",
|
||||
ac_cv_have_wcrtomb="no")])
|
||||
if test "$ac_cv_have_wcrtomb" = "yes"; then
|
||||
AC_DEFINE(HAVE_WCRTOMB)
|
||||
fi
|
||||
AC_CACHE_CHECK(for mbrtowc,
|
||||
ac_cv_have_mbrtowc,
|
||||
[AC_TRY_LINK([#include <wchar.h>],
|
||||
[mbstate_t ps={0};mbrtowc(0,0,0,&ps);],
|
||||
ac_cv_have_mbrtowc="yes",
|
||||
ac_cv_have_mbrtowc="no")])
|
||||
if test "$ac_cv_have_mbrtowc" = "yes"; then
|
||||
AC_DEFINE(HAVE_MBRTOWC)
|
||||
fi
|
||||
AC_LANG_RESTORE
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK(
|
||||
[for res_ninit()],
|
||||
ac_cv_func_res_ninit,
|
||||
|
|
Загрузка…
Ссылка в новой задаче