Author: fperrad
Date: Tue Oct 25 03:45:54 2005
New Revision: 9556

Modified:
   trunk/config/auto/env.pl
Log:
bad comparison (Win32 instead of MSWin32).
so remove code never reached.

Modified: trunk/config/auto/env.pl
==============================================================================
--- trunk/config/auto/env.pl    (original)
+++ trunk/config/auto/env.pl    Tue Oct 25 03:45:54 2005
@@ -23,24 +23,18 @@ $description="Determining if your C libr
 sub runstep {
     my ($setenv, $unsetenv) = (0, 0);
 
-    if ($^O eq 'Win32') {
-       $setenv = 1;
-       $unsetenv = 1;
+    cc_gen('config/auto/env/test_setenv.in');
+    eval { cc_build(); };
+    unless ($@ || cc_run() !~ /ok/) {
+        $setenv = 1;
     }
-    else {
-       cc_gen('config/auto/env/test_setenv.in');
-       eval { cc_build(); };
-       unless ($@ || cc_run() !~ /ok/) {
-           $setenv = 1;
-       }
-       cc_clean();
-       cc_gen('config/auto/env/test_unsetenv.in');
-       eval { cc_build(); };
-       unless ($@ || cc_run() !~ /ok/) {
-           $unsetenv = 1;
-       }
-       cc_clean();
+    cc_clean();
+    cc_gen('config/auto/env/test_unsetenv.in');
+    eval { cc_build(); };
+    unless ($@ || cc_run() !~ /ok/) {
+        $unsetenv = 1;
     }
+    cc_clean();
 
     Configure::Data->set(
        setenv => $setenv,

Reply via email to