File: autogen.sh

package info (click to toggle)
sawfish 1:1.11.90-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 26,204 kB
  • sloc: lisp: 30,914; ansic: 14,583; sh: 11,203; makefile: 562; python: 91; perl: 7
file content (39 lines) | stat: -rwxr-xr-x 847 bytes parent folder | download | duplicates (3)
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/sh

if [ -f Makefile ]; then
	make gitclean
fi

if [ -f aclocal.m4 ]; then
	rm -fv aclocal.m4
fi

if [ -d m4 ]; then
	rm -fv m4/*
fi

if [ -f configure.in ]; then
  if grep "AC_CONFIG_HEADER" configure.in >/dev/null; then
      echo "Running autoheader"
      autoheader || exit 1
  fi
  if grep "AM_PROG_LIBTOOL" configure.in >/dev/null; then
    echo "Running libtoolize"
    lver=$(libtool --version | grep 1.5)
    if [ "x${lver}" != "x" ]; then
	    libtoolize --force --copy || exit 1
    else    libtoolize --force --copy --install || exit 1
    fi
  fi
#  echo "Running intltoolize"
#  intltoolize --copy --force
  echo "Running aclocal $ACLOCAL_FLAGS"
  aclocal -I m4 $ACLOCAL_FLAGS || exit 1

  echo "Running autoconf $AUTOCONF_FLAGS"
  autoconf $AUTOCONF_FLAGS || exit 1
fi

if [ "${1}" != "--nocfg" ]; then
	./configure "$@"
fi