add configure file for env checking
remove static conf file and add generation conf file in Makefile