~vcs-imports/libwpd/main

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: lachancew
  • Date: 2002-09-21 19:24:03 UTC
  • Revision ID: Arch-1:libwpd@bazaar.ubuntu.com%libwpd--MAIN--0--patch-7
more autoconf stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
accheck=`autoconf --version | grep 2.13`
 
4
if test "x$accheck" != "x"; then
 
5
    echo "error: you appear to be using autoconf 2.13"
 
6
    echo "       the automake build system requires autoconf >= 2.50"
 
7
    exit 1
 
8
fi
 
9
 
 
10
aclocal --version > /dev/null 2> /dev/null || {
 
11
    echo "error: aclocal not found"
 
12
    exit 1
 
13
}
 
14
automake --version > /dev/null 2> /dev/null || {
 
15
    echo "error: automake not found"
 
16
    exit 1
 
17
}
 
18
 
 
19
amcheck=`automake --version | grep 'automake (GNU automake) 1.5'`
 
20
if test "x$amcheck" = "xautomake (GNU automake) 1.5"; then
 
21
    echo "warning: you appear to be using automake 1.5"
 
22
    echo "         this version has a bug - GNUmakefile.am dependencies are not generated"
 
23
fi
 
24
 
 
25
libtoolize --force --copy || {
 
26
    echo "error: libtoolize failed"
 
27
    exit 1
 
28
}
 
29
aclocal $ACLOCAL_FLAGS || {
 
30
    echo "error: aclocal $ACLOCAL_FLAGS failed"
 
31
    exit 1
 
32
}
 
33
autoheader || {
 
34
    echo "error: autoheader failed"
 
35
    exit 1
 
36
}
 
37
automake -a -c --foreign || {
 
38
    echo "warning: automake failed"
 
39
}
 
40
autoconf || {
 
41
    echo "error: autoconf failed"
 
42
    exit 1
 
43
}