Initial import
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/xerces-c-3.0.0@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
dnl @synopsis AC_CXX_HAVE_LSTRING
|
||||
dnl
|
||||
dnl If the compiler can prevent names clashes using namespaces, define
|
||||
dnl HAVE_LSTRING.
|
||||
dnl
|
||||
dnl @category Cxx
|
||||
dnl @author James Berry
|
||||
dnl @version 2005-02-21
|
||||
dnl @license AllPermissive
|
||||
|
||||
AC_DEFUN([AC_CXX_HAVE_LSTRING],
|
||||
[AC_CACHE_CHECK([whether the compiler implements L"widestring"],
|
||||
ac_cv_cxx_have_lstring,
|
||||
[AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_COMPILE_IFELSE(
|
||||
AC_LANG_SOURCE(
|
||||
[[const wchar_t* s=L"wide string";]]),
|
||||
ac_cv_cxx_have_lstring=yes, ac_cv_cxx_have_lstring=no)
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
if test "$ac_cv_cxx_have_lstring" = yes; then
|
||||
AC_DEFINE(HAVE_LSTRING,,[define if the compiler implements L"widestring"])
|
||||
fi
|
||||
])
|
||||
Reference in New Issue
Block a user