remove -s, rework -v to better accomodate guested configures
This commit is contained in:
parent
aa94235541
commit
a98e98d368
2 changed files with 36 additions and 55 deletions
|
@ -1,5 +1,8 @@
|
||||||
Fri May 8 08:31:41 1992 K. Richard Pixley (rich@cygnus.com)
|
Fri May 8 08:31:41 1992 K. Richard Pixley (rich@cygnus.com)
|
||||||
|
|
||||||
|
* configure: remove -s, rework -v to better accomodate guested
|
||||||
|
configures.
|
||||||
|
|
||||||
* standards.texi: updated to 3 may, fixed librid <-> libdir typo.
|
* standards.texi: updated to 3 may, fixed librid <-> libdir typo.
|
||||||
|
|
||||||
Fri May 1 18:00:50 1992 K. Richard Pixley (rich@cygnus.com)
|
Fri May 1 18:00:50 1992 K. Richard Pixley (rich@cygnus.com)
|
||||||
|
|
56
configure
vendored
56
configure
vendored
|
@ -55,30 +55,29 @@ floating_point=default
|
||||||
gas=default
|
gas=default
|
||||||
host_alias=
|
host_alias=
|
||||||
host_makefile_frag=
|
host_makefile_frag=
|
||||||
|
moveifchange=
|
||||||
next_host=
|
next_host=
|
||||||
next_prefix=
|
next_prefix=
|
||||||
next_site=
|
next_site=
|
||||||
next_srcdir=
|
next_srcdir=
|
||||||
next_target=
|
next_target=
|
||||||
moveifchange=
|
|
||||||
next_tmpdir=
|
next_tmpdir=
|
||||||
norecursion=
|
norecursion=
|
||||||
removing=
|
|
||||||
prefix=/usr/local
|
prefix=/usr/local
|
||||||
progname=
|
progname=
|
||||||
program_prefix=
|
program_prefix=
|
||||||
program_prefix_option=
|
program_prefix_option=
|
||||||
silent=
|
redirect=">/dev/null"
|
||||||
|
removing=
|
||||||
site=
|
site=
|
||||||
site_option=
|
|
||||||
site_makefile_frag=
|
site_makefile_frag=
|
||||||
|
site_option=
|
||||||
srcdir=
|
srcdir=
|
||||||
srctrigger=
|
srctrigger=
|
||||||
subdirs=
|
subdirs=
|
||||||
target_alias=
|
target_alias=
|
||||||
target_makefile_frag=
|
target_makefile_frag=
|
||||||
undefinedargs=
|
undefinedargs=
|
||||||
verbose=
|
|
||||||
version="$Revision$"
|
version="$Revision$"
|
||||||
x11=default
|
x11=default
|
||||||
|
|
||||||
|
@ -182,10 +181,6 @@ do
|
||||||
-program_prefix | --program_prefix | --program_prefi | --program_pref | --program_pre | --program_pr | --program_p | --program_ | --program | --progra | --progr | --prog | --pro)
|
-program_prefix | --program_prefix | --program_prefi | --program_pref | --program_pre | --program_pr | --program_p | --program_ | --program | --progra | --progr | --prog | --pro)
|
||||||
next_program_prefix=yes
|
next_program_prefix=yes
|
||||||
;;
|
;;
|
||||||
-s | -silent | --silent | --silen | --sile | --sil)
|
|
||||||
silent=true
|
|
||||||
arguments=`echo ${arguments} | sed "s:${arg}::"`
|
|
||||||
;;
|
|
||||||
-site=* | --site=* | --sit=* | --si=*)
|
-site=* | --site=* | --sit=* | --si=*)
|
||||||
site_option=${arg}
|
site_option=${arg}
|
||||||
site=`echo ${arg} | sed 's/^[-a-z]*=//'`
|
site=`echo ${arg} | sed 's/^[-a-z]*=//'`
|
||||||
|
@ -223,7 +218,8 @@ do
|
||||||
next_tmpdir=yes
|
next_tmpdir=yes
|
||||||
;;
|
;;
|
||||||
-v | -verbose | --v)
|
-v | -verbose | --v)
|
||||||
verbose=${arg}
|
redirect=
|
||||||
|
verbose=-v
|
||||||
;;
|
;;
|
||||||
-version | -V | --version | --V)
|
-version | -V | --version | --V)
|
||||||
echo "This is Cygnus Configure version" `echo ${version} | sed 's/[ $:]//g'`
|
echo "This is Cygnus Configure version" `echo ${version} | sed 's/[ $:]//g'`
|
||||||
|
@ -482,7 +478,7 @@ for subdir in . ${subdirs} ; do
|
||||||
*) # otherwise relative
|
*) # otherwise relative
|
||||||
case "${subdir}" in
|
case "${subdir}" in
|
||||||
.) makesrcdir=${srcdir} ;;
|
.) makesrcdir=${srcdir} ;;
|
||||||
*) makesrcdir=../${srcdir}/${subdir} ;;
|
*) makesrcdir=`echo ${subdir} | sed -e 's:[^./][^./]*:..:g'`/${srcdir}/${subdir} ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -497,16 +493,15 @@ for subdir in . ${subdirs} ; do
|
||||||
|
|
||||||
case "${removing}" in
|
case "${removing}" in
|
||||||
"")
|
"")
|
||||||
if [ -n "${verbose}" -o -z "${silent}" ] ; then
|
|
||||||
echo Building in ${subdir}
|
echo Building in ${subdir}
|
||||||
fi
|
|
||||||
# FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
|
# FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
|
||||||
# Set up the list of links to be made.
|
# Set up the list of links to be made.
|
||||||
# ${links} is the list of link names, and ${files} is the list of names to link to.
|
# ${links} is the list of link names, and ${files} is the list of names to link to.
|
||||||
|
|
||||||
# Make the links.
|
# Make the links.
|
||||||
configlinks="${links}"
|
configlinks="${links}"
|
||||||
if [ -r config.status ] ; then
|
if [ -r ${subdir}/config.status ] ; then
|
||||||
mv -f ${subdir}/config.status ${subdir}/config.back
|
mv -f ${subdir}/config.status ${subdir}/config.back
|
||||||
fi
|
fi
|
||||||
while [ -n "${files}" ] ; do
|
while [ -n "${files}" ] ; do
|
||||||
|
@ -529,10 +524,7 @@ for subdir in . ${subdirs} ; do
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${verbose}" in
|
echo "Linked \"${link}\" to \"${srcdir}/${file}\"."
|
||||||
"") ;;
|
|
||||||
*) echo "Linked \"${link}\" to \"${srcdir}/${file}\"." ;;
|
|
||||||
esac
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create a .gdbinit file which runs the one in srcdir
|
# Create a .gdbinit file which runs the one in srcdir
|
||||||
|
@ -540,8 +532,7 @@ for subdir in . ${subdirs} ; do
|
||||||
|
|
||||||
if [ -r ${srcdir}/${subdir}/.gdbinit ] ; then
|
if [ -r ${srcdir}/${subdir}/.gdbinit ] ; then
|
||||||
case ${srcdir} in
|
case ${srcdir} in
|
||||||
.)
|
.) ;;
|
||||||
;;
|
|
||||||
*) cat > ${subdir}/.gdbinit <<EOF
|
*) cat > ${subdir}/.gdbinit <<EOF
|
||||||
# ${NO_EDIT}
|
# ${NO_EDIT}
|
||||||
dir .
|
dir .
|
||||||
|
@ -678,7 +669,6 @@ EOF
|
||||||
|
|
||||||
rm -f ${subdir}/Makefile.tem
|
rm -f ${subdir}/Makefile.tem
|
||||||
|
|
||||||
if [ -n "${verbose}" -o -z "${silent}" ] ; then
|
|
||||||
case "${host_makefile_frag}" in
|
case "${host_makefile_frag}" in
|
||||||
"") using= ;;
|
"") using= ;;
|
||||||
*) using="and \"${host_makefile_frag}\"" ;;
|
*) using="and \"${host_makefile_frag}\"" ;;
|
||||||
|
@ -697,7 +687,6 @@ EOF
|
||||||
newusing=`echo "${using}" | sed 's/and/using/'`
|
newusing=`echo "${using}" | sed 's/and/using/'`
|
||||||
using=${newusing}
|
using=${newusing}
|
||||||
echo "Created \"${Makefile}\" in" ${PWD} ${using}
|
echo "Created \"${Makefile}\" in" ${PWD} ${using}
|
||||||
fi
|
|
||||||
|
|
||||||
. ${tmpfile}.pos
|
. ${tmpfile}.pos
|
||||||
|
|
||||||
|
@ -726,7 +715,7 @@ ${progname}" ${arguments} "
|
||||||
# ${using}" > ${subdir}/config.new
|
# ${using}" > ${subdir}/config.new
|
||||||
fi
|
fi
|
||||||
chmod a+x ${subdir}/config.new
|
chmod a+x ${subdir}/config.new
|
||||||
if [ -r config.back ] ; then
|
if [ -r ${subdir}/config.back ] ; then
|
||||||
mv -f ${subdir}/config.back ${subdir}/config.status
|
mv -f ${subdir}/config.back ${subdir}/config.status
|
||||||
fi
|
fi
|
||||||
${moveifchange} ${subdir}/config.new ${subdir}/config.status
|
${moveifchange} ${subdir}/config.new ${subdir}/config.status
|
||||||
|
@ -739,10 +728,7 @@ done
|
||||||
# If there are subdirectories, then recur.
|
# If there are subdirectories, then recur.
|
||||||
if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then
|
if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then
|
||||||
for configdir in ${configdirs} ; do
|
for configdir in ${configdirs} ; do
|
||||||
case "${verbose}" in
|
eval echo Configuring ${configdir}... ${redirect}
|
||||||
"") ;;
|
|
||||||
*) echo Configuring ${configdir}... ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -d ${srcdir}/${configdir} ] ; then
|
if [ -d ${srcdir}/${configdir} ] ; then
|
||||||
case "${srcdir}" in
|
case "${srcdir}" in
|
||||||
|
@ -781,9 +767,9 @@ if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### The recursion line is here.
|
### The recursion line is here.
|
||||||
if ${recprog} -s ${host_alias} -target=${target_alias} \
|
if eval ${recprog} ${verbose} ${host_alias} -target=${target_alias} \
|
||||||
${verbose} ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
|
${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
|
||||||
${srcdiroption} ${program_prefixoption} ${site_option} ${removing} ; then
|
${srcdiroption} ${program_prefixoption} ${site_option} ${removing} ${redirect} ; then
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -791,19 +777,11 @@ if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then
|
||||||
|
|
||||||
cd ${POPDIR}
|
cd ${POPDIR}
|
||||||
else
|
else
|
||||||
case "${verbose}" in
|
eval echo Warning: source directory \"${srcdir}/${configdir}\" is missing. ${redirect}
|
||||||
"") ;;
|
|
||||||
*) echo Warning: source directory \"${srcdir}/${configdir}\" is missing. ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### clean up.
|
|
||||||
|
|
||||||
# trap cmd above handles this now:
|
|
||||||
#rm -f ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue