as is said in the assorted text files that ship with the 1.4.0 release, and as the “error” says, you should be running “./configure” within the Asterisk source directory before attempting to compile. then follow that with a “make menuselect” to select the apps/function/channel-drivers/sound-file-packages you want, then run “make” to compile and “make install” t install.
the same applies to 1.4 releases of zaptel and asterisk-addons, but not to libpri.