File: autogen.sh

package info (click to toggle)
distcc 3.3.2-10
  • links: PTS
  • area: main
  • in suites: buster
  • size: 4,772 kB
  • sloc: ansic: 27,818; python: 6,425; sh: 4,435; makefile: 919; perl: 52
file content (38 lines) | stat: -rwxr-xr-x 844 bytes parent folder | download | duplicates (6)
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
#! /bin/sh -e

# Usage: autogen.sh [srcdir]
# Run this script to build distcc from CVS.

## first try the default names
ACLOCAL="aclocal"
AUTOHEADER="autoheader"
AUTOCONF="autoconf"

if which $AUTOCONF > /dev/null
then
    :
else
    echo "$0: need autoconf 2.53 or later to regenerate configure scripts" >&2
    exit 1
fi

srcdir=`dirname "$0"`
builddir=`pwd`

echo "$0: running $ACLOCAL"
(cd $srcdir && $ACLOCAL -I m4 --output=$builddir/aclocal.m4)

echo "$0: running $AUTOHEADER"
[ -d src ] || mkdir src  # Needed for autoheader to generate src/config.h.in.
$AUTOHEADER $srcdir/configure.ac

echo "$0: running $AUTOCONF"
$AUTOCONF $srcdir/configure.ac > configure
chmod +x configure

if [ "$srcdir" = "." ]; then
  echo "Now run './configure' and then 'make'."
else
  echo "Now run './configure --srcdir=$srcdir' and then 'make'."
fi
exit 0