~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to config/autorun.sh

  • Committer: Brian Aker
  • Date: 2008-07-15 06:45:16 UTC
  • Revision ID: brian@tangent.org-20080715064516-fnbq7kowh7w57bxj
Merge Monty's code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
# LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
8
8
LIBTOOLIZE_FLAGS=" --automake --copy --force"
9
9
# ACLOCAL=${ACLOCAL:-aclocal}
10
 
ACLOCAL_FLAGS="-I m4"
11
10
# AUTOHEADER=${AUTOHEADER:-autoheader}
12
11
# AUTOMAKE=${AUTOMAKE:-automake}
13
 
AUTOMAKE_FLAGS="--add-missing --copy --force"
 
12
AUTOMAKE_FLAGS="--add-missing --copy --force -W all"
14
13
# AUTOCONF=${AUTOCONF:-autoconf}
15
14
 
16
15
ARGV0=$0
25
24
## jump out if one of the programs returns 'false'
26
25
set -e
27
26
 
28
 
if test -d ".bzr" ; then
29
 
  bzr log --short > ChangeLog || touch ChangeLog
30
 
else
31
 
  touch ChangeLog
32
 
fi
 
27
bzr log --short > ChangeLog || touch ChangeLog
33
28
 
 
29
## We do not currently support glibtoolize
34
30
if test x$LIBTOOLIZE = x; then
35
 
  if test \! "x`which glibtoolize 2> /dev/null | grep -v '^no'`" = x; then
36
 
    LIBTOOLIZE=glibtoolize
37
 
  elif test \! "x`which libtoolize-1.5 2> /dev/null | grep -v '^no'`" = x; then
 
31
#  if test \! "x`which glibtoolize 2> /dev/null | grep -v '^no'`" = x; then
 
32
#    LIBTOOLIZE=glibtoolize
 
33
  if test \! "x`which libtoolize-1.5 2> /dev/null | grep -v '^no'`" = x; then
38
34
    LIBTOOLIZE=libtoolize-1.5
39
35
  elif test \! "x`which libtoolize 2> /dev/null | grep -v '^no'`" = x; then
40
36
    LIBTOOLIZE=libtoolize
41
 
  elif test \! "x`which glibtoolize 2> /dev/null | grep -v '^no'`" = x; then
42
 
    LIBTOOLIZE=glibtoolize
43
37
  else 
44
 
    echo "libtoolize 1.5.x wasn't found, exiting"; exit 1
 
38
    echo "libtoolize 1.5.x wasn't found, exiting"; exit 0
45
39
  fi
46
40
fi
47
41
 
53
47
  elif test \! "x`which aclocal 2> /dev/null | grep -v '^no'`" = x; then
54
48
    ACLOCAL=aclocal
55
49
  else 
56
 
    echo "automake 1.10.x (aclocal) wasn't found, exiting"; exit 1
 
50
    echo "automake 1.10.x (aclocal) wasn't found, exiting"; exit 0
57
51
  fi
58
52
fi
59
53
 
65
59
  elif test \! "x`which automake 2> /dev/null | grep -v '^no'`" = x; then
66
60
    AUTOMAKE=automake
67
61
  else 
68
 
    echo "automake 1.10.x wasn't found, exiting"; exit 1
 
62
    echo "automake 1.10.x wasn't found, exiting"; exit 0
69
63
  fi
70
64
fi
71
65
 
79
73
  elif test \! "x`which autoconf 2> /dev/null | grep -v '^no'`" = x; then
80
74
    AUTOCONF=autoconf
81
75
  else 
82
 
    echo "autoconf 2.59+ wasn't found, exiting"; exit 1
 
76
    echo "autoconf 2.59+ wasn't found, exiting"; exit 0
83
77
  fi
84
78
fi
85
79
 
91
85
  elif test \! "x`which autoheader 2> /dev/null | grep -v '^no'`" = x; then
92
86
    AUTOHEADER=autoheader
93
87
  else 
94
 
    echo "autoconf 2.59+ (autoheader) wasn't found, exiting"; exit 1
 
88
    echo "autoconf 2.59+ (autoheader) wasn't found, exiting"; exit 0
95
89
  fi
96
90
fi
97
91
 
106
100
# and --force to overwrite them if they already exist
107
101
run $AUTOMAKE $AUTOMAKE_FLAGS  || die "Can't execute automake"
108
102
run $AUTOCONF || die "Can't execute autoconf"
109
 
echo -n "Automade with: "
110
 
$AUTOMAKE --version | head -1
111
 
echo -n "Configured with: "
112
 
$AUTOCONF --version | head -1