fix fatal (silently) type in configure (affecting --cxxflags and root-config)

(cherry picked from commit fb2d8c3d3ff64940e07d9ab6d06d1ceb41f47c9a)