From b0ccb5c7cd0b73b25b78a8a1fe06362056a3b7a8 Mon Sep 17 00:00:00 2001
From: James David Berry <jberry@apache.org>
Date: Tue, 23 May 2006 16:45:32 +0000
Subject: [PATCH] Check for genrb when checking for icu

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@408959 13f79535-47bb-0310-9956-ffa450edef68
---
 m4/xerces_icu_prefix.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/xerces_icu_prefix.m4 b/m4/xerces_icu_prefix.m4
index c64b18742..7819d395d 100644
--- a/m4/xerces_icu_prefix.m4
+++ b/m4/xerces_icu_prefix.m4
@@ -22,8 +22,8 @@ AC_DEFUN([XERCES_ICU_PREFIX],
 		xerces_cv_icu_prefix=
 		if test x"$with_icu" != x"no"; then
 			search_list="$with_icu /usr/local /usr"
-			for i in $search_list; do
-				if test -r "$i/include/unicode/ucnv.h"; then
+			for i in $search_list; do			
+				if test -x $i/bin/genrb -a -r $i/include/unicode/ucnv.h; then
 					xerces_cv_icu_prefix=$i
 					break
 				fi
-- 
GitLab