Issues

Backport #8117

Backport r39814

In r39814, I fixed a bug of C++ compiler selection for OS X.
Before the revision, If users use clang, configure select g++ for CXX.
So the users cannot build extension libraries if the compiler options they uses for clang are not compatible to g++.