pad2ps 3.1  1996-11-02  by S. Yoshida (seiichi@muraoka.info.waseda.ac.jp)


0. Contents

	1. How to compile
	2. Setting the install directory
	3. Setting the compile options
	4. Troubleshooting


1. How to compile

    pad2ps is attached with a script "configure" that automatically 
    set necessary options according to your environment.  Therefore, 
    compiling pad2ps should be fairly easy.

    First of all, extract pad2ps-3.1.tar.gz.

      % gzip -dc pad2ps-3.1j.tar.gz | tar xfv -


    Next, move into pad2ps-3.1 directory and execute configure
    script.

      % cd pad2ps-3.1/
      % ./configure

      (Some of you may have to type "sh ./configure")


    After the configure script finishes its job, start compiling 
    by typing:

      % make

    You may get a whole bunch of warnings, but you can safely ignore
    them.


    After the compiling is finished, make installation:

      % su root
      % make install

    To install manual pages:

      % make install.man


2. Setting install directory

    The directory where pad2ps will be installed in automatically set
    by "configure".  You can find the destination by checking the head
    part of Makefile after executing "./configure".  For more details, 
    you can type the following after executing "make":

      % make -n install

    You may want to change the install directory for many reasons.  To
    do this, specify the install destination as options.  For example,
    suppose you want to install the programs to /home/seiichi/bin, the
    modules to /home/seiichi/lib/pad2ps, and the style files to 
    /home/seiichi/lib/tex/inputs.  For now, we are not going to install
    manuals.  Upon executing "configure", set the options as following:

      % ./configure --bindir=/home/seiichi/bin --libdir=/home/seiichi/lib \
             --mandir=. --stydir=/home/seiichi/lib/tex/inputs

    You should then "make; make install; make install.man"


    For more information on "configure" options, type:

      % ./configure --help


3. Setting the compile options

    The C compiler to be used will be automatically set by "configure". 
    By default, compiler option is set as "-O2".  To change this
    setting, you should list your options in MFLAGS upon executing "make".
    For example, to use comiler "cc" and to set the compile options to
    "-O -g -Wall", you should type in as following:

      % make MFLAGS="CC=cc CFLAGS='-O -g -Wall'"


4. Troubleshooting

    On some environment, it seems that "make" doesn't function properly.

      * It seems that you need "GNU make" to compile pad2ps safely

    One thing you can try is to use "make" in other direcotry.  For instance,
    suppose you type in 

      % which make

    and find /usr/bin/make.  If this "make" doesn't work, you then type

      % find / -name make -print

    and you may find /usr/local/GNU/make.  You should try this one by typing:

      % /usr/local/bin/GNU/make MFLAGS="MAKE=/usr/local/bin/GNU/make"

    If this doesn't work, you better install GNU make.


--
Seiichi Yoshida
Muraoka Lab., Waseda University, Japan
AstroArts Inc.
seiichi@muraoka.info.waseda.ac.jp
http://www.info.waseda.ac.jp/muraoka/members/seiichi/index.html
