~ubuntu-branches/ubuntu/maverick/globus-core/maverick

« back to all changes in this revision

Viewing changes to .pc/globus-core-usr.patch/bootstrap

  • Committer: Bazaar Package Importer
  • Author(s): Mattias Ellert
  • Date: 2010-06-04 04:43:29 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100604044329-lqbxy6je6l1m517l
Tags: 5.16-2
Converting to package format 3.0 (quilt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# checking for the GLOBUS_LOCATION
 
4
 
 
5
if test "x$GLOBUS_LOCATION" = "x"; then
 
6
    echo "ERROR Please specify GLOBUS_LOCATION" >&2
 
7
    exit 1
 
8
fi
 
9
 
 
10
error()
 
11
{
 
12
    echo ""
 
13
    echo "ERROR: bootstrap failed!"
 
14
    echo ""
 
15
    exit 1
 
16
}
 
17
 
 
18
 
 
19
# check for autotools
 
20
 
 
21
for program in automake aclocal autoconf autoheader
 
22
    do
 
23
    ($program --version ) > /dev/null 2>&1 || { 
 
24
    echo "ERROR: $program not found" >&2
 
25
    exit 1
 
26
    }
 
27
done
 
28
 
 
29
config=
 
30
 
 
31
# test for local macros
 
32
if test -d "./config"; then
 
33
    config="$config -I ./config"
 
34
fi
 
35
 
 
36
# test to see if GPT macros are in a seperate location
 
37
if test ! -f "$GLOBUS_LOCATION/share/globus_aclocal/gpt_autoconf_macros.m4"; then
 
38
    if test "x$GPT_LOCATION" = "x"; then
 
39
        echo "ERROR Globus Packaging Tools not found" >&2
 
40
        echo "ERROR either set GPT_LOCATION or install them in $GLOBUS_LOCATION" >&2
 
41
        exit 1
 
42
    else
 
43
        config="$config -I $GPT_LOCATION/share/globus_aclocal"
 
44
    fi
 
45
else
 
46
    config="$config -I $GLOBUS_LOCATION/share/globus_aclocal"
 
47
fi
 
48
 
 
49
if test "x$GPT_LOCATION" = "x"; then
 
50
    GPT_LOCATION=$GLOBUS_LOCATION
 
51
fi
 
52
 
 
53
echo "running aclocal $config"
 
54
aclocal $config || error
 
55
 
 
56
if test -f acconfig.h ; then
 
57
echo "running autoheader"
 
58
    autoheader || error
 
59
fi
 
60
 
 
61
echo "running libtoolize --copy --force"
 
62
libtoolize --copy --force || \
 
63
  libtoolize --copy --force || error
 
64
 
 
65
echo "running automake --copy -add-missing --foreign"
 
66
automake --copy --add-missing --foreign || \
 
67
  automake --copy --add-missing --foreign  || error
 
68
 
 
69
 
 
70
echo "running gpt_create_automake_rules"
 
71
$GPT_LOCATION/sbin/gpt_create_automake_rules || error
 
72
 
 
73
 
 
74
echo "running autoconf"
 
75
autoconf || error
 
76
 
 
77
# update stamp.h.in
 
78
 
 
79
if test -f "stamp-h.in" ; then
 
80
    touch stamp-h.in
 
81
fi