arabica/m4/has_std_wstring.m4

14 lines
546 B
Text
Raw Normal View History

2006-09-12 23:21:48 +02:00
AC_DEFUN([ARABICA_HAS_STD_WSTRING],
[
AC_MSG_CHECKING([for std::wstring support])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <iostream>]],
2007-01-15 18:40:58 +01:00
[[std::wcout << std::wstring(L"test");]])],
2006-09-12 23:21:48 +02:00
[AS_VAR_SET(wchar_t_available, yes)],
[AS_VAR_SET(wchar_t_available, no)])
AC_MSG_RESULT($wchar_t_available)
if test $wchar_t_available = no; then
AC_DEFINE(ARABICA_NO_WCHAR_T, ,[disables wchar_t])
fi
AM_CONDITIONAL(HAS_STD_WSTRING, test $wchar_t_available = yes)
2006-09-12 23:21:48 +02:00
])