Turkey held World Cup winner France to a 1-1 draw Monday to go remain top of Group H in the Euro 2020 qualifiers.
Overreacting French politicians and anticipated riots by pro-terrorist groups opposing Turkey's counterterrorism operations in Syria failed to overshadow the crucial tie.
The stalemate would prolong both France and Turkey's wait to qualify for the finals next year.
In the starting 11, Wissam Ben Yedder had replaced Giroud, Friday's goalscorer in the 1-0 win away to Iceland, while Lucas Hernandez returned at left-back at the expense of Lucas Digne. Turkey was without injured veteran captain Emre Belözoğlu, who damaged ribs during a last-gasp 1-0 victory at home to Albania last week, with Leicester defender Çağlar Söyüncü starting in place of Ayhan.
While Antoine Griezmann has yet to properly settle at Barcelona this season, the forward emerged at the heart of France's best moments in the first half as Turkey was forced to absorb constant pressure.
Bayern Munich team-mates Lucas Hernandez and Kingsley Coman combined superbly to release Griezmann on the quarter-hour, but Turkey goalkeeper Mert Günok blocked well before producing a magnificent save to repel Moussa Sissoko's follow-up effort.
Griezmann then headed a Coman cross directly at Günok who plunged to his left moments later after a clever dummy from the striker created another opening for Sissoko. Without a goal now for France in the past six qualifiers, Griezmann again went close when he curled wide of a sprawling Günok and the far post from the edge of the area.
Turkey coach Şenol Güneş introduced Hakan Çalhanoğlu at the break to provide more of an attacking threat, with the AC Milan playmaker helping create the visitors' first genuine chance on the hour.
Ayhan came on in the 53rd minute for injured Zeki Çelik. Seconds after a Griezmann penalty appeal was dismissed, Turkey exposed France on the counter with Çalhanoğlu teeing up Burak Yılmaz who drilled over with just Steve Mandanda to beat. Deschamps turned to Giroud for the final 20 minutes and was instantly rewarded as the Chelsea striker powered in a Griezmann corner for his 38th France goal, moving him three shy of Michel Platini on the French all-time scoring list. Ayhan denied France qualification on the night as he planted a thumping header low beyond Mandanda from a Çalhanoglu free kick.
Meanwhile, concerns over violence proved largely unfounded, although a banner in support of terrorist groups in Syria was held up in the closing minutes, clearly visible to many of the Turkish supporters. Stewards moved in to confiscate it but scuffles briefly ensued in that section, as well in another stand located further up in a tense finale.
Turkey now has 19 points in its group with only two matches left, including one against Iceland, which was the only team that it lost in Euro 2020 qualifiers so far. After hosting Iceland in November, Turkey will travel to Andorra. France will host Moldova and play against Albania in an away game.
Şenol Güneş lauded France for "playing better" than his team though he acknowledged the "labor" of the team which tried to lift the game up and managed to secure a draw. "We are glad we remain group leader," Güneş said in a post-match press conference. "I thank God for winning one point," he said, saying they played against a very strong team.
"We have more work to do and playing against Iceland will be like a final game for us. We need at least a draw against them," he said. Güneş praised fans who came from all around Europe.
"They set an example and I am also grateful to French fans for acting in fair-play," he said. Güneş downplayed political tensions of the match that came as France joined the chorus of anti-Turkish sentiment following the latter's operations in Syria.
He also dismissed the players' military salute. "They did not act in bad intentions. We didn't send our troops there to kill people. We sent them to protect [our country]," he said. Güneş cut short questions about politics. "This is a job for Macron or Trump. They are the ones running the world. I barely run a team," he said.