~zeitgeist-dataproviders/zeitgeist-datasources/git

65 by Michal Hruby
Added preliminary autotools support
1
#!/bin/sh
2
# Run this to generate all the initial makefiles, etc.
3
4
srcdir=`dirname $0`
5
test -z "$srcdir" && srcdir=.
6
7
PKG_NAME="zeitgeist-dataproviders"
8
9
(test -f $srcdir/configure.ac \
10
  && test -f $srcdir/autogen.sh) || {
11
    echo -n "**Error**: Directory \`$srcdir' does not look like the"
12
    echo " top-level $PKG_NAME directory"
13
    exit 1
14
}
15
16
if which autoreconf ; then
17
  autoreconf --force --install || \
18
    (echo "There was an error in running autoreconf." > /dev/stderr;
19
     exit 1)
20
else
21
  echo "No build script available."
22
  echo " You need to install the following scripts:"
23
  echo "  * libtool"
24
  echo "  * automake"
25
  echo "  * autoconf"
26
  echo " Additionally, you need to make"
27
  echo " sure that they are in your \$PATH."
28
  exit 1
29
fi
30
31
echo Running $srcdir/configure $conf_flags "$@" ...
32
$srcdir/configure $conf_flags "$@" \