[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: which is the correct form?
From: |
Ben Pfaff |
Subject: |
Re: which is the correct form? |
Date: |
12 Dec 2003 16:46:48 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Bob Lockie <address@hidden> writes:
> AC_INIT (package, version, [bug-report], [tarname])
> AM_INIT_AUTOMAKE
That's up-to-date as far as I know.
> or
>
> AC_INIT(src/hello.c)
This is obsolete. See the Autoconf manual:
- Macro: AC_INIT (UNIQUE-FILE-IN-SOURCE-DIR)
Formerly `AC_INIT' used to have a single argument, and was
equivalent to:
AC_INIT
AC_CONFIG_SRCDIR(UNIQUE-FILE-IN-SOURCE-DIR)
> AM_INIT_AUTOMAKE(hello, 1.3.11)
This is also obsolete. See the Automake manual:
`AM_INIT_AUTOMAKE([OPTIONS])'
`AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])'
Runs many macros required for proper operation of the generated
Makefiles.
This macro has two forms, the first of which is preferred. In
this form, `AM_INIT_AUTOMAKE' is called with a single argument --
a space-separated list of Automake options which should be applied
to every `Makefile.am' in the tree. The effect is as if each
option were listed in `AUTOMAKE_OPTIONS'.
The second, deprecated, form of `AM_INIT_AUTOMAKE' has two required
arguments: the package and the version number. This form is
obsolete because the PACKAGE and VERSION can be obtained from
Autoconf's `AC_INIT' macro (which itself has an old and a new
form).
If your `configure.in' has:
AC_INIT(src/foo.c)
AM_INIT_AUTOMAKE(mumble, 1.5)
you can modernize it as follows:
AC_INIT(mumble, 1.5)
AC_CONFIG_SRCDIR(src/foo.c)
AM_INIT_AUTOMAKE
--
"In the PARTIES partition there is a small section called the BEER.
Prior to turning control over to the PARTIES partition,
the BIOS must measure the BEER area into PCR[5]."
--TCPA PC Specific Implementation Specification