Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 2748 lines (2499 sloc) 89.327 kB
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
a524578 @MartijnKaijser version bump for October merge window
MartijnKaijser authored
5 AC_INIT([xbmc], [11.9.7], [http://trac.xbmc.org])
c51b118 Merged cptspiff's code-reshuffle branch.
theuni authored
6 AC_CONFIG_HEADERS([xbmc/config.h])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
7 AH_TOP([#pragma once])
b768137 Code changes for external python. Changes include submissions by cpts…
spiff authored
8 m4_include([m4/ax_python_devel.m4])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
9
0776bcd Use an auxilary directory for build tools and ensure they're not plac…
ceros7 authored
10 AC_CONFIG_AUX_DIR([build-aux])
c8655dd Use AM_INIT_AUTOMAKE([foreign]) instead of AM_INIT_AUTOMAKE. Takes ou…
ceros7 authored
11 AM_INIT_AUTOMAKE([foreign])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
12 AC_CANONICAL_HOST
13
9e911fb added: Cross compile options from #7392 (patches 010,111-123) (thx op…
althekiller authored
14 tolower(){
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
15 echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
9e911fb added: Cross compile options from #7392 (patches 010,111-123) (thx op…
althekiller authored
16 }
17
bc77019 @davilla [droid] add additional player selection support
davilla authored
18 # check for enabling additional players
19 AC_DEFUN([XB_ADD_PLAYER],
20 [
21 AC_MSG_CHECKING([for $2])
22 case $add_players in
23 *$2*)
24 AC_SUBST([USE_$1], 1)
25 AC_DEFINE([HAS_$1], 1, [using $2])
26 AC_MSG_RESULT([enabling $2])
27 ;;
28 *)
29 AC_MSG_RESULT([$2 is not enabled])
30 esac
31 ])
32
3eb34c3 changed, dyload libbluray instead of static linking it
davilla authored
33 # check for library basenames
34 AC_DEFUN([XB_FIND_SONAME],
35 [
cd399af use ldconfig in XB_FIND_SONAME for FreeBSD
Fneufneu authored
36 if echo "$host" | grep -q freebsd ; then
37 AC_MSG_CHECKING([for lib$2 soname])
38 $1_SONAME=[`ldconfig -r | sed -n "s;.* \(/.*lib$2\.so.*\)$;\1;p" | head -n 1`]
39 if test x$$1_SONAME != x ; then
40 $1_SONAME=[`basename $$1_SONAME`]
41 fi
42 elif [[ "$host_vendor" != "apple" ]]; then
f072563 [osx] fixed, figure out correct dylib names to match what linker uses
davilla authored
43 AC_MSG_CHECKING([for lib$2 soname])
6057492 build: quit creating a.out
theuni authored
44 $1_FILENAME=$($CC -nostdlib -o /dev/null $LDFLAGS -l$2 -Wl,-M 2>/dev/null | grep "^LOAD.*$2" | awk '{V=2; print $V}')
4088cf0 [droid] add fallback for soname detection for gold linker
theuni authored
45 if [[ -z $$1_FILENAME ]]; then
46 #try gold linker syntax
47 $1_FILENAME=$($CC -nostdlib -o /dev/null $LDFLAGS -l$2 -Wl,-t 3>&1 1>&2 2>&3 | grep "$2")
48 fi
9592c12 build: fixed our soname version function to find libs outside of /usr…
theuni authored
49 if [[ ! -z $$1_FILENAME ]]; then
4088cf0 [droid] add fallback for soname detection for gold linker
theuni authored
50 $1_SONAME=$($OBJDUMP -p $$1_FILENAME | grep "SONAME.*$2" | awk '{V=2; print $V}')
9592c12 build: fixed our soname version function to find libs outside of /usr…
theuni authored
51 fi
f072563 [osx] fixed, figure out correct dylib names to match what linker uses
davilla authored
52 else
53 AC_MSG_CHECKING([for lib$2 dylib])
54 gcc_lib_path=[`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
55 env_lib_path=[`echo $LDFLAGS | sed 's/-L[ ]*//g'`]
56 if test "$cross_compiling" = yes; then
57 host_lib_path=""
58 else
59 host_lib_path="/usr/lib /usr/local/lib"
60 fi
61 for path in $gcc_lib_path $env_lib_path $host_lib_path; do
62 lib=[`ls -- $path/lib$2.dylib 2>/dev/null`]
63 if test x$lib != x; then
64 # we want the path/name that is embedded in the dylib
65 $1_SONAME=[`otool -L $lib | grep -v lib$2.dylib | grep lib$2 | awk '{V=1; print $V}'`]
273bf57 [osx] we want basename, not the path
davilla authored
66 $1_SONAME=[`basename $$1_SONAME`]
f072563 [osx] fixed, figure out correct dylib names to match what linker uses
davilla authored
67 fi
68 done
69 fi
3eb34c3 changed, dyload libbluray instead of static linking it
davilla authored
70 if [[ -z "$$1_SONAME" ]]; then
71 AC_MSG_RESULT([no])
72 if test -z "$3" || test "x${$3}" = "xyes"; then
73 AC_MSG_ERROR([Unable to determine soname of lib$2 library])
74 else
75 AC_MSG_WARN([Unable to determine soname of lib$2 library])
76 $3=no
77 AC_MSG_WARN([lib$2 support disabled])
78 fi
79 else
80 AC_MSG_RESULT([$$1_SONAME])
81 AC_SUBST($1_SONAME)
82 fi
83 ])
84
8c1504d @elupus detect older libbluray api versions
elupus authored
85 # Function to push and pop libs and includes for a command
86 AC_DEFUN([XB_PUSH_FLAGS], [
87 SAVE_LIBS="$LIBS"
88 SAVE_INCLUDES="$INCLUDES"
89 LIBS="[$2]"
90 INCLUDES="[$1]"
91 [$3]
92 LIBS="$SAVE_LIBS"
93 INCLUDES="$SAVE_INCLUDES"
94 ])
95
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
96 # General message strings
97 configure_debug="ERROR: this is a configure debug statement"
98 missing_library="Could not find a required library. Please see the README for your platform."
99 missing_headers="Could not find some required headers. Please see the README for your platform."
100 missing_program="Could not find a required program. Please see the README for your platform."
101 xrandr_not_found="== Could not find libXRandR. SDL will be used for resolution support. =="
102 xrandr_disabled="== XRandR support disabled. SDL will be used for resolution support. =="
2430923 fixed: do not build Goom if disabled (disabled by default ;))
vdrfan authored
103 goom_enabled="== GOOM enabled. =="
104 goom_disabled="== GOOM disabled. =="
e407d10 @gnif [AE] build system support for HAS/HAVE_ALSA
gnif authored
105 alsa_disabled="== ALSA support disabled. =="
3917681 build: make rsxs configurable
theuni authored
106 rsxs_enabled="== RSXS enabled. =="
107 rsxs_disabled="== RSXS disabled. =="
7189284 @sraue configure: let select XBMCProjectM, this adds support to enable/disab…
sraue authored
108 projectm_enabled="== ProjectM enabled. =="
109 projectm_disabled="== ProjectM disabled. =="
6c6526d build: configure option for enable/disable x11.
theuni authored
110 x11_enabled="== X11 enabled. =="
111 x11_disabled="== X11 disabled. =="
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
112 pulse_not_found="== Could not find libpulse. PulseAudio support disabled. =="
113 pulse_disabled="== PulseAudio support manually disabled. =="
114 dvdcss_enabled="== DVDCSS support enabled. =="
115 dvdcss_disabled="== DVDCSS support disabled. =="
4c26740 Applied #9200 - Thanks openelec.tv for the contribution!
topfs2 authored
116 hal_not_found="== Could not find hal. HAL support disabled. =="
117 halstorage_not_found="== Could not find hal-storage. HAL support disabled. =="
118 hal_disabled="== HAL support disabled. =="
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
119 avahi_not_found="== Could not find libavahi-common or libavahi-client. Avahi support disabled. =="
120 avahi_disabled="== Avahi support disabled. =="
121 vdpau_not_found="== Could not find libvdpau. VDPAU support disabled. =="
122 vdpau_disabled="== VDPAU support manually disabled. =="
364038e fixed: typo in configure for vaapi
elupus authored
123 vaapi_not_found="== Could not find libva. VAAPI support disabled. =="
124 vaapi_disabled="== VAAPI support manually disabled. =="
d067a69 fixed, name changed to libcrystalhd
davilla authored
125 crystalhd_not_found="== Could not find libcrystalhd. CrystalHD support disabled. =="
03f0fa0 merge crystalhd to trunk, many thanks to phi2039, mot2dk, amet and al…
davilla authored
126 crystalhd_disabled="== CrystalHD support manually disabled. =="
0ef4b51 add VDADecoder to configure and use HAVE_LIBVDADECODER to ifdef test …
davilla authored
127 vdadecoder_enabled="== VDADecoder support enabled. =="
128 vdadecoder_disabled="== VDADecoder support manually disabled. =="
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
129 vtbdecoder_enabled="== VTBDecoder support enabled. =="
130 vtbdecoder_disabled="== VTBDecoder support manually disabled. =="
07e5742 [arm] merge arm-camelot into trunk, thanks to mcgeagh for all his har…
davilla authored
131 openmax_disabled="== OpenMax support manually disabled. =="
132 openmax_not_found="== Could not find libnvomx. OpenMax support disabled. =="
882aa1e @wsnipex Provide a configure switch for libssh.
wsnipex authored
133 ssh_not_found="== Could not find libssh. =="
134 ssh_disabled="== SSH SFTP disabled. =="
d937d6b added: configure option for rtmp support
anssih authored
135 librtmp_not_found="== Could not find libRTMP. RTMP support disabled. =="
136 librtmp_disabled="== RTMP support disabled. =="
872e912 @davilla cosmetics, clarify that nfs/afp is client support
davilla authored
137 libnfs_not_found="== Could not find libnfs. NFS client support disabled. =="
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
138 libnfs_disabled="== NFS support disabled. =="
872e912 @davilla cosmetics, clarify that nfs/afp is client support
davilla authored
139 libafpclient_not_found="== Could not find libafpclient. AFP client support disabled. =="
826f0ca @Memphiz [add] - libafpclient to configure
Memphiz authored
140 libafpclient_disabled="== AFP support disabled. =="
8e308f8 @Memphiz [add] - add optional airtunes support into buildsys - make it default…
Memphiz authored
141 libshairport_not_found="== Could not find libshairport. AirTunes support disabled. =="
142 libshairport_disabled="== AirTunes support disabled. =="
6e37158 @sraue configure: let select samba support, this patch adds a configure opti…
sraue authored
143 samba_disabled="== SAMBA support disabled. =="
32e8992 @Memphiz [change] - make libplist optional via configure closes #11903
Memphiz authored
144 libplist_not_found="== Could not find libplist. AirPlay support disabled. =="
145 libplist_disabled="== AirPlay support disabled. =="
bce0622 linux: build without alsa if libasound is not present
theuni authored
146 alsa_not_found="== Could not find ALSA. ALSA support disabled. =="
eb3b6c1 build: allow build without dbus
theuni authored
147 dbus_not_found="== Could not find DBUS. DBUS support disabled. =="
f439ea9 added: link to libcap on linux
bobo1on1 authored
148 libcap_disabled="== Capabilities detection support disabled. =="
149 libcap_not_found="== Could not find libcap. Capabilities detection support disabled. =="
ec9ed53 @amejia1 [GSOC] Have the testsuite built when the 'check' target is invoked.
amejia1 authored
150 gtest_enabled="== Google Test Framework will be configured. =="
151 gtest_disabled="== Google Test Framework will not be configured. =="
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
152
1ac45d8 @opdenkamp cec: added support for the Pulse-Eight CEC Adaptor. split up linux/Pe…
opdenkamp authored
153 libudev_not_found="== Could not find libudev. Will use polling to check for device changes. =="
154 libudev_disabled="== udev support disabled. Will use polling to check for device changes. =="
034236b @opdenkamp Squashed original peripherals PR #383
opdenkamp authored
155 libusb_not_found="== Could not find libusb. Plug and play USB device support will not be available. =="
156 libusb_disabled="== libusb disabled. Plug and play USB device support will not be available. =="
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
157 libusb_disabled_udev_found="== libusb disabled. =="
3a0c3c0 @davilla changed libcec to be dyloaded like others, also change lib/libcec/Mak…
davilla authored
158 libcec_enabled="== libcec enabled. =="
159 libcec_disabled="== libcec disabled. CEC adapter support will not be available. =="
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
160 libcec_disabled_missing_libs="== libcec disabled because it either needs libudev, or libusb a compatible version of the RPi API. CEC adapter support will not be available. =="
161 cec_rpi_api_missing="== no compatible RPi API found =="
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
162
163 # External library message strings
164 external_libraries_enabled="== Use of all supported external libraries enabled. =="
165 external_libraries_disabled="== Use of all supported external libraries disabled. =="
166 external_ffmpeg_enabled="== Use of external ffmpeg enabled. =="
167 external_ffmpeg_disabled="== Use of external ffmpeg disabled. =="
168 ffmpeg_vdpau_not_supported="== External ffmpeg doesn't support VDPAU. VDPAU support disabled. =="
4ef8f5b fixed: debug and optim cflags should be passed to all lib tests and c…
althekiller authored
169 dashes="------------------------"
170 final_message="\n XBMC Configuration:"
171 final_message="\n$dashes$final_message\n$dashes"
172
bc14f0c libxbmc: option for shared libxbmc.so
theuni authored
173 AC_ARG_ENABLE([shared-lib],
174 [AS_HELP_STRING([--enable-shared-lib],
175 [build libxbmc. helpful for tests (default is no)])],
176 [build_shared_lib=$enableval],
177 [build_shared_lib=no])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
178
179 AC_ARG_ENABLE([debug],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
180 [AS_HELP_STRING([--enable-debug],
181 [enable debugging information (default is yes)])],
182 [use_debug=$enableval],
183 [use_debug=yes])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
184
9e911fb added: Cross compile options from #7392 (patches 010,111-123) (thx op…
althekiller authored
185 AC_ARG_WITH([arch],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
186 [AS_HELP_STRING([--with-arch],
187 [build with given arch passing to internal ffmpeg (default is no, needed for crosscompiling)])],
188 [use_arch=$withval],
189 [use_arch=no])
9e911fb added: Cross compile options from #7392 (patches 010,111-123) (thx op…
althekiller authored
190
6b37a4c @huceke [rbp] added raspberrypi support to our configure system
huceke authored
191 AC_ARG_WITH([platform],
192 [AS_HELP_STRING([--with-platform],
193 [use a pre-configured config for common arm boards])],
194 [use_platform=$withval],
195 [use_platform=none])
196
9e911fb added: Cross compile options from #7392 (patches 010,111-123) (thx op…
althekiller authored
197 AC_ARG_WITH([cpu],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
198 [AS_HELP_STRING([--with-cpu],
199 [build with given cpu passing to ffmpeg (default is no)])],
200 [use_cpu=$withval],
201 [use_cpu=no])
9e911fb added: Cross compile options from #7392 (patches 010,111-123) (thx op…
althekiller authored
202
8f95324 @davilla changed, add --enable-neon configure switch to pass into ffmpeg. defa…
davilla authored
203 AC_ARG_ENABLE([neon],
204 [AS_HELP_STRING([--enable-neon],
205 [enable neon passing to ffmpeg (default is no)])],
206 [use_neon=$enableval],
207 [use_neon=no])
208
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
209 AC_ARG_ENABLE([optimizations],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
210 [AS_HELP_STRING([--enable-optimizations],
211 [enable optimization (default is yes)])],
212 [use_optimizations=$enableval],
213 [use_optimizations=yes])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
214
215 AC_ARG_ENABLE([gl],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
216 [AS_HELP_STRING([--enable-gl],
217 [enable OpenGL rendering (default is yes)])],
218 [use_gl=$enableval],
219 [use_gl=yes])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
220
6695a08 [arm] add missing --enable-gles
davilla authored
221 AC_ARG_ENABLE([gles],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
222 [AS_HELP_STRING([--enable-gles],
223 [enable OpenGLES rendering (default is no)])],
224 [use_gles=$enableval],
225 [use_gles=no])
6695a08 [arm] add missing --enable-gles
davilla authored
226
e0db84e @davilla changed, move SDL lib checks to an enable/disable-sdl configure param…
davilla authored
227 AC_ARG_ENABLE([sdl],
228 [AS_HELP_STRING([--enable-sdl],
229 [enable SDL (default is auto)])],
230 [use_sdl=$enableval],
231 [use_sdl=auto])
232
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
233 AC_ARG_ENABLE([vdpau],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
234 [AS_HELP_STRING([--enable-vdpau],
235 [enable VDPAU decoding (default is auto)])],
236 [use_vdpau=$enableval],
237 [use_vdpau=auto])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
238
805f8e6 added: check for vaapi at configure time
elupus authored
239 AC_ARG_ENABLE([vaapi],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
240 [AS_HELP_STRING([--enable-vaapi],
241 [enable VAAPI decoding (default is auto)])],
242 [use_vaapi=$enableval],
243 [use_vaapi=auto])
805f8e6 added: check for vaapi at configure time
elupus authored
244
03f0fa0 merge crystalhd to trunk, many thanks to phi2039, mot2dk, amet and al…
davilla authored
245 AC_ARG_ENABLE([crystalhd],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
246 [AS_HELP_STRING([--enable-crystalhd],
247 [enable CrystalHD decoding (default is auto)])],
248 [use_crystalhd=$enableval],
249 [use_crystalhd=auto])
03f0fa0 merge crystalhd to trunk, many thanks to phi2039, mot2dk, amet and al…
davilla authored
250
0ef4b51 add VDADecoder to configure and use HAVE_LIBVDADECODER to ifdef test …
davilla authored
251 AC_ARG_ENABLE([vdadecoder],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
252 [AS_HELP_STRING([--enable-vdadecoder],
253 [enable VDADecoder decoding (default is auto)])],
254 [use_vdadecoder=$enableval],
255 [use_vdadecoder=auto])
0ef4b51 add VDADecoder to configure and use HAVE_LIBVDADECODER to ifdef test …
davilla authored
256
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
257 AC_ARG_ENABLE([vtbdecoder],
258 [AS_HELP_STRING([--enable-vtbdecoder],
259 [enable VTBDecoder decoding (default is auto)])],
260 [use_vtbdecoder=$enableval],
261 [use_vtbdecoder=auto])
262
07e5742 [arm] merge arm-camelot into trunk, thanks to mcgeagh for all his har…
davilla authored
263 AC_ARG_ENABLE([openmax],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
264 [AS_HELP_STRING([--enable-openmax],
a6c21d8 Only enable openmax if gles is enabled.
Andres Mejia authored
265 [enable OpenMax decoding (default is auto, requires OpenGLES)])],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
266 [use_openmax=$enableval],
b28c4ee Use pkgconfig check to auto-enable openmax.
Andres Mejia authored
267 [use_openmax=auto])
07e5742 [arm] merge arm-camelot into trunk, thanks to mcgeagh for all his har…
davilla authored
268
269 AC_ARG_ENABLE([tegra],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
270 [AS_HELP_STRING([--enable-tegra],
271 [enable Tegra2 arm (default is no)])],
272 [use_tegra=$enableval],
273 [use_tegra=no])
07e5742 [arm] merge arm-camelot into trunk, thanks to mcgeagh for all his har…
davilla authored
274
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
275 AC_ARG_ENABLE([profiling],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
276 [AS_HELP_STRING([--enable-profiling],
277 [enable gprof profiling (default is no)])],
278 [use_profiling=$enableval],
279 [use_profiling=no])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
280
281 AC_ARG_ENABLE([joystick],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
282 [AS_HELP_STRING([--enable-joystick],
283 [enable SDL joystick support (default is yes)])],
284 [use_joystick=$enableval],
285 [use_joystick=yes])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
286
287 AC_ARG_ENABLE([xrandr],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
288 [AS_HELP_STRING([--enable-xrandr],
289 [enable XRandR support (default is yes)])],
290 [use_xrandr=$enableval],
291 [use_xrandr=yes])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
292
3b6d6ac changed: Move goom to a configure time option (disabled by default).
althekiller authored
293 AC_ARG_ENABLE([goom],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
294 [AS_HELP_STRING([--enable-goom],
295 [enable GOOM visualisation (default is no)])],
296 [use_goom=$enableval],
297 [use_goom=no])
3b6d6ac changed: Move goom to a configure time option (disabled by default).
althekiller authored
298
3917681 build: make rsxs configurable
theuni authored
299 AC_ARG_ENABLE([rsxs],
300 [AS_HELP_STRING([--enable-rsxs],
301 [enable really slick X screensavers (default is yes)])],
302 [use_rsxs=$enableval],
303 [use_rsxs=yes])
304
7189284 @sraue configure: let select XBMCProjectM, this adds support to enable/disab…
sraue authored
305 AC_ARG_ENABLE([projectm],
306 [AS_HELP_STRING([--enable-projectm],
307 [enable ProjectM visualisation (default is yes)])],
308 [use_projectm=$enableval],
309 [use_projectm=yes])
310
6c6526d build: configure option for enable/disable x11.
theuni authored
311 AC_ARG_ENABLE([x11],
312 [AS_HELP_STRING([--enable-x11],
313 [enable x11 (default is yes) 'Linux Only'])],
314 [use_x11=$enableval],
315 [use_x11=yes])
316
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
317 AC_ARG_ENABLE([ccache],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
318 [AS_HELP_STRING([--enable-ccache],
319 [enable building with ccache feature (default is auto)])],
320 [use_ccache=$enableval],
321 [use_ccache=auto])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
322
e407d10 @gnif [AE] build system support for HAS/HAVE_ALSA
gnif authored
323 AC_ARG_ENABLE([alsa],
324 [AS_HELP_STRING([--disable-alsa],
325 [disable ALSA support (only for linux/freebsd)])],
326 [use_alsa=$enableval],
327 [use_alsa=yes])
328
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
329 AC_ARG_ENABLE([pulse],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
330 [AS_HELP_STRING([--enable-pulse],
532abe2 @gnif [AE] change pulseaudio to default to no rather than auto
gnif authored
331 [enable PulseAudio support (default is no)])],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
332 [use_pulse=$enableval],
532abe2 @gnif [AE] change pulseaudio to default to no rather than auto
gnif authored
333 [use_pulse=no])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
334
882aa1e @wsnipex Provide a configure switch for libssh.
wsnipex authored
335 AC_ARG_ENABLE([ssh],
336 [AS_HELP_STRING([--disable-ssh],
e5bbb0f @Montellese [linux] fix description for --disable-ssh switch in configure.in
Montellese authored
337 [disable SSH SFTP support (default is enabled)])],
882aa1e @wsnipex Provide a configure switch for libssh.
wsnipex authored
338 [use_ssh=$enableval],
339 [use_ssh=yes])
340
d937d6b added: configure option for rtmp support
anssih authored
341 AC_ARG_ENABLE([rtmp],
342 [AS_HELP_STRING([--enable-rtmp],
343 [enable RTMP support via librtmp (default is auto)])],
344 [use_librtmp=$enableval],
345 [use_librtmp=auto])
346
6e37158 @sraue configure: let select samba support, this patch adds a configure opti…
sraue authored
347 AC_ARG_ENABLE([samba],
348 [AS_HELP_STRING([--disable-samba],
349 [disable SAMBA support (default is enabled)])],
350 [use_samba=$enableval],
351 [use_samba=yes])
352
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
353 AC_ARG_ENABLE([nfs],
354 [AS_HELP_STRING([--enable-nfs],
355 [enable NFS support via libnfs (default is auto)])],
356 [use_libnfs=$enableval],
357 [use_libnfs=auto])
358
826f0ca @Memphiz [add] - libafpclient to configure
Memphiz authored
359 AC_ARG_ENABLE([afpclient],
741ea7a fixed: parameter is named afpclient
spiff authored
360 [AS_HELP_STRING([--enable-afpclient],
826f0ca @Memphiz [add] - libafpclient to configure
Memphiz authored
361 [enable AFP support via libafpclient (default is auto)])],
362 [use_libafpclient=$enableval],
363 [use_libafpclient=auto])
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
364
32e8992 @Memphiz [change] - make libplist optional via configure closes #11903
Memphiz authored
365 AC_ARG_ENABLE([airplay],
366 [AS_HELP_STRING([--enable-airplay],
367 [enable AirPlay support(default is auto)])],
368 [use_airplay=$enableval],
369 [use_airplay=auto])
370
8e308f8 @Memphiz [add] - add optional airtunes support into buildsys - make it default…
Memphiz authored
371 AC_ARG_ENABLE([airtunes],
372 [AS_HELP_STRING([--enable-airtunes],
ff85982 @Memphiz [libshairport] - default to auto in configure
Memphiz authored
373 [enable AirTunes support(default is auto)])],
8e308f8 @Memphiz [add] - add optional airtunes support into buildsys - make it default…
Memphiz authored
374 [use_airtunes=$enableval],
ff85982 @Memphiz [libshairport] - default to auto in configure
Memphiz authored
375 [use_airtunes=auto])
8e308f8 @Memphiz [add] - add optional airtunes support into buildsys - make it default…
Memphiz authored
376
3b6b078 @alcoheca [UPnP] changed: make UPnP optional (enabled by default), fix some mis…
alcoheca authored
377 AC_ARG_ENABLE([upnp],
378 [AS_HELP_STRING([--disable-upnp],
379 [disable UPnP support (default is enabled)])],
380 [use_upnp=$enableval],
381 [use_upnp=yes])
382
6aefbe2 added: configure option to enable libvorbis encode support in ffmpeg
gnif2 authored
383 AC_ARG_ENABLE([ffmpeg_libvorbis],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
384 [AS_HELP_STRING([--enable-ffmpeg-libvorbis],
385 [enable FFmpeg vorbis encoding (default is no)])],
386 [use_ffmpeg_libvorbis=$enableval],
387 [use_ffmpeg_libvorbis=no])
6aefbe2 added: configure option to enable libvorbis encode support in ffmpeg
gnif2 authored
388
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
389 AC_ARG_ENABLE([dvdcss],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
390 [AS_HELP_STRING([--enable-dvdcss],
391 [enable DVDCSS support (default is yes)])],
392 [use_dvdcss=$enableval],
393 [use_dvdcss=yes])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
394
395 AC_ARG_ENABLE([mid],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
396 [AS_HELP_STRING([--enable-mid],
397 [enable MID support (default is no)])],
398 [use_mid=$enableval],
399 [use_mid=no])
400
4c26740 Applied #9200 - Thanks openelec.tv for the contribution!
topfs2 authored
401 AC_ARG_ENABLE([hal],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
402 [AS_HELP_STRING([--disable-hal],
403 [disable HAL support (default is enabled if hal and hal-storage is found)])],
404 [use_hal=$enableval],
405 [use_hal=yes])
406
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
407 AC_ARG_ENABLE([avahi],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
408 [AS_HELP_STRING([--disable-avahi],
409 [disable Avahi support (default is enabled if libavahi-common and libavahi-client is found)])],
410 [use_avahi=$enableval],
411 [use_avahi=yes])
412
e72e749 added: [LINUX/OSX] "--disable-non-free" configure option to disable c…
althekiller authored
413 AC_ARG_ENABLE([non-free],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
414 [AS_HELP_STRING([--disable-non-free],
415 [disable componentents with non-compliant licenses])],
416 [use_nonfree=$enableval],
417 [use_nonfree=yes])
418
ab807a5 changed: Make ASAP codec build optional (default off)
althekiller authored
419 AC_ARG_ENABLE([asap-codec],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
420 [AS_HELP_STRING([--enable-asap-codec],
421 [enable ASAP ADPCM support])],
422 [use_asap=$enableval],
423 [use_asap=no])
424
2d79579 @Schischu Allow compiling without mysql dependency (--disable-mysql).
Schischu authored
425 AC_ARG_ENABLE([mysql],
426 [AS_HELP_STRING([--disable-mysql],
427 [disable mysql])],
428 [use_mysql=$enableval],
429 [use_mysql=yes])
430
c6771db Merge commit 'origin/jsonrpc' into trunk
topfs2 authored
431 AC_ARG_ENABLE([webserver],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
432 [AS_HELP_STRING([--disable-webserver],
433 [disable webserver])],
434 [use_webserver=$enableval],
435 [use_webserver=yes])
436
60cac85 Added a configure option --disable-optical-drive
topfs2 authored
437 AC_ARG_ENABLE([optical-drive],
438 [AS_HELP_STRING([--disable-optical-drive],
439 [disable optical drive])],
440 [use_optical_drive=$enableval],
441 [use_optical_drive=yes])
442
8491e90 added: support for using libbluray to play bdmv files (index.bdmv or …
elupus authored
443 AC_ARG_ENABLE([libbluray],
444 [AS_HELP_STRING([--enable-libbluray],
445 [enable libbluray support])],
446 [use_libbluray=$enableval],
447 [use_libbluray=auto])
448
be61ad9 @davilla added configure arg to enable/disable texturepacker
davilla authored
449 AC_ARG_ENABLE([texturepacker],
450 [AS_HELP_STRING([--enable-texturepacker],
451 [enable texturepacker support (default is yes)])],
452 [use_texturepacker=$enableval],
453 [use_texturepacker=auto])
454
57f6ea5 added: configure option for specifying default LIRC device
anssih authored
455 AC_ARG_WITH([lirc-device],
456 [AS_HELP_STRING([--with-lirc-device=file],
457 [specify the default LIRC device (default is /dev/lircd)])],
458 [lirc_device=$withval],
459 [lirc_device=/dev/lircd])
460 AC_DEFINE_UNQUOTED([LIRC_DEVICE], ["$lirc_device"], [Default LIRC device])
461
034236b @opdenkamp Squashed original peripherals PR #383
opdenkamp authored
462 AC_ARG_ENABLE([udev],
463 [AS_HELP_STRING([--enable-udev],
1ac45d8 @opdenkamp cec: added support for the Pulse-Eight CEC Adaptor. split up linux/Pe…
opdenkamp authored
464 [enable udev support (default is auto)])],
465 [use_libudev=$enableval],
466 [use_libudev=auto])
034236b @opdenkamp Squashed original peripherals PR #383
opdenkamp authored
467
468 AC_ARG_ENABLE([libusb],
469 [AS_HELP_STRING([--enable-libusb],
1ac45d8 @opdenkamp cec: added support for the Pulse-Eight CEC Adaptor. split up linux/Pe…
opdenkamp authored
470 [enable libusb support (default is auto)])],
034236b @opdenkamp Squashed original peripherals PR #383
opdenkamp authored
471 [use_libusb=$enableval],
1ac45d8 @opdenkamp cec: added support for the Pulse-Eight CEC Adaptor. split up linux/Pe…
opdenkamp authored
472 [use_libusb=auto])
473
474 AC_ARG_ENABLE([libcec],
475 [AS_HELP_STRING([--enable-libcec],
3a0c3c0 @davilla changed libcec to be dyloaded like others, also change lib/libcec/Mak…
davilla authored
476 [enable libcec support (default is auto)])],
1ac45d8 @opdenkamp cec: added support for the Pulse-Eight CEC Adaptor. split up linux/Pe…
opdenkamp authored
477 [use_libcec=$enableval],
3a0c3c0 @davilla changed libcec to be dyloaded like others, also change lib/libcec/Mak…
davilla authored
478 [use_libcec=auto])
034236b @opdenkamp Squashed original peripherals PR #383
opdenkamp authored
479
9a6940b changed: make mp3lame and vorbisenc optional
spiff authored
480 AC_ARG_ENABLE([libmp3lame],
481 [AS_HELP_STRING([--enable-libmp3lame],
482 [enable lame mp3 encoder support (default is auto)])],
483 [use_libmp3lame=$enableval],
484 [use_libmp3lame=auto])
485
486 AC_ARG_ENABLE([vorbisenc],
487 [AS_HELP_STRING([--enable-libvorbisenc],
488 [enable vorbis encoder support (default is auto)])],
489 [use_libvorbisenc=$enableval],
490 [use_libvorbisenc=auto])
491
f439ea9 added: link to libcap on linux
bobo1on1 authored
492 AC_ARG_ENABLE([libcap],
493 [AS_HELP_STRING([--enable-libcap],
494 [enable libcap support (default is auto)])],
495 [use_libcap=$enableval],
496 [use_libcap=auto])
497
bc77019 @davilla [droid] add additional player selection support
davilla authored
498 AC_ARG_ENABLE([player],
499 [AS_HELP_STRING([--enable-player],
6b37a4c @huceke [rbp] added raspberrypi support to our configure system
huceke authored
500 [enable additional players from a list of comma separated names, (default is none, choices are amlplayer, omxplayer)])],
bc77019 @davilla [droid] add additional player selection support
davilla authored
501 [add_players=$enableval],
502 [add_players=no])
503
ec9ed53 @amejia1 [GSOC] Have the testsuite built when the 'check' target is invoked.
amejia1 authored
504 AC_ARG_ENABLE([gtest],
505 [AS_HELP_STRING([--enable-gtest],
506 [configure Google Test Framework (default is no)])],
507 [configure_gtest=$enableval],
508 [configure_gtest=no])
509
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
510 ### External libraries options
511 AC_ARG_ENABLE([external-libraries],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
512 [AS_HELP_STRING([--enable-external-libraries],
513 [enable use of all supported external libraries (default is no) 'Linux only'])],
514 [use_external_libraries=$enableval],
515 [use_external_libraries=no])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
516
517 AC_ARG_ENABLE([external-ffmpeg],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
518 [AS_HELP_STRING([--enable-external-ffmpeg],
519 [enable use of external ffmpeg libraries (default is no) 'Linux only'])],
520 [use_external_ffmpeg=$enableval],
521 [use_external_ffmpeg=$use_external_libraries])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
522
523 ### End of external library options
b484eb7 @davilla [osx] changed, configure and makefiles to support new osx build system
davilla authored
524
525 if test "x$host_vendor" != "xapple"; then
526 DEFAULT_COMPILE_FLAGS="-fPIC -DPIC -D_REENTRANT"
13b947d fixed: OSX clean up passing of C/CXXFLAGS to subproject configures
althekiller authored
527 DEFAULT_COMPILE_FLAGS="$DEFAULT_COMPILE_FLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
528 fi
b484eb7 @davilla [osx] changed, configure and makefiles to support new osx build system
davilla authored
529
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
530 # Checks for programs.
531 PASSED_CXXFLAGS=$CXXFLAGS # Hack to override autoconf default values
532 AC_PROG_CXX
5db3652 fixed: POSIX feature test macros should be passed to all of the crap …
althekiller authored
533 CXXFLAGS="$PASSED_CXXFLAGS $DEFAULT_COMPILE_FLAGS"
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
534 PASSED_CFLAGS=$CFLAGS # Hack to override autoconf default values
535 AC_PROG_CC
8792d51 fixed: added AC_PROG_LIBTOOL macro in addition to r32695
vdrfan authored
536 AC_PROG_LIBTOOL
5db3652 fixed: POSIX feature test macros should be passed to all of the crap …
althekiller authored
537 CFLAGS="$PASSED_CFLAGS $DEFAULT_COMPILE_FLAGS"
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
538 AC_PROG_AWK
539 AC_PROG_LN_S
540 AC_PROG_MAKE_SET
9650b62 set a default $MAKE to make
Fneufneu authored
541 MAKE="${MAKE:-make}"
d6cf2c6 [droid] use toolchain objdump if necessary
Cory Fields authored
542 OBJDUMP="${OBJDUMP:-objdump}"
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
543
86a365a @Memphiz [droid] - fix compilation of ffmpeg on darwin. The target_os option f…
Memphiz authored
544 # ffmpeg needs the output of uname -s (e.x. linux, darwin) for the target_os
545 # there is no autoconf variable which will give
546 # the correct output format when doing cross compilation
547 # so we have to use our own var here
548 # defaults to the build side target_os
549 # and should be overridden for cross below (see android)
550 ffmpeg_target_os=$(tolower $(uname -s))
551
81c8bd0 move host testing so we can setup use_arch/use_cpu defaults for arm
davilla authored
552 # host detection and setup
553 case $host in
5426043 [droid] basic android configure changes
Cory Fields authored
554 i*86*-android-linux-gnu*)
555 target_platform=target_android
556 ARCH="i486-linux"
557 use_arch="x86"
558 use_cpu="i686"
559 ffmpeg_target_os=linux
560 ;;
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
561 i*86*-linux-gnu*)
562 ARCH="i486-linux"
6a0ee40 @davilla [fixed, i486 is now powerpc and a smack to the cp monster
davilla authored
563 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
564 ;;
565 x86_64-*-linux-gnu*)
566 ARCH="x86_64-linux"
b7f58ad @davilla add TARGET_xxx into configure.in
davilla authored
567 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
568 ;;
2e48077 add freebsd support in configure.in
Fneufneu authored
569 i386-*-freebsd*)
570 ARCH="x86-freebsd"
571 MAKE="gmake"
b7e7d6e [FreeBSD] force external ffmpeg
Fneufneu authored
572 use_external_ffmpeg="yes"
566364e [FreeBSD] use TARGET_FREEBSD
Fneufneu authored
573 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_FREEBSD -D_LINUX")
2e48077 add freebsd support in configure.in
Fneufneu authored
574 ;;
575 amd64-*-freebsd*)
576 ARCH="x86_64-freebsd"
577 MAKE="gmake"
b7e7d6e [FreeBSD] force external ffmpeg
Fneufneu authored
578 use_external_ffmpeg="yes"
566364e [FreeBSD] use TARGET_FREEBSD
Fneufneu authored
579 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_FREEBSD -D_LINUX")
2e48077 add freebsd support in configure.in
Fneufneu authored
580 ;;
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
581 arm-apple-darwin*)
582 use_joystick=no
eb61ba8 @davilla [ios] fixed, ffmpeg used .text symbol relocation in neon asm code, th…
davilla authored
583 use_neon=yes
fbcda23 @davilla [ios] fixed, mystery failure in which configure (via pkgconfig) think…
davilla authored
584 use_libcec=no
6912252 @davilla [ios] disable crystalhd, we do not have any ios devices with mini pci…
davilla authored
585 use_crystalhd=no
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
586 use_vdadecoder=no
587 use_vtbdecoder=yes
b30c432 [osx/ios] refactor ios depends build system to use config.site
beenje authored
588 use_optical_drive=no
589 use_dvdcss=no
590 use_gles=yes
591 use_cpu=cortex-a8
054a227 @davilla [ios] fixed buildside texturepacker for ios
davilla authored
592 use_texturepacker_native=yes
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
593 ARCH="arm-osx"
b30c432 [osx/ios] refactor ios depends build system to use config.site
beenje authored
594 use_arch="arm"
fb23c8f @davilla [ios] fixed, configure is bash so you need to quote strings
davilla authored
595 PYTHON_VERSION="2.6"
596 PYTHON_LDFLAGS="-L${prefix}/lib -lpython2.6"
597 PYTHON_CPPFLAGS="-I${prefix}/include/python2.6"
598 PYTHON_SITE_PKG="${prefix}/lib/python2.6/site-packages"
167a20b @davilla [ios/atv2] fixed build breakage
davilla authored
599 PYTHON_NOVERSIONCHECK="no-check"
b7f58ad @davilla add TARGET_xxx into configure.in
davilla authored
600 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_IOS -D_LINUX")
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
601 ;;
2c3c886 @davilla [osx/ios] 1) allow x86_86-apple-darwin, 2) ffmpeg does not like llvm-…
davilla authored
602 *86*-apple-darwin*)
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
603 use_joystick=no
604 use_vtbdecoder=no
8305a84 @davilla added native build option of TexturePacker
davilla authored
605 use_texturepacker_native=yes
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
606 ARCH="x86-osx"
b7f58ad @davilla add TARGET_xxx into configure.in
davilla authored
607 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_OSX -D_LINUX")
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
608 ;;
609 powerpc-apple-darwin*)
9dcd939 [osx] fixed powerpc-osx build
beenje authored
610 use_joystick=no
611 use_vdadecoder=no
612 use_vtbdecoder=no
613 use_crystalhd=no
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
614 ARCH="powerpc-osx"
d493b3b [osx] cross-compile powerpc-osx
beenje authored
615 use_arch="ppc"
b7f58ad @davilla add TARGET_xxx into configure.in
davilla authored
616 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_OSX -D_LINUX")
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
617 ;;
618 powerpc-*-linux-gnu*)
619 ARCH="powerpc-linux"
b7f58ad @davilla add TARGET_xxx into configure.in
davilla authored
620 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_POWERPC")
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
621 ;;
622 powerpc64-*-linux-gnu*)
623 ARCH="powerpc64-linux"
b7f58ad @davilla add TARGET_xxx into configure.in
davilla authored
624 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_POWERPC64")
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
625 ;;
626 arm*-*-linux-gnu*)
be61ad9 @davilla added configure arg to enable/disable texturepacker
davilla authored
627 use_texturepacker=no
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
628 ARCH="arm"
b30c432 [osx/ios] refactor ios depends build system to use config.site
beenje authored
629 use_arch="arm"
bc85932 @davilla [arm] remove -D_ARMEL and usage. It was ancient debug stuff that is n…
davilla authored
630 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
631 ;;
5426043 [droid] basic android configure changes
Cory Fields authored
632 arm*-*linux-android*)
633 target_platform=target_android
634 use_arch="arm"
635 use_cpu=cortex-a9
636 ARCH="arm"
637 ffmpeg_target_os=linux
638 ;;
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
639 *)
640 AC_MSG_ERROR(unsupported host ($host))
81c8bd0 move host testing so we can setup use_arch/use_cpu defaults for arm
davilla authored
641 esac
642 AC_SUBST([ARCH])
b484eb7 @davilla [osx] changed, configure and makefiles to support new osx build system
davilla authored
643
1fda24f @Memphiz [droid] - last puzzle for making crosscompilation on darwin possible …
Memphiz authored
644
645 check_sdl_arch=[`file $USE_TEXTUREPACKER_NATIVE_ROOT/lib/libSDL_image.dylib | awk '{print $NF}'`]
646 if test "x$check_sdl_arch" = "xi386" ; then
647 DARWIN_NATIVE_ARCH=-m32
648 elif test "x$check_sdl_arch" = "xx86_64" ; then
649 DARWIN_NATIVE_ARCH=-m64
650 fi
651 AC_SUBST([DARWIN_NATIVE_ARCH])
652
5426043 [droid] basic android configure changes
Cory Fields authored
653 if test "$target_platform" = "target_android" ; then
654 USE_ANDROID=1
655 use_texturepacker_native=yes
656 webserver_checkdepends=yes
657 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -DTARGET_ANDROID")
658 CFLAGS="$CFLAGS -Wno-psabi"
659 CXXFLAGS="$CXXFLAGS -Wno-psabi"
660 AC_DEFINE(HAS_EGLGLES, [1], [Define if supporting EGL based GLES Framebuffer])
661 fi
662
6b37a4c @huceke [rbp] added raspberrypi support to our configure system
huceke authored
663 case $use_platform in
664 raspberry-pi)
665 target_platform=target_raspberry_pi
666 use_neon=no
667 use_texturepacker=yes
668 use_texturepacker_native=yes
669 use_arch="arm"
670 use_cpu=arm1176jzf-s
671 use_hardcoded_tables="yes"
63fb0c5 @huceke [rbp] changed dissable alsa as well in configure.
huceke authored
672 use_alsa="no"
6b37a4c @huceke [rbp] added raspberrypi support to our configure system
huceke authored
673 USE_TEXTUREPACKER_NATIVE_ROOT="$TEXTUREPACKER_NATIVE_ROOT"
674 ARCH="arm"
675 AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_ARMEL -DTARGET_RASPBERRY_PI")
676 AC_DEFINE(HAS_EGLGLES, [1], [Define if supporting EGL based GLES Framebuffer])
677 USE_OMXLIB=1; AC_DEFINE([HAVE_OMXLIB],[1],["Define to 1 if OMX libs is enabled"])
678 CFLAGS="$CFLAGS"
679 CXXFLAGS="$CXXFLAGS"
177bc0b @huceke [rbp] fixed crash in thumbnail extraction. disable all ffmpeg cpu opt…
huceke authored
680 ffmpeg_target_os=linux
6b37a4c @huceke [rbp] added raspberrypi support to our configure system
huceke authored
681 ;;
682 esac
683
bc14f0c libxbmc: option for shared libxbmc.so
theuni authored
684 if test "$build_shared_lib" = "yes"; then
685 final_message="$final_message\n Shared lib\tYes"
686 AC_SUBST(USE_LIBXBMC,1)
687 fi
688
6b37a4c @huceke [rbp] added raspberrypi support to our configure system
huceke authored
689
b484eb7 @davilla [osx] changed, configure and makefiles to support new osx build system
davilla authored
690 # platform debug flags
4ef8f5b fixed: debug and optim cflags should be passed to all lib tests and c…
althekiller authored
691 if test "$use_debug" = "yes"; then
692 final_message="$final_message\n Debugging:\tYes"
693 if test "$use_profiling" = "yes"; then
694 final_message="$final_message\n Profiling:\tYes"
695 DEBUG_FLAGS="-g -pg -D_DEBUG -Wall"
696 else
697 final_message="$final_message\n Profiling:\tNo"
698 DEBUG_FLAGS="-g -D_DEBUG -Wall"
699 fi
700 else
701 final_message="$final_message\n Debugging:\tNo"
702 if test "$use_profiling" = "yes"; then
703 final_message="$final_message\n Profiling:\tYes"
704 DEBUG_FLAGS="-pg -DNDEBUG=1"
705 else
706 final_message="$final_message\n Profiling:\tNo"
707 DEBUG_FLAGS="-DNDEBUG=1"
708 fi
709 fi
710 CFLAGS="$CFLAGS $DEBUG_FLAGS"
711 CXXFLAGS="$CXXFLAGS $DEBUG_FLAGS"
712
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
713
4ef8f5b fixed: debug and optim cflags should be passed to all lib tests and c…
althekiller authored
714 if test "$use_optimizations" = "yes"; then
715 final_message="$final_message\n Optimization:\tYes"
177bc0b @huceke [rbp] fixed crash in thumbnail extraction. disable all ffmpeg cpu opt…
huceke authored
716 if test "$target_platform" = "target_raspberry_pi"; then
717 CXXFLAGS="$CXXFLAGS"
718 CFLAGS="$CFLAGS"
719 else
720 CXXFLAGS="$CXXFLAGS -O2"
721 CFLAGS="$CFLAGS -O2"
722 fi
4ef8f5b fixed: debug and optim cflags should be passed to all lib tests and c…
althekiller authored
723 else
724 final_message="$final_message\n Optimization:\tNo"
725 fi
726
81c8bd0 move host testing so we can setup use_arch/use_cpu defaults for arm
davilla authored
727
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
728 # platform specific flags
bc64f12 move CFLAGS and CXXFLAGS in right place
Fneufneu authored
729 if echo "$ARCH" | grep -q "freebsd" ; then
ed66d68 respect $LOCALBASE from FreeBSD build system
Fneufneu authored
730 LOCALBASE="${LOCALBASE:-/usr/local}"
731 CFLAGS="$CFLAGS -I$LOCALBASE/include"
732 CXXFLAGS="$CXXFLAGS -I$LOCALBASE/include"
733 CPPFLAGS="$CPPFLAGS -I$LOCALBASE/include"
734 LDFLAGS="$LDFLAGS -L$LOCALBASE/lib"
bc64f12 move CFLAGS and CXXFLAGS in right place
Fneufneu authored
735 fi
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
736 if test "$host_vendor" = "apple" ; then
737 # standard xbmc paths
738 INCLUDES="$INCLUDES -I\$(abs_top_srcdir)/xbmc/osx"
b30c432 [osx/ios] refactor ios depends build system to use config.site
beenje authored
739 if test "$use_arch" != "arm"; then
26b6e0a @davilla [osx] fixed make from command-line
davilla authored
740 LIBS="$LIBS -framework ApplicationServices"
741 LIBS="$LIBS -framework AudioUnit"
742 LIBS="$LIBS -framework AudioToolbox"
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
743 LIBS="$LIBS -framework Cocoa"
744 LIBS="$LIBS -framework CoreAudio"
745 LIBS="$LIBS -framework CoreVideo"
26b6e0a @davilla [osx] fixed make from command-line
davilla authored
746 LIBS="$LIBS -framework CoreServices"
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
747 LIBS="$LIBS -framework CoreFoundation"
748 LIBS="$LIBS -framework DiskArbitration"
26b6e0a @davilla [osx] fixed make from command-line
davilla authored
749 LIBS="$LIBS -framework IOKit"
750 LIBS="$LIBS -framework IOSurface"
751 LIBS="$LIBS -framework QuartzCore"
d43bbce @alcoheca [UPnP] update Platinum/Neptune to 0.6.9.1
alcoheca authored
752 LIBS="$LIBS -framework SystemConfiguration"
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
753 fi
26b6e0a @davilla [osx] fixed make from command-line
davilla authored
754 USE_EXTERNAL_FFMPEG=1
6b37a4c @huceke [rbp] added raspberrypi support to our configure system
huceke authored
755 elif test "$target_platform" = "target_raspberry_pi"; then
756 ARCH="arm"
757 use_arch="arm"
b30c432 [osx/ios] refactor ios depends build system to use config.site
beenje authored
758 elif test "$use_arch" = "arm"; then
c208cc9 Don't hard code arm compiler flags so that we can build for both arme…
Avik Sil authored
759 CFLAGS="$CFLAGS -mno-apcs-stack-check"
760 CXXFLAGS="$CXXFLAGS -mno-apcs-stack-check"
761 FFMPEG_EXTRACFLAGS=""
faa95a5 [arm] fixed arm build so --enable-gles --enable-tegra work correctly
davilla authored
762 if test "$use_tegra" = "yes"; then
973121c [arm] choose armv7a/cortex-a9/vfpv3-d16 vs armv6/cortex-a8 for tegra2…
davilla authored
763 # Compile for ARMv7a architecture, need to test gcc for vfpv3-d16 support
764 SAVE_CFLAGS="$CFLAGS"
765 CFLAGS="-mfpu=vfpv3-d16"
766 AC_COMPILE_IFELSE(
2b32c07 @manio Fix autoconf warnings on newer versions:
manio authored
767 [AC_LANG_SOURCE([int foo;])],
9d031a1 [arm] silence warnings about 'mangling of 'va_list' has changed in GC…
davilla authored
768 [ CFLAGS="$SAVE_CFLAGS -Wno-psabi -Wa,-march=armv7a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mthumb-interwork"
769 CXXFLAGS="$CXXFLAGS -Wno-psabi -Wa,-march=armv7a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mthumb-interwork"
79cceb5 @davilla fixes 12113, += syntax in configure.in breaks configure script
davilla authored
770 FFMPEG_EXTRACFLAGS="$FFMPEG_EXTRACFLAGS -mtune=cortex-a9 -mfpu=vfpv3-d16"
6ac13de [arm] setup use_arch/use_cpu for arm
davilla authored
771 use_cpu=cortex-a9],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
772 [ CFLAGS="$SAVE_CFLAGS -Wa,-march=armv6 -mtune=cortex-a8 -mthumb-interwork"
6ac13de [arm] setup use_arch/use_cpu for arm
davilla authored
773 CXXFLAGS="$CXXFLAGS -Wa,-march=armv6 -mtune=cortex-a8 -mthumb-interwork"
774 use_cpu=cortex-a8])
07e5742 [arm] merge arm-camelot into trunk, thanks to mcgeagh for all his har…
davilla authored
775 else
8f95324 @davilla changed, add --enable-neon configure switch to pass into ffmpeg. defa…
davilla authored
776 if test "$use_neon" = "yes"; then
79cceb5 @davilla fixes 12113, += syntax in configure.in breaks configure script
davilla authored
777 CFLAGS="$CFLAGS -mfpu=neon -mvectorize-with-neon-quad"
778 CXXFLAGS="$CXXFLAGS -mfpu=neon -mvectorize-with-neon-quad"
779 FFMPEG_EXTRACFLAGS="$FFMPEG_EXTRACFLAGS -mfpu=neon"
8f95324 @davilla changed, add --enable-neon configure switch to pass into ffmpeg. defa…
davilla authored
780 fi
07e5742 [arm] merge arm-camelot into trunk, thanks to mcgeagh for all his har…
davilla authored
781 fi
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
782 fi
783
6341fb4 fixed: configure when some libraries are not in runtime-searched dire…
anssih authored
784 # Checks for library functions.
785 AC_FUNC_ALLOCA
786 AC_FUNC_CHOWN
787 AC_FUNC_CLOSEDIR_VOID
788 AC_FUNC_ERROR_AT_LINE
789 AC_FUNC_FSEEKO
790 AC_PROG_GCC_TRADITIONAL
791 AC_FUNC_LSTAT
792 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
793 AC_FUNC_MEMCMP
794 AC_FUNC_MKTIME
795 AC_FUNC_MMAP
796 # Boxee is apparently having compile problems
797 # if HAVE_REALLOC is defined. Sort this later.
798 #AC_FUNC_REALLOC
799 AC_FUNC_SELECT_ARGTYPES
800 AC_FUNC_SETVBUF_REVERSED
801 AC_TYPE_SIGNAL
802 AC_FUNC_STAT
803 AC_FUNC_STRCOLL
804 AC_FUNC_STRFTIME
805 AC_FUNC_STRTOD
806 AC_FUNC_UTIME_NULL
807 AC_FUNC_VPRINTF
808 AC_CHECK_FUNCS([atexit dup2 fdatasync floor fs_stat_dev ftime ftruncate getcwd gethostbyaddr gethostbyname gethostname getpagesize getpass gettimeofday inet_ntoa lchown localeconv memchr memmove memset mkdir modf munmap pow rmdir select setenv setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strspn strstr strtol strtoul sysinfo tzset utime])
809
810 # Check for various sizes
811 AC_CHECK_SIZEOF([int])
812 AC_CHECK_SIZEOF([size_t])
813
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
814 # Add top source directory for all builds so we can use config.h
815 INCLUDES="$INCLUDES -I\$(abs_top_srcdir)"
816
9d24b86 detect inotify availability
Fneufneu authored
817 # Check inotify availability
818 AC_CHECK_HEADER([sys/inotify.h], AC_DEFINE([HAVE_INOTIFY],[1],[Define if we have inotify]),)
819
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
820 # Checks for boost headers using CXX instead of CC
821 AC_LANG_PUSH([C++])
822 AC_CHECK_HEADER([boost/shared_ptr.hpp],, AC_MSG_ERROR($missing_library))
823 AC_LANG_POP([C++])
824
29961e9 [droid] rearrange configure for static linking
theuni authored
825 # Python
826 if test -z "$PYTHON_NOVERSIONCHECK"; then
827 AX_PYTHON_DEVEL([>= 2.4])
828 PYTHON_VERSION=$ac_python_version
829 fi
830
831 if test -z "$PYTHON_VERSION"; then
832 AC_MSG_ERROR([Can't find a Python version.])
833 else
834 LIBS="$LIBS $PYTHON_LDFLAGS"
835 AC_MSG_NOTICE([Using Python $PYTHON_VERSION])
836 fi
837
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
838 # Checks for platforms libraries.
6695a08 [arm] add missing --enable-gles
davilla authored
839 if test "$use_gles" = "yes"; then
64f28b3 changed: set use_gl to no if use_gles is enabled
theuni authored
840 use_gl="no"
6695a08 [arm] add missing --enable-gles
davilla authored
841 # GLES overwrites GL if both set to yes.
cd688e7 @davilla [osx/ios] fix opengl/openegl detect and remove forcing it in system.h
davilla authored
842 if test "$host_vendor" = "apple" ; then
843 AC_DEFINE([HAVE_LIBEGL],[1],["Define to 1 if you have the `EGL' library (-lEGL)."])
844 AC_DEFINE([HAVE_LIBGLESV2],[1],["Define to 1 if you have the `GLESv2' library (-lGLESv2)."])
845 AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
95fa48f @davilla [arm] fixed, restore EGL/GLESv2 checks
davilla authored
846 else
6b37a4c @huceke [rbp] added raspberrypi support to our configure system
huceke authored
847 if test "$target_platform" = "target_raspberry_pi"; then
848 AC_DEFINE([HAVE_LIBEGL],[1],["Define to 1 if you have the `EGL' library (-lEGL)."])
849 AC_DEFINE([HAVE_LIBGLESV2],[1],["Define to 1 if you have the `GLESv2' library (-lGLESv2)."])
850 AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
851 LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm"
852 else
853 AC_CHECK_LIB([EGL], [main],, AC_MSG_ERROR($missing_library))
854 AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library))
855 fi
95fa48f @davilla [arm] fixed, restore EGL/GLESv2 checks
davilla authored
856 fi
6695a08 [arm] add missing --enable-gles
davilla authored
857 else
858 if test "$use_gl" = "yes"; then
859 if test "$host_vendor" = "apple" ; then
cd688e7 @davilla [osx/ios] fix opengl/openegl detect and remove forcing it in system.h
davilla authored
860 # linking to OpenGL.framework instead of libGL, libGLU so AC_CHECK_LIB will fail
2035018 @davilla refactor configure to combine linux and darwin sub-configures
davilla authored
861 LIBS="$LIBS -framework OpenGL"
cd688e7 @davilla [osx/ios] fix opengl/openegl detect and remove forcing it in system.h
davilla authored
862 AC_DEFINE([HAVE_LIBGL],[1],["Define to 1 if you have the `GL' library (-lGL)."])
863 AC_MSG_RESULT(== WARNING: OpenGL support is assumed.)
864 AC_DEFINE([HAVE_LIBGLU],[1],["Define to 1 if you have the `GLU' library (-lGLU)."])
865 AC_MSG_RESULT(== WARNING: OpenGLU support is assumed.)
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
866 AC_CHECK_LIB([GLEW],[main],, AC_MSG_ERROR($missing_library))
6695a08 [arm] add missing --enable-gles
davilla authored
867 else
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
868 AC_CHECK_LIB([GL], [main],, AC_MSG_ERROR($missing_library))
869 AC_CHECK_LIB([GLEW],[main],, AC_MSG_ERROR($missing_library))
870 AC_CHECK_LIB([GLU], [main],, AC_MSG_ERROR($missing_library))
6695a08 [arm] add missing --enable-gles
davilla authored
871 fi
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
872 else
6695a08 [arm] add missing --enable-gles
davilla authored
873 AC_MSG_RESULT(== WARNING: OpenGL support is disabled. XBMC will run VERY slow. ==)
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
874 AC_CHECK_LIB([SDL_gfx],[main])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
875 fi
876 fi
877
2f71258 cosmetic, these are libs common to both linux and osx, replace indepe…
davilla authored
878 # platform common libraries
2d79579 @Schischu Allow compiling without mysql dependency (--disable-mysql).
Schischu authored
879 if test "$use_mysql" = "yes"; then
3b27229 [droid] fixup mysql detection so that MYSQL_CONFIG can be overridden
theuni authored
880 AC_PATH_PROG(MYSQL_CONFIG, mysql_config,"no")
881 if test "x$MYSQL_CONFIG" != "xno"; then
2d79579 @Schischu Allow compiling without mysql dependency (--disable-mysql).
Schischu authored
882 AC_DEFINE([HAVE_MYSQL],[1],["Define to 1 if you have the `mysql' library (-lmysqlclient)."])
3b27229 [droid] fixup mysql detection so that MYSQL_CONFIG can be overridden
theuni authored
883 INCLUDES="$INCLUDES `$MYSQL_CONFIG --include`"
884 MYSQL_LIBS=`$MYSQL_CONFIG --libs`
2d79579 @Schischu Allow compiling without mysql dependency (--disable-mysql).
Schischu authored
885 LIBS="$LIBS $MYSQL_LIBS"
886 AC_SUBST(MYSQL_LIBS)
887 else
888 AC_MSG_ERROR($missing_program)
889 fi
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
890 fi
8d3e560 no need to static link these, dyload them on demand like we do on the…
Scott Davilla authored
891 AC_CHECK_HEADER([ass/ass.h],, AC_MSG_ERROR($missing_library))
892 AC_CHECK_HEADER([mpeg2dec/mpeg2.h],, AC_MSG_ERROR($missing_library))
893 AC_CHECK_HEADER([mpeg2dec/mpeg2convert.h],, AC_MSG_ERROR($missing_library),
894 AC_INCLUDES_DEFAULT()
895 [#include <mpeg2dec/mpeg2.h>])
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
896 AC_CHECK_HEADER([mad.h],, AC_MSG_ERROR($missing_library))
897 AC_CHECK_HEADER([jpeglib.h],, AC_MSG_ERROR($missing_library))
898 AC_CHECK_HEADER([samplerate.h],, AC_MSG_ERROR($missing_library))
e7d28c5 updated: configure.in and README.linux
AlTheKiller authored
899 AC_CHECK_HEADER([ogg/ogg.h],, AC_MSG_ERROR($missing_library))
900 AC_CHECK_HEADER([vorbis/vorbisfile.h],, AC_MSG_ERROR($missing_library))
4b93a65 @davilla [osx/ios] changed libmodplug, libmad, libogg, libvorbis, libvorbisfil…
davilla authored
901 AC_CHECK_HEADER([libmodplug/modplug.h],, AC_MSG_ERROR($missing_library))
8d3e560 no need to static link these, dyload them on demand like we do on the…
Scott Davilla authored
902 AC_CHECK_HEADER([curl/curl.h],, AC_MSG_ERROR($missing_library))
5484610 @davilla [osx/ios] changed from using internal build of libflac to xxx-depends…
davilla authored
903 AC_CHECK_HEADER([FLAC/stream_decoder.h],, AC_MSG_ERROR($missing_library))
8541cc3 Added a utility to set the ssl library's MT hooks.
Jim Carroll authored
904
905 # we need to check for the header because if it exists we set the openssl
906 # and gcrypt MT callback hooks. This is mostly so that libcurl operates
907 # in MT manner correctly.
908 AC_CHECK_HEADER([openssl/crypto.h], AC_DEFINE([HAVE_OPENSSL],[1],[Define if we have openssl]),)
909 AC_CHECK_HEADER([gcrypt.h], gcrypt_headers_available=yes,gcrypt_headers_available=no)
910 if test "$gcrypt_headers_available" = "yes"; then
911 # if we have the headers then we must have the lib
2a2e7e8 [droid] libgcrypt needs libgpg-error
Cory Fields authored
912 AC_CHECK_LIB([gpg-error],[main],, AC_MSG_ERROR($missing_library))
8541cc3 Added a utility to set the ssl library's MT hooks.
Jim Carroll authored
913 AC_CHECK_LIB([gcrypt],[gcry_control],, AC_MSG_ERROR($missing_library))
914 AC_DEFINE([HAVE_GCRYPT],[1],[Define if we have gcrypt])
915 fi
916
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
917 AC_CHECK_LIB([bz2], [main],, AC_MSG_ERROR($missing_library))
918 AC_CHECK_LIB([jpeg], [main],, AC_MSG_ERROR($missing_library)) # check for cximage
c4cd668 @davilla [osx/ios/linux] cleanup configure and xbmc/DllPaths_generated, remove…
davilla authored
919 AC_CHECK_LIB([tiff], [main],, AC_MSG_ERROR($missing_library))
2d5ecf1 on FreeBSD pthread library are linked with -pthread
Fneufneu authored
920 if echo "$ARCH" | grep -q freebsd; then
921 AC_CHECK_LIB([pthread], [main],LIBS="-pthread $LIBS", AC_MSG_ERROR($missing_library))
922 else
c86c576 [droid] pthread support is included in libc on android
Cory Fields authored
923 if test "$target_platform" != "target_android" ; then
924 AC_CHECK_LIB([pthread], [main],, AC_MSG_ERROR($missing_library))
925 fi
2d5ecf1 on FreeBSD pthread library are linked with -pthread
Fneufneu authored
926 fi
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
927 AC_CHECK_LIB([lzo2], [main],, AC_MSG_ERROR($missing_library))
928 AC_CHECK_LIB([z], [main],, AC_MSG_ERROR($missing_library))
ccabe6e Revert "Removing unnecessary dependency on libssl and libcrypto."
spiff_ authored
929 AC_CHECK_LIB([crypto], [main],, AC_MSG_ERROR($missing_library))
cd1c959 @davilla fixed, libssl depends on libcrypto so check libcrypto first
davilla authored
930 AC_CHECK_LIB([ssl], [main],, AC_MSG_ERROR($missing_library))
2d79579 @Schischu Allow compiling without mysql dependency (--disable-mysql).
Schischu authored
931 if test "$use_mysql" = "yes"; then
932 AC_CHECK_LIB([mysqlclient], [main],, AC_MSG_ERROR($missing_library))
933 fi
010f74a @elupus added: provide JSON-RPC server over bluetooth on linux aswell
elupus authored
934 AC_CHECK_LIB([bluetooth], [hci_devid],, AC_MSG_RESULT([Could not find suitable version of libbluetooth]))
cca7425 @topfs2 Added check for libyajl to configure
topfs2 authored
935 AC_CHECK_LIB([yajl], [main],, AC_MSG_ERROR($missing_library))
ede300c fixed tinyxml detection
huceke authored
936 AC_CHECK_LIB([tinyxml], [main],, AC_MSG_ERROR($missing_library))
29961e9 [droid] rearrange configure for static linking
theuni authored
937 if test "$target_platform" = "target_android" ; then
938 #android hack for static python. Required to maintain correct linking order.
939 AC_CHECK_LIB([python$PYTHON_VERSION], [main],, AC_MSG_ERROR($missing_library))
ef601e3 [droid] need to manually link in libandroid in case nothing already has
Cory Fields authored
940 AC_CHECK_LIB([android], [main],, AC_MSG_ERROR($missing_library))
29961e9 [droid] rearrange configure for static linking
theuni authored
941 fi
eb4d9f3 changed: Use pkg-config for dependency checks where possible.
AlTheKiller authored
942 PKG_CHECK_MODULES([FRIBIDI], [fribidi],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
943 [INCLUDES="$INCLUDES $FRIBIDI_CFLAGS"; LIBS="$LIBS $FRIBIDI_LIBS"],
944 AC_MSG_ERROR($missing_library))
eb4d9f3 changed: Use pkg-config for dependency checks where possible.
AlTheKiller authored
945 PKG_CHECK_MODULES([SQLITE3], [sqlite3],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
946 [INCLUDES="$INCLUDES $SQLITE3_CFLAGS"; LIBS="$LIBS $SQLITE3_LIBS"],
947 AC_MSG_ERROR($missing_library))
eb4d9f3 changed: Use pkg-config for dependency checks where possible.
AlTheKiller authored
948 PKG_CHECK_MODULES([PNG], [libpng],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
949 [INCLUDES="$INCLUDES $PNG_CFLAGS"; LIBS="$LIBS $PNG_LIBS"],
950 AC_MSG_ERROR($missing_library))
88b2c26 Merge remote branch 'origin/gpl-compat'
ceros7 authored
951 PKG_CHECK_MODULES([PCRECPP], [libpcrecpp],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
952 [INCLUDES="$INCLUDES $PCRECPP_CFLAGS"; LIBS="$LIBS $PCRECPP_LIBS"]; \
953 AC_DEFINE([HAVE_LIBPCRECPP],[1],["Define to 1 if libpcrecpp is installed"]),
954 AC_MSG_ERROR($missing_library))
29961e9 [droid] rearrange configure for static linking
theuni authored
955 PKG_CHECK_MODULES([PCRE], [libpcre],
956 [INCLUDES="$INCLUDES $PCRE_CFLAGS"; LIBS="$LIBS $PCRE_LIBS"]; \
957 AC_DEFINE([HAVE_LIBPCRE],[1],["Define to 1 if libpcre is installed"]),
958 AC_MSG_ERROR($missing_library))
eb4d9f3 changed: Use pkg-config for dependency checks where possible.
AlTheKiller authored
959 PKG_CHECK_MODULES([CDIO], [libcdio],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
960 [INCLUDES="$INCLUDES $CDIO_CFLAGS"; LIBS="$LIBS $CDIO_LIBS"],
961 AC_MSG_ERROR($missing_library))
eb4d9f3 changed: Use pkg-config for dependency checks where possible.
AlTheKiller authored
962 PKG_CHECK_MODULES([SAMPLERATE], [samplerate],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
963 [INCLUDES="$INCLUDES $SAMPLERATE_CFLAGS"; LIBS="$LIBS $SAMPLERATE_LIBS"],
964 AC_MSG_ERROR($missing_library))
eb4d9f3 changed: Use pkg-config for dependency checks where possible.
AlTheKiller authored
965 PKG_CHECK_MODULES([FREETYPE2], [freetype2],
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
966 [INCLUDES="$INCLUDES $FREETYPE2_CFLAGS"; LIBS="$LIBS $FREETYPE2_LIBS"],
967 AC_MSG_ERROR($missing_library))
381b164 @night199uk [tags] Add Makefile and taglib dependency, add taglib to xcode, andro…
night199uk authored
968 PKG_CHECK_MODULES([TAGLIB], [taglib >= 1.8],
969 [INCLUDES="$INCLUDES $TAGLIB_CFLAGS"; LIBS="$LIBS $TAGLIB_LIBS"],
970 AC_MSG_ERROR($missing_library))
8cafd4a fix r23380/r23376 OSX breakage
davilla authored
971
27266c9 [droid] we need libzip
Cory Fields authored
972 if test "$target_platform" = "target_android" ; then
973 PKG_CHECK_MODULES([ZIP], [libzip],
974 [INCLUDES="$INCLUDES $ZIP_CFLAGS"; LIBS="$LIBS $ZIP_LIBS"],
975 AC_MSG_ERROR($missing_library))
976 fi
977
8491e90 added: support for using libbluray to play bdmv files (index.bdmv or …
elupus authored
978 # check for libbluray
979 AS_CASE([x$use_libbluray],
980 [xyes],[
701e82e @davilla fixed, use PKG_CHECK_MODULES to validate the version we need instead …
davilla authored
981 PKG_CHECK_MODULES([LIBBLURAY],[libbluray >= 0.2.1],[use_libbluray="yes"], AC_MSG_ERROR($missing_library))
8491e90 added: support for using libbluray to play bdmv files (index.bdmv or …
elupus authored
982 ],
983 [xauto],[
701e82e @davilla fixed, use PKG_CHECK_MODULES to validate the version we need instead …
davilla authored
984 PKG_CHECK_MODULES([LIBBLURAY],[libbluray >= 0.2.1],[use_libbluray="yes"], [use_libbluray="no"])
8491e90 added: support for using libbluray to play bdmv files (index.bdmv or …
elupus authored
985 ])
986
987 AS_CASE([x$use_libbluray],
988 [xyes],[
989 INCLUDES="$INCLUDES $LIBBLURAY_CFLAGS";
c4cd668 @davilla [osx/ios/linux] cleanup configure and xbmc/DllPaths_generated, remove…
davilla authored
990 XB_FIND_SONAME([BLURAY], [bluray], [use_libbluray])
8491e90 added: support for using libbluray to play bdmv files (index.bdmv or …
elupus authored
991 AC_DEFINE([HAVE_LIBBLURAY], 1, [System has libbluray library])
992 AC_SUBST([HAVE_LIBBLURAY], 1)
993 ],[
994 AC_SUBST([HAVE_LIBBLURAY], 0)
995 ]
996 )
997
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
998 # platform dependent libraries
999 if test "$host_vendor" = "apple" ; then
1000 AC_CHECK_LIB([iconv], [main],, AC_MSG_ERROR($missing_library))
c6e8a8d @davilla [osx] fixed make build and changed xcode to match. Moral... don't mix…
davilla authored
1001 if test "$use_arch" != "arm"; then
1002 AC_CHECK_LIB([SDL], [main],, AC_MSG_ERROR($missing_library))
66eef12 @davilla changed, add ac-define HAVE_SDL and check for it in system.h rather t…
davilla authored
1003 AC_DEFINE([HAVE_SDL],[1],["Define to 1 if using sdl"])
c6e8a8d @davilla [osx] fixed make build and changed xcode to match. Moral... don't mix…
davilla authored
1004 fi
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1005 else
c3c2155 @davilla Handle libdl only being needed on Linux for dlopen, thx abs0
davilla authored
1006 case $host_os in
1007 linux*) AC_CHECK_LIB([dl], [main],, AC_MSG_ERROR($missing_library)) ;;
9435741 [FreeBSD] add a check for libiconv
Fneufneu authored
1008 freebsd*) AC_CHECK_LIB([iconv], [main],, AC_MSG_ERROR($missing_library)) ;;
c3c2155 @davilla Handle libdl only being needed on Linux for dlopen, thx abs0
davilla authored
1009 esac
2ca3ecf libdl and libresolv does not exist and are not needed on FreeBSD
Fneufneu authored
1010 case $host_os in
1011 freebsd*) ;;
2a7072a [droid] skip checking a few more built-in libs
Cory Fields authored
1012 *)
1013 if test "$target_platform" != "target_android" ; then
1014 AC_CHECK_LIB([resolv], [main],, AC_MSG_ERROR($missing_library))
1015 fi
1016 ;;
c3c2155 @davilla Handle libdl only being needed on Linux for dlopen, thx abs0
davilla authored
1017 esac
2a7072a [droid] skip checking a few more built-in libs
Cory Fields authored
1018 if test "$target_platform" != "target_android" ; then
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
1019 AC_CHECK_LIB([jasper], [main],, AC_MSG_ERROR($missing_library)) # check for cximage
1020 AC_CHECK_LIB([rt], [clock_gettime],, AC_MSG_ERROR($missing_library))
2a7072a [droid] skip checking a few more built-in libs
Cory Fields authored
1021 fi
3af8830 [droid] fix build without alsa
Cory Fields authored
1022 if test "x$use_alsa" != "xno"; then
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
1023 PKG_CHECK_MODULES([ALSA], [alsa],
bce0622 linux: build without alsa if libasound is not present
theuni authored
1024 [INCLUDES="$INCLUDES $ALSA_CFLAGS"; LIBS="$LIBS $ALSA_LIBS"; use_alsa=yes],
1025 AC_MSG_NOTICE($alsa_not_found); use_alsa=no)
c021442 build: fix alsa/dbus detection
Cory Fields authored
1026 fi
eb3b6c1 build: allow build without dbus
theuni authored
1027 PKG_CHECK_MODULES([DBUS], [dbus-1],
1028 [INCLUDES="$INCLUDES $DBUS_CFLAGS"; LIBS="$LIBS $DBUS_LIBS"; use_dbus=yes]; \
1029 AC_DEFINE([HAVE_DBUS],[1],["Define to 1 if dbus is installed"]),
1030 AC_MSG_NOTICE($missing_library); use_dbus=no)
e0db84e @davilla changed, move SDL lib checks to an enable/disable-sdl configure param…
davilla authored
1031 if test "x$use_sdl" != "xno"; then
1032 PKG_CHECK_MODULES([SDL], [sdl],
1033 [INCLUDES="$INCLUDES $SDL_CFLAGS"; LIBS="$LIBS $SDL_LIBS"],
1034 AC_MSG_ERROR($missing_library))
1035 AC_CHECK_LIB([SDL_image], [main],, AC_MSG_ERROR($missing_library))
66eef12 @davilla changed, add ac-define HAVE_SDL and check for it in system.h rather t…
davilla authored
1036 AC_DEFINE([HAVE_SDL],[1],["Define to 1 if using sdl"])
e0db84e @davilla changed, move SDL lib checks to an enable/disable-sdl configure param…
davilla authored
1037 fi
159abfb Don't do anything with XB_CONFIG_MODULE when not building for apple h…
ceros7 authored
1038 fi
1039
b484eb7 @davilla [osx] changed, configure and makefiles to support new osx build system
davilla authored
1040 XB_FIND_SONAME([MAD], [mad])
f072563 [osx] fixed, figure out correct dylib names to match what linker uses
davilla authored
1041 XB_FIND_SONAME([OGG], [ogg])
3a66f15 @davilla [ios] enabled ios/atv2 support in trunk
davilla authored
1042 XB_FIND_SONAME([CURL], [curl])
5484610 @davilla [osx/ios] changed from using internal build of libflac to xxx-depends…
davilla authored
1043 XB_FIND_SONAME([FLAC], [FLAC])
f072563 [osx] fixed, figure out correct dylib names to match what linker uses
davilla authored
1044 XB_FIND_SONAME([VORBIS], [vorbis])
1045 XB_FIND_SONAME([VORBISFILE], [vorbisfile])
1d4f43f @davilla [osx/ios] changed, banish libmicrohttp and libmodplug to the backland…
davilla authored
1046 XB_FIND_SONAME([MODPLUG], [modplug])
8d3e560 no need to static link these, dyload them on demand like we do on the…
Scott Davilla authored
1047 XB_FIND_SONAME([ASS], [ass])
1048 XB_FIND_SONAME([MPEG2], [mpeg2])
73c5159 Fix libcurl basename path for users using libcurl3-gnutls.
ceros7 authored
1049
6ad8770 fixed: don't use a hard-coded name for the mp3lame library
spiff authored
1050 # Audio encoders
9a6940b changed: make mp3lame and vorbisenc optional
spiff authored
1051 if test "x$use_libmp3lame" != "xno"; then
1052 XB_FIND_SONAME([LAMEENC], [mp3lame], [use_libmp3lame])
1053 if test "x$use_libmp3lame" != "xno"; then
1054 AC_CHECK_HEADER([lame/lame.h],, AC_MSG_ERROR($missing_headers))
1055 fi
1056 fi
1057 AS_CASE([x$use_libmp3lame],
1058 [xno],[
1059 AC_SUBST([HAVE_LIBMP3LAME], 0)
1060 ],
1061 [
1062 AC_DEFINE([HAVE_LIBMP3LAME], 1, [System has libmp3lame library])
1063 AC_SUBST([HAVE_LIBMP3LAME], 1)
1064 ]
1065 )
1066 if test "x$use_libvorbisenc" != "xno"; then
1067 XB_FIND_SONAME([VORBISENC], [vorbisenc], [use_libvorbisenc])
1068 if test "x$use_libvorbisenc" != "xno"; then
1069 AC_CHECK_HEADER([vorbis/vorbisenc.h],, AC_MSG_ERROR($missing_headers))
1070 fi
1071 fi
1072 AS_CASE([x$use_libvorbisenc],
1073 [xno],[
1074 AC_SUBST([HAVE_LIBVORBISENC], 0)
1075 ],[
1076 AC_DEFINE([HAVE_LIBVORBISENC], 1, [System has libvorbisenc library])
1077 AC_SUBST([HAVE_LIBVORBISENC], 1)
1078 ]
1079 )
6ad8770 fixed: don't use a hard-coded name for the mp3lame library
spiff authored
1080
c530dce move use_webserver check
davilla authored
1081 # WebServer
1d4f43f @davilla [osx/ios] changed, banish libmicrohttp and libmodplug to the backland…
davilla authored
1082 if test "$use_webserver" = "yes"; then
1083 AC_CHECK_LIB([microhttpd], [main],, AC_MSG_ERROR($missing_library))
c530dce move use_webserver check
davilla authored
1084 fi
1085
60cac85 Added a configure option --disable-optical-drive
topfs2 authored
1086 # Optical
1087 if test "$use_optical_drive" = "yes"; then
1088 AC_DEFINE([HAS_DVD_DRIVE], [1], [Define to 1 to have optical drive support])
1089 fi
1090
e407d10 @gnif [AE] build system support for HAS/HAVE_ALSA
gnif authored
1091 # Alsa
1092 if test "$use_alsa" = "yes" && test "$host_vendor" != "apple"; then
1093 PKG_CHECK_MODULES([ALSA], [alsa],
1094 [INCLUDES="$INCLUDES $ALSA_CFLAGS"; LIBS="$LIBS $ALSA_LIBS"],
1095 AC_MSG_ERROR($missing_library))
1096 AC_DEFINE([HAS_ALSA], [1], [Define to 0 to disable ALSA support])
1097 else
1098 use_alsa="no"
1099 AC_MSG_RESULT($alsa_disabled)
1100 fi
1101
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1102 # PulseAudio
1b9f996 fixed: Marked pulse as auto but forgot to implement.
althekiller authored
1103 if test "x$use_pulse" != "xno"; then
1104 if test "$host_vendor" = "apple" ; then
1105 if test "x$use_pulse" = "xyes"; then
1106 AC_MSG_ERROR($pulse_disabled)
1107 else
1108 use_pulse="no"
1109 AC_MSG_RESULT($pulse_disabled)
1110 fi
c51b118 Merged cptspiff's code-reshuffle branch.
theuni authored
1111 USE_PULSE=0
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1112 else
1b9f996 fixed: Marked pulse as auto but forgot to implement.
althekiller authored
1113 AC_CHECK_LIB([pulse], [main],,
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
1114 [if test "x$use_pulse" = "xyes"; then
1115 AC_MSG_ERROR($pulse_not_found)
1116 else
1117 use_pulse=no
c51b118 Merged cptspiff's code-reshuffle branch.
theuni authored
1118 USE_PULSE=0
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
1119 AC_MSG_RESULT($pulse_not_found)
1120 fi])
c51b118 Merged cptspiff's code-reshuffle branch.
theuni authored
1121 USE_PULSE=1
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1122 fi
1b9f996 fixed: Marked pulse as auto but forgot to implement.
althekiller authored
1123 else
1124 AC_MSG_RESULT($pulse_disabled)
c51b118 Merged cptspiff's code-reshuffle branch.
theuni authored
1125 USE_PULSE=0
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1126 fi
1127
4c26740 Applied #9200 - Thanks openelec.tv for the contribution!
topfs2 authored
1128 # HAL
1129 if test "$host_vendor" = "apple" ; then
1130 use_hal="no"
1131 AC_MSG_RESULT($hal_disabled)
1132 else
1133 if test "$use_hal" = "yes"; then
3ea2a99 cosmetics, standard two space indent, removing all the various indent…
davilla authored
1134 PKG_CHECK_MODULES([HAL], [hal],
1135 [INCLUDES="$INCLUDES $HAL_CFLAGS"; LIBS="$LIBS $HAL_LIBS"],
1136 use_hal=no;AC_MSG_RESULT($hal_not_found))
1137 PKG_CHECK_MODULES([HAL_STORAGE], [hal-storage],
1138 [INCLUDES="$INCLUDES $HAL_STORAGE_CFLAGS"; LIBS="$LIBS $HAL_STORAGE_LIBS"],
1139 use_hal=no;AC_MSG_RESULT($halstorage_not_found))
4c26740 Applied #9200 - Thanks openelec.tv for the contribution!
topfs2 authored
1140 else
1141 AC_MSG_RESULT($hal_disabled)
1142 fi
1143 if test "$use_hal" = "yes"; then
1144 AC_DEFINE([HAS_HAL], [1], [Define to 1 if you have HAL installed])
1145 fi
1146 fi
1147
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1148 # avahi
1149 if test "$host_vendor" = "apple" ; then
1150 use_avahi="no"
1151 AC_MSG_RESULT($avahi_disabled)
1152 else
1153 if test "$use_avahi" = "yes"; then
ac77e39 fixed: Changing configure options with out a make clean wouldn't
althekiller authored
1154 AC_CHECK_LIB([avahi-common], [main],,
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1155 use_avahi=no;AC_MSG_RESULT($avahi_not_found))
729be25 cosmetics
spiff authored
1156 if test "$use_avahi" = "yes"; then
1157 #either both libs or none
1158 AC_CHECK_LIB([avahi-client], [main],,
1159 use_avahi=no;AC_MSG_RESULT($avahi_not_found))
1160 fi
1161 else
1162 AC_MSG_RESULT($avahi_disabled)
1163 fi
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1164 fi
1165
6c6526d build: configure option for enable/disable x11.
theuni authored
1166 # X11
1167 if test "$use_x11" = "yes" && test "$host_vendor" != "apple"; then
1168 AC_MSG_NOTICE($x11_enabled)
1169 PKG_CHECK_MODULES([X11], [x11],
1170 [INCLUDES="$INCLUDES $X11_CFLAGS"; LIBS="$LIBS $X11_LIBS"],
1171 AC_MSG_ERROR($missing_library))
1172 PKG_CHECK_MODULES([XEXT], [xext],
1173 [INCLUDES="$INCLUDES $XEXT_CFLAGS"; LIBS="$LIBS $XEXT_LIBS"],
1174 AC_MSG_ERROR($missing_library))
1175 AC_DEFINE([HAVE_X11], [1], [Define to 1 if you have X11 libs installed.])
1176 else
1177 AC_MSG_RESULT($x11_disabled)
1178 fi
1179
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1180 # XRandR
b78188f @abs0 Use the more portable "=" in shell test usage, rather than "=="
abs0 authored
1181 if test "$host_vendor" = "apple" || test "$use_x11" = "no"; then
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1182 use_xrandr="no"
1183 AC_MSG_RESULT($xrandr_disabled)
1184 else
1185 if test "$use_xrandr" = "yes" ; then
627ada3 fixed: commit 347014d7 accidentally disabled xrandr, fixed for real t…
theuni authored
1186 AC_CHECK_LIB([Xrandr], [main],,
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1187 use_xrandr="no";AC_MSG_RESULT($xrandr_not_found))
1188 else
1189 AC_MSG_RESULT($xrandr_disabled)
1190 fi
1191 fi
1192
2430923 fixed: do not build Goom if disabled (disabled by default ;))
vdrfan authored
1193 # GOOM
1194 if test "$host_vendor" = "apple" ; then
6852c69 [osx] remove goom from osx build, it's configure is broken
davilla authored
1195 AC_MSG_NOTICE($goom_disabled)
ad04564 changed: rename BUILD_GOOM to DISABLE_GOOM to reflect what it really …
theuni authored
1196 DISABLE_GOOM=1
2430923 fixed: do not build Goom if disabled (disabled by default ;))
vdrfan authored
1197 else
65a4d97 fixed: missing $ after commit c51b1189e3d5353e842991f5859ddcea0f73e426
spiff authored
1198 if test "$use_goom" = "yes" && test "$use_gl" = "yes"; then
2430923 fixed: do not build Goom if disabled (disabled by default ;))
vdrfan authored
1199 AC_MSG_NOTICE($goom_enabled)
ad04564 changed: rename BUILD_GOOM to DISABLE_GOOM to reflect what it really …
theuni authored
1200 DISABLE_GOOM=0
2430923 fixed: do not build Goom if disabled (disabled by default ;))
vdrfan authored
1201 else
1202 AC_MSG_NOTICE($goom_disabled)
ad04564 changed: rename BUILD_GOOM to DISABLE_GOOM to reflect what it really …
theuni authored
1203 DISABLE_GOOM=1
2430923 fixed: do not build Goom if disabled (disabled by default ;))
vdrfan authored
1204 fi
1205 fi
1206
3917681 build: make rsxs configurable
theuni authored
1207 # RSXS
b78188f @abs0 Use the more portable "=" in shell test usage, rather than "=="
abs0 authored
1208 if test "$use_rsxs" = "no" || test "$use_gl" = "no"; then
3917681 build: make rsxs configurable
theuni authored
1209 AC_MSG_NOTICE($rsxs_disabled)
1210 DISABLE_RSXS=1
1211 else
1212 AC_MSG_NOTICE($rsxs_enabled)
1213 DISABLE_RSXS=0
51df69b @davilla [osx] fix configure.in for building RSXS, we do not use pkg-config ch…
davilla authored
1214 # darwin osx can do rsxs but does not use x11, so do not pkg-config check for them
1215 if test "$host_vendor" != "apple" ; then
1216 PKG_CHECK_MODULES([XT], [xt],
1217 [INCLUDES="$INCLUDES $XT_CFLAGS"; LIBS="$LIBS $XT_LIBS"],
1218 AC_MSG_ERROR($missing_library))
1219 PKG_CHECK_MODULES([XMU], [xmu],
1220 [INCLUDES="$INCLUDES $XMU_CFLAGS"; LIBS="$LIBS $XMU_LIBS"],
1221 AC_MSG_ERROR($missing_library))
1222 fi
3917681 build: make rsxs configurable
theuni authored
1223 fi
1224
7189284 @sraue configure: let select XBMCProjectM, this adds support to enable/disab…
sraue authored
1225 # PROJECTM
1226 if test "$use_projectm" = "no" || test "$use_gl" = "no"; then
1227 AC_MSG_NOTICE($projectm_disabled)
1228 DISABLE_PROJECTM=1
1229 else
1230 AC_MSG_NOTICE($projectm_enabled)
1231 DISABLE_PROJECTM=0
1232 fi
1233
7e7a13c @davilla [ios] changed/fixed, detect skin.touched. if present enable packing i…
davilla authored
1234 # skin touched
1235 use_skin_touched=no
1236 if [[ -f "addons/skin.touched/addon.xml" ]]; then
1237 use_skin_touched=yes
1238 USE_SKIN_TOUCHED=1
1239 AC_DEFINE([HAS_SKIN_TOUCHED], [1], [Whether to build skin touched.])
1240 else
1241 USE_SKIN_TOUCHED=0
1242 fi
1243
882aa1e @wsnipex Provide a configure switch for libssh.
wsnipex authored
1244 # libssh
1245 if test "x$use_ssh" = "xno"; then
1246 AC_MSG_NOTICE($ssh_disabled)
1247 use_libssh="no"
1248 else
1249 AC_CHECK_LIB([ssh], [sftp_tell64],, AC_MSG_ERROR($ssh_not_found))
1250 AC_DEFINE([HAVE_LIBSSH], [1], [Whether to use libSSH library.])
1251 fi
7e7a13c @davilla [ios] changed/fixed, detect skin.touched. if present enable packing i…
davilla authored
1252
6981106 changed. switch from internal to system librtmp
davilla authored
1253 # libRTMP
d937d6b added: configure option for rtmp support
anssih authored
1254 if test "$use_librtmp" != "no"; then
1255 AC_CHECK_HEADERS([librtmp/log.h librtmp/amf.h librtmp/rtmp.h],,
1256 [if test "$use_librtmp" = "yes"; then
1257 AC_MSG_ERROR($librtmp_not_found)
1258 elif test "$use_librtmp" != "no"; then
1259 AC_MSG_NOTICE($librtmp_not_found)
1260 use_librtmp="no"
1261 fi
1262 ])
c4cd668 @davilla [osx/ios/linux] cleanup configure and xbmc/DllPaths_generated, remove…
davilla authored
1263 if test "$use_librtmp" != "no"; then
9d2d600 Revert "Fix check for librtmp." and "Make librtmp optional again."
anssih authored
1264 XB_FIND_SONAME([RTMP], [rtmp], [use_librtmp])
6b61ad6 fixed: use proper soname for loading librtmp on linux
anssih authored
1265 fi
d937d6b added: configure option for rtmp support
anssih authored
1266 if test "$use_librtmp" != "no"; then
1267 AC_DEFINE([HAS_LIBRTMP], [1], [Whether to use libRTMP library.])
1268 fi
1269 else
1270 AC_MSG_NOTICE($librtmp_disabled)
1271 fi
6981106 changed. switch from internal to system librtmp
davilla authored
1272
6e37158 @sraue configure: let select samba support, this patch adds a configure opti…
sraue authored
1273 # samba
1274 if test "x$use_samba" != "xno"; then
1275 AC_CHECK_LIB([smbclient], [main],,
1276 use_samba=no;AC_MSG_ERROR($missing_library))
1277 USE_LIBSMBCLIENT=0
1278 else
1279 AC_MSG_RESULT($samba_disabled)
1280 USE_LIBSMBCLIENT=0
1281 fi
1282
1283 if test "x$use_samba" != "xno"; then
1284 AC_DEFINE([HAVE_LIBSMBCLIENT], [1], [Define to 1 if you have Samba installed])
1285 USE_LIBSMBCLIENT=1
1286 fi
1287
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
1288 # libnfs
1289 if test "$use_libnfs" != "no"; then
1290 AC_CHECK_HEADERS([nfsc/libnfs.h],,
1291 [if test "$use_libnfs" = "yes"; then
1292 AC_MSG_ERROR($libnfs_not_found)
d5e5203 conditionally compile nfs code
spiff authored
1293 USE_LIBNFS=0
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
1294 elif test "$use_libnfs" != "no"; then
1295 AC_MSG_NOTICE($libnfs_not_found)
1296 use_libnfs="no"
0ff23f0 @Memphiz [nfs] - fixed missing asignment
Memphiz authored
1297 USE_LIBNFS=0
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
1298 fi
1299 ])
1300 if test "$use_libnfs" != "no"; then
1301 XB_FIND_SONAME([NFS], [nfs], [use_libnfs])
1302 fi
1303 if test "$use_libnfs" != "no"; then
1304 AC_DEFINE([HAVE_LIBNFS], [1], [Whether to use libnfs library.])
d5e5203 conditionally compile nfs code
spiff authored
1305 USE_LIBNFS=1
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
1306 fi
1307 else
d5e5203 conditionally compile nfs code
spiff authored
1308 USE_LIBNFS=0
28c4d78 @Memphiz [linux/osx/ios] Prepare dyloading libnfs
Memphiz authored
1309 AC_MSG_NOTICE($libnfs_disabled)
1310 fi
1311
826f0ca @Memphiz [add] - libafpclient to configure
Memphiz authored
1312 # libafpclient
268c65b @davilla fixed, configure was still reporting yes for libafpclient support eve…
davilla authored
1313 USE_LIBAFPCLIENT=0
bbd0cf3 @Memphiz [change] - allow afp support detection for linux aswell
Memphiz authored
1314 if test "x$use_libafpclient" != "xno"; then
1315 AC_CHECK_HEADERS([afpfs-ng/libafpclient.h],,
1316 [if test "x$use_libafpclient" = "xyes"; then
1317 AC_MSG_ERROR($libafpclient_not_found)
1318 elif test "x$use_libafpclient" != "xno"; then
1319 AC_MSG_NOTICE($libafpclient_not_found)
1320 use_libafpclient="no"
826f0ca @Memphiz [add] - libafpclient to configure
Memphiz authored
1321 fi
bbd0cf3 @Memphiz [change] - allow afp support detection for linux aswell
Memphiz authored
1322 ])
1323 if test "x$use_libafpclient" != "xno"; then
1324 XB_FIND_SONAME([AFPCLIENT], [afpclient], [use_libafpclient])
1325 AC_DEFINE([HAVE_LIBAFPCLIENT], [1], [Whether to use libafpclient library.])
1326 USE_LIBAFPCLIENT=1
826f0ca @Memphiz [add] - libafpclient to configure
Memphiz authored
1327 fi
1328 else
bbd0cf3 @Memphiz [change] - allow afp support detection for linux aswell
Memphiz authored
1329 AC_MSG_NOTICE($libafpclient_disabled)
826f0ca @Memphiz [add] - libafpclient to configure
Memphiz authored
1330 fi
1331
32e8992 @Memphiz [change] - make libplist optional via configure closes #11903
Memphiz authored
1332 # libplist for airplay feature
1333 USE_AIRPLAY=0
1334 if test "$use_airplay" != "no"; then
ff880f1 [droid] don't link against dlopened libs
theuni authored
1335 AC_CHECK_HEADER([plist/plist.h],,
32e8992 @Memphiz [change] - make libplist optional via configure closes #11903
Memphiz authored
1336 [if test "$use_airplay" = "yes"; then
1337 AC_MSG_ERROR($libplist_not_found)
1338 elif test "$use_airplay" != "no"; then
1339 AC_MSG_NOTICE($libplist_not_found)
1340 use_airplay="no"
1341 fi
1342 ])
1343
1344 if test "$use_airplay" != "no"; then
1345 XB_FIND_SONAME([PLIST], [plist], [use_airplay])
1346 USE_AIRPLAY=1
552213a @huceke fixed airtunes airplay functionality after android merge
huceke authored
1347 AC_DEFINE([HAVE_LIBPLIST],[1],["Define to 1 if you have libplist."])
32e8992 @Memphiz [change] - make libplist optional via configure closes #11903
Memphiz authored
1348 fi
1349 fi
1350
8e308f8 @Memphiz [add] - add optional airtunes support into buildsys - make it default…
Memphiz authored
1351 # libshairport for AirTunes
1352 USE_AIRTUNES=0
1353 if test "x$use_airtunes" != "xno"; then
ff880f1 [droid] don't link against dlopened libs
theuni authored
1354 AC_CHECK_HEADERS([shairport/shairport.h shairport/ao.h],,
8e308f8 @Memphiz [add] - add optional airtunes support into buildsys - make it default…
Memphiz authored
1355 [if test "x$use_airtunes" = "xyes"; then
1356 AC_MSG_ERROR($libshairport_not_found)
1357 elif test "x$use_airtunes" != "xno"; then
1358 AC_MSG_NOTICE($libshairport_not_found)
1359 use_airtunes="no"
1360 fi
1361 ])
1362
1363 if test "x$use_airtunes" != "xno"; then
1364 XB_FIND_SONAME([SHAIRPORT], [shairport], [use_airtunes])
1365 USE_AIRTUNES=1
3cc6144 @anssih fixed: build with libshairport without ao_set_metadata
anssih authored
1366 AC_CHECK_MEMBERS([struct AudioOutput.ao_set_metadata],,,
1367 [[#include <shairport/shairport.h>]])
552213a @huceke fixed airtunes airplay functionality after android merge
huceke authored
1368 AC_DEFINE([HAVE_LIBSHAIRPORT],[1],["Define to 1 if you have libshairport."])
8e308f8 @Memphiz [add] - add optional airtunes support into buildsys - make it default…
Memphiz authored
1369 fi
1370 fi
32e8992 @Memphiz [change] - make libplist optional via configure closes #11903
Memphiz authored
1371
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1372 # libudev
d874d68 @davilla changed, these should be USE_xxx not HAVE_xxx
davilla authored
1373 USE_LIBUDEV=0
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1374 if test "$host_vendor" = "apple" ; then
db07183 @opdenkamp don't use libusb when libudev is available
opdenkamp authored
1375 use_libudev="no"
1376 AC_MSG_NOTICE($libudev_disabled)
1377 else
1378 if test "$use_libudev" = "auto"; then
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1379 PKG_CHECK_MODULES([UDEV],[libudev],,[use_libudev="no";AC_MSG_RESULT($libudev_not_found)])
db07183 @opdenkamp don't use libusb when libudev is available
opdenkamp authored
1380 elif test "$use_libudev" = "yes" ; then
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1381 PKG_CHECK_MODULES([UDEV],[libudev],,[use_libudev="no";AC_MSG_ERROR($libudev_not_found)])
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1382 else
1383 AC_MSG_NOTICE($libudev_disabled)
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1384 fi
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1385
5902494 @davilla fixed... again. one more time for the boys in the back
davilla authored
1386 if test "x$use_libudev" != "xno"; then
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1387 USE_LIBUDEV=1;INCLUDES="$INCLUDES $UDEV_CFLAGS";LIBS="$LIBS $UDEV_LIBS"
1388 AC_DEFINE([HAVE_LIBUDEV],[1],["Define to 1 if libudev is installed"])
db07183 @opdenkamp don't use libusb when libudev is available
opdenkamp authored
1389 fi
1390 fi
1391
1392 # libusb
1393 USE_LIBUSB=0
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1394
1395 # if libudev is available, we don't need libusb
1396 if test "x$use_libudev" != "xno"; then
03404f4 @davilla fixed, harmless typo
davilla authored
1397 use_libusb="no"
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1398 AC_MSG_NOTICE($libusb_disabled_udev_found)
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1399 else
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1400 if test "$host_vendor" = "apple" ; then
1401 use_libusb="no"
1402 AC_MSG_NOTICE($libusb_disabled)
1403 else
e601785 always enable libusb on FreeBSD
Fneufneu authored
1404 if echo "$ARCH" | grep -q freebsd ; then
35d4347 [FreeBSD] add detection of libusb in configure.in
Fneufneu authored
1405 AC_CHECK_LIB([usb],[main],
1406 [use_libusb="yes";USB_LIBS="-lusb"],
1407 [use_libusb="no";AC_MSG_RESULT($libusb_not_found)])
e601785 always enable libusb on FreeBSD
Fneufneu authored
1408 elif test "$use_libusb" = "auto"; then
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1409 PKG_CHECK_MODULES([USB],[libusb],,[use_libusb="no";AC_MSG_RESULT($libusb_not_found)])
1410 elif test "$use_libusb" = "yes"; then
1411 PKG_CHECK_MODULES([USB],[libusb],,[use_libusb="no";AC_MSG_ERROR($libusb_not_found)])
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1412 else
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1413 AC_MSG_NOTICE($libusb_disabled)
1ac45d8 @opdenkamp cec: added support for the Pulse-Eight CEC Adaptor. split up linux/Pe…
opdenkamp authored
1414 fi
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1415
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1416 if test "x$use_libusb" != "xno"; then
1417 USE_LIBUSB=1;INCLUDES="$INCLUDES $USB_CFLAGS";LIBS="$LIBS $USB_LIBS"
1418 AC_DEFINE([HAVE_LIBUSB],[1],["Define to 1 if libusb is installed"])
1419 fi
1ac45d8 @opdenkamp cec: added support for the Pulse-Eight CEC Adaptor. split up linux/Pe…
opdenkamp authored
1420 fi
1421 fi
1422
1423 # libcec
d874d68 @davilla changed, these should be USE_xxx not HAVE_xxx
davilla authored
1424 USE_LIBCEC=0
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
1425 USE_CEC_RPI_API=0
2f7a376 @opdenkamp [rbp/cec] removed a whole bunch of sanity checks from configure.in fo…
opdenkamp authored
1426 use_rpi_cec_api="auto"
92a4888 @davilla fixed, not so harmless typos
davilla authored
1427 if test "x$use_libcec" != "xno"; then
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
1428 case "${host_cpu}" in
1429 arm*)
1430 echo "will check for RPi support"
2f7a376 @opdenkamp [rbp/cec] removed a whole bunch of sanity checks from configure.in fo…
opdenkamp authored
1431 AC_CHECK_HEADER(interface/vmcs_host/vc_cec.h,,use_rpi_cec_api="no")
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
1432 ;;
1433 *)
1434 echo "will not check for RPi support (unsupported cpu: ${host_cpu})"
1435 use_rpi_cec_api="no"
1436 ;;
1437 esac
1438
1439 # libcec needs libudev, libusb or the RPi API under linux, or the device will never be detected.
1440 if test "$host_vendor" != "apple" && test "$use_libusb" = "no" && test "$use_libudev" = "no" && test "$use_rpi_cec_api" = "no"; then
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1441 if test "x$use_libcec" != "xauto"; then
1442 AC_MSG_ERROR($libcec_disabled_missing_libs)
1443 else
1444 use_libcec="no"
1445 AC_MSG_NOTICE($libcec_disabled_missing_libs)
1446 fi
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1447 fi
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1448
1449 # libcec is dyloaded, so we need to check for its headers and link any depends.
92a4888 @davilla fixed, not so harmless typos
davilla authored
1450 if test "x$use_libcec" != "xno"; then
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
1451 if test "x$use_libcec" != "xauto"; then
b45b9a4 @opdenkamp [cec] bump to libCEC 2.0.0. only minor changes, but the API was clean…
opdenkamp authored
1452 PKG_CHECK_MODULES([CEC],[libcec >= 2.0.0],,[use_libcec="no";AC_MSG_ERROR($libcec_disabled)])
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
1453 else
b45b9a4 @opdenkamp [cec] bump to libCEC 2.0.0. only minor changes, but the API was clean…
opdenkamp authored
1454 PKG_CHECK_MODULES([CEC],[libcec >= 2.0.0],,[use_libcec="no";AC_MSG_RESULT($libcec_disabled)])
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
1455 fi
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1456
1457 if test "x$use_libcec" != "xno"; then
1458 INCLUDES="$INCLUDES $CEC_CFLAGS"
1459 USE_LIBCEC=1;AC_DEFINE([HAVE_LIBCEC],[1],["Define to 1 if libcec is installed"])
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
1460 if test "x$use_rpi_cec_api" != "xno"; then
2f7a376 @opdenkamp [rbp/cec] removed a whole bunch of sanity checks from configure.in fo…
opdenkamp authored
1461 LIBS+=" -lvcos -lvchiq_arm"
9787d57 @huceke [rbp] cec: added support for the Raspberry Pi. needs libCEC v1.8.0+. …
huceke authored
1462 AC_DEFINE([HAVE_CEC_RPI_API],[1],["Define to 1 if the CEC RPi API is installed"])
1463 USE_CEC_RPI_API=1
1464 fi
c80b011 @opdenkamp fixed: libusb/libudev/libcec configure mess. logic is like this: libu…
opdenkamp authored
1465 XB_FIND_SONAME([LIBCEC],[cec],[use_libcec])
1466 AC_MSG_NOTICE($libcec_enabled)
1467 else
1468 use_libcec="no"
1469 AC_MSG_NOTICE($libcec_disabled)
3a0c3c0 @davilla changed libcec to be dyloaded like others, also change lib/libcec/Mak…
davilla authored
1470 fi
c6fac33 @davilla refactor libudev, libusb, libcec. look for udev, then usb if udev not…
davilla authored
1471 fi
1ac45d8 @opdenkamp cec: added support for the Pulse-Eight CEC Adaptor. split up linux/Pe…
opdenkamp authored
1472 else
1473 use_libcec="no"
1474 AC_MSG_NOTICE($libcec_disabled)
1475 fi
1476
f439ea9 added: link to libcap on linux
bobo1on1 authored
1477 # libcap
1478 if test "$use_libcap" != "no"; then
1479 AC_CHECK_HEADERS([sys/capability.h],,
1480 [if test "$use_libcap" = "yes"; then
1481 AC_MSG_ERROR($libcap_not_found)
1482 elif test "$use_libcap" != "no"; then
1483 AC_MSG_NOTICE($libcap_not_found)
1484 use_libcap="no"
1485 fi
1486 ])
1487 if test "$use_libcap" != "no"; then
1488 AC_CHECK_LIB([cap], main, LIBS="$LIBS -lcap", use_libcap=no)
1489 fi
1490 if test "$use_libcap" != "no"; then
1491 AC_DEFINE([HAVE_LIBCAP], [1], [Whether to use libcap library.])
1492 fi