if you use fink then invoke configure using LDFLAGS=-L/sw/lib CXXFLAGS=-I/sw/include ./configure ...