The haslib command checks whether a certain library is available:
haslib
haslib LIBRARY
LIBRARY
gpsmanshp
Img
TclCurl
mig_at_ncc.up.pt