multilib fixes for libjava
Andrew Haley
aph@redhat.com
Tue Nov 7 09:57:00 GMT 2006
Jack Howarth writes:
> I think a working set of patches for building multilib
> libjava on Darwin PPC with a G4. However I have one issue
> that we need to solve. Currently...
>
> if test x"$build" = x"$host"; then
> AC_CHECK_FILES(/proc/self/exe, [
> AC_DEFINE(HAVE_PROC_SELF_EXE, 1, [Define if you have /proc/self/exe])])
> else
> case $host in
> *-linux*)
> AC_DEFINE(HAVE_PROC_SELF_EXE, 1, [Define if you have /proc/self/exe])
> ;;
> esac
> fi
>
> in configure.ac fails on a G4 with the error...
>
> checking for /proc/self/exe... configure: error: cannot check for file existence when cross compiling
>
> Mike Stump suggests we try...
>
> if test x"$cross_compiling" = x"no"; then
> AC_CHECK_FILES(/proc/self/exe, [
> AC_DEFINE(HAVE_PROC_SELF_EXE, 1, [Define if you have /proc/self/exe])])
> else
> case $host in
> *-linux*)
> AC_DEFINE(HAVE_PROC_SELF_EXE, 1, [Define if you have /proc/self/exe])
> ;;
> esac
> fi
>
> ...instead. Do you have any opinions on that?
I think that's the test that AC_CHECK_FILE is using, so that should be
fine.
Andrew.
More information about the Java
mailing list