podivej se do toho configure scriptu jaky knihovny konkretne kontroluje...
a klasicky ldconfig...