how to debug configure.sh errors when compiling rsync on Yosemite
The problem is with the install of the command-line developer tools on your Mac.

Try installing again with the following command. This should install the command-line tools alone.

 xcode-select --install


The script is testing the command-line tools to see whether a compatible version is installed but is getting back confusing responses. This is why it fails.