[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Basic problem with autoheader: AC_CONFIG_HEADERS not found in config
From: |
Ralf Wildenhues |
Subject: |
Re: Basic problem with autoheader: AC_CONFIG_HEADERS not found in configure.in |
Date: |
Wed, 10 Aug 2005 09:37:57 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi Hossein,
* Hossein Mobahi wrote on Wed, Aug 10, 2005 at 05:47:23AM CEST:
>
> I run "Linux 2.6.11-gentoo-r11 x86_64" and get he
> following error when issuing "autoheader":
> autoheader-2.59: error: AC_CONFIG_HEADERS not found in
> configure.in
> The first five lines of my "configure.in" are as
> follows:
> AC_PREREQ(2.5)
> AC_INIT(test, [1.0], address@hidden)
> AM_INIT_AUTOMAKE
> AM_CONFIG_HEADER([config.h])
> AC_CONFIG_SRCDIR([main.c])
>
> I am using AM_CONFIG_HEADER and not AC_CONFIG_HEADERS
> because I want to use automake and autoconf.
You can safely replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
(unless you use an ancient version of Automake, in which case
you should update anyway):
Quoting 'info Automake Optional':
| `AC_CONFIG_HEADERS'
| Automake will generate rules to rebuild these headers. Older
| versions of Automake required the use of `AM_CONFIG_HEADER' (*note
| Macros::); this is no longer the case today.
Regards,
Ralf