ISTANBUL (Reuters) - President Tayyip Erdogan told the European Union on Friday that Turkey would not make changes to its terrorism laws required under a deal to curb migration, and declared: “we’re going our way, you go yours”.

Turkish President Tayyip Erdogan makes a speech during his meeting with mukhtars at the Presidential Palace in Ankara, Turkey May 4, 2016. REUTERS/Umit Bektas

His fiery speech will be a blow to any hope in European capitals that it might be business as usual with Turkey after Prime Minister Ahmet Davutoglu, who negotiated the migration deal with Europe and had largely delivered on Turkey’s commitments so far, announced he was standing down.

The EU asked member states on Wednesday to grant visa-free travel to Turks in return for Ankara stopping migrants reaching Europe, but said Turkey still had to change some legislation, including bringing its terrorism laws in line with EU standards.

“When Turkey is under attack from terrorist organizations and the powers that support them directly, or indirectly, the EU is telling us to change the law on terrorism,” Erdogan said in a speech at the opening of a local government office in the conservative Istanbul district of Eyup.

“They say ‘I am going to abolish visas and this is the condition.’ I’m sorry, we’re going our way, you go yours. Agree with whoever you can agree,” he said.

Visa-free travel is for many Turks the biggest benefit of Ankara’s deal with the EU. Europe, meanwhile, is counting on Turkey to maintain an agreement that has helped stem the flow of refugees and migrants via Turkish shores, which saw more than a million people reach Greece and Italy last year.

Davutoglu’s departure consolidates the power of Erdogan, who has been highly critical of the EU in the past and who is seen in Brussels as a far tougher negotiating partner less closely wedded in recent years to Turkey’s ambition of joining the EU.

To win visa-free travel, Turkey must still meet five of 72 criteria the EU imposes on all states exempt from visas, one of which is narrowing its legal definition of terrorism.

Rights groups say Turkey has used broad anti-terrorism laws to silence dissent, including detaining journalists and academics critical of the government. But Ankara insists the laws are essential as it battles Kurdish militants at home and the threat from Islamic State in neighboring Syria and Iraq.

Turkey’s EU Minister Volkan Bozkir was earlier quoted by the Daily Sabah newspaper as saying Turkey had already made some changes requested by Europe, including reference to “the concept of immediate and obvious danger that threatens public security”, but that it “does not have the luxury” of making any more.

“NO TURNING BACK”

Erdogan said there would be no gap in Turkey’s governance after Davutoglu’s departure and that the episode demonstrated why the country needs a full presidential system, a matter he said urgently needed to be put to a referendum.

Opponents fear an executive presidency will consolidate too much power in the hands of an authoritarian leader, a sentiment shared by some European leaders who fear his ascent will make relations with Turkey more complicated in the years ahead.

“A new constitution and presidential system are urgent requirements, not Erdogan’s personal agenda ... There is no turning back from this point we reached. Everyone should accept that,” he said.

Erdogan bristles at suggestions that Turkey uses its anti-terrorism laws indiscriminately. He has repeatedly stressed his determination to crush Kurdish militants fighting an insurgency in Turkey’s southeast, and is unlikely to sanction Ankara backing down on the European demands.

Much may depend on the ability of whoever replaces Davutoglu, a decision to be made at an extraordinary congress of the ruling AK Party on May 22, to convince European allies that Turkey has already done enough.

Transport Minister Binali Yildirim, a close Erdogan ally, appears to be the president’s current preference, three senior AKP officials said, although they said that could still change.

Government spokesman Numan Kurtulmus and Justice Minister Bekir Bozdag, also Erdogan loyalists, have been touted, as has Energy Minister Berat Albayrak, Erdogan’s son-in-law, sources in the party have said.