TeX will require similar changes to X. The TEXINPUTS environment variable will need to be set to point to the macros directory.