aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-12-13 09:38:48 +0000
committerK. Richard Pixley <rich@cygnus>1991-12-13 09:38:48 +0000
commit7da1d334242482f0b7c78ffeb470271d5d965802 (patch)
treedfe287734be7f046a0975acaf23a4084f5a0ebc6 /configure
parent89adaa32109628ac7654af6b9492eb927fa24787 (diff)
downloadfsf-binutils-gdb-7da1d334242482f0b7c78ffeb470271d5d965802.zip
fsf-binutils-gdb-7da1d334242482f0b7c78ffeb470271d5d965802.tar.gz
fsf-binutils-gdb-7da1d334242482f0b7c78ffeb470271d5d965802.tar.bz2
find config.subr again
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 9 insertions, 9 deletions
diff --git a/configure b/configure
index d764560..a7c5e59 100755
--- a/configure
+++ b/configure
@@ -117,15 +117,6 @@ else
PATH=$PATH:${PWD} ; export PATH
fi
-configsubr=`echo ${progname} | sed 's/configure$/config.subr/'`
-
-if ${configsubr} none >/dev/null 2>&1 ; then
- true
-else
- echo '***' cannot find config.subr.
- echo 1
-fi
-
for arg in $*;
do
# handle things that might have args following as separate words
@@ -363,6 +354,15 @@ if [ -n "${fatal}" -o "${hosts}" = "help" ] ; then
exit 1
fi
+configsubr=`echo ${progname} | sed 's/configure$/config.subr/'`
+
+if (${configsubr} `echo ${hosts} | sed -e 's/ .*//'`) >/dev/null 2>&1 ; then
+ true
+else
+ echo '***' cannot find config.subr.
+ exit 1
+fi
+
if [ -z "${srcdir}" ] ; then
if [ -r configure.in ] ; then
srcdir=.