Revision 5e9e29e0 install.sh

View differences:

install.sh
23 23

  
24 24
echo
25 25
echo "Checking dependencies..."
26
for x in glib-2.0 nice libmicrohttpd jansson libssl libcrypto sofia-sip-ua ini_config opus ogg
26
for x in glib-2.0 nice libmicrohttpd jansson libssl libcrypto sofia-sip-ua ini_config
27 27
do
28 28
	DEPENDENCY=`pkg-config --cflags --libs $x`
29 29
	if [ -z "$DEPENDENCY" ]
......
32 32
		exit 1;
33 33
	fi
34 34
done
35
pkg-config --atleast-version=2.32 glib-2.0
36
if [ $? != 0 ]
37
then
38
	echo "  -- The installed glib-2.0 version (`pkg-config --modversion glib-2.0`) is outdated, at least 2.32 is required"
39
	exit 1
40
fi
41
pkg-config --atleast-version=1.0.1e openssl
42
if [ $? != 0 ]
43
then
44
	echo "  -- The installed openssl version (`pkg-config --modversion openssl`) is outdated, at least 1.0.1e is required"
45
	exit 1
46
fi
47
pkg-config --exists opus
48
if [ $? != 0 ]
49
then
50
	echo "  -- opus is not installed, the AudioBridge plugin will not be built"
51
	sleep 2
52
else
53
	export HAVE_OPUS=1
54
fi
55
pkg-config --exists ogg
56
if [ $? != 0 ]
57
then
58
	echo "  -- libogg is not installed, the VoiceMail plugin will not be built"
59
	sleep 2
60
else
61
	export HAVE_OGG=1
62
fi
63
LIBNICE=( `ldconfig -p | grep libnice.so | tail -n 1` )
64
PORTRANGE=`nm -AD ${LIBNICE[3]} | grep nice_agent_set_port_range`
65
if [ -z "$PORTRANGE" ]
66
then
67
	echo "  -- Your version of libnice does not have nice_agent_set_port_range: support for configuring an RTP/RTCP range will be disabled"
68
	sleep 2
69
else
70
	export HAVE_PORTRANGE="-DHAVE_PORTRANGE"
71
fi
35 72

  
36 73
echo
37 74
echo "Compiling..."

Also available in: Unified diff