From 0f3a69de2f8521acad717e692d0a182a9614cc5b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 24 Nov 2008 11:29:18 +0100 Subject: [PATCH] Avoid -L/usr/lib from icu-config --- ac_check_icu.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ac_check_icu.m4 b/ac_check_icu.m4 index 77c9e02..d15b61c 100644 --- a/ac_check_icu.m4 +++ b/ac_check_icu.m4 @@ -41,6 +41,8 @@ AC_DEFUN([AC_CHECK_ICU],[ AC_MSG_RESULT(yes) succeeded=yes + ICU_PREFIX=`$ICU_CONFIG --prefix` + AC_MSG_CHECKING(ICU_CPPFLAGS) ICU_CPPFLAGS=`$ICU_CONFIG --cppflags`"" AC_MSG_RESULT($ICU_CPPFLAGS) @@ -54,7 +56,11 @@ AC_DEFUN([AC_CHECK_ICU],[ AC_MSG_RESULT($ICU_CXXFLAGS) AC_MSG_CHECKING(ICU_LIBS) - ICU_LIBS=`$ICU_CONFIG --ldflags` + if test "$ICU_PREFIX" = "/usr"; then + ICU_LIBS=`$ICU_CONFIG --ldflags-libsonly` + else + ICU_LIBS=`$ICU_CONFIG --ldflags` + fi AC_MSG_RESULT($ICU_LIBS) else ICU_CPPFLAGS="" -- 1.7.10.4