NSF Unidata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #WTM-237180]: Re: [netcdfgroup] please try out the netcdf daily snapshot for opendap, hdf4-reading, hdf5-reading, szip compression, etc.

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.



Howdy Orion,

What is the deal with this patch?

It seems to want to use pkg-config to tell us about installed
libraries. Does this work on all platforms? Or just Linux?

Is there a reason that pkg-config is better than what we have here?

Thanks,

Ed


"Orion Poplawski" <address@hidden> writes:


> netcdf-4.1-beta2-pkgconfig does not appear to be applied in today's snaphot.
--- netcdf-4.1-beta2-snapshot2009102000/nc-config.in.pkgconfig  2009-09-24 
12:42:06.000000000 -0600
+++ netcdf-4.1-beta2-snapshot2009102000/nc-config.in    2009-10-24 
13:22:26.588585310 -0600
@@ -8,7 +8,6 @@
 
 prefix=@prefix@
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
 includedir=${prefix}/include
 
 cc="@CC@"
@@ -16,8 +15,6 @@
 fc="@FC@"
 cflags=" -I${includedir}"
 fflags="@FFLAGS@ @MOD_FLAG@${includedir}"
-libs="-L${libdir} @NC_LIBS@"
-flibs="-L${libdir} @NC_FLIBS@"
 has_dap="@HAS_DAP@"
 has_nc2="@HAS_NC2@"
 has_nc4="@HAS_NC4@"
@@ -134,11 +131,11 @@
        ;;
 
     --libs)
-               echo $libs
+               pkg-config netcdf --libs
                ;;
 
     --flibs)
-               echo $flibs
+               pkg-config netcdf --flibs
                ;;
 
     --has-dap)


-- 
Ed Hartnett  -- address@hidden



Ticket Details
===================
Ticket ID: WTM-237180
Department: Support netCDF
Priority: Urgent
Status: Open