To compile the w3m, you need followings:
Here is a sample session to compile the w3m:
[C:\work] tar xzvf w3m-0.2.1.tar.gz [C:\work] cd w3m-0.2.1 [C:\work\w3m-0.2.1] rem * The following patch is the GNU patch, [C:\work\w3m-0.2.1] rem * is NOT the patch included in the OS/2 package [C:\work\w3m-0.2.1] patch -p1 -i(insert correct dir)/w3m-0.2.1.diffs [C:\work\w3m-0.2.1] bash configure OS/2 2 /i386 at altair % % Hello Tokoro. Let's start configuration process for w3m. % Please answer some questions. % Which directory do you want to put the binary? (default: /usr/local/bin) Which directory do you want to put the support binary files? (default: /usr/local/lib/w3m) Which directory do you want to put the helpfile? (default: /usr/local/lib/w3m) Which language do you prefer? 1 - Japanese (charset ISO-2022-JP, EUC-JP, Shift_JIS) 2 - English (charset US_ASCII, ISO-8859-1, etc.) [1]? Input your display kanji code. S - Shift JIS E - EUC-JP j - JIS: ESC $@ - ESC (J N - JIS: ESC $B - ESC (J n - JIS: ESC $B - ESC (B m - JIS: ESC $@ - ESC (B Which? S Do you want to use Lynx-like key binding? [n]? Do you want to use 2-byte character for table border, item, etc. [y]? Do you want to automatically generate domain parts of passwords for anonymous FT P logins [n]? Do you want listing of options [n]? Do you want NNTP support [n]? Do you want ANSI color escape sequences supprot? [n]? y Let's do some configurations. Choose config option among the list. 1 - Baby model (no color, no menu, no mouse, no cookie, no SSL) 2 - Little model (color, menu, no mouse, no cookie, no SSL) 3 - Mouse model (color, menu, mouse, no cookie, no SSL) 4 - Cookie model (color, menu, mouse, cookie, no SSL) 5 - Monster model (with everything; you need openSSL library) 6 - Customize Which? 4 Input your favorite editor program. (Default: vi) e Input your favorite mailer program. (Default: mailx) Input your favorite external browser program. (Default: netscape) start /f /n netscape -browser Input your favorite C-compiler. (Default: cc) gcc Input your favorite C flags. (Default: -O) -O2 -g -Wall -Zbin-files -Zcrtdll It seems you don't have some include files for networking. termcap/curses library not found; I hope -ltermcap works.Which terminal library do you want to use? (type "none" if you do not need one) (default: -ltermcap) patching file `XMakefile' patching file `gc/os_dep.c' Input additional LD flags other than listed above, if any: : -lsocket -lncurses : Configuration done. Just type "make". [C:\work\w3m-0.2.1] cd gc [C:\work\w3m-0.2.1\gc] make -fEMX_MAKEFILE [C:\work\w3m-0.2.1\gc] emxomf -s gc.a [C:\work\w3m-0.2.1\gc] mv gc.lib gc.a [C:\work\w3m-0.2.1\gc] cd .. [C:\work\w3m-0.2.1] make
If you want to use the w3m on a terminal emulator which is a X client (e.g. xterm, rxvt, etc...), you must build the scrsize.exe. To build it, you need the Xprog.zip of the XFree86 for OS/2.
To build the scrsize.exe:
gcc -D__ST_MT_ERRNO__ -O2 -s -Zomf -Zmtd -lX11 scrsize.c