aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1993-08-02 18:58:17 +0000
committerDavid D. Zuhn <zoo@cygnus>1993-08-02 18:58:17 +0000
commiteb4b02ae07f001ca30f017f7df35754024a507cd (patch)
tree85dd430e22927ef9b3db20e6a2e9f59e4ad4b50f /configure
parent357561a615511276124a209b461a35699a7c5c59 (diff)
downloadfsf-binutils-gdb-eb4b02ae07f001ca30f017f7df35754024a507cd.zip
fsf-binutils-gdb-eb4b02ae07f001ca30f017f7df35754024a507cd.tar.gz
fsf-binutils-gdb-eb4b02ae07f001ca30f017f7df35754024a507cd.tar.bz2
add support for CONFIG_SHELL
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 17 insertions, 8 deletions
diff --git a/configure b/configure
index 6ddc1af..e8f8bfe 100755
--- a/configure
+++ b/configure
@@ -88,6 +88,10 @@ undefinedargs=
version="$Revision$"
x11=default
+### we might need to use some other shell than /bin/sh for running subshells
+#
+config_shell=${CONFIG_SHELL-}
+
NO_EDIT="This file was generated automatically by configure. Do not edit."
## this is a little touchy and won't always work, but...
@@ -892,21 +896,26 @@ if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then
### check for guested configure, otherwise fix possibly relative progname
if [ -f ${newsrcdir}/configure ] ; then
recprog=${newsrcdir}/configure
- else
+ elif [ -f ${newsrcdir}/configure.in ] ; then
case "${progname}" in
/*) recprog=${progname} ;;
*) recprog=../${progname} ;;
esac
+ else
+ echo No configuration information in ${configdir} ${redirect}
+ recprog=
fi
### The recursion line is here.
- if eval ${recprog} ${verbose} --host=${host_alias} --target=${target_alias} \
- ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
- ${srcdiroption} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${removing} ${redirect} ; then
- true
- else
- exit 1
- fi
+ if [ ! -z "${recprog}" ] ; then
+ if eval ${config_shell} ${recprog} ${verbose} --host=${host_alias} --target=${target_alias} \
+ ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
+ ${srcdiroption} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${removing} ${redirect} ; then
+ true
+ else
+ exit 1
+ fi
+ fi
cd ${POPDIR}
fi