Browse Source

* 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}
gdb-4_18-branch
David D. Zuhn 33 years ago
parent
commit
719cb03ff5
  1. 50
      configure.in

50
configure.in

@ -113,6 +113,10 @@ esac
# per-target: # per-target:
gasdir=gas
use_gnu_ld=
use_gnu_as=
case "${target}" in case "${target}" in
hppa*-hp-hpux) target_makefile_frag=config/mt-hppa ;; hppa*-hp-hpux) target_makefile_frag=config/mt-hppa ;;
esac esac
@ -194,6 +198,7 @@ case "${target}" in
;; ;;
hppa*-*-*) hppa*-*-*)
configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas /pagas /;s/shellutils//'` configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas /pagas /;s/shellutils//'`
gasdir=pagas
;; ;;
i[34]86-*-go32) i[34]86-*-go32)
# add the go32 support tools to the list # add the go32 support tools to the list
@ -206,26 +211,51 @@ case "${target}" in
configdirs=`echo ${configdirs} | sed -e 's/gprof//'` configdirs=`echo ${configdirs} | sed -e 's/gprof//'`
;; ;;
sh-*-*) 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*) i[34]86-*-sco*)
configdirs=`echo ${configdirs} | sed -e 's/gprof//'` configdirs=`echo ${configdirs} | sed -e 's/gprof//'`
;; ;;
*-*-sysv4)
use_gnu_ld=no
;;
*-*-vms) *-*-vms)
configdirs=`echo ${configdirs} | sed -e 's/bfd//;s/ld//;s/binutils//'` configdirs=`echo ${configdirs} | sed -e 's/bfd//;s/ld//;s/binutils//'`
;; ;;
esac esac
# Set with_gnu_as and with_gnu_ld as appropriate. # 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 # This is done by determining whether or not the appropriate directory
# with_gnu_as=yes # is available, and by checking whether or not specific configurations
# withoptions="$withoptions -with-gnu-as" # have requested that this magic not happen.
#fi #
#if [ x${with_gnu_ld} != xyes ] && echo ${configdirs} | grep ld > /dev/null && [ -d ${srcdir}/ld ]; then # The command line options always override the explicit settings in
# with_gnu_ld=yes # configure.in, and the settings in configure.in override this magic.
# withoptions="$withoptions -with-gnu-ld" #
#fi # 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: # Local Variables:

Loading…
Cancel
Save