File: autogen.sh

package info (click to toggle)
fwbuilder 5.3.7-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 43,112 kB
  • sloc: cpp: 193,089; sh: 71,239; ansic: 4,343; xml: 3,963; python: 83; makefile: 76; perl: 49
file content (51 lines) | stat: -rwxr-xr-x 1,201 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh


MAKE=`which gnumake 2>/dev/null`
if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi
if test ! -x "$MAKE" ; then MAKE=`which make` ; fi
HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"`

if test "$HAVE_GNU_MAKE" != "1"; then 
  echo Could not find GNU make on this system, can not proceed with build.
  exit 1
else
  echo Found GNU Make at $MAKE ... good.
fi

if test ! -x "`which aclocal`"
then
  echo "You need aclocal and autoconf to generate configure and Makefile."
  echo "Please install autoconf package."
  exit 1
fi

if test -x "`which libtoolize`"
then
  LIBTOOLIZE="libtoolize"
else
  if test -x "`which glibtoolize`"
  then
    LIBTOOLIZE="glibtoolize"
  else
    echo "You need libtoolize to generate autoconf and libtool scripts."
    echo "Please install libtool package."
    exit 1
  fi
fi

$LIBTOOLIZE --dry-run --install > /dev/null 2>&1 && {
    LIBTOOLIZE_ARGS="--force --copy --install"
} || {
    LIBTOOLIZE_ARGS="--force --copy"
}

echo This script runs configure ...

$LIBTOOLIZE $LIBTOOLIZE_ARGS

which acinclude >/dev/null 2>&1 && acinclude
which aclocal >/dev/null 2>&1 && aclocal
autoconf

test -n "$NOCONFIGURE" || ./configure ${CFGARGS}  $*