MARIANOSZTRA, Hungary (Reuters) - Inmates in a high-security prison north of Budapest are manufacturing rolls of razor-wire fence that will prevent thousands of migrants from crossing the Greek-Macedonian border.
The workshop in the prison in Marianosztra, which holds 710 inmates, produces razor-wire to guard prisons and make border fences.
Now the wire is also exported to Slovenia and Macedonia to deter and control the hundreds of thousands of people fleeing war and famine in the Middle East and Africa.
Most of the migrants this year have entered Europe through Greece, but Balkan states began blocking passage last month to all but Syrians, Iraqis and Afghans, who are regarded as refugees because they are fleeing war zones.
Hungary had built a fence along its entire southern border with Serbia and Croatia by October, which diverted the migrants towards Slovenia.
Gyorgy Bakondi, a government commissioner, said that while Hungary initially had to import razor-wire for its borders, it is now producing enough to fence off its border with Romania too if migrants try to come that way instead.
"If necessary, we can quickly install (a fence) using the razor-wire produced here," he told reporters. Hungary has not so far made a decision to build a fence on its border with Romania.
Bakondi said Hungary supplied Macedonia with about 100 km (60 miles) of razor-wire, and part of that was produced in Marianosztra. Hungary also sold razor-wire to Slovenia, he said, and was ready to supply other European countries if required.
Greek police started removing hundreds of migrants stranded on the Greek-Macedonian border and blocking rail traffic earlier on Wednesday.
Macedonia has erected a metal fence to keep others out and plans to extend it to cover more than 40 km (25 miles) of the border.
In the Marianosztra workshop, around a dozen inmates were making the razor-wire rolls on Wednesday morning.
Some of the prison buildings once belonged to a Catholic monastery dating back to 1352. The monastery still operates next to the prison, whose previous inmates have included many political prisoners held after the suppression of Hungary's anti-Soviet uprising in 1956.
Editing by Ruth Pitchford