X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=configure;h=ae89f40c831badecbc26e94ee54646fd9ca4c591;hb=ab31aa69b94142262363449f04f3df44075b7eee;hp=5bb72227d9f2717d2857ec976ff74da795ea0114;hpb=ba73c63f53ed79c461b86feacc19166bb80c98ea;p=deliverable%2Fbinutils-gdb.git diff --git a/configure b/configure index 5bb72227d9..ae89f40c83 100755 --- a/configure +++ b/configure @@ -450,7 +450,7 @@ case "${fatal}" in fi ;; esac - echo "Configuring for a ${host_alias} host." 1>&2 + echo "Configuring for a ${host_alias} host." arguments="--host=$host_alias $arguments" else echo 'Config.guess failed to determine the host type. You need to specify one.' 1>&2 @@ -518,7 +518,8 @@ fi configsub=`echo ${progname} | sed 's/configure$/config.sub/'` moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'` -topsrcdir=`cd \`dirname ${progname}\`; pwd` +## the sed command below emulates the dirname command +topsrcdir=`cd \`echo ${progname} | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'\`; pwd` # this is a hack. sun4 must always be a valid host alias or this will fail.