diff --git a/m4/xerces_transcoder_selection.m4 b/m4/xerces_transcoder_selection.m4 index c4cbe7e0c25d9c739b09c589f8c9c877efb3653e..7db05e33c9872e7c357bb19e4a20ec50016dd10d 100644 --- a/m4/xerces_transcoder_selection.m4 +++ b/m4/xerces_transcoder_selection.m4 @@ -132,6 +132,7 @@ AC_DEFUN([XERCES_TRANSCODER_SELECTION], *-icu-*) transcoder=icu AC_DEFINE([XERCES_USE_TRANSCODER_ICU], 1, [Define to use the ICU-based transcoder]) + AC_SUBST([ICU_CXXFLAGS], [-I$xerces_cv_icu_prefix/include]) LIBS="${LIBS} -L${xerces_cv_icu_prefix}/lib -licuuc -licudata" break ;; diff --git a/src/Makefile.am b/src/Makefile.am index 5a0355b34bbd11f62a4b1ee46edd5d8b5ae6a486..de74a12fdffe4d3cfc658d94ce6349c39812dd43 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -24,7 +24,7 @@ SUBDIRS = # the -I${top_srcdir} is needed to pick the lib/stricmp.h # header file when doing out-of-tree builds -AM_CPPFLAGS = -I${top_srcdir} +AM_CXXFLAGS = -I${top_srcdir} $(ICU_CXXFLAGS)