Solution to LIBTOOL is undefined [plain] configure. ac: 10: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. see the Autoconf documentation. + automake -- foreign -- copy -- add-missing-Woverride src/common/compress/Makefile. am: 9: Libtool library used but 'libtool' is undefined src/common/compress/Makefile. am: 9: The usual way to define 'libtool' is to add 'ac _ prog_libtool' src/common/compress/Makefile. am: 9: to 'configure. AC' and run 'aclocal' and 'autoconf' again. src/common/compress/Makefile. am: 9: If 'ac _ PROG_LIBTOOL 'is in 'configure. AC', make sure src/common/compress/Makefile. am: 9: its definition is in aclocal's search path. I also looked for this question for a long time. I finally saw two articles and recorded them: Viewpoint 1: Cause Analysis aclocal is a scanning program responsible for scanning configure. all Macros in the ac are defined and expanded. The above reason is that the LIBTOOL macro definition cannot be found. the reason is that aclocal and libtool are not installed in the same directory. aclocal searches for all aclocal files under the default installation directory/usr/share/aclocal. find the macro defined in the m4 file, but because multiple aclocal files are installed, the aclocal directory may not exist, and 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. opinion 2: There are two main reasons for this problem: 1. solution: Install libtool2. the library LIBTOOL of aclocal is not correctly configured. m4 path solution: -- View aclocal path aclocal -- print-ac-dir -- if the corresponding *. if the m4 file is not in this directory, reconfigure the path or change the corresponding *. copy the m4 file to this path (aclocal-I DIR)