Daniel Nunes,
leaf@mozilla.org
Last modified: Fri Sep  3 16:59:34 PDT 1999
This is a guide to building Mozilla on Unix including,
For documentation on developing features or fixing bugs, look at the Mozilla Technical Documents or Mozilla Library. For general Unix issues, look at the Mozilla Unix.
The following software should be installed. (You can download gcc, gmake and autoconf from prep.ai.mit.edu.)
       setenv CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
      cvs login
       
       (password: anonymous)
       
       (You only need to do the login once.)
      rpm -e glib-develrpm -e gtk+-devel
      rpm -i *.rpm
      There are two ways to get the code:
setenv CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
    cvs co SeaMonkeyAll
  SeaMonkeyAll module pulls the right source
for building the viewer and apprunner.
  - cd mozilla
- ./configure
  - 
    
    Your options may vary.
    
    For configure options, run "./configure --help",
 or 
    use the 
    
    Unix Build Configurator.
 
 
- gmake
Once you have configured, you only have to run 
configure if you add
or remove Makefile.in files (cvs update can do this. Beware!). The list
of makefiles is in mozilla/allmakefiles.sh
For build system hackers: If you change configure.in, cd to mozilla, and
run autoconf.  This generates a new configure
script. (When you checkin configure.in, cvs will run autoconf and check
in a new configure script for you).
Automated build (client.mk)
  -  Save the script from
    
    Unix Build Configurator as ~/.mozconfig.
- cvs co -f mozilla/client.mk
- cd mozilla
- gmake -f client.mk
If you want to build without pulling the tree (as in, you already have the 
    source lying around),
    
      gmake -f client.mk build
    
If you just want to pull the tree,
      gmake -f client.mk checkout
    
After the build 
  - cd dist/binand you should see links to the
  scripts to run the executables:- mozilla-viewer.shand- mozilla-apprunner.sh.
- If the scripts do not work, set LD_LIBRARY_PATHand runviewerandapprunnerdirectly.
  SetLD_LIBRARY_PATHto include dist/bin, and
  the NSPR and GTK libraries.  (For example, you might set it to.:../../nspr/lib).
    - On HP-UX, the equivalent environment variable is
    SHLIB_PATH.
- On AIX, the equivalent environment variable is LIBPATH.
 
- If you run the executables from anywhere other than dist/bin, you
  must set the environment variable MOZILLA_FIVE_HOMEto
  point to the absolute path of the dist/bin directory.
- Update your tree by re-checking out the source, e.g. repeating the
  initial checkout process.