Annual report pursuant to Section 13 and 15(d)

Changes in Gross Liability for Unrecognized Tax Benefits, Excluding Interest and Penalties (Detail)

v3.8.0.1
Changes in Gross Liability for Unrecognized Tax Benefits, Excluding Interest and Penalties (Detail) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2017
Aug. 31, 2016
Aug. 31, 2015
Income Tax Disclosure [Abstract]      
Income (Loss) from Continuing Operations before Income Taxes, Domestic $ 12,635 $ (19,182) $ 14,593
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward]      
Beginning balance 29,174 29,924  
Unrecognized Tax Benefits, Increase Resulting from Current Period Tax Positions 6,057 1,050 2,183
Unrecognized Tax Benefits, Increase Resulting from Prior Period Tax Positions 297 475 8,935
Decrease for tax positions taken in a prior period (627) 0 (633)
Decrease due to lapse of statute of limitations (4,008) (1,027) (4,464)
Decrease due to settlements 0 0 (14,180)
Unrecognized Tax Benefits, Increase (Decrease) Resulting from Foreign Currency Translation 553 (1,248) (1,426)
Ending balance 31,446 29,174 29,924
Income (Loss) from Continuing Operations before Income Taxes, Foreign (95,326) (111,162) 10,798
(Loss) earnings from continuing operations before income tax expense $ (82,691) $ (130,344) $ 25,391