diff options
author | Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl> | 2004-10-27 01:28:07 +0000 |
---|---|---|
committer | Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl> | 2004-10-27 01:28:07 +0000 |
commit | ccf4c1e6cd490a3a1659b917b8f57fa6538d6950 (patch) | |
tree | 1aef3ad8ca57de0166967c8675ebd1427d34cc16 /winsup | |
parent | 5957d504f0da6ed6614bbb790b79d1224f4b639d (diff) | |
download | newlib-ccf4c1e6cd490a3a1659b917b8f57fa6538d6950.zip newlib-ccf4c1e6cd490a3a1659b917b8f57fa6538d6950.tar.gz newlib-ccf4c1e6cd490a3a1659b917b8f57fa6538d6950.tar.bz2 |
* cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
dlls.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/cygcheck.cc | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 41327b5..cb6ad0d 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2004-10-27 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl> + + * cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1 + dlls. + 2004-10-25 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl> * cygcheck.cc (dump_sysinfo): Add leading newline before legend for diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc index 8d17c9d..b627674 100644 --- a/winsup/utils/cygcheck.cc +++ b/winsup/utils/cygcheck.cc @@ -1222,6 +1222,7 @@ dump_sysinfo () if (givehelp) printf ("Looking for various Cygnus DLLs... (-v gives version info)\n"); + int cygwin_dll_count = 0; for (i = 0; i < num_paths; i++) { WIN32_FIND_DATA ffinfo; @@ -1238,7 +1239,10 @@ dump_sysinfo () { sprintf (tmp, "%s\\%s", paths[i], f); if (strcasecmp (f, "cygwin1.dll") == 0) - found_cygwin_dll = strdup (tmp); + { + cygwin_dll_count++; + found_cygwin_dll = strdup (tmp); + } else ls (tmp); } @@ -1253,6 +1257,10 @@ dump_sysinfo () FindClose (ff); } + if (cygwin_dll_count > 1) + puts ("Warning: There are multiple cygwin1.dlls on your path"); + if (!cygwin_dll_count) + puts ("Warning: cygwin1.dll not found on your path"); } static int |