* cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1

dlls.
This commit is contained in:
Bas van Gompel 2004-10-27 01:28:07 +00:00
parent 5957d504f0
commit ccf4c1e6cd
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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