dnl @synopsis XERCES_ICU_PREFIX
dnl
dnl Determines the prefix for icu
dnl
dnl @category C
dnl @author James Berry
dnl @version 2005-05-23
dnl @license AllPermissive
dnl
dnl $Id$

AC_DEFUN([XERCES_ICU_PREFIX],
	[
	AC_ARG_WITH([icu],
		[  --with-icu[[=DIR]]        Specify location of icu],
		[with_icu=m4_if($with_icu, [yes], [], $with_icu)],
		[with_icu=])

	# Determine if icu is available
	AC_CACHE_CHECK([for icu], [xerces_cv_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
					xerces_cv_icu_prefix=$i
					break
				fi
			done
		fi
	])
	
	AC_SUBST([ICU_PREFIX], [$xerces_cv_icu_prefix])
	]
)


dnl @synopsis XERCES_ICU_PREFIX
dnl
dnl Determines the prefix for icu
dnl
dnl @category C
dnl @author James Berry
dnl @version 2005-05-23
dnl @license AllPermissive
dnl
dnl $Id$

AC_DEFUN([XERCES_ICU_PREFIX],
	[
	AC_ARG_WITH([icu],
		[  --with-icu[[=DIR]]        Specify location of icu],
		[with_icu=m4_if($with_icu, [yes], [], $with_icu)],
		[with_icu=])

	# Determine if icu is available
	AC_CACHE_CHECK([for icu], [xerces_cv_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 -x $i/bin/genrb -a -r $i/include/unicode/ucnv.h; then
					xerces_cv_icu_prefix=$i
					break
				fi
			done
		fi
	])
	
	AC_SUBST([ICU_PREFIX], [$xerces_cv_icu_prefix])
	]
)


Check for genrb when checking for icu
Check for genrb when checking for icu

git-svn-id: 95233098a850bdf68e142cb551b6b3e756f38fc7@408959 13f79535-47bb-0310-9956-ffa450edef68
