forked from savonet/liquidsoap-full
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·53 lines (46 loc) · 1.51 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh
cat <<MSG
-------------------------------------------------------------------------------
| This configure file is provided in order for you to be able to build |
| liquidsoap without having to install all the dependencies. |
| If you want to use the libraries, use the configure of the subdirectories. |
| This script will build liquidsoap with features indicated in PACKAGES. |
| Edit it or build manually if you need something more specific. |
-------------------------------------------------------------------------------
MSG
OPTS=""
error=""
LIQDIR=`ls -d liquidsoap* | head -1`
if [ ! -f PACKAGES ]; then
echo "Please copy PACKAGES.default to PACKAGES";
echo "and edit it to enable the packages you";
echo "want to enable.";
exit 1;
fi;
if [ ! -f $LIQDIR/configure ]; then
echo "You don't seem to have bootstraped yet. I'm doing it for you.";
./bootstrap;
fi;
packages=`grep -v '\#' PACKAGES`
liqdir=`ls -d liquidsoap* | head -n 1`
for p in `for i in $packages ; do ls -d $i* | head -1 ; done` ; do
if test "$p" = "$liqdir" ; then
base="liquidsoap"
echo ./configure $OPTS $* > $liqdir/configure-with-options
else
base=`echo $p | sed -e 's/ocaml-//' | sed -e 's/-.*//'`
OPTS="$OPTS --with-$base-dir=../$p/src"
fi
echo
echo "****** Configuring $p"
echo
cd $p
if test -f ./configure ; then
echo ./configure $OPTS $*
./configure $OPTS $* || exit 1
else
echo "No configure script found for $*"
exit 1
fi
cd ..
done