Ubuntu 14.04 $ autoconf configure.ac:9: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:15: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL configure.ac:37: error: possibly undefined macro: AC_DEFINE configure.ac:72: error: possibly undefined macro: AM_CONDITIONAL configure.ac:102: error: possibly undefined macro: AC_MSG_ERROR configure.ac:111: error: possibly undefined macro: AC_DEFINE_DIR configure.ac:118: error: possibly undefined macro: AC_CHECK_HEADERS configure.ac:133: error: possibly undefined macro: AC_CHECK_LIB configure.ac:699: error: possibly undefined macro: AM_ICONV ------------------------ The fix is found at: https://bbs.archlinux.org/viewtopic.php?pid=1258673 $ sudo pacman -S pkg-config xorg-server-devel libtool automake $ libtoolize --force Consider adding AC_CONFIG_MACRO_DIR([m4]) to configure.ac and re-run libtoolize --force. $ vim configure.ac $ libtoolize --force $ aclocal $ autoheader $ automake --force-missing --add-missing $ autoconf I don't know how to include this in the build script.
Don't run autoconf directly. The way to build poppler with the autotools system is to use the autogen.sh script. Or at least use 'autoreconf -i'. It will run things in the right order. It's not easy to know when to run aclocal, autoheader, libtoolize, automake, or autoconf.
Thanks, you're absolutely right. Sorry, I'm really new to the gnu toolchain.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.