File: autogen.sh

package info (click to toggle)
libggi 1%3A2.2.2-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 10,764 kB
  • ctags: 9,218
  • sloc: ansic: 65,689; sh: 9,211; makefile: 1,223; pascal: 183
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