This happens because /usr/local/bin/glibtoolize:
is pointing to the wrong directory
line 49 : ${SED="/usr/local/Library/ENV/4.3/sed"}
This was changed when homebrew decided to move their paths. See this stackoverflow post
What worked for me was
brew reinstall libtool