~ubuntu-branches/debian/sid/folks/sid

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2010-07-18 23:32:26 UTC
  • Revision ID: james.westby@ubuntu.com-20100718233226-yw7txhphcw1upx4w
Tags: upstream-0.1.10
ImportĀ upstreamĀ versionĀ 0.1.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
if test -n "$AUTOMAKE"; then
 
5
    : # don't override an explicit user request
 
6
elif automake-1.11 --version >/dev/null 2>/dev/null && \
 
7
     aclocal-1.11 --version >/dev/null 2>/dev/null; then
 
8
    # If we have automake-1.11, use it. This is the oldest version (=> least
 
9
    # likely to introduce undeclared dependencies) that will give us
 
10
    # --enable-silent-rules support.
 
11
    AUTOMAKE=automake-1.11
 
12
    export AUTOMAKE
 
13
    ACLOCAL=aclocal-1.11
 
14
    export ACLOCAL
 
15
fi
 
16
 
 
17
autoreconf -i -f
 
18
 
 
19
run_configure=true
 
20
for arg in $*; do
 
21
    case $arg in
 
22
        --no-configure)
 
23
            run_configure=false
 
24
            ;;
 
25
        *)
 
26
            ;;
 
27
    esac
 
28
done
 
29
 
 
30
if test $run_configure = true; then
 
31
    ./configure "$@"
 
32
fi