West Ham have reached an agreement with Barcelona for the permanent signature of Alex Song, co-owner David Sullivan has confirmed.

Speaking to the KUMB podcast the club chairman confirmed that the 27-year-old would return to West Ham if he successfully completes a medical. Song will sign a three-year deal if he can prove his fitness.

"We have a deal in place with Alex Song subject to a medical," confirmed Sullivan. "If the medical is ok, we'll take him.

"He's injured at the moment, which is something you've got to weight up. But we've got until September 1st to make a decision."

The former Arsenal midfielder impressed during a loan spell at the Boleyn Ground last season, making 31 appearances for the Hammers and earning praise from Arsene Wenger, who managed Song from 2005 to 2012.

Slaven Bilic confirmed last month that West Ham were still keen to sign the former Cameroon international, but a deal was held up as Song dealt with an ankle knock. That injury could still derail the move, but Sullivan suggested only a serious condition would discourage the club from completing the deal.

Sullivan added: "He's a player we all admire and we just hope that the medical shows he's in a sufficient state for us to gamble.

"He couldn't physically pass a medical tomorrow, but if the medics say it's just a technical thing and he's only a couple of weeks away you'd take that gamble and hope they're right.

"He' still got two years left on his Barcelona contract and you're signing a player on a three-year contract, so it's a huge commitment."

Meanwhile, West Ham have pulled out of the running for Tottenham striker Emmanuel Adebayor.

The Hammers are keen to bring in another forward before the transfer window closes on September 1 and have held lengthy negotiations with Spurs, who are desperate to get the 31-year-old’s £100,000-a-week wage off their books.

But the Togolese wage demands have priced the East Londoners out of deal.