configure: Add print_3_columns helper function and use where appropriate