-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap
More file actions
53 lines (36 loc) · 1003 Bytes
/
bootstrap
File metadata and controls
53 lines (36 loc) · 1003 Bytes
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/sh
if test x"$1" != x ; then
psrchive_cmd=$1
else
psrchive_cmd=psrchive
fi
psrchive=`which $psrchive_cmd 2> /dev/null`
echo "Using $psrchive"
if test -z $psrchive; then
echo
echo "PSRCHIVE installation not found."
echo "If installed, please ensure that psrchive executable is in PATH"
echo "If not installed, please see http://psrchive.sourceforge.net"
echo
exit -1
fi
echo "Copying autoconf and automake tools from PSRCHIVE ..."
cp `$psrchive --aclocal`/* config/
sh config/formats.sh
if test ! -d resources/googletest/googletest; then
echo Updating googletest submodule
git submodule update --init --recursive
fi
echo "Running the GNU autotools. Please be patient ..."
if autoreconf --install --force; then
echo
echo "Bootstrap complete. You can now run the configure script."
echo
exit 0
else
echo
echo "An error occured while running the GNU autotools."
echo "Please see http://psrchive.sourceforge.net/third/autotools"
echo
exit -1
fi