From: Adam Dickmeiss Date: Mon, 24 Nov 2008 11:07:22 +0000 (+0100) Subject: Avoid -I/usr/include for ICU_CPPFLAGS X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=2ceb2c3a4b580e09aadcbd1cbbb12e10b60f1337;p=m4-moved-to-github.git Avoid -I/usr/include for ICU_CPPFLAGS --- diff --git a/ac_check_icu.m4 b/ac_check_icu.m4 index d15b61c..508032c 100644 --- a/ac_check_icu.m4 +++ b/ac_check_icu.m4 @@ -45,6 +45,9 @@ AC_DEFUN([AC_CHECK_ICU],[ AC_MSG_CHECKING(ICU_CPPFLAGS) ICU_CPPFLAGS=`$ICU_CONFIG --cppflags`"" + if test "$ICU_PREFIX" = "/usr"; then + ICU_CPPFLAGS=`echo $ICU_CPPFLAGS|sed 's@-I/usr/include@@'` + fi AC_MSG_RESULT($ICU_CPPFLAGS) AC_MSG_CHECKING(ICU_CFLAGS)