You should add the include dirs to SOMETHING_CFLAGS and libs to SOMETHING_LIBS in the Makefile in the dir, where the source in question is located. Thats just a temp solution though, since the next configure will replace it.