Add autogen.sh file

Add autogen.sh file and fix configure warning message.