* configure.in: Before checking for the existence of various files,

use sed to filter out "target-".
This commit is contained in:
Per Bothner 1995-11-03 16:08:08 +00:00
parent 18a9609c03
commit b58d9e5d03
2 changed files with 16 additions and 8 deletions

View file

@ -1,3 +1,8 @@
Thu Nov 2 23:23:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
* configure.in: Before checking for the existence of various files,
use sed to filter out "target-".
Thu Nov 2 13:24:56 1995 Ian Lance Taylor <ian@cygnus.com> Thu Nov 2 13:24:56 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (DO_X): Split rule to decrease command line length * Makefile.in (DO_X): Split rule to decrease command line length

View file

@ -52,7 +52,7 @@ target_libs="target-libiberty target-libgloss target-newlib target-libio target-
# list belongs in this list. those programs are also very likely # list belongs in this list. those programs are also very likely
# candidates for the "native_only" list which follows # candidates for the "native_only" list which follows
# #
target_tools="examples groff" target_tools="target-examples target-groff"
################################################################################ ################################################################################
@ -64,9 +64,9 @@ target_tools="examples groff"
# directories to be built in the native environment only # directories to be built in the native environment only
# #
native_only="autoconf cvs emacs emacs19 fileutils find grep groff gzip hello native_only="autoconf cvs emacs emacs19 fileutils find grep gzip hello
indent ispell m4 rcs recode sed shellutils tar textutils gash indent ispell m4 rcs recode sed shellutils tar textutils gash
uudecode wdiff gprof" uudecode wdiff gprof target-groff"
# directories to be built in a cross environment only # directories to be built in a cross environment only
# #
@ -513,9 +513,11 @@ esac
notsupp="" notsupp=""
for dir in . $skipdirs $noconfigdirs ; do for dir in . $skipdirs $noconfigdirs ; do
dirname=`echo $dir | sed -e s/target-//g`
if [ $dir != . ] && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then if [ $dir != . ] && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
if [ -r $srcdir/$dir/configure ] || [ -r $srcdir/$dir/configure.in ]; then if [ -r $srcdir/$dirname/configure ] \
|| [ -r $srcdir/$dirname/configure.in ]; then
if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
true true
else else
@ -525,7 +527,8 @@ for dir in . $skipdirs $noconfigdirs ; do
fi fi
if [ $dir != . ] && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then if [ $dir != . ] && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
if [ -r $srcdir/$dir/configure ] || [ -r $srcdir/$dir/configure.in ]; then if [ -r $srcdir/$dirname/configure ] \
|| [ -r $srcdir/$dirname/configure.in ]; then
if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
true true
else else
@ -539,7 +542,7 @@ done
# libraries. In that case, we don't want to build target-libiberty. # libraries. In that case, we don't want to build target-libiberty.
if [ -n "${target_configdirs}" ]; then if [ -n "${target_configdirs}" ]; then
others= others=
for i in ${target_configdirs}; do for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
if [ "$i" != "libiberty" ]; then if [ "$i" != "libiberty" ]; then
if [ -r $srcdir/$i/configure ] || [ -r $srcdir/$i/configure.in ]; then if [ -r $srcdir/$i/configure ] || [ -r $srcdir/$i/configure.in ]; then
others=yes; others=yes;
@ -556,12 +559,12 @@ fi
# configuration from one where a subdirectory is supported to one where it # configuration from one where a subdirectory is supported to one where it
# is not. # is not.
if [ -z "${norecursion}" -a -n "${configdirs}" ]; then if [ -z "${norecursion}" -a -n "${configdirs}" ]; then
for i in ${configdirs} ; do for i in `echo ${configdirs} | sed -e s/target-//g` ; do
rm -f $i/Makefile rm -f $i/Makefile
done done
fi fi
if [ -z "${norecursion}" -a -n "${target_configdirs}" ]; then if [ -z "${norecursion}" -a -n "${target_configdirs}" ]; then
for i in ${target_configdirs} ; do for i in `echo ${target_configdirs} | sed -e s/target-//` ; do
rm -f ${target_subdir}/$i/Makefile rm -f ${target_subdir}/$i/Makefile
done done
fi fi