It seems really ugly to be putting a big case statement on the OS typeinto configure. Can't you put those values into the per-platformtemplate files, instead?
regards, tom lane