Swathes of southeast Australia were bracing on Thursday for a days-long heatwave that threatens to stoke bushfires that have been burning for months.