don't test for msvcrt under Unix nor libw under Windows in wcslen() test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-05-11 14:41:42 +00:00
parent dd5cad7aee
commit 7a30264c3f
2 changed files with 289 additions and 271 deletions

532
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -2749,22 +2749,24 @@ WCHAR_OK=0
if test "$wx_cv_sizeof_wchar_t" != "0"; then
dnl check for wcslen
WCHAR_LINK=
AC_CHECK_LIB(c, wcslen, [
AC_CHECK_FUNCS(wcslen, [
AC_DEFINE(HAVE_WCSLEN)
WCHAR_OK=1
])
if test "$WCHAR_OK" = 0; then
if test "$TOOLKIT" = "MSW"; then
AC_CHECK_LIB(msvcrt, wcslen, [
AC_DEFINE(HAVE_WCSLEN)
WCHAR_OK=1
], [
AC_CHECK_LIB(w, wcslen, [
AC_DEFINE(HAVE_WCSLEN)
WCHAR_LINK=" -lw"
WCHAR_OK=1
])
])
if test "$TOOLKIT" = "MSW" -a "$WCHAR_OK" = 0; then
AC_CHECK_LIB(msvcrt, wcslen, [
AC_DEFINE(HAVE_WCSLEN)
WCHAR_OK=1
])
else
AC_CHECK_LIB(w, wcslen, [
AC_DEFINE(HAVE_WCSLEN)
WCHAR_LINK=" -lw"
WCHAR_OK=1
])
fi
fi
fi