http://bugs.winehq.org/show_bug.cgi?id=35010
--- Comment #6 from Berillions berillions@gmail.com 2013-11-30 11:52:15 CST --- (In reply to comment #5)
Created attachment 46682 [details] Update configure checks
It needs something like this.
Thanks AJ, the patch works.