summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-04-17 20:24:22 +0000
committerDJ Delorie <dj@redhat.com>2002-04-17 20:24:22 +0000
commita0a2c6c6e34a415314f9bd4da40ffcd4b5234009 (patch)
treef73d80c6129a4b04fa898d8ddb8273acdd5f7534
parenta44d7f9cfb57c512c44f0fa5ea0683b9a855f506 (diff)
downloadppe42-binutils-a0a2c6c6e34a415314f9bd4da40ffcd4b5234009.tar.gz
ppe42-binutils-a0a2c6c6e34a415314f9bd4da40ffcd4b5234009.zip
* configure.in: don't even try to configure or make a subdirectory
if there's no configure script for it.
-rw-r--r--ChangeLog5
-rw-r--r--configure.in19
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 274f00f598..101e8a17b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-17 Nathanael Nerode <neroden@twcny.rr.com>
+
+ * configure.in: don't even try to configure or make a subdirectory
+ if there's no configure script for it.
+
2002-04-15 Mark Mitchell <mark@codesourcery.com>
* MAINTAINERS: Remove chill maintainers.
diff --git a/configure.in b/configure.in
index 9d71f6efbc..b3d28b9715 100644
--- a/configure.in
+++ b/configure.in
@@ -1198,6 +1198,25 @@ if [ -z "${norecursion}" ] && [ -n "${target_configdirs}" ]; then
done
fi
+# Quietly strip out all directories which aren't configurable in this tree.
+# This relies on all configurable subdirectories being autoconfiscated, which
+# is now the case.
+configdirs_all="$configdirs"
+configdirs=
+for i in ${configdirs_all} ; do
+ if test -f ${srcdir}/$i/configure ; then
+ configdirs="${configdirs} $i"
+ fi
+done
+target_configdirs_all="$target_configdirs"
+target_configdirs=
+for i in ${target_configdirs_all} ; do
+ j=`echo $i | sed -e s/target-//g`
+ if test -f ${srcdir}/$j/configure ; then
+ target_configdirs="${target_configdirs} $i"
+ fi
+done
+
# Produce a warning message for the subdirs we can't configure.
# This isn't especially interesting in the Cygnus tree, but in the individual
# FSF releases, it's important to let people know when their machine isn't
OpenPOWER on IntegriCloud