Symptom of not finding CFITSIO in configure test:

checking for ffopen in -lcfitsio... no configure: error: CFITSIO library not found. Obtain it at or use --with-cfitsio to specify location. problem building psLib : failure in psconfigure

Solution from Paul Price and Gautham Narayan:

Add -L/path/to/lib to LDFLAGS in environment variables.

Theoretically this should also work in if instead added in 'psconfig.csh' (or '' if appropriate).