blob: 67d7ae3f10b3a7db0e36cb2d4b698be305c7d57d [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001dnl @synopsis AC_CXX_HAVE_LSTRING
2dnl
3dnl If the compiler can prevent names clashes using namespaces, define
4dnl HAVE_LSTRING.
5dnl
6dnl @category Cxx
7dnl @author James Berry
8dnl @version 2005-02-21
9dnl @license AllPermissive
10
11AC_DEFUN([AC_CXX_HAVE_LSTRING],
12[AC_CACHE_CHECK([whether the compiler implements L"widestring"],
13ac_cv_cxx_have_lstring,
14[AC_LANG_SAVE
15 AC_LANG_CPLUSPLUS
16 AC_COMPILE_IFELSE(
17 AC_LANG_SOURCE(
18 [[const wchar_t* s=L"wide string";]]),
19 ac_cv_cxx_have_lstring=yes, ac_cv_cxx_have_lstring=no)
20 AC_LANG_RESTORE
21])
22if test "$ac_cv_cxx_have_lstring" = yes; then
23 AC_DEFINE(HAVE_LSTRING,,[define if the compiler implements L"widestring"])
24fi
25])