]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - configure.in
2004-06-17 Corinna Vinschen <vinschen@redhat.com>
[thirdparty/gcc.git] / configure.in
index a42a1c51d252a76068c3927b6bc4d45490352585..f1397dbe8a44e1e530a6714cc691313fee0ba49c 100644 (file)
@@ -585,8 +585,13 @@ case "${target}" in
   *-*-cygwin*)
     target_configdirs="$target_configdirs target-libtermcap target-winsup"
     noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
-    # always build newlib.
-    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
+    # always build newlib if winsup directory is present.
+    if test -d winsup
+    then
+      skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
+    else
+      echo "Warning: winsup is missing so newlib can't be built."
+    fi
 
     # Can't build gdb for Cygwin if not native.
     case "${host}" in