lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV _Lots_ more on INSTALLATION and SIMPLEDIR


From: Nelson Henry Eric
Subject: LYNX-DEV _Lots_ more on INSTALLATION and SIMPLEDIR
Date: Mon, 6 Oct 1997 16:06:52 +0900 (JST)

Bill Schiavo wrote to me instead of lynx-dev on Fri, 3 Oct 1997, about
the proposed "http://163.51.110.11/lynxdev/INSTALLATION.gz";.  I'm appending
an excerpt from his suggestions.  They mainly concern the compile for 386dos.
I modified Doug's draft in a few places where there seemed to be improvement.
There weren't many changes, but Bill did cover two very important trouble
spots: the directory renaming for "keystroke_commands" in "lynx_help" and
the makefile for the chartrans directory.  I took Bill's advice, and deleted
the part about checking for "keystrok.com".  If this could create problems,
then we need a more permanent solution like renaming "keystroke_commands" to
"key_coms", or whatever it takes. 

As you will see below, Bill wrote up a makefile for the chrtrans directory.
What I did with this is cut it out and add it as a diff -c against a touched
file to "http://163.51.110.11/lynxdev/SIMPLEDIR.gz";.  Similarly, I would
suggest putting Bill's batch file in the proposed docs/samples subdirectory.
This now means that more than ever my proposal for a simplified (rearranged)
top directory GOES HAND IN HAND with the new INSTALLATION.  If it isn't done
this way then someone will have to at least add "makefile.dos" to the chrtrans
directory.

I have rewritten SIMPLEDIR so that all one would have to do is "source
SIMPLEDIR" from the top directory and it will do all the proposed operations
(except install the new INSTALLATION), create and patch the necessary files,
and even remove itself.  Probably take about 15 seconds or less on a Solaris.
SIMPLEDIR now contains my proposed changes (minor) to README.

A few other minor changes have been made to INSTALLATION.gz, most notably
references to lynx2-7- were changed to lynx2-8, and a few simplifications
in the Unix auto-configure section.  (If there are plans for a different
version number than 2-8, please let me know.)  The VMS and Win32 compile
sections (III. and IV.) still could stand revision.

__Henry

excerpt from
        Subject: Lynx installation rewrite
        Message-ID: <address@hidden>
follows:

V. Compile instructions -- 386 DOS

Compiling for DOS with DJGPP is a multistep procedure.  Before you begin, be
sure that you have installed the c++ compiler and its libraries.  DJGPP, as
distributed from the usual DJGPP archives, will not successfully compile lynx.
You need to "stubedit" your "cc1.exe" and "cc1plus.exe" files.  The following
parameters have worked successfully:  minstack=800k, bufsize=64k.  To accomplish
this, move to the djgpp\bin directory and type the commands:

stubedit cc1.exe bufsize=64k minstack=800k
stubedit cc1plus.exe bufsize=64k minstack=800k

(see "http://www.flora.org/lynx-dev/html/month0897/msg00145.html";).

***was***
Unpack the source code.  If you get the .zip archive and you are using pkunzip
to unpack it, be sure to use the -d command line switch to restore the
directory
structure contained in the archive.  Use of the -d command line switch is
unnecessary if you use unzip386.

*** can be removed.
    After unpacking the source code, make sure that the directory under
    lynx_help is "keystrok" and not "keystrok.com".
***

    If you wish to compile with "USE_ZLIB" (recommended), you must have the
    zlib library compiled.  Get the zlib source from "http://www.cdrom.com/
    pub/infozip/zlib/", and compile.  Put libz.a in the lib subdirectory
    of DJGPP, and put zlib.h and zconf.h in the include subdirectory.

    In addition to the files in the Lynx distribution, you will need a
    curses package and a TCP package.  You can use PDCurses (available at
    "http://www.lightlink.com/hessling/";) and the DJGPP port of WATTCP
    (available in two different versions at "ftp://neonatal.sm.ic.ac.uk/";
    and at "http://lab1.psy.univie.ac.at/~michael/tcplib-dj200.html";).  You
    need to compile these before you go any further.  If you wish to use the
    beta version of PDCurses 2.3, you need to first apply a patch (available
    at "http://www.flora.org/lynx-dev/html/month0997/msg00441.html";).

***was***

More specific installation instructions need to be added for the DJGPP port of
Wattcp and PDCurses but since I don't know how the DOS makefiles will be set up
for the next release, I couldn't provide any of my own.  If you want, I can tell
you how I've done this on my system.  We also need to have a pre-patched beta
version of PDCurses available.  Many people don't know how to use the patch
program and authors of patches vary widely in their procedure for
making patches.

***was***

    Move to the "lynx2-7-/WWW/Library/djgpp" directory and do "make". This
    should compile libwww.a.

    Next move to the "lynx2-7-/src/chrtrans" directory and
do "make".

***WAS***

We need to have a makefile.dos in the chartrans directory as Doug suggested.  I
propose the following makefile:


#
# Makefile for the makeuctb and unicode tables.
#
CFLAGS = $(MCFLAGS)

