File: autogen.sh

package info (click to toggle)
apertium-cat 1.0.0~r65787-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,404 kB
  • ctags: 1
  • sloc: makefile: 59; xml: 38; sh: 24
file content (36 lines) | stat: -rwxr-xr-x 974 bytes parent folder | download | duplicates (21)
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
#! /bin/sh

# If the user specified a --prefix, take that, otherwise /usr/local/
# is the default.
PREFIX=/usr/local
prefixnext=false
for i in "$@"; do
    case $i in
        --prefix=*)		# equals separated:
	    PREFIX="${i#*=}"
	    ;;
        --prefix)		# space separated:
	    prefixnext=true
	    ;;
        *)
	    $prefixnext && PREFIX="$i" && prefixnext=false
	    ;;
    esac
done

# Set the paths needed by libtool/pkg-config/aclocal etc. By inferring
# them based on --prefix , users don't have to edit ~/.bashrc. We only
# append, so if a user has some other preference, that will override.
PATH="${PATH}:/usr/local/bin"
export PATH
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PREFIX}/lib"
export LD_LIBRARY_PATH
PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${PREFIX}/share/pkgconfig:${PREFIX}/lib/pkgconfig"
export PKG_CONFIG_PATH
ACLOCAL_PATH="${ACLOCAL_PATH}:${PREFIX}/share/aclocal"
export ACLOCAL_PATH


# Pass on all args to configure
autoreconf -fi && ./configure "$@"