Debian Codegraph @

BLOSC/bin/reconfigure

raw
1 #! /bin/sh
2 #
3
4 # A script to run the GNU autotools to regenerate files for HDF4.
5 # If the paths of the autotools are not specified by the user, they
6 # are hardcoded to point to their locations on HDF Linux machines.
7 # Users can specify the locations of the autotools with the following
8 # variables:
9 # AUTOCONF, AUTOMAKE, ACLOCAL, AUTOHEADER should be the path to the
10 # corresponding tools.
11 # LIBTOOL_DIR should be the path to the base libtool directory;
12 # $LIBTOOL_DIR/bin/libtool should invoke libtool, while
13 # $LIBTOOL_DIR/share/aclocal needs to be included by aclocal.
14 # Be very careful when specifying these tools manually! There are a lot
15 # of versions that can get confused (not even counting the m4 utility)!
16
17 # blosc currently uses the following versions of the autotools:
18 AUTOCONF_VERSION="autoconf (GNU Autoconf) 2.69"
19 AUTOMAKE_VERSION="automake (GNU automake) 1.12.3"
20 AUTOHEADER_VERSION="autoheader (GNU Autoconf) 2.69"
21 ACLOCAL_VERSION="aclocal (GNU automake) 1.12.3"
22 LIBTOOL_VERSION="(GNU libtool) 2.4.2"
23 M4_VERSION="m4 (GNU M4) 1.4.16"
24
25 #
26 # When upgrading automake's version, don't forget to also update its
27 # helper utilities, especially depcomp.
28
29 # If the user has defined environment variables pointing to the autotools,
30 # use those (but check their versions first!). Otherwise, assume that
31 # we're running on an HDF Group machine with access to the autotools
32 # in mnt/hdf/packages.
33 if test -z ${AUTOCONF}; then
34 AUTOCONF=/mnt/hdf/packages/autoconf/autoconf-2.69/bin/autoconf
35 fi
36 if test -z ${AUTOMAKE}; then
37 AUTOMAKE=/mnt/hdf/packages/automake/automake-1.12.3/bin/automake-1.12
38 fi
39 if test -z ${AUTOHEADER}; then
40 AUTOHEADER=/mnt/hdf/packages/autoconf/autoconf-2.69/bin/autoheader
41 fi
42 if test -z ${ACLOCAL}; then
43 ACLOCAL=/mnt/hdf/packages/automake/automake-1.12.3/bin/aclocal-1.12
44 fi
45 if test -z ${LIBTOOL}; then
46 LIBTOOL=/mnt/hdf/packages/libtool/libtool-2.4.2/bin/libtool
47 fi
48 if test -z ${M4}; then
49 M4=/mnt/hdf/packages/m4/m4-1.4.16/bin/m4
50 fi
51
52 # Check version numbers of all autotools against the "correct" versions
53 AC_VERS=`${AUTOCONF} --version 2>&1 | grep "^${AUTOCONF_VERSION}"`
54 if test -z "${AC_VERS}"; then
55 echo "${AUTOCONF} version is not ${AUTOCONF_VERSION}"
56 exit 1
57 fi
58 AM_VERS=`${AUTOMAKE} --version 2>&1 | grep "^${AUTOMAKE_VERSION}"`
59 if test -z "${AM_VERS}"; then
60 echo "${AUTOMAKE} version is not ${AUTOMAKE_VERSION}"
61 exit 1
62 fi
63 AH_VERS=`${AUTOHEADER} --version 2>&1 | grep "^${AUTOHEADER_VERSION}"`
64 if test -z "${AH_VERS}"; then
65 echo "${AUTOHEADER} version is not ${AUTOHEADER_VERSION}"
66 exit 1
67 fi
68 AL_VERS=`${ACLOCAL} --version 2>&1 | grep "^${ACLOCAL_VERSION}"`
69 if test -z "${AL_VERS}"; then
70 echo "${ACLOCAL} version is not ${ACLOCAL_VERSION}"
71 exit 1
72 fi
73 LT_VERS=`${LIBTOOL} --version 2>&1 | grep "${LIBTOOL_VERSION}"`
74 if test -z "${LT_VERS}"; then
75 echo "${LIBTOOL} version is not ${LIBTOOL_VERSION}"
76 exit 1
77 fi
78 M4_VERS=`${M4} --version 2>&1 | grep "${M4_VERSION}"`
79 if test -z "${M4_VERS}"; then
80 echo "${M4} version is not ${M4_VERSION}"
81 exit 1
82 fi
83
84 # Make sure that the tools are in the path.
85 AUTOCONF_DIR=`dirname ${AUTOCONF}`
86 LIBTOOL_DIR=`dirname ${LIBTOOL}`
87 M4_DIR=`dirname ${M4}`
88 PATH=${AUTOCONF_DIR}:${M4_DIR}:$PATH
89
90 # Run autoconf/automake commands in order
91 echo ${ACLOCAL} -I ${LIBTOOL_DIR}/../share/aclocal
92 ${ACLOCAL} -I ${LIBTOOL_DIR}/../share/aclocal || exit 1
93
94 # echo ${AUTOHEADER}
95 # ${AUTOHEADER} || exit 1
96
97 echo ${AUTOMAKE} --add-missing
98 ${AUTOMAKE} --add-missing || exit 1
99
100 echo ${AUTOCONF}
101 ${AUTOCONF} || exit 1
102
103 exit 0