summaryrefslogtreecommitdiffstats
path: root/build/linux/autogen.sh
blob: 544fdebb6d20d16fc1a9be5806ee4fe444a0fd3a (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
#!/bin/bash

aclocal
if test $? -ne 0; then
  echo "Error running aclocal"
  exit 1
fi

autoconf
if test $? -ne 0; then
  echo "Error running autoconf"
  exit 1
fi

case `uname` in Darwin*) LIBTOOLIZEBIN=glibtoolize ;;
  *) LIBTOOLIZEBIN=libtoolize ;; esac

$LIBTOOLIZEBIN --install --force > /dev/null 2>&1
if test $? -ne 0; then
  $LIBTOOLIZEBIN --force
  if test $? -ne 0; then
    echo "Error running libtoolize"
    exit 1
  fi
fi

if test ! -e config.guess; then
  ln -s config.guess.dist config.guess
fi

if test ! -e config.sub; then
  ln -s config.sub.dist config.sub
fi

if test ! -e install-sh; then
  ln -s install-sh.dist install-sh
fi

echo "Done."