Config ac-sources with c++.