-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure
executable file
·29 lines (22 loc) · 949 Bytes
/
configure
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
#!/usr/bin/env bash
# autoconf, make, libtool, automake
scriptdir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
pushd ./deps/jq &> /dev/null
echo "building jq"
echo $scriptdir
autoreconf -fi
make distclean
CPPFLAGS=-D_REENTRANT ./configure CFLAGS=-fPIC \
--disable-maintainer-mode \
--with-oniguruma=builtin \
--libdir="${scriptdir}/build/deps" \
--prefix="${scriptdir}/build/deps" $*
make -j8
cp modules/oniguruma/src/.libs/libonig.a ${scriptdir}/build/deps/libonig.a
cp modules/oniguruma/src/.libs/libonig.la ${scriptdir}/build/deps/libonig.la
cp modules/oniguruma/src/.libs/libonig.lai ${scriptdir}/build/deps/libonig.lai
cp modules/oniguruma/src/.libs/libonig.4.dylib ${scriptdir}/build/deps/libonig.4.dylib
cp modules/oniguruma/src/.libs/libonig.dylib ${scriptdir}/build/deps/libonig.dylib
make install-libLTLIBRARIES install-includeHEADERS
echo "finished building jq"
popd &> /dev/null