Conditionally determine whether to build shared and/or static libraries
The default option is to build both libraries, passing static libraries to the linker.
If static libraries are disabled, PKG_CHECK_MODULES
or xml2-config --libs --dynamic
are invoked.