./configure CPPFLAGS=-I/opt/local/tokyocabinet/include LDFLAGS=-L/opt/local/tokyocabinet/lib --prefix=/opt/local make LIBDIR=/opt/local/lib