File: autogen.sh

package info (click to toggle)
libgiigic 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,000 kB
  • ctags: 854
  • sloc: sh: 9,160; ansic: 7,438; makefile: 275
file content (35 lines) | stat: -rwxr-xr-x 690 bytes parent folder | download | duplicates (19)
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
#!/bin/sh

version_check=yes

for opt in $@; do
  case "$opt" in
  --force)
    version_check=no
    ;;
  esac
done

if test $version_check = yes; then
  AC_VERSION="2.59"
  AM_VERSION="1.9.6"

  printf "Checking for required autoconf ${AC_VERSION}..."
  ./checkversion.sh autoconf $AC_VERSION
  test $? -eq 0 || exit $? && printf "ok\n"
  printf "Checking for required automake ${AM_VERSION}..."
  ./checkversion.sh automake $AM_VERSION
  test $? -eq 0 || exit $? && printf "ok\n"
fi

touch ChangeLog

cat m4/*.m4 > acinclude.m4
echo "Running aclocal..."
aclocal
echo "Running autoheader..."
autoheader
echo "Running automake..."
automake --add-missing
echo "Running autoconf..."
autoconf