In the FreeBSD port I had to call modules with:
INST=${NSBASE} AOLSERVER=${NSBASE}
and for nspostgres also: POSTGRES=${PGBASE} ACS=1
Where you should substitute ${PGBASE} and ${NSBASE} respectively with the directories where PostgreSQL and AOLserver are installed (/usr/local/pgsql and /usr/local/aolserver for example)