[server] Improve configure.ac

Add --enable-mysql config option.