The attached patch should fix the build on newer libtools without breaking any older systems.
Created attachment 27452 [details] 0001-Add-missing-call-to-AC_PROG_CXX.patch
This is wrong and adds debug symbols to the build unconditionally, see this bug for details: https://bugs.webkit.org/show_bug.cgi?id=23939