glib-1.2.10 
===================
The following procedure was used to build glib-1.2-10 for use with the
Mozilla 1.2.1 build.

It uses the UnixWare C compiler to build the libraries, but uses the 
GNU make command that is distributed in the Open Source Toolkit (OSTools)
on the UDK CD.

The build uses a separate SRC and BUILD directory.

                     common
                     /   \
                  SRC    BUILD
                  /          \
        glib-1.2.10         glib-1.2.10

1. gunzip the tar file (glib-1.2.10.tar.gz) and extract the source files
   into the SRC directory.

2. Apply the set of UnixWare specific patches in patches.UW.glib-1.2.10
   to the source files

       cd SRC/glib-1.2.10
       patch -b -p0 < patches.UW.glib-1.2.10

3. Use the following script to build glib-1.2.10  for installation in the
   /usr/lib directory.  This script should be run in the BUILD/glib-1.2.10
   directory.


#! /bin/ksh

# Make gmake visible
#
export PATH=$PATH:/usr/gnu/bin


#
#  configure
#
CC="/usr/ccs/bin/cc -Xb" CFLAGS="-O2 -D_EFTSAFE" ../../SRC/glib-1.2.10/configure \
        --prefix=/usr --host=i586-unknown-sysv5 \
        > log.configure 2>&1

#
#  clean
#
gmake clean > log.gmk.clean 2>&1


#
#  build
#
gmake > log.gmk 2>&1


#
#  Run tests to check build results  - cannot do this until runtime
#       is installed into /usr/lib
#
#gmake check > log.gmk.check 2>&1 


4. Install the glib libraries and scripts by:

     gmake install

5. After installing the runtime libraries into /usr/lib, the glib tests
   can be run to verify your build.  See the last commented line in the
   above script.
