NCAR / lrose-core

Core C/C++ code for LROSE.
https://www.eol.ucar.edu/content/lidar-radar-open-software-environment
Other
92 stars 51 forks source link

Add lrose-config binary to provide required compile and link options #24

Closed burghart closed 4 years ago

burghart commented 6 years ago

Many distributed packages supply <pkgname>-config binaries that will show needed compile-time flags and/or link-time flags. For example, netCDF provides nc-config:

$ nc-config --cflags   # for compile-time flags
-I/usr/include -I/usr/include/hdf
$ nc-config --libs     # for link-time flags
-lnetcdf

It would be nice to have an lrose-config to provide the same for LROSE, especially since the list of required libraries is changing pretty frequently. Having lrose-config would allow for builds which use LROSE to automatically get the correct flags and libraries, even if LROSE is updated and changed.

burghart commented 6 years ago

Note that I say the tool should be a 'binary', but it can be implemented in any way that is directly executable. Most likely lrose-config would be a sh or bash script.