Another gcc_tooldir fix
Jeffrey A Law
law@cygnus.com
Sat Jan 23 03:36:00 GMT 1999
I *despise* our overly complex configury/build system.
This handles this case if the user does not explicitly set exec_prefix.
Obviously I was testing within a system that always specified exec_prefix.
Sigh.
* configure.in (gcc_tooldir): Handle case where exec_prefix has
not been explicitly set.
* configure: Rebuilt.
Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.199
diff -c -3 -p -r1.199 configure.in
*** configure.in 1999/01/23 00:43:36 1.199
--- configure.in 1999/01/23 10:43:11
*************** if test x$enable_haifa != x; then
*** 4098,4108 ****
fi
# if $(exec_prefix) is not the same as $(prefix), then do not use a relative
! # directory to get to $gcc_tooldir.
# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
# make and thus we'd get different behavior depending on where we built the
# sources.
! if test x$exec_prefix = x$prefix; then
gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
else
gcc_tooldir='$(exec_prefix)'/${target_alias}
--- 4098,4109 ----
fi
# if $(exec_prefix) is not the same as $(prefix), then do not use a relative
! # directory to get to $gcc_tooldir. Also handle the case where the user did
! # not specify a value for exec_prefix.
# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
# make and thus we'd get different behavior depending on where we built the
# sources.
! if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
else
gcc_tooldir='$(exec_prefix)'/${target_alias}
More information about the Gcc-patches
mailing list