diff options
author | David D. Zuhn <zoo@cygnus> | 1993-10-04 23:19:25 +0000 |
---|---|---|
committer | David D. Zuhn <zoo@cygnus> | 1993-10-04 23:19:25 +0000 |
commit | 719cb03ff57a5974cb0169e462ce423a81caaa91 (patch) | |
tree | 39fe03112fc565232565015fc9f6e7c81bb1c286 /configure.in | |
parent | 291b84ff00e7a6ee7eba489ee34e5a972fbec95f (diff) | |
download | gdb-719cb03ff57a5974cb0169e462ce423a81caaa91.zip gdb-719cb03ff57a5974cb0169e462ce423a81caaa91.tar.gz gdb-719cb03ff57a5974cb0169e462ce423a81caaa91.tar.bz2 |
* configure.in: default to '--with-gnu-as' and '--with-gnu-ld'
if gas and ld are in the source tree and are in ${configdirs}.
If ${use_gnu_as} or ${use_gnu_ld} are 'no', then don't set the
the --with options (but still pass them down on the command line,
if they were explicitly specified).
* configure: substitute SHELL value in Makefile.in with
${CONFIG_SHELL}
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 50 |
1 files changed, 40 insertions, 10 deletions
diff --git a/configure.in b/configure.in index 86cc620..8cad8e8 100644 --- a/configure.in +++ b/configure.in @@ -113,6 +113,10 @@ esac # per-target: +gasdir=gas +use_gnu_ld= +use_gnu_as= + case "${target}" in hppa*-hp-hpux) target_makefile_frag=config/mt-hppa ;; esac @@ -194,6 +198,7 @@ case "${target}" in ;; hppa*-*-*) configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas /pagas /;s/shellutils//'` + gasdir=pagas ;; i[34]86-*-go32) # add the go32 support tools to the list @@ -206,26 +211,51 @@ case "${target}" in configdirs=`echo ${configdirs} | sed -e 's/gprof//'` ;; sh-*-*) - configdirs=`echo gprof ${configdirs}` + case "${host}" in + i[34]86-*-go32) ;; # don't add gprof + *) configdirs=`echo gprof ${configdirs}` ;; + esac + ;; + sparc-*-sunos4*) + use_gnu_ld=no ;; i[34]86-*-sco*) configdirs=`echo ${configdirs} | sed -e 's/gprof//'` ;; + *-*-sysv4) + use_gnu_ld=no + ;; *-*-vms) configdirs=`echo ${configdirs} | sed -e 's/bfd//;s/ld//;s/binutils//'` ;; esac # Set with_gnu_as and with_gnu_ld as appropriate. -# This is commented out for now. -#if [ x${with_gnu_as} != xyes ] && echo ${configdirs} | grep gas > /dev/null && [ -d ${srcdir}/gas ]; then -# with_gnu_as=yes -# withoptions="$withoptions -with-gnu-as" -#fi -#if [ x${with_gnu_ld} != xyes ] && echo ${configdirs} | grep ld > /dev/null && [ -d ${srcdir}/ld ]; then -# with_gnu_ld=yes -# withoptions="$withoptions -with-gnu-ld" -#fi +# +# This is done by determining whether or not the appropriate directory +# is available, and by checking whether or not specific configurations +# have requested that this magic not happen. +# +# The command line options always override the explicit settings in +# configure.in, and the settings in configure.in override this magic. +# +# If the default for a toolchain is to use GNU as and ld, and you don't +# want to do that, then you should use the --without-gnu-as and +# --without-gnu-ld options for the configure script. + +if [ x${use_gnu_as} = x ] ; then + if [ x${with_gnu_as} != xno ] && echo ${configdirs} | grep "${gasdir} " > /dev/null 2>&1 && [ -d ${srcdir}/${gasdir} ] ; then + with_gnu_as=yes + withoptions="$withoptions --with-gnu-as" + fi +fi + +if [ x${use_gnu_ld} = x ] ; then + if [ x${with_gnu_ld} != xno ] && echo ${configdirs} | grep ld > /dev/null 2>&1 && [ -d ${srcdir}/ld ] ; then + with_gnu_ld=yes + withoptions="$withoptions --with-gnu-ld" + fi +fi # # Local Variables: |