hi

here's a small patch for DBD::Oracle v1.15. it addresses the following
problems:
- when the module is compiled on a system that only has an Oracle client
installation Oracle version number checking fails
- with compilers other than gcc you get a false warning about perl not
being compiled with PIC compiler flag

best regards,
-- 
        aspa                                            http://www.kronodoc.fi/
--- Makefile.PL.orig	2004-02-04 08:57:00.000000000 +0200
+++ Makefile.PL	2004-02-04 09:02:38.000000000 +0200
@@ -141,8 +141,8 @@
 
    if (open INST, "<$OH/install/unix.rgs") {
 	local $/ = undef;
-	<INST> =~ m/^rdbms\s+([\d.]+)/m;
-        $inspdver{RDBMS} = $1 if $1;
+	<INST> =~ m/^(rdbms|sql\*plus)\s+([\d.]+)/m;
+        $inspdver{RDBMS} = $2 if $2;
         close INST;
     }
     elsif ( -x "$OH/orainst/inspdver" ) { # client only install does not have this
@@ -512,7 +512,7 @@
             print "Warning: perl was not built with +z or +Z in compiler flags.\n",
                   "         You may need to rebuild perl from sources.\n",
                   "         See instructions in README.hpux\n"
-        	unless $ccf !~ m/\+[zZ]/;
+        	unless $ccf =~ m/\+[zZ]/;
         }
     }
 

Reply via email to