]> git.datanom.net - vcard-parser.git/blame_incremental - autogen.sh
Complete version 0.1
[vcard-parser.git] / autogen.sh
... / ...
CommitLineData
1#!/bin/sh
2
3echo "Rebuilding build system......"
4
5autoreconf --version 2>&1 > /dev/null 2>&1
6
7if [ $? -eq 0 ]; then
8 AUTORECONF=autoreconf
9else
10 AUTORECONF=
11fi
12
13error() {
14 echo "Missing tool: $1"
15 echo "Cannot proceed until the missing tool is available"
16 exit 1
17}
18
19if [ ! -z ${AUTORECONF} ]; then
20 echo "Using autoreconf to rebuild build system"
21 autoreconf --force --install --symlink
22else
23 echo "No autoreconf found. Using plain old tools to rebuild build system"
24 libtoolize --automake --force || error libtoolize
25 aclocal -I m4|| error aclocal
26 autoheader --force || error autoheader
27 automake --add-missing --force-missing --gnu || error automake
28 autoconf --force || error autoconf
29fi
30./configure --enable-maintainer-mode $*
31
32exit 0
This page took 0.041328 seconds and 5 git commands to generate.