* configure.in: If the only directory in target_configdirs which
authorIan Lance Taylor <ian@airs.com>
Wed, 1 Nov 1995 17:25:21 +0000 (17:25 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 1 Nov 1995 17:25:21 +0000 (17:25 +0000)
actually exists is libiberty, then set target_configdirs to empty,
to avoid trying to build a target libiberty in a gas or gdb
distribution.

ChangeLog
configure.in

index c119566d88295b3c1517610dbe5fb29920673a79..9896ab0694248e5f3ebffec91770b2af1102e0bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Nov  1 12:23:20 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * configure.in: If the only directory in target_configdirs which
+       actually exists is libiberty, then set target_configdirs to empty,
+       to avoid trying to build a target libiberty in a gas or gdb
+       distribution.
+
 Tue Oct 31 17:52:39 1995  J.T. Conklin  <jtc@slave.cygnus.com>
 
        * configure.in (host_makefile_frag): Use m68k-sun-sunos* instead
index 51da239d49ecefe089820c491a222674223cda8b..ff16a8237ddd338fa86b1c29fcab8487e00172c8 100644 (file)
@@ -535,6 +535,23 @@ for dir in . $skipdirs $noconfigdirs ; do
   fi
 done
 
+# Sometimes the tools are distributed with libiberty but with no other
+# libraries.  In that case, we don't want to build target-libiberty.
+if [ -n "${target_configdirs}" ]; then
+  others=
+  for i in ${target_configdirs}; do
+    if [ "$i" != "libiberty" ]; then
+      if [ -r $srcdir/$i/configure ] || [ -r $srcdir/$i/configure.in ]; then
+       others=yes;
+       break;
+      fi
+    fi
+  done
+  if [ -z "${others}" ]; then
+    target_configdirs=
+  fi
+fi
+
 # Deconfigure all subdirectories, in case we are changing the
 # configuration from one where a subdirectory is supported to one where it
 # is not.
This page took 0.026031 seconds and 4 git commands to generate.