This error is given when you try to compile quagga.

The easy solution is to

tested with Debian 8 and Quagga 1.2.1

apt-get install -y gawk  

Compile quagga

If you need more help, here's the list of the needed dependencies to compile correctly.

apt-get install -y build-essential gawk libreadline-dev pkg-config libc-ares-dev  

After this, a simple

./configure [options]
make && make install  

will do the rest. Check this link for the ./configure options.