On legacy servers you have to add the following line to configure.ac
AM_PROG_CC_C_O
And remove the following two if you are on a 32-bit system
AC_TYPE_INT64_T
AC_TYPE_UINT64_T
Then proceed to build as usual
autoreconf -i && ./configure --prefix=/usr && make && make install
aptitude --assume-yes install build-essential libtool pkg-config automake autoconf+M autotools-dev+M ncurses-dev libncurses-dev
= ^ . ^ =