Hi,

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.

The attached patch check only the header file, and add the -L and -R flags accordingly.

I believe this should also applicable to the FreeBSD system, in that case, we may combine the FreeBSD and Solaris section added in this patch.

Cheers,
Henry
Index: build/apu-conf.m4
===================================================================
--- build/apu-conf.m4	(revision 390523)
+++ build/apu-conf.m4	(working copy)
@@ -84,6 +84,12 @@
     expat_include_dir="$1/include"
     expat_ldflags="-L$1/lib"
     expat_libs="-lexpat"
+  elif test -r "$1/include/expat.h"; then 
+    dnl Expat 1.95.* installation (without libtool)
+    dnl Solaris
+    expat_include_dir="$1/include"
+    expat_ldflags="-L$1/lib -R$1/lib"
+    expat_libs="-lexpat"
   elif test -r "$1/xmlparse.h"; then
     dnl maybe an expat-lite. use this dir for both includes and libs
     expat_include_dir="$1"

Reply via email to