[gmx-developers] Problem with Gromacs 3.3.1 and automake 1.10

wolfram at picb.ac.cn wolfram at picb.ac.cn
Fri Jul 6 16:01:51 CEST 2007


Hello everybody,

I was modifying some Makefiles in Gromacs and encountered a
little problem when using Gromacs 3.3.1 together with autoconf 1.10+
(it complains that AM_PROG_AS is missing).
In order to get things running one needs to include
AM_PROG_AS
at the end of the first block in the configure.ac script. I think
it would be nice to include this in the official 3.3.1 release.

Also it complains about
Makefile.am:20: use `install-data-hook' or `install-exec-hook', not
`install-hook'
what can be fixed by changing install-hook to install-exec-hook.

Best regards,
Wolfram


The configure.ac script then should look like:

/######################################################################
# Process this file wth autoconf to produce a configure script.
#######################################################################

AC_PREREQ(2.50)
AC_INIT(GROMACS, 3.3.1, gmx-users at gromacs.org)
AC_CONFIG_SRCDIR(src/gmxlib/3dview.c)
AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_HOST

AM_INIT_AUTOMAKE(tar-ustar)
AC_PREFIX_DEFAULT(/usr/local/gromacs)

AM_CONFIG_HEADER(src/config.h)
dnl This is the version info according to the libtool versioning system.
dnl It does *not* correspond to the release number.
SHARED_VERSION_INFO="4:0:0"
AC_SUBST(SHARED_VERSION_INFO)

# MPI builds on aix break with shared libs, so they are disabled by default.
AC_DISABLE_SHARED
AM_PROG_AS

....






More information about the gromacs.org_gmx-developers mailing list