CC = gcc
MCFLAGS = -O3 -DALT_CHAR_SET -DUSE_EXTERNALS -DEXP_CHARTRANS \
-DACCESS_AUTH -DNO_CUSERID -DNOUSERS -DDOSPATH -DNO_TTYTYPE -DNO_UTMP \
-I../../WWW/library/implement \
-I../../djgpp/tcplib/include -I../../djgpp/tcplib/include/tcp

.SUFFIXES: .tbl
#
# This file contains the font map for the default (hardware) font
#

FONTMAP_INC = iso01_uni.h# default, if not set by recursive call

CHRTR=

TABLES= $(CHRTR)iso02_uni.h \
 $(CHRTR)iso01_uni.h \
 $(CHRTR)def7_uni.h \
 $(CHRTR)iso03_uni.h \
 $(CHRTR)iso04_uni.h \
 $(CHRTR)iso05_uni.h \
 $(CHRTR)iso06_uni.h \
 $(CHRTR)iso07_uni.h \
 $(CHRTR)iso08_uni.h \
 $(CHRTR)iso09_uni.h \
 $(CHRTR)iso10_uni.h \
 $(CHRTR)koi8r_uni.h \
 $(CHRTR)cp437_uni.h \
 $(CHRTR)cp850_uni.h \
 $(CHRTR)cp852_uni.h \
 $(CHRTR)cp866_uni.h \
 $(CHRTR)cp1250_uni.h \
 $(CHRTR)cp1251_uni.h \
 $(CHRTR)cp1252_uni.h \
 $(CHRTR)viscii_uni.h \
 $(CHRTR)utf8_uni.h \
 $(CHRTR)rfc_suni.h \
 $(CHRTR)mnemonic_suni.h \
 $(CHRTR)mnem_suni.h

default: $(TABLES)

fontmap: $(FONTMAP_INC)

makeuctb: makeuctb.c UCkd.h
        $(CC) $(CFLAGS) -o makeuctb makeuctb.c

.tbl.h:
        ./makeuctb $*.tbl > $@

iso01_uni.h: iso01_uni.tbl makeuctb
iso02_uni.h: iso02_uni.tbl makeuctb
def7_uni.h: def7_uni.tbl makeuctb
iso03_uni.h: iso03_uni.tbl makeuctb
iso04_uni.h: iso04_uni.tbl makeuctb
iso05_uni.h: iso05_uni.tbl makeuctb
iso06_uni.h: iso06_uni.tbl makeuctb
iso07_uni.h: iso07_uni.tbl makeuctb
iso08_uni.h: iso08_uni.tbl makeuctb
iso09_uni.h: iso09_uni.tbl makeuctb
iso10_uni.h: iso10_uni.tbl makeuctb
koi8r_uni.h: koi8r_uni.tbl makeuctb
cp437_uni.h: cp437_uni.tbl makeuctb
cp850_uni.h: cp850_uni.tbl makeuctb
cp852_uni.h: cp852_uni.tbl makeuctb
cp1250_uni.h: cp1250_uni.tbl makeuctb
cp1251_uni.h: cp1251_uni.tbl makeuctb
cp1252_uni.h: cp1252_uni.tbl makeuctb
utf8_uni.h: utf8_uni.tbl makeuctb
mnemonic_suni.h: mnemonic_suni.tbl makeuctb
mnem_suni.h: mnem_suni.tbl makeuctb
rfc_suni.h: rfc_suni.tbl makeuctb

clean:
        rm -f makeuctb *.o *un.h

distclean: clean
        -rm -f *.bak


Type make to build everything, make fontmap to build the makeuctb program and
the default fontmap (iso8859-1) or make makeuctb to build the makeuctb program
itself.

Many people who might want to compile lynx for dos don't know how to work with
the make utility so patching or making extensive edits to makefiles
is out of the question.
***

*** should be removed.

No DOS makefile is currently in the distribution archive.  Patch the Makefile to
include the MCFLAGS from the "lynx2-7-/src/makefile.dos" file, adding an extra
"../" where necessary.

***

    Then move to the "lynx2-7-/src" directory and do "make -f makefile.dos".
    If all goes well, you will have a lynx.exe file.

***was***

If you will be compiling lynx regularly, you may wish to automate the procedure
by creating a batch file, perhaps called djgpp.bat,  that might look something
like this:


cd djgpp\tcplib\obj
make
cd ..\..\..
cd src\chrtrans
make
cd ..\..
cd www\library\djgpp
make
cd ..\..\..
cd src
make -f makefile.dos
strip lynx
stubify lynx
cd ..

This is the batch file I use on my system.  This batch file expects the DJGPP
port of WATTCP to be installed in the lynx2-7- directory.  If you want to use
this batch file, copy it into the lynx2-7- directory, move to that directory and
type djgpp.

***WAS***

    You probably want to test lynx now, but lynx_386 won't work without a
    packet-driver installed.  For testing purposes, you can use

------- end of excerpt --------------------------------------------------
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]