Installing Haiku on Mac OS X: config.guess fails

Hello.
Following the instructions on https://www.haiku-os.org/documents/dev/how_build_haiku_mac_os_x, I did ./configure.
It was going fine, until I got this:
Config.guess failed to determine the host type. You need to specify one.
Usage: configure [OPTIONS] [HOST]

I think it’s a problem with the build tools. Or am I doing something wrong?