summaryrefslogtreecommitdiffstats
path: root/bin/reconfigure.sh
blob: cc5addb1bda3367331407ee2c12e7ca2d6eb431d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh
# A simple script to reconfigure autotools for HDF5.
# The autotools include a reconfigure script, but this script
# has the paths of autoconf and automake hardcoded to work on HDF
# machines.  Thus is enforces that HDF5 always uses the
# same versions of autotools.
# Uses automake version 1.6.3
# Uses autoconf version 2.59

# Discover which machine this script is being run on.
# Right now, heping is the only machine with the correct
# versions of autoconf and automake installed.

HOSTNAME=$(hostname)

if [ "$HOSTNAME" != "heping" ]; then
  echo "HDF5 can only be reconfigured on heping, sorry."
else

  # If this is heping, run commands in order
  echo /usr/bin/aclocal
  /usr/bin/aclocal
  echo /usr/local/autoconf-2.59/bin/autoheader
  /usr/local/autoconf-2.59/bin/autoheader
  echo /usr/bin/automake --foreign
  /usr/bin/automake --foreign
  echo /usr/local/autoconf-2.59/bin/autoconf
  /usr/local/autoconf-2.59/bin/autoconf

fi

exit 0