c - Checking library version of shared library (so-file) in autoconf -


libraries typically have package/release version library version. these have different semantics.

is there standard way check availability of library given library version using autoconf, i.e., macro in configure.ac?

things can done, bad in opinion (correct me if wrong):

  1. rely on name of postfix of so-file. weak verification.
  2. add artificial function in each version of library , check in standard autoconf way. ugly , assumes build library.
  3. embed lib version in header file, check matches grep-ish tricks, , assume matches version in lib. risk of mismatch between header file , library , assumes build library.

what want solution inspects actual library version embedded in library itself. feel stupid, have googled quite lot , not find anything.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -