fix bug #171: add unit test, move the flag to makefile.llvmconfig