Link with $CXXFLAGS; disable GCC-specific autoconf check.