Skip to content

Commit

Permalink
Refs trac:1265
Browse files Browse the repository at this point in the history
Update the make_dist_tarball script and the HACKING file to the new trunk
autotools requirements, including the addition of a specific m4 version:
 * m4 1.4.11
 * autoconf 2.62
 * automake 1.10.1
 * libtool 2.2.4

This commit was SVN r18465.

The following Trac tickets were found above:
  Ticket 1265 --> https://svn.open-mpi.org/trac/ompi/ticket/1265
  • Loading branch information
timattox committed May 20, 2008
1 parent 74d0259 commit fa74f0a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
44 changes: 27 additions & 17 deletions HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ developer's checkout, you have three main options:
shell$ make all install


Use of GNU Autoconf, Automake, and Libtool
==========================================
Use of GNU m4, Autoconf, Automake, and Libtool
==============================================

This procedure is *ONLY* necessary if you are building from a
developer's tree. If you have an Open MPI distribution tarball, this
procedure is unnecessary -- you can (and should) skip reading this
section.

If you are building Open MPI from a developer's tree, you must first
install fairly recent versions of the GNU tools Autoconf, Automake,
install fairly recent versions of the GNU tools m4, Autoconf, Automake,
and Libtool. The specific versions required depend on if you are
using the trunk or a release branch (and which release branch you are
using). The specific versions can be found at:
Expand All @@ -97,6 +97,7 @@ using). The specific versions can be found at:
You can check what versions of the autotools you have installed with
the following:

shell$ m4 --version
shell$ autoconf --version
shell$ automake --version
shell$ libtoolize --version
Expand All @@ -117,18 +118,20 @@ NOTE: On MacOS/X, the default "libtool" program is different than the
1. Unless your OS distribution has easy-to-use binary installations,
the sources can be can be downloaded from:

ftp://ftp.gnu.org/gnu/m4/
ftp://ftp.gnu.org/gnu/autoconf/
ftp://ftp.gnu.org/gnu/automake/
ftp://ftp.gnu.org/gnu/libtool/

2. Build and install the tools in the following order:

2a. Autoconf
2b. Automake
2c. Libtool
2a. m4
2b. Autoconf
2c. Automake
2d. Libtool

3. You MUST install all three tools into the same prefix directory.
These three tools are somewhat inter-related, and if they're going
3. You MUST install all four tools into the same prefix directory.
These four tools are somewhat inter-related, and if they're going
to be used together, they MUST share a common installation prefix.

3a. It is *strongly* encouraged that you do not install your new
Expand All @@ -147,36 +150,43 @@ NOTE: On MacOS/X, the default "libtool" program is different than the
set path = ($HOME/local/bin $path)

3c. Ensure to set your $path *BEFORE* you configure/build/install
the three packages.
the four packages.

4. All three packages require two simple commands to build and
4. All four packages require two simple commands to build and
install (where PREFIX is the prefix discussed in 3, above).

shell$ cd autoconf-2.59
shell$ cd m4-1.4.11
shell$ ./configure --prefix=PREFIX
shell$ make all install
shell$ make; make install

--> NOTE: The builds are so short that parallel builds really
aren't worth it (and cause problems in some cases).

--> If you are using the csh or tcsh shells, be sure to run the
"rehash" command after you install each package.

shell$ cd ../automake-1.9.6
shell$ cd ../autoconf-2.62
shell$ ./configure --prefix=PREFIX
shell$ make all install
shell$ make; make install

--> If you are using the csh or tcsh shells, be sure to run the
"rehash" command after you install each package.

shell$ cd ../libtool-1.5.20
shell$ cd ../automake-1.10.1
shell$ ./configure --prefix=PREFIX
shell$ make all install
shell$ make; make install

--> If you are using the csh or tcsh shells, be sure to run the
"rehash" command after you install each package.

Autoconf and Automake build and install very quickly; Libtool will
shell$ cd ../libtool-2.2.4
shell$ ./configure --prefix=PREFIX
shell$ make; make install

--> If you are using the csh or tcsh shells, be sure to run the
"rehash" command after you install each package.

m4, Autoconf and Automake build and install very quickly; Libtool will
take a minute or two.

5. You can now run OMPI's top-level "autogen.sh" script. This script
Expand Down
9 changes: 6 additions & 3 deletions contrib/dist/make_dist_tarball
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
# Version of auto tools that we want
#

AM_TARGET_VERSION=1.10
AC_TARGET_VERSION=2.60
LT_TARGET_VERSION=2.1a
M4_TARGET_VERSION=1.4.11
AM_TARGET_VERSION=1.10.1
AC_TARGET_VERSION=2.62
LT_TARGET_VERSION=2.2.4

#
# First things first -- check that the auto versions that we have are
Expand All @@ -41,6 +42,7 @@ ERROR: Program "$prog" does not have the correct/expected version:
Found: $ver
Expected versions:
m4: $M4_TARGET_VERSION
Automake: $AM_TARGET_VERSION
Autoconf: $AC_TARGET_VERSION
Libtool: $LT_TARGET_VERSION
Expand Down Expand Up @@ -104,6 +106,7 @@ make_tarball() {
#########################################################################

echo "*** Checking GNU tools versions..."
check_gnu_version m4 $M4_TARGET_VERSION
check_gnu_version automake $AM_TARGET_VERSION
check_gnu_version autoconf $AC_TARGET_VERSION
check_gnu_version libtool $LT_TARGET_VERSION
Expand Down

0 comments on commit fa74f0a

Please sign in to comment.