If you get the following ‘libtool is undefined’ error, then you need to install the ‘libtool’ packages using the command shown below. This is sometimes required to run Autogen scripts prior to compilation.
Example ‘Libtool’ error:
Makefile.am:7: error: Libtool library used but 'LIBTOOL' is undefined
The solution (on Debian and Ubuntu systems):
sudo apt install libltdl-dev libtool