diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-17 19:54:25 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-17 19:54:25 +0000 |
commit | 2c10944d9982eaa18e1c592e890bac00b3ea4f27 (patch) | |
tree | 48a3c38ad7feb945e02043b53fd173c48597e826 /configure.in | |
parent | bcb141cd4ea07a59c3f8fb72aaa39dd6417e9e78 (diff) | |
download | gcc-2c10944d9982eaa18e1c592e890bac00b3ea4f27.tar.gz |
2004-06-17 Corinna Vinschen <vinschen@redhat.com>
* configure.in: Don't build Cygwin native newlib if winsup
directory is missing. Emit warning instead.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83306 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.in b/configure.in index a42a1c51d25..f1397dbe8a4 100644 --- a/configure.in +++ b/configure.in @@ -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 |