LIBTOOL is undefined solution-Zhang likun's blog-My Sohu
LIBTOOL is undefined solution: Add it to your mobile phone to forward comments
This problem has always occurred recently. I finally know the root cause of the problem and write it down for convenience.
Libtool library used but 'libtool' is undefined
The usual way to define 'libtool' is to add 'ac _ prog_libtool'
To 'configure. AC' and run 'aclocal' and 'autoconf' again.
If 'ac _ prog_libtool' is in 'configure. AC', make sure
Its definition is in aclocal's search path.
Cause Analysis
Aclocal is a scanning program responsible for scanning and expanding all macro definitions in configure. ac,
The above cause is that the definition of the LIBTOOL macro cannot be found.
The reason is that aclocal and libtool are not installed in the same directory.
Aclocal is to search all. m4 files under the default installation directory/usr/share/aclocal to find the Defined Macro,
However, because multiple aclocal directories are installed, the aclocal directory may not exist. The actual directory is/usr/share/aclocal1.10,
This causes aclocal to fail to find the m4 file. The solution is to rename the aclocal1.10 folder to aclocal.
Or the specified path aclocal-I/usr/share/aclocal1.10-I/usr/share/libtool/m4 -- install
Or copy all the files under/usr/share/libtool/m4 to/usr/share/aclocal1.10.