move configure to compile