diff --git a/configure.in b/configure.in index d931460c207..f95e474eca4 100644 --- a/configure.in +++ b/configure.in @@ -2774,12 +2774,12 @@ dnl Note that we assume that mac & win32 have short wchar (see nscore.h) AC_CACHE_CHECK(for compiler -fshort-wchar option, ac_cv_have_usable_wchar_option_v2, - [AC_TRY_COMPILE([#include - $configure_static_assert_macros], - [CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2); - CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)], - ac_cv_have_usable_wchar_option_v2="yes", - ac_cv_have_usable_wchar_option_v2="no")]) + [AC_TRY_LINK([#include + $configure_static_assert_macros], + [CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2); + CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)], + ac_cv_have_usable_wchar_option_v2="yes", + ac_cv_have_usable_wchar_option_v2="no")]) if test "$ac_cv_have_usable_wchar_option_v2" = "yes"; then AC_DEFINE(HAVE_CPP_2BYTE_WCHAR_T)