JOHANNESBURG — Paying tribute to his personal hero, President Barack Obama met privately Saturday with Nelson Mandela’s family as the world awaited news on the condition of the 94-year-old anti-apartheid leader.

Obama, who has spoken movingly about Mandela throughout his trip to Africa, praised the former South African president’s “moral courage” during remarks from the grand Union Buildings where Mandela was inaugurated as his nation’s first black president.

The U.S. president also called on the continent’s leaders, including those in neighboring Zimbabwe, to take stock of Mandela’s willingness to put country before self, stepping down after one term despite his immense popularity.

“We as leaders occupy these spaces temporarily, and we don’t get so deluded that we think the fate of our country doesn’t depend on how long we stay in office,” Obama said during a news conference with South African President Jacob Zuma.

Obama’s stop in South Africa marked the midway point of a weeklong trip to Africa, his most significant engagement with the continent since taking office in 2009.

His lack of personal attention on the region has frustrated some Africans who had high expectations for the first black American president and son of a Kenyan man.

Even with Mandela’s health casting a shadow over his visit, Obama tried to keep focus on an agenda that includes deeper U.S. economic ties with Africa. Obama dismissed suggestions that he was only investing personal capital on Africa’s economy now as a response to the increased focus on the continent by China, India, Brazil and others.

“I want everybody playing in Africa,” he said. “The more, the merrier.”

But he pointedly called on Africans to make sure that countries seeking an economic foothold on the continent are making a “good deal for Africa.”

“If somebody says they want to come build something here, are they hiring African workers?” Obama said. “If somebody says that they want to help you develop your natural resources, how much of the money is staying in Africa? If they say that they’re very interested in a certain industry, is the manufacturing and value-added done in Africa?”

Between his two events, Obama spent about 30 minutes meeting privately with two of Mandela’s daughters and several of his grandchildren at the former leader’s foundation offices in Johannesburg. He also spoke by phone with Mandela’s wife, Graça Machel, who remained by her husband’s side at the Pretoria hospital where he is battling a lung infection.

In a statement after the call, Machel said she drew strength from Obama and his “touch of personal warmth.”

More in News

A White House advisory council on infrastructure Thursday became the latest casualty of the pique of business leaders over President Donald Trump’s response to the hate-fueled violence in Charlottesville, Virginia.

The first solar eclipse to cross the continental United States in nearly a century comes at an especially inopportune time for many employers. From 10:15 a.m. Pacific until just before 3 p.m. Eastern time — some of the busiest hours of the workweek — the moon’s shadow will hit land in Newport, Ore. and leave the continent near Charleston, S.C.