[java] Fix detection of gcj when building with newlib

Richard Earnshaw rearnsha@arm.com
Thu Aug 21 15:59:00 GMT 2003


This patch fixes detection of the gcj program when building with newlib.  
Without this patch builddotdot is not initialized and configure ends up 
trying to use a previously installed version of gcj (if such a tool 
exists).

2003-08-21  Richard Earnshaw  <rearnsha@arm.com>

	* configure.in: Fix detection of gcj when building with newlib.
	* configure: Regenerated.


-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.166
diff -p -r1.166 configure.in
*** configure.in	7 Aug 2003 21:34:19 -0000	1.166
--- configure.in	21 Aug 2003 13:24:03 -0000
*************** else
*** 798,811 ****
     if test "$GC" = boehm; then
        AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl")
     fi
  
!    if test -z "${with_multisubdir}"; then
!       builddotdot=.
!    else
  changequote(<<,>>)
!       builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
  changequote([,])
-    fi
  fi
  
  # Which gcj do we use?
--- 798,811 ----
     if test "$GC" = boehm; then
        AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl")
     fi
+ fi
  
! if test -z "${with_multisubdir}"; then
!    builddotdot=.
! else
  changequote(<<,>>)
!    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
  changequote([,])
  fi
  
  # Which gcj do we use?
Index: configure
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure,v
retrieving revision 1.187
diff -p -r1.187 configure
*** configure	7 Aug 2003 21:34:19 -0000	1.187
--- configure	21 Aug 2003 13:24:04 -0000
*************** else
*** 7310,7323 ****
  fi
  
     fi
  
!    if test -z "${with_multisubdir}"; then
!       builddotdot=.
!    else
  
!       builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
  
-    fi
  fi
  
  # Which gcj do we use?
--- 7310,7323 ----
  fi
  
     fi
+ fi
  
! if test -z "${with_multisubdir}"; then
!    builddotdot=.
! else
  
!    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
  
  fi
  
  # Which gcj do we use?


More information about the Java-patches mailing list