Use icu-config --cppflags-searchpath instead of icu-config --cppflags.
Problem is that it --cpflags does not always contain include path.
Seen with ICU 4.6.1 on Solaris 5.10, GCC 3.4.3.
ICU_PREFIX=`$ICU_CONFIG --prefix`
AC_MSG_CHECKING(ICU_CPPFLAGS)
- ICU_CPPFLAGS=`$ICU_CONFIG --cppflags`""
+ ICU_CPPFLAGS=`$ICU_CONFIG --cppflags-searchpath`""
if test "$ICU_PREFIX" = "/usr"; then
ICU_CPPFLAGS=`echo $ICU_CPPFLAGS|sed 's@-I/usr/include@@'`
fi