These are my build notes for the OS/2 build of renattach 1.2.3.
=================================================================


Configure still does not find awk nor gawk, but it can be overridden:

which gawk
setenv AWK e:/bin/gnu/bin/gawk
sh ./configure


Make failed with a lot of stuff pointing to a missing getopt getopt_long
with the right functionality. Jem Berkes then wrote to me that he had
removed the getopt stuff, as it is part of many systems and he was told
it would be bad style to duplicate the functionality. Alas, some systems
(such as OS/2 emx 0.9d) do not implement the more up-to date form of
getopt, so here the original source is still needed.
Hence, I copied a copy back in from renattach 1.2.2, which built fine
before:

  cp -ipv ../renattach-1.2.2/src/getopt*.c src/
  cp -ipv ../renattach-1.2.2/src/getopt*.h src/

To undo the getopt-related changes from version 1.2.2, I patched 
- the configure script to not check for getopt.h in the system header
  files, 
- config.h.in to define the two macros around getopt.
- src/renattach.c to call "getopt.h" instead of <getopt.h>
- src/Makefile.in was replaced by src/Makefile.in from renattach 1.2.2,
  since the only difference is the compilation and linkage of
  getopt-related code


Before modification, the files to be changed were saved with the 
additional extension ".orig" and are so preserved; diffs are included,
too.

Rerunning configure, then  ' make "CFLAGS=-s -O2" ' now does the trick
and builds the code, which works just fine.

# eof.
