File: bootstrap

package info (click to toggle)
libavg 1.8.1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 23,164 kB
  • ctags: 21,878
  • sloc: cpp: 84,221; python: 17,112; sh: 1,288; ansic: 783; makefile: 487; xml: 94
file content (33 lines) | stat: -rwxr-xr-x 845 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
#!/bin/bash
set -x
set -e

if [[ `uname` = Darwin ]] 
then
    if [[ x"$(which port)" = x"/opt/local/bin/port" ]]
    then
        echo "Macports detected"
        glibtoolize --copy --force
        aclocal -I m4
    else
        if [[ "$AVG_MAC_ENV_SET" -ne "1" ]]
        then
            echo Please source mac/avg_env.sh before calling bootstrap.
            exit 5 
        fi
        # This uses locally-installed libtoolize and automake since the
        # apple-supplied one is buggy as of OS X 10.4.7
        libtoolize --copy --force
        aclocal -I m4
        # Patch that fixes 'absolute addressing not allowed in slidable
        # image' linker error.
        patch < mac/libtool.m4.patch m4/libtool.m4
    fi
else
    libtoolize --copy --force
    aclocal -I m4
fi
autoheader
automake --foreign --add-missing --copy 
autoconf