Sorry - updated - I forgot LOG4CXX_HAS_WCHAR_T. And now I read once again the mail from Curt about LOG4CXX_HAS_WCHAR_T and LOG4CXX_LOGCHAR_IS_UTF8.
Index: configure.in =================================================================== RCS file: /home/cvspublic/logging-log4cxx/configure.in,v retrieving revision 1.51 diff -c -r1.51 configure.in *** configure.in 4 May 2005 16:13:40 -0000 1.51 --- configure.in 14 May 2005 19:51:44 -0000 *************** *** 22,27 **** --- 22,29 ---- [/* no explicit exports */ #define LOG4CXX_EXPORT]) + unset CDPATH + AC_CONFIG_HEADERS([src/config.h]) AM_INIT_AUTOMAKE(log4cxx, 0.9.8) # Checks for programs *************** *** 369,374 **** --- 371,389 ---- CPPFLAGS="-DLOG4CXX $CPPFLAGS" + AC_MSG_CHECKING([wchar_t]) + AC_COMPILE_IFELSE(AC_LANG_SOURCE(wchar_t* w;), [have_wchar_t=yes], [have_wchar_t=no]) + AC_MSG_RESULT($have_wchar_t) + + if test "$have_wchar_t" = "yes" + then + AC_SUBST(LOGCHAR_IS_UTF8, 0) + AC_SUBST(HAS_WCHAR_T, 1) + else + AC_SUBST(LOGCHAR_IS_UTF8, 1) + AC_SUBST(HAS_WCHAR_T, 0) + fi + # Create files # ---------------------------------------------------------------------------- *************** *** 378,384 **** docs/Doxyfile src/Makefile include/Makefile ! include/log4cxx/private/log4cxx.h include/log4cxx/Makefile include/log4cxx/helpers/Makefile include/log4cxx/net/Makefile --- 393,400 ---- docs/Doxyfile src/Makefile include/Makefile ! include/log4cxx/log4cxx.h ! include/log4cxx/private/log4cxx_private.h include/log4cxx/Makefile include/log4cxx/helpers/Makefile include/log4cxx/net/Makefile
