Click to See Complete Forum and Search --> : Problem running automake form autoreconf


NeilBlue
08-15-2003, 05:56 AM
Hello,

I am using version 2.57 of autoreconf and 1.7.6 of automake.

I have a simple project

/+
|
+-src
|-coldcompress.c
| -Makefile.am

I run:

autoscan
mv configure.scan configure.ac

add the automake line to configure.act go give:

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
AC_CONFIG_SRCDIR([src/coldcompress.c])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_CONFIG_FILES([src/Makefile])
AC_OUTPUT

the Makefile.am contains:

bin_PROGRAMS = coldcompress
coldcompress_SOURCES = coldcompress.c

However when I run:
autoreconf -v -i

I get the message that auotmake is not being run:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --output=aclocal.m4t
autoreconf: `aclocal.m4' is created
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/local/bin/autoconf
autoreconf: running: /usr/local/bin/autoheader
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'

this happens even if I run autoconf and automake manually first.

Any help please.
Thanks
Neil

bwkaz
08-15-2003, 07:35 PM
You need a Makefile.am in your toplevel directory (that's what the autoreconf Perl script is looking for). It should contain something like:

SUBDIRS = src Unless you need to do more in it, like custom installation rules or whatnot else.

NeilBlue
08-16-2003, 03:17 PM
Thank you bwkaz ,

That works great!