Well, I've just solved this problem.
Above the compiling errors are occurred because of this.
ac_add_options --with-app-basename=XXXX
ac_add_options --with-app-name=XXXX
I've removed this options and recompile it.
So that, errors are disappeared. That's all.