summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 9bb10bca11db643ee454b7d7f545c0055ace4599 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh

#
# part of libopenraw
#


topsrcdir=`dirname $0`
if test x$topsrcdir = x ; then
        topsrcdir=.
fi

builddir=`pwd`

AUTOCONF=autoconf

LIBTOOL=$(command -v glibtool)
if [ -z "$LIBTOOL" ]; then
    LIBTOOL=libtool
fi

LIBTOOLIZE=$(command -v glibtoolize)
if [ -z "$LIBTOOLIZE" ]; then
    LIBTOOLIZE=libtoolize
fi


AUTOMAKE=automake
ACLOCAL=aclocal

cd $topsrcdir

rm -f autogen.err
$LIBTOOLIZE --force
$ACLOCAL -I m4 >> autogen.err 2>&1

#autoheader --force
$AUTOMAKE --add-missing --copy --foreign 
$AUTOCONF

cd $builddir


if [ "$NOCONFIGURE" = "" ]; then
    if test -z "$*"; then
        echo "I am going to run ./configure with --enable-maintainer-mode"
	echo "If you wish to pass any to it, please specify them on "
	echo "the $0 command line."
    fi
    echo "Running configure..."
    $topsrcdir/configure --enable-maintainer-mode "$@"
fi