summaryrefslogtreecommitdiff
blob: 3cf22a31ce725dcf4c8654436be36f0b31cdd03f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- IO/HDF/Makefile.PL.orig	2012-06-16 18:43:24.000000000 +0100
+++ IO/HDF/Makefile.PL	2012-06-16 18:44:51.000000000 +0100
@@ -63,20 +63,20 @@
     # Look for the libs:
     foreach my $libdir ( @HDF_lib_locations ) 
     {
-        if (-e "$libdir/libdfalt.a" && !$found_df) 
+        if (-e "$libdir/libdfalt.$Config{so}" && !$found_df) 
         {
             $found_df = 1;
             $hdf_lib_path = $libdir;
 			$hdf_libs = '-lmfhdfalt -ldfalt';
-            print "Found libdfalt.a at $libdir/libdfalt.a\n";
+            print "Found libdfalt.$Config{so} at $libdir/libdfalt.$Config{so}\n";
         }
     
-        if (-e "$libdir/libdf.a" && !$found_df) 
+        if (-e "$libdir/libdf.$Config{so}" && !$found_df) 
         {
             $found_df = 1;
             $hdf_lib_path = $libdir;
 			$hdf_libs = '-lmfhdf -ldf';
-            print "Found libdf.a at $libdir/libdf.a\n";
+            print "Found libdf.$Config{so} at $libdir/libdf.$Config{so}\n";
         }
     
         # Look for the szip library, which HDF >= 4.2r0 needs, but older versions don't!
@@ -90,7 +90,7 @@
 
     unless( defined( $hdf_lib_path ) )
     {
-        $msg .= "Cannot find hdf library, libdf.a.\n"
+        $msg .= "Cannot find hdf library, libdf.$Config{so}.\n"
               . "Please add the correct library path to Makefile.PL or install HDF\n";
         
     }