Apbuild is a wrapper around gcc. It forces the linker to link to certain
glibc symbols, and static linking to certain X libraries[1], so you can
create more portable executables.
  
Use apgcc just like how you use gcc. Examples:
1) CC=apgcc ./configure && make
2) make CC=apgcc

There are several environment variables that change apgcc's behavior:
* APBUILD_PATH: Use this as the include dir for the apbuild headers.
* APBUILD_CC: Use this compiler instead of gcc.
* APBUILD_NO_STATIC_X: Do not force static linking to certain X libraries.


[1]: All the X libraries we force static linking to are X extensions. Some
distributions don't come with dynamic library versions of those libraries.
The static version of all those libraries are all less than 70 KB (the
biggest one is libXi, which is 61 KB; everything else is around 15 KB), so
rest assured that you won't bloat your application.

mike@theoretic.com
h.lai@chello.nl
