source: icXML/icXML-devel/m4/cxx_have_lstring.m4 @ 2723

Last change on this file since 2723 was 2723, checked in by cameron, 6 years ago

Add Xerces build system scripts

File size: 663 bytes
Line 
1dnl @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])
Note: See TracBrowser for help on using the repository browser.