The R Project SVN R

Rev

Rev 46659 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 46659 Rev 46906
Line 198... Line 198...
198
	   for pimd in ${jmdirs}; do
198
	   for pimd in ${jmdirs}; do
199
	     if test -e "${jinc}/${pimd}/jni_md.h"; then jmdinc="${jinc}/${pimd}"; break; fi
199
	     if test -e "${jinc}/${pimd}/jni_md.h"; then jmdinc="${jinc}/${pimd}"; break; fi
200
	   done
200
	   done
201
	   if test -z "${jmdinc}"; then
201
	   if test -z "${jmdinc}"; then
202
	     # ultima-ratio: use find and pray that it works
202
	     # ultima-ratio: use find and pray that it works
203
	     jmdinc=`find "${jinc}/" -name jni_md.h 2>dev/null |head -n 1 2>/dev/null`
203
	     jmdinc=`find "${jinc}/" -name jni_md.h 2>/dev/null |head -n 1 2>/dev/null`
204
	     if test -n "${jmdinc}"; then jmdinc=`dirname "${jmdinc}"`; fi
204
	     if test -n "${jmdinc}"; then jmdinc=`dirname "${jmdinc}"`; fi
205
	   fi
205
	   fi
206
	   if test -n "${jmdinc}"; then
206
	   if test -n "${jmdinc}"; then
207
	     if test "${jmdinc}" != "${jinc}/."; then
207
	     if test "${jmdinc}" != "${jinc}/."; then
208
	       JAVA_CPPFLAGS="${JAVA_CPPFLAGS} -I${jmdinc}"
208
	       JAVA_CPPFLAGS="${JAVA_CPPFLAGS} -I${jmdinc}"