Turkey will begin fingerprinting people arriving in the country as part of a fight against illegal migration and protecting its borders.