aboutsummaryrefslogtreecommitdiff
path: root/helpers/cpt-configure
blob: 066fa648cdfc82c2253145f39fe97349494747e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e
# Wrapper for calling autoconf-generated ./configure scripts
. cpt-lib

set -- \
    "--prefix=$CPT_PKG_PREFIX" \
    "--sysconfdir=$CPT_PKG_ETCDIR" \
    "--bindir=$CPT_PKG_BINDIR" \
    "--sbindir=$CPT_PKG_SBINDIR" \
    "--mandir=$CPT_PKG_MANDIR" \
    "--infodir=$CPT_PKG_INFODIR" \
    "--localstatedir=$CPT_PKG_LOCALSTATEDIR" \
    "$@"


[ "$CPT_CROSS_TRIPLET" ] &&
    set -- "$@" \
        "--host=$CPT_CROSS_TRIPLET" \
        "--with-sysroot=$CPT_ROOT$CPT_PKG_PREFIX"

"${configure_args:-./configure}" "$@"