Skip to content

Instantly share code, notes, and snippets.

@rramsden
Created August 1, 2011 23:38
Show Gist options
  • Save rramsden/1119256 to your computer and use it in GitHub Desktop.
Save rramsden/1119256 to your computer and use it in GitHub Desktop.
I'm getting some weird behaviour running `autoconf -i` after cloning down mike
When I run autoconf -i on the project it throws multiple warnings.
However, if I run it again the warning messages disappear:
➜ mike git:(master) autoconf -i
configure.ac:12: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:13: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:49: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.ac:75: error: possibly undefined macro: AM_CONDITIONAL
➜ mike git:(master) autoconf -i
➜ mike git:(master)
At first I thought I didn't have `libtool` installed but dpkg reports it being installed
➜ mike git:(master) sudo dpkg -s libtool
Package: libtool
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 1328
Maintainer: Ubuntu Developers <[email protected]>
Architecture: i386
Version: 2.2.6b-2ubuntu3
It also seems my automake version is very picky about missing boilerplate package files (see below)
I had to run `libtoolize` which ships with libtool in the mike project directory to generate build-aux and build-m4 directories since I was getting the following errors:
➜ mike git:(master) automake
configure.ac:5: required directory ./build-aux does not exist
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
Makefile.am:26: HAVE_CPPUNIT does not appear in AM_CONDITIONAL
Makefile.am: required file `./INSTALL' not found
Makefile.am: `automake --add-missing' can install `INSTALL'
Makefile.am: required file `./NEWS' not found
Makefile.am: required file `./README' not found
Makefile.am: required file `./AUTHORS' not found
Makefile.am: required file `./ChangeLog' not found
Makefile.am: required file `./COPYING' not found
Makefile.am: `automake --add-missing' can install `COPYING'
Makefile.am: required file `build-aux/depcomp' not found
Makefile.am: `automake --add-missing' can install `depcomp'
/usr/share/automake-1.11/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.11/am/depend2.am: The usual way to define `am__fastdepCXX' is to add `AC_PROG_CXX'
/usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.11/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.11/am/depend2.am: The usual way to define `AMDEP' is to add one of the compiler tests
/usr/share/automake-1.11/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_CXX, AC_PROG_OBJC,
/usr/share/automake-1.11/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again.
➜ mike git:(master) libtoolize
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: linking file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build-m4'.
libtoolize: linking file `build-m4/libtool.m4'
libtoolize: linking file `build-m4/ltoptions.m4'
libtoolize: linking file `build-m4/ltsugar.m4'
libtoolize: linking file `build-m4/ltversion.m4'
libtoolize: linking file `build-m4/lt~obsolete.m4'
Running automake again I am getting closer (see below)
However, I'm still missing boilerplate template files.
➜ mike git:(master) automake
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
Makefile.am:26: HAVE_CPPUNIT does not appear in AM_CONDITIONAL
Makefile.am: required file `./INSTALL' not found
Makefile.am: `automake --add-missing' can install `INSTALL'
Makefile.am: required file `./NEWS' not found➜ mike git:(master) automake --add-missing
configure.ac:13: installing `build-aux/compile'
configure.ac:12: installing `build-aux/config.guess'
configure.ac:12: installing `build-aux/config.sub'
configure.ac:49: installing `build-aux/install-sh'
configure.ac:49: installing `build-aux/missing'
Makefile.am: installing `build-aux/depcomp'
Makefile.am: required file `./README' not found
Makefile.am: required file `./AUTHORS' not found
Makefile.am: required file `./ChangeLog' not found
Makefile.am: required file `./COPYING' not found
Makefile.am: `automake --add-missing' can install `COPYING'
Makefile.am: required file `build-aux/depcomp' not found
Makefile.am: `automake --add-missing' can install `depcomp'
/usr/share/automake-1.11/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.11/am/depend2.am: The usual way to define `am__fastdepCXX' is to add `AC_PROG_CXX'
/usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.11/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.11/am/depend2.am: The usual way to define `AMDEP' is to add one of the compiler tests
/usr/share/automake-1.11/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_CXX, AC_PROG_OBJC,
/usr/share/automake-1.11/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again.
I could get past this by running `aclocal` to generate `aclocal.m4`
➜ mike git:(master) aclocal
➜ mike git:(master) ls
aclocal.m4 autogen.sh autom4te.cache build-aux build-m4 configure configure.ac deps Makefile.am README.md src test tools
➜ mike git:(master) automake
configure.ac:13: required file `build-aux/compile' not found
configure.ac:13: `automake --add-missing' can install `compile'
configure.ac:12: required file `build-aux/config.guess' not found
configure.ac:12: `automake --add-missing' can install `config.guess'
configure.ac:12: required file `build-aux/config.sub' not found
configure.ac:12: `automake --add-missing' can install `config.sub'
configure.ac:49: required file `build-aux/install-sh' not found
configure.ac:49: `automake --add-missing' can install `install-sh'
configure.ac:49: required file `build-aux/missing' not found
configure.ac:49: `automake --add-missing' can install `missing'
Makefile.am: required file `build-aux/depcomp' not found
Makefile.am: `automake --add-missing' can install `depcomp'
ALMOST THERE!
➜ mike git:(master) automake --add-missing
configure.ac:13: installing `build-aux/compile'
configure.ac:12: installing `build-aux/config.guess'
configure.ac:12: installing `build-aux/config.sub'
configure.ac:49: installing `build-aux/install-sh'
configure.ac:49: installing `build-aux/missing'
Makefile.am: installing `build-aux/depcomp'
SUCCESS!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment