This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] rearrangement in toplevel configure.in
- From: Nathanael Nerode <neroden at doctormoo dot dyndns dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 6 Apr 2002 13:56:21 -0500
- Subject: [PATCH] rearrangement in toplevel configure.in
This is a small rearrangment in the top level configure.in; it pulls
the definition of is_cross_compiler up higher so that one more thing
can use it.
A large portion of this file will be carried over to the autoconfiscated
version, so I prefer to do some of the necessary rearrangement work
first. (So that the individual steps are more obvious.)
Oh yes, tested on i686-pc-linux-gnu.
2002-04-06 Nathanael Nerode <neroden@twcny.rr.com>
* configure.in: relocate is_cross_compiler definition
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.125
diff -c -3 -p -r1.125 configure.in
*** configure.in 2002/03/31 00:33:17 1.125
--- configure.in 2002/04/06 18:44:52
*************** srcname="gnu development package"
*** 121,126 ****
--- 121,133 ----
# This gets set non-empty for some net releases of packages.
appdirs=""
+ is_cross_compiler=
+ if test x"${host}" = x"${target}" ; then
+ is_cross_compiler=no
+ else
+ is_cross_compiler=yes
+ fi
+
# per-host:
# Work in distributions that contain no compiler tools, like Autoconf.
*************** fi
*** 272,278 ****
# We default to --with-shared on platforms where -fpic is meaningless.
# Well, we don't yet, but we will.
! if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then
case "${target}" in
alpha*-dec-osf*) enable_shared=yes ;;
alpha*-*-linux*) enable_shared=yes ;;
--- 279,285 ----
# We default to --with-shared on platforms where -fpic is meaningless.
# Well, we don't yet, but we will.
! if false && [ "$is_cross_compiler" = no ] && [ x${enable_shared} = x ]; then
case "${target}" in
alpha*-dec-osf*) enable_shared=yes ;;
alpha*-*-linux*) enable_shared=yes ;;
*************** esac
*** 418,437 ****
# Those are added when we have a host==target configuration. For cross
# toolchains, we add some directories that should only be useful in a
# cross-compiler.
-
- is_cross_compiler=
! if [ x"${host}" = x"${target}" ] ; then
! # when doing a native toolchain, don't build the targets
! # that are in the 'cross only' list
! skipdirs="${skipdirs} ${cross_only}"
! is_cross_compiler=no
! else
! # similarly, don't build the targets in the 'native only'
! # list when building a cross compiler
! skipdirs="${skipdirs} ${native_only}"
! is_cross_compiler=yes
! fi
# We always want to use the same name for this directory, so that dejagnu
# can reliably find it.
--- 425,443 ----
# Those are added when we have a host==target configuration. For cross
# toolchains, we add some directories that should only be useful in a
# cross-compiler.
! case ${is_cross_compiler} in
! no)
! # when doing a native toolchain, don't build the targets
! # that are in the 'cross only' list
! skipdirs="${skipdirs} ${cross_only}"
! ;;
! yes)
! # similarly, don't build the targets in the 'native only'
! # list when building a cross compiler
! skipdirs="${skipdirs} ${native_only}"
! ;;
! esac
# We always want to use the same name for this directory, so that dejagnu
# can reliably find it.