autoconf 2.52 tip



When moving your packages over to autoconf 2.52, it is probably worth
adding the package name and version arguments to the AC_INIT() macro call.
Doing so will customise a number of messages from configure (such as the
output from --help or --version).

You can also specify a bug reporting address as the third argument.  A
link through to bugzilla is probably the best option.  Something like
this:
  http://bugzilla.gnome.org/enter_bug.cgi?product=libglade

AC_INIT will set the AC_PACKAGE_NAME and AC_PACKAGE_VERSION macros to the
name and version you used.  These macros can then be used as arguments to
AM_INIT_AUTOMAKE in order to make sure the two values stay in sync.

So, if your 2.13 configure.in looked something like this:

  AC_INIT(some-source-file)
  AM_INIT_AUTOMAKE(packagename, versionnumber)

You can change it to something like this:

  AC_INIT(packagename, versionnumber,
          [http://bugzilla.gnome.org/enter_bug.cgi?product=packagename])
  AC_CONFIG_SRCDIR(some-source-file)
  AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)

There may be some other things the new autoconf uses the package name and
version for, so it couldn't hurt to set them.

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]