Attached patch allows to build apr-util with system provided libexpat on OpenSolaris. On the machine, there is a expat.h and libexpat.so.* in /usr/sfw/include and /usr/sfw/lib. But there is no .a or .la file. It should not be required to have a .la file, not to mention a .a file. .a is, afaik, an archive file for static link. Attached patch use AC_CHECK_LIB to ensure a library can be found, and it uses a for loop to look into potential folders, currently I put lib and lib64 in there.
Created attachment 19086 [details] link test for libexpat from lib or lib64 Detect libexpat with link test. Assuming lib should be in lib or lib64. Other can be added if appropriate
*** This bug has been marked as a duplicate of 28205 ***