File: autogen.sh

package info (click to toggle)
graph-tool 2.98%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 29,356 kB
  • sloc: cpp: 87,937; python: 31,476; makefile: 957; xml: 101; sh: 42
file content (39 lines) | stat: -rwxr-xr-x 963 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
39
#!/bin/bash
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PROJECT="graph-tool"

(test -f $srcdir/configure.ac) || {
    echo -n "**Error**: Directory \"\'$srcdir\'\" does not look like the"
    echo " top-level package directory"
    exit 1
}

AUTOGEN_SUBDIR_MODE="foo"

if test -z "$AUTOGEN_SUBDIR_MODE"; then
    if test -z "$*"; then
        echo "I am going to run ./configure with no arguments - if you wish "
        echo "to pass any to it, please specify them on the $0 command line."
    fi
fi

aclocal -I m4 || exit $?
autoheader || exit $?
if [ `type -P libtoolize` ]; then
    libtoolize -f || exit $?
else
    glibtoolize -f || exit $?
fi
automake --add-missing --copy || exit $?
autoconf || exit $?

if test -z "$AUTOGEN_SUBDIR_MODE"; then
    $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?

    echo
    echo "Now type 'make' to compile $PROJECT."
fi