New file for building against uninstalled libxml2 builds. Support the


Tue Sep 30 12:31:00 AEST 2003 Malcolm Tredinnick <malcolm@commsecure.com.au>

	* libxml-2.0-uninstalled.pc.in: New file for building against
	uninstalled libxml2 builds.
	* configure.in, Makefile.am: Support the *-uninstalled.pc file.
diff --git a/ChangeLog b/ChangeLog
index 77773a7..9e5360a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Sep 30 12:31:00 AEST 2003 Malcolm Tredinnick <malcolm@commsecure.com.au>
+
+	* libxml-2.0-uninstalled.pc.in: New file for building against
+	uninstalled libxml2 builds.
+	* configure.in, Makefile.am: Support the *-uninstalled.pc file.
+
 Tue Sep 30 02:38:16 CEST 2003 Daniel Veillard <daniel@veillard.com>
 
 	* Makefile.am SAX.c SAX2.c configure.in globals.c parser.c
diff --git a/Makefile.am b/Makefile.am
index 3263f4d..4e0cdda 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -921,7 +921,7 @@
              libxml.m4 Copyright check-xml-test-suite.py \
 	     check-relaxng-test-suite.py check-xinclude-test-suite.py \
              example/Makefile.am example/gjobread.c example/gjobs.xml \
-	     $(man_MANS) libxml-2.0.pc.in \
+	     $(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
 	     trionan.c trionan.h triostr.c triostr.h trio.c trio.h \
 	     triop.h triodef.h libxml.h \
 	     testThreadsWin32.c genUnicode.py TODO_SCHEMAS \
diff --git a/configure.in b/configure.in
index 1ef229d..6ebf1d0 100644
--- a/configure.in
+++ b/configure.in
@@ -974,6 +974,9 @@
 rm -f COPYING.LIB COPYING
 ln -s Copyright COPYING
 
-AC_OUTPUT(libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc xml2Conf.sh python/setup.py)
+AC_OUTPUT(libxml2.spec:libxml.spec.in Makefile include/Makefile
+include/libxml/Makefile doc/Makefile example/Makefile python/Makefile
+python/tests/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc
+libxml-2.0-uninstalled.pc xml2Conf.sh python/setup.py)
 
 chmod +x xml2-config xml2Conf.sh python/setup.py
diff --git a/libxml-2.0-uninstalled.pc.in b/libxml-2.0-uninstalled.pc.in
new file mode 100644
index 0000000..0a4c833
--- /dev/null
+++ b/libxml-2.0-uninstalled.pc.in
@@ -0,0 +1,12 @@
+prefix=
+exec_prefix=
+libdir=${pcfiledir}
+includedir=${pcfiledir}/include
+
+
+Name: libXML
+Version: @VERSION@
+Description: libXML library version2.
+Requires:
+Libs: -L${libdir} -lxml2 @THREAD_LIBS@ @Z_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@
+Cflags: -I${includedir} @XML_INCLUDEDIR@ @XML_CFLAGS@