$OpenBSD: patch-source_config_icu-config-bottom,v 1.6 2012/06/22 07:07:14 ajacoutot Exp $
--- source/config/icu-config-bottom.orig	Fri Jun  1 16:53:10 2012
+++ source/config/icu-config-bottom	Thu Jun 21 08:27:54 2012
@@ -3,8 +3,8 @@
 ## Copyright (c) 2002-2011, International Business Machines Corporation and
 ## others. All Rights Reserved.
 
-ICUUC_FILE="${libdir}/${ICULIBS_COMMON_LIB_NAME}"
-ICUUC_FILE_A="${libdir}/${ICULIBS_COMMON_LIB_NAME_A}"
+ICUUC_FILE="${ICULIBS_COMMON_LIB_NAME}.*.*"
+ICUUC_FILE_A="${ICULIBS_COMMON_LIB_NAME_A}"
     
 #  echo ENABLE RPATH $ENABLE_RPATH and RPATHLDFLAGS=${RPATH_LDFLAGS}
 if [ "x$PKGDATA_MODE" = "x" ]; then
@@ -47,7 +47,7 @@ allflags()
     echo "  --ldflags-layout       Print ICU layout engine link directive. Use in addition to --ldflags"
     echo "  --ldflags-libsonly     Same as --ldflags, but only the -l directives"
     echo "  --ldflags-searchpath   Print only -L (search path) directive"
-    echo "  --ldflags-system       Print only system libs ICU links with (-lpthread, -lm)"
+    echo "  --ldflags-system       Print only system libs ICU links with (-pthread, -lm)"
     echo "  --ldflags-icuio        Print ICU icuio link directive. Use in addition to --ldflags "
     echo "  --ldflags-obsolete     Print ICU obsolete link directive. Use in addition to --ldflags. (requires icuapps/obsolete to be built and installed.) "
     echo "  --mandir               Print manpage (man) path"
@@ -94,7 +94,8 @@ usage()
 ## Check the sanity of current variables
 sanity()
 {
-    if [ ! -f "${ICUUC_FILE}" -a ! -f "${ICUUC_FILE_A}" ] && [ ${IGNORE_ICUUC_FILE_CHECK} = "no" ] && [ ${SANITY} = "sane" ];
+	libcnt=`find ${libdir} -name ${ICUUC_FILE} -o -name ${ICUUC_FILE_A} | wc -l`
+    if [ ${libcnt} -lt 1 ] && [ ${IGNORE_ICUUC_FILE_CHECK} = "no" ] && [ ${SANITY} = "sane" ];
     then
 	echo "### $ME: Can't find ${ICUUC_FILE} - ICU prefix is wrong."  1>&2
 	echo "###      Try the --prefix= option " 1>&2
