cannot compile my program anymore (autotools, gnu make)
Hi everybody,
I am writing a program in C, using autotools and stuff. I reinstalled my OS (Debian Sarge), and continued programming. At first everything was fine, but when I did Code:
aclocal && autoconf && automake Code:
configure.ac: 4: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER' Code:
corien@sarge:~/redcat/redcat$ make dist Thanks, Corien |
hi,
Step 1: you should make sure that the following packages be installed on your box correctly. there are : 1. GNU Automake 2. GNU Autoconf 3. GNU m4 4. perl 5. GNU Libtool (you can use rpm -q packagename to confirm it) Step 2 As I know, to use the auto tools chian,first you should run autoscan after the running,a file named "configure.scan" would be generated in the current directory.you must modify the file to specify the project name and some else, following is an example: Code:
AC_INIT(hello.c) Run aclocal and autoconf,then the file "aclocal.m4 " and "configure" would be generated. Step 4: vi a file named "Makefile.am" contains the following text: Code:
AUTOMAKE_OPTIONS= foreign Last:you can run ./configure and make to continue This is just a demo to use auto tools china,and the hello.c file just contain the printf function.I have test it successful on my Suse box and AIX box.To konw more detail ,you can view some more Documents |
Quote:
Either update your configure.in to configure.ac for the newer autoconf, or install the debian-sarge package called "autoconf2.13" and read the debian-doc's on how to use it. Quoted the description of "autoconf2.13" below: Quote:
|
Thanks for your replies. "automake --add-missing" seemed to solve the problem. I'm an autotools fool :).
|
does it mean that the automake version is outdated ?
|
Hi every body,
Please could u help me to find a freeware linux install builder tool to install 4 packages of my application in the path specified by the user. |
All times are GMT -5. The time now is 08:34 PM. |