[RFC] Move some target specific checks to configure.host from configure

Andrew Pinski pinskia@physics.uc.edu
Mon Aug 29 21:33:00 GMT 2005


Right now autoconf mangles [0-7] wrongly to produce 0-7 in configure 
which causes
darwin7 not to include -single_module while linking libgcj.  This slows 
down the
whole testing and ruins the whole point of this check anyways.

This fixes the problem by moving the switch statement over to 
configure.host
which seems like a better place anyways.  Also I moved DARWIN_CRT check 
also
while I was at it so it would be easier in the future to have another 
OS use it.
Though I think I should change it so we supply a file but I was too 
lazy to fix
it fully and I did not have to move that.

Anyways this has ___NOT___ been tested but I wanted to send an RFC 
about this.
I will test it later tonight.

What do you guys thing about this?

Thanks,
Andrew Pinski

ChangeLog:

	* configure.ac: Remove the case statement that sets DARWIN_CRT.
	Likewise for extra_ldflags_libjava.
	* configure.host: Add comment saying that both DARWIN_CRT and
	extra_ldflags_libjava are set by this script.
	Set DARWIN_CRT for *-darwin* and extra_ldflags_libjava 
for	*-*-darwin[0-7].*.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: t.diff.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050829/52143d93/attachment.txt>


More information about the Java-patches mailing list