File: autogen.sh

package info (click to toggle)
rep-gtk 0.15-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 728 kB
  • ctags: 349
  • sloc: ansic: 3,577; sh: 2,430; lisp: 1,102; makefile: 159
file content (22 lines) | stat: -rwxr-xr-x 552 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

if [ -f configure.in ]; then
  if grep "A[MC]_CONFIG_HEADER" configure.in >/dev/null; then
    if [ ! -f config.h.in ]; then
      echo "Running autoheader"
      autoheader || exit 1
    fi
  fi
  if grep "AM_PROG_LIBTOOL" configure.in >/dev/null; then
    echo "Running libtoolize"
    libtoolize || exit 1
  fi
  echo "Running aclocal $ACLOCAL_FLAGS"
  aclocal $ACLOCAL_FLAGS || exit 1

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

./configure "$@" && ( echo ; echo "Now type \`make' to compile." )