[Expat-checkins] expat README,1.14,1.15
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Mon Jun 3 11:47:03 2002
Update of /cvsroot/expat/expat
In directory usw-pr-cvs1:/tmp/cvs-serv1317
Modified Files:
README
Log Message:
Add Karl's instructions for building the UTF-16 version on Unix.
Index: README
===================================================================
RCS file: /cvsroot/expat/expat/README,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- README 31 May 2002 04:00:59 -0000 1.14
+++ README 3 Jun 2002 18:46:36 -0000 1.15
@@ -43,6 +43,35 @@
location. Note that you need to have write permission into the
directories into which things will be installed.
+If you are interested in building Expat to provide document
+information in UTF-16 rather than the default UTF-8, following these
+instructions:
+
+ 1. For UTF-16 output as unsigned short (and version/error
+ strings as char), run:
+
+ ./configure CPPFLAGS=-DXML_UNICODE
+
+ For UTF-16 output as wchar_t (incl. version/error strings),
+ run:
+
+ ./configure CFLAGS="-g -O2 -fshort-wchar" \
+ PPFLAGS=-DXML_UNICODE_WCHAR_T
+
+ 2. Edit the MakeFile, changing:
+
+ LIBRARY = libexpat.la
+
+ to:
+
+ LIBRARY = libexpatw.la
+
+ (Note the additional "w" in the library name.)
+
+ 3. Run "make buildlib" (which builds the library only).
+
+ 4. Run "make installlib" (which installs the library only).
+
Note for Solaris users: The "ar" command is usually located in
"/usr/ccs/bin", which is not in the default PATH. You will need to
add this to your path for the "make" command, and probably also switch