File: autogen.sh

package info (click to toggle)
libinstpatch 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,148 kB
  • sloc: ansic: 37,958; sh: 10,747; makefile: 361; python: 27
file content (22 lines) | stat: -rwxr-xr-x 692 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

echo "Initializing libInstPatch build..."
error=0

for prog in aclocal autoheader autoconf automake libtoolize gtkdocize; do
  which $prog 2>&1 >/dev/null || {
    echo "*** The program '$prog' was not found and is required to initialize build."
    exit 1
  }
done

gtkdocize --copy --flavour no-tmpl && aclocal -I . -I m4 && autoheader && autoconf \
  && automake --add-missing -c && libtoolize -c -f \
  || error=1

if [ error = "1" ]; then
  echo "*** An error occurred while initializing the build environment."
  echo "*** Make sure you have recent versions of autoconf, automake, and"
  echo "*** libtool installed when building from CVS or regenerating build."
  exit 1
fi