When designing the borders of Africa, did the Europeans just choose the borders that gave them the most resources and looked the nicest? Ex. The borders of the East African countries and the democratic republic of the Congo's border with Zambia.
One of the great myths of colonialism in Africa is that borders were totally arbitrary or universally intended to create conflict. This is simply not true as a blanket statement, beyond the fact of European ignorance of long standing ties across new boundaries, or the fact that a quasi national boundary is always artificial. The entire basis of European territorial and protectorate claims in Africa existed based on treaties supposedly obtained from local rulers, and they (especially the British) were weirdly scrupulous about trying to match the claim with the boundary. (See Hetslet's The Map of Africa by Treaty, 3 vols. ) The problem that was most common involved borders between colonial powers, and that's where horse trading and impossibly straight borders did occur and some states were split. But there is a mythology around the process. Colonialists were indeed really really bad at sussing out African conceptions of territoriality and arguably the simple act of imposing their border system was an act of self serving malfeasance, but they did try to build the colonial fiction on a foundation of claimed legitimacy to succession of "native title" (per Weaver, The Great Land Rush). If you're interested further, A. I. Asiwaju coedited a volume entitled African Boundaries and his own Partitioned Africans, and in one of those volumes is a long essay entitled "It Didn't Happen at Berlin" (by Hargreaves?) that is a very interesting meditation on this point. I can give a fuller cite tomorrow when I'm with my books on campus, but it's Sunday now. Hertslet should be on Google Books, I think. My edition is 1908.
(edit: do not take any of the above as a suggestion that colonizers did not happily take advantage of divide and rule strategy, which was required to hold on to territories; African proxies like Buganda or colonial military levies were the best of all. But the creation of colonial borders themselves rarely depended on that point. Again, the boundaries were badly made and weird because they embody a translated idea that Africans themselves had considered much more contingent. And let's not even get into the question of how long it took them to figure out where on the ground those borders were... )
Most of these nations were controlled by different colonial interests. So Zambia was part of the United Kingdom and the DRC was the "Belgian Congo".
Essentially the interests of the colonial companies are what dictated the borders of most African nations. It's no more complex than that.
Follow up; a former professor once said that the borders of many African countries were set to encourage conflict and discourage unity in that they purposely divided ethnic groups across new national boundaries. How accurate is this statement, and what would have been the level of intent?
Colonialism followed by most former colonists making a swift retreat when the time came to leave. The current borders are a hodgepodge of old imperial borders, and newer borders often settled by conflict, or less frequently, diplomacy.
They have little to do with the ethnic background of the people living there.
Rhodesia is a good example, http://en.wikipedia.org/wiki/History_of_Rhodesia_%281965%E2%80%9379%29.
At the Berlin Conference of 1884, Africa was divided up into 'zones' to be controlled by major European powers. This was done as a European collaborative effort and without any knowledge of the ethnolinguistics of Africa, leading to the borders of the governates being used less for native ethnolinguistic compatibility and more for ease of administration.