-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
executable file
·2236 lines (2029 loc) · 70.9 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([xbmc], [11.0], [http://trac.xbmc.org])
AC_CONFIG_HEADERS([xbmc/config.h])
AH_TOP([#pragma once])
m4_include([m4/ax_python_devel.m4])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign])
AC_CANONICAL_HOST
tolower(){
echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
}
# check for library basenames
AC_DEFUN([XB_FIND_SONAME],
[
if [[ "$host_vendor" != "apple" ]]; then
AC_MSG_CHECKING([for lib$2 soname])
$1_FILENAME=$($CC -nostdlib -o /dev/null $LDFLAGS -l$2 -Wl,-M 2>/dev/null | grep "^LOAD.*$2" | awk '{V=2; print $V}')
if [[ ! -z $$1_FILENAME ]]; then
$1_SONAME=$(objdump -p $$1_FILENAME | grep "SONAME.*$2" | awk '{V=2; print $V}')
fi
else
AC_MSG_CHECKING([for lib$2 dylib])
gcc_lib_path=[`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
env_lib_path=[`echo $LDFLAGS | sed 's/-L[ ]*//g'`]
if test "$cross_compiling" = yes; then
host_lib_path=""
else
host_lib_path="/usr/lib /usr/local/lib"
fi
for path in $gcc_lib_path $env_lib_path $host_lib_path; do
lib=[`ls -- $path/lib$2.dylib 2>/dev/null`]
if test x$lib != x; then
# we want the path/name that is embedded in the dylib
$1_SONAME=[`otool -L $lib | grep -v lib$2.dylib | grep lib$2 | awk '{V=1; print $V}'`]
$1_SONAME=[`basename $$1_SONAME`]
fi
done
fi
if [[ -z "$$1_SONAME" ]]; then
AC_MSG_RESULT([no])
if test -z "$3" || test "x${$3}" = "xyes"; then
AC_MSG_ERROR([Unable to determine soname of lib$2 library])
else
AC_MSG_WARN([Unable to determine soname of lib$2 library])
$3=no
AC_MSG_WARN([lib$2 support disabled])
fi
else
AC_MSG_RESULT([$$1_SONAME])
AC_SUBST($1_SONAME)
fi
])
# Function to push and pop libs and includes for a command
AC_DEFUN([XB_PUSH_FLAGS], [
SAVE_LIBS="$LIBS"
SAVE_INCLUDES="$INCLUDES"
LIBS="[$2]"
INCLUDES="[$1]"
[$3]
LIBS="$SAVE_LIBS"
INCLUDES="$SAVE_INCLUDES"
])
# General message strings
configure_debug="ERROR: this is a configure debug statement"
missing_library="Could not find a required library. Please see the README for your platform."
missing_headers="Could not find some required headers. Please see the README for your platform."
missing_program="Could not find a required program. Please see the README for your platform."
xrandr_not_found="== Could not find libXRandR. SDL will be used for resolution support. =="
xrandr_disabled="== XRandR support disabled. SDL will be used for resolution support. =="
goom_enabled="== GOOM enabled. =="
goom_disabled="== GOOM disabled. =="
rsxs_enabled="== RSXS enabled. =="
rsxs_disabled="== RSXS disabled. =="
projectm_enabled="== ProjectM enabled. =="
projectm_disabled="== ProjectM disabled. =="
x11_enabled="== X11 enabled. =="
x11_disabled="== X11 disabled. =="
pulse_not_found="== Could not find libpulse. PulseAudio support disabled. =="
pulse_disabled="== PulseAudio support manually disabled. =="
dvdcss_enabled="== DVDCSS support enabled. =="
dvdcss_disabled="== DVDCSS support disabled. =="
hal_not_found="== Could not find hal. HAL support disabled. =="
halstorage_not_found="== Could not find hal-storage. HAL support disabled. =="
hal_disabled="== HAL support disabled. =="
avahi_not_found="== Could not find libavahi-common or libavahi-client. Avahi support disabled. =="
avahi_disabled="== Avahi support disabled. =="
vdpau_not_found="== Could not find libvdpau. VDPAU support disabled. =="
vdpau_disabled="== VDPAU support manually disabled. =="
vaapi_not_found="== Could not find libva. VAAPI support disabled. =="
vaapi_disabled="== VAAPI support manually disabled. =="
crystalhd_not_found="== Could not find libcrystalhd. CrystalHD support disabled. =="
crystalhd_disabled="== CrystalHD support manually disabled. =="
vdadecoder_enabled="== VDADecoder support enabled. =="
vdadecoder_disabled="== VDADecoder support manually disabled. =="
vtbdecoder_enabled="== VTBDecoder support enabled. =="
vtbdecoder_disabled="== VTBDecoder support manually disabled. =="
openmax_disabled="== OpenMax support manually disabled. =="
openmax_not_found="== Could not find libnvomx. OpenMax support disabled. =="
ssh_not_found="== Could not find libssh. SSH FTP VFS support disabled. =="
librtmp_not_found="== Could not find libRTMP. RTMP support disabled. =="
librtmp_disabled="== RTMP support disabled. =="
libnfs_not_found="== Could not find libnfs. NFS client support disabled. =="
libnfs_disabled="== NFS support disabled. =="
libafpclient_not_found="== Could not find libafpclient. AFP client support disabled. =="
libafpclient_disabled="== AFP support disabled. =="
libshairport_not_found="== Could not find libshairport. AirTunes support disabled. =="
libshairport_disabled="== AirTunes support disabled. =="
samba_disabled="== SAMBA support disabled. =="
libplist_not_found="== Could not find libplist. AirPlay support disabled. =="
libplist_disabled="== AirPlay support disabled. =="
alsa_not_found="== Could not find ALSA. ALSA support disabled. =="
dbus_not_found="== Could not find DBUS. DBUS support disabled. =="
libudev_not_found="== Could not find libudev. Will use polling to check for device changes. =="
libudev_disabled="== udev support disabled. Will use polling to check for device changes. =="
libusb_not_found="== Could not find libusb. Plug and play USB device support will not be available. =="
libusb_disabled="== libusb disabled. Plug and play USB device support will not be available. =="
libusb_disabled_udev_found="== libusb disabled. =="
libcec_enabled="== libcec enabled. =="
libcec_disabled="== libcec disabled. CEC adapter support will not be available. =="
libcec_disabled_missing_libs="== libcec disabled because both libudev and libusb are not available. CEC adapter support will not be available. =="
# External library message strings
external_libraries_enabled="== Use of all supported external libraries enabled. =="
external_libraries_disabled="== Use of all supported external libraries disabled. =="
external_ffmpeg_enabled="== Use of external ffmpeg enabled. =="
external_ffmpeg_disabled="== Use of external ffmpeg disabled. =="
ffmpeg_vdpau_not_supported="== External ffmpeg doesn't support VDPAU. VDPAU support disabled. =="
dashes="------------------------"
final_message="\n XBMC Configuration:"
final_message="\n$dashes$final_message\n$dashes"
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[enable debugging information (default is yes)])],
[use_debug=$enableval],
[use_debug=yes])
AC_ARG_WITH([arch],
[AS_HELP_STRING([--with-arch],
[build with given arch passing to internal ffmpeg (default is no, needed for crosscompiling)])],
[use_arch=$withval],
[use_arch=no])
AC_ARG_WITH([cpu],
[AS_HELP_STRING([--with-cpu],
[build with given cpu passing to ffmpeg (default is no)])],
[use_cpu=$withval],
[use_cpu=no])
AC_ARG_ENABLE([neon],
[AS_HELP_STRING([--enable-neon],
[enable neon passing to ffmpeg (default is no)])],
[use_neon=$enableval],
[use_neon=no])
AC_ARG_ENABLE([optimizations],
[AS_HELP_STRING([--enable-optimizations],
[enable optimization (default is yes)])],
[use_optimizations=$enableval],
[use_optimizations=yes])
AC_ARG_ENABLE([gl],
[AS_HELP_STRING([--enable-gl],
[enable OpenGL rendering (default is yes)])],
[use_gl=$enableval],
[use_gl=yes])
AC_ARG_ENABLE([gles],
[AS_HELP_STRING([--enable-gles],
[enable OpenGLES rendering (default is no)])],
[use_gles=$enableval],
[use_gles=no])
AC_ARG_ENABLE([sdl],
[AS_HELP_STRING([--enable-sdl],
[enable SDL (default is auto)])],
[use_sdl=$enableval],
[use_sdl=auto])
AC_ARG_ENABLE([vdpau],
[AS_HELP_STRING([--enable-vdpau],
[enable VDPAU decoding (default is auto)])],
[use_vdpau=$enableval],
[use_vdpau=auto])
AC_ARG_ENABLE([vaapi],
[AS_HELP_STRING([--enable-vaapi],
[enable VAAPI decoding (default is auto)])],
[use_vaapi=$enableval],
[use_vaapi=auto])
AC_ARG_ENABLE([crystalhd],
[AS_HELP_STRING([--enable-crystalhd],
[enable CrystalHD decoding (default is auto)])],
[use_crystalhd=$enableval],
[use_crystalhd=auto])
AC_ARG_ENABLE([vdadecoder],
[AS_HELP_STRING([--enable-vdadecoder],
[enable VDADecoder decoding (default is auto)])],
[use_vdadecoder=$enableval],
[use_vdadecoder=auto])
AC_ARG_ENABLE([vtbdecoder],
[AS_HELP_STRING([--enable-vtbdecoder],
[enable VTBDecoder decoding (default is auto)])],
[use_vtbdecoder=$enableval],
[use_vtbdecoder=auto])
AC_ARG_ENABLE([openmax],
[AS_HELP_STRING([--enable-openmax],
[enable OpenMax decoding (default is auto, requires OpenGLES)])],
[use_openmax=$enableval],
[use_openmax=auto])
AC_ARG_ENABLE([tegra],
[AS_HELP_STRING([--enable-tegra],
[enable Tegra2 arm (default is no)])],
[use_tegra=$enableval],
[use_tegra=no])
AC_ARG_ENABLE([profiling],
[AS_HELP_STRING([--enable-profiling],
[enable gprof profiling (default is no)])],
[use_profiling=$enableval],
[use_profiling=no])
AC_ARG_ENABLE([joystick],
[AS_HELP_STRING([--enable-joystick],
[enable SDL joystick support (default is yes)])],
[use_joystick=$enableval],
[use_joystick=yes])
AC_ARG_ENABLE([xrandr],
[AS_HELP_STRING([--enable-xrandr],
[enable XRandR support (default is yes)])],
[use_xrandr=$enableval],
[use_xrandr=yes])
AC_ARG_ENABLE([goom],
[AS_HELP_STRING([--enable-goom],
[enable GOOM visualisation (default is no)])],
[use_goom=$enableval],
[use_goom=no])
AC_ARG_ENABLE([rsxs],
[AS_HELP_STRING([--enable-rsxs],
[enable really slick X screensavers (default is yes)])],
[use_rsxs=$enableval],
[use_rsxs=yes])
AC_ARG_ENABLE([projectm],
[AS_HELP_STRING([--enable-projectm],
[enable ProjectM visualisation (default is yes)])],
[use_projectm=$enableval],
[use_projectm=yes])
AC_ARG_ENABLE([x11],
[AS_HELP_STRING([--enable-x11],
[enable x11 (default is yes) 'Linux Only'])],
[use_x11=$enableval],
[use_x11=yes])
AC_ARG_ENABLE([ccache],
[AS_HELP_STRING([--enable-ccache],
[enable building with ccache feature (default is auto)])],
[use_ccache=$enableval],
[use_ccache=auto])
AC_ARG_ENABLE([pulse],
[AS_HELP_STRING([--enable-pulse],
[enable PulseAudio support (default is auto)])],
[use_pulse=$enableval],
[use_pulse=auto])
AC_ARG_ENABLE([rtmp],
[AS_HELP_STRING([--enable-rtmp],
[enable RTMP support via librtmp (default is auto)])],
[use_librtmp=$enableval],
[use_librtmp=auto])
AC_ARG_ENABLE([samba],
[AS_HELP_STRING([--disable-samba],
[disable SAMBA support (default is enabled)])],
[use_samba=$enableval],
[use_samba=yes])
AC_ARG_ENABLE([nfs],
[AS_HELP_STRING([--enable-nfs],
[enable NFS support via libnfs (default is auto)])],
[use_libnfs=$enableval],
[use_libnfs=auto])
AC_ARG_ENABLE([afpclient],
[AS_HELP_STRING([--enable-afpclient],
[enable AFP support via libafpclient (default is auto)])],
[use_libafpclient=$enableval],
[use_libafpclient=auto])
AC_ARG_ENABLE([airplay],
[AS_HELP_STRING([--enable-airplay],
[enable AirPlay support(default is auto)])],
[use_airplay=$enableval],
[use_airplay=auto])
AC_ARG_ENABLE([airtunes],
[AS_HELP_STRING([--enable-airtunes],
[enable AirTunes support(default is auto)])],
[use_airtunes=$enableval],
[use_airtunes=auto])
AC_ARG_ENABLE([ffmpeg_libvorbis],
[AS_HELP_STRING([--enable-ffmpeg-libvorbis],
[enable FFmpeg vorbis encoding (default is no)])],
[use_ffmpeg_libvorbis=$enableval],
[use_ffmpeg_libvorbis=no])
AC_ARG_ENABLE([dvdcss],
[AS_HELP_STRING([--enable-dvdcss],
[enable DVDCSS support (default is yes)])],
[use_dvdcss=$enableval],
[use_dvdcss=yes])
AC_ARG_ENABLE([mid],
[AS_HELP_STRING([--enable-mid],
[enable MID support (default is no)])],
[use_mid=$enableval],
[use_mid=no])
AC_ARG_ENABLE([hal],
[AS_HELP_STRING([--disable-hal],
[disable HAL support (default is enabled if hal and hal-storage is found)])],
[use_hal=$enableval],
[use_hal=yes])
AC_ARG_ENABLE([avahi],
[AS_HELP_STRING([--disable-avahi],
[disable Avahi support (default is enabled if libavahi-common and libavahi-client is found)])],
[use_avahi=$enableval],
[use_avahi=yes])
AC_ARG_ENABLE([non-free],
[AS_HELP_STRING([--disable-non-free],
[disable componentents with non-compliant licenses])],
[use_nonfree=$enableval],
[use_nonfree=yes])
AC_ARG_ENABLE([asap-codec],
[AS_HELP_STRING([--enable-asap-codec],
[enable ASAP ADPCM support])],
[use_asap=$enableval],
[use_asap=no])
AC_ARG_ENABLE([webserver],
[AS_HELP_STRING([--disable-webserver],
[disable webserver])],
[use_webserver=$enableval],
[use_webserver=yes])
AC_ARG_ENABLE([optical-drive],
[AS_HELP_STRING([--disable-optical-drive],
[disable optical drive])],
[use_optical_drive=$enableval],
[use_optical_drive=yes])
AC_ARG_ENABLE([libbluray],
[AS_HELP_STRING([--enable-libbluray],
[enable libbluray support])],
[use_libbluray=$enableval],
[use_libbluray=auto])
AC_ARG_ENABLE([texturepacker],
[AS_HELP_STRING([--enable-texturepacker],
[enable texturepacker support (default is yes)])],
[use_texturepacker=$enableval],
[use_texturepacker=auto])
AC_ARG_WITH([lirc-device],
[AS_HELP_STRING([--with-lirc-device=file],
[specify the default LIRC device (default is /dev/lircd)])],
[lirc_device=$withval],
[lirc_device=/dev/lircd])
AC_DEFINE_UNQUOTED([LIRC_DEVICE], ["$lirc_device"], [Default LIRC device])
AC_ARG_ENABLE([udev],
[AS_HELP_STRING([--enable-udev],
[enable udev support (default is auto)])],
[use_libudev=$enableval],
[use_libudev=auto])
AC_ARG_ENABLE([libusb],
[AS_HELP_STRING([--enable-libusb],
[enable libusb support (default is auto)])],
[use_libusb=$enableval],
[use_libusb=auto])
AC_ARG_ENABLE([libcec],
[AS_HELP_STRING([--enable-libcec],
[enable libcec support (default is auto)])],
[use_libcec=$enableval],
[use_libcec=auto])
### External libraries options
AC_ARG_ENABLE([external-libraries],
[AS_HELP_STRING([--enable-external-libraries],
[enable use of all supported external libraries (default is no) 'Linux only'])],
[use_external_libraries=$enableval],
[use_external_libraries=no])
AC_ARG_ENABLE([external-ffmpeg],
[AS_HELP_STRING([--enable-external-ffmpeg],
[enable use of external ffmpeg libraries (default is no) 'Linux only'])],
[use_external_ffmpeg=$enableval],
[use_external_ffmpeg=$use_external_libraries])
### End of external library options
if test "x$host_vendor" != "xapple"; then
DEFAULT_COMPILE_FLAGS="-fPIC -DPIC -D_REENTRANT"
DEFAULT_COMPILE_FLAGS="$DEFAULT_COMPILE_FLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
fi
# Checks for programs.
PASSED_CXXFLAGS=$CXXFLAGS # Hack to override autoconf default values
AC_PROG_CXX
CXXFLAGS="$PASSED_CXXFLAGS $DEFAULT_COMPILE_FLAGS"
PASSED_CFLAGS=$CFLAGS # Hack to override autoconf default values
AC_PROG_CC
AC_PROG_LIBTOOL
CFLAGS="$PASSED_CFLAGS $DEFAULT_COMPILE_FLAGS"
AC_PROG_AWK
AC_PROG_LN_S
AC_PROG_MAKE_SET
MAKE="${MAKE:-make}"
# host detection and setup
case $host in
i*86*-linux-gnu*)
ARCH="i486-linux"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
;;
x86_64-*-linux-gnu*)
ARCH="x86_64-linux"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
;;
arm-apple-darwin*)
use_joystick=no
use_neon=yes
use_libcec=no
use_crystalhd=no
use_vdadecoder=no
use_vtbdecoder=yes
use_optical_drive=no
use_dvdcss=no
use_gles=yes
use_cpu=cortex-a8
check_sdl_arch=[`file /opt/local/lib/libSDL_image.dylib | awk '{V=7; print $V}'`]
if test "x$check_sdl_arch" = "xi386"; then
use_texturepacker_native=yes
USE_TEXTUREPACKER_NATIVE_ROOT="/opt/local"
else
use_texturepacker=no
fi
ARCH="arm-osx"
use_arch="arm"
AC_SUBST(ARCH_DEFINES, "-D_ARMEL")
PYTHON_VERSION="2.6"
PYTHON_LDFLAGS="-L${prefix}/lib -lpython2.6"
PYTHON_CPPFLAGS="-I${prefix}/include/python2.6"
PYTHON_SITE_PKG="${prefix}/lib/python2.6/site-packages"
PYTHON_NOVERSIONCHECK="no-check"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_IOS -D_LINUX")
;;
*86-apple-darwin*)
use_joystick=no
use_vtbdecoder=no
use_texturepacker_native=yes
USE_TEXTUREPACKER_NATIVE_ROOT="$prefix"
ARCH="x86-osx"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_OSX -D_LINUX")
;;
powerpc-apple-darwin*)
use_joystick=no
use_vdadecoder=no
use_vtbdecoder=no
use_crystalhd=no
ARCH="powerpc-osx"
use_arch="ppc"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_OSX -D_LINUX")
;;
powerpc-*-linux-gnu*)
ARCH="powerpc-linux"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_POWERPC")
;;
powerpc64-*-linux-gnu*)
ARCH="powerpc64-linux"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_POWERPC64")
;;
arm*-*-linux-gnu*)
use_texturepacker=no
ARCH="arm"
use_arch="arm"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_ARMEL")
;;
*)
AC_MSG_ERROR(unsupported host ($host))
esac
AC_SUBST([ARCH])
# platform debug flags
if test "$use_debug" = "yes"; then
final_message="$final_message\n Debugging:\tYes"
if test "$use_profiling" = "yes"; then
final_message="$final_message\n Profiling:\tYes"
DEBUG_FLAGS="-g -pg -D_DEBUG -Wall"
else
final_message="$final_message\n Profiling:\tNo"
DEBUG_FLAGS="-g -D_DEBUG -Wall"
fi
else
final_message="$final_message\n Debugging:\tNo"
if test "$use_profiling" = "yes"; then
final_message="$final_message\n Profiling:\tYes"
DEBUG_FLAGS="-pg -DNDEBUG=1"
else
final_message="$final_message\n Profiling:\tNo"
DEBUG_FLAGS="-DNDEBUG=1"
fi
fi
CFLAGS="$CFLAGS $DEBUG_FLAGS"
CXXFLAGS="$CXXFLAGS $DEBUG_FLAGS"
if test "$use_optimizations" = "yes"; then
final_message="$final_message\n Optimization:\tYes"
CXXFLAGS="$CXXFLAGS -O2"
CFLAGS="$CFLAGS -O2"
else
final_message="$final_message\n Optimization:\tNo"
fi
# platform specific flags
if test "$host_vendor" = "apple" ; then
# standard xbmc paths
INCLUDES="$INCLUDES -I\$(abs_top_srcdir)/xbmc/osx"
if test "$use_arch" != "arm"; then
LIBS="$LIBS -framework IOKit"
LIBS="$LIBS -framework Cocoa"
LIBS="$LIBS -framework AppKit"
LIBS="$LIBS -framework Carbon"
LIBS="$LIBS -framework CoreAudio"
LIBS="$LIBS -framework QuickTime"
LIBS="$LIBS -framework AudioUnit"
LIBS="$LIBS -framework Foundation"
LIBS="$LIBS -framework CoreServices"
LIBS="$LIBS -framework CoreVideo"
LIBS="$LIBS -framework CoreAudio"
LIBS="$LIBS -framework AudioToolbox"
LIBS="$LIBS -framework CoreFoundation"
LIBS="$LIBS -framework DiskArbitration"
LIBS="$LIBS -framework ApplicationServices"
fi
elif test "$use_arch" = "arm"; then
CFLAGS="$CFLAGS -mfloat-abi=softfp -mno-apcs-stack-check"
CXXFLAGS="$CXXFLAGS -mfloat-abi=softfp -mno-apcs-stack-check"
FFMPEG_EXTRACFLAGS="-mfloat-abi=softfp"
if test "$use_tegra" = "yes"; then
# Compile for ARMv7a architecture, need to test gcc for vfpv3-d16 support
SAVE_CFLAGS="$CFLAGS"
CFLAGS="-mfpu=vfpv3-d16"
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([int foo;])],
[ CFLAGS="$SAVE_CFLAGS -Wno-psabi -Wa,-march=armv7a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mthumb-interwork"
CXXFLAGS="$CXXFLAGS -Wno-psabi -Wa,-march=armv7a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mthumb-interwork"
FFMPEG_EXTRACFLAGS="$FFMPEG_EXTRACFLAGS -mtune=cortex-a9 -mfpu=vfpv3-d16"
use_cpu=cortex-a9],
[ CFLAGS="$SAVE_CFLAGS -Wa,-march=armv6 -mtune=cortex-a8 -mthumb-interwork"
CXXFLAGS="$CXXFLAGS -Wa,-march=armv6 -mtune=cortex-a8 -mthumb-interwork"
use_cpu=cortex-a8])
else
# Compile for ARMv7a architecture, CortexA8 cpu and check for enabled NEON coprocessor
CFLAGS="$CFLAGS -Wa,-march=armv7a -mcpu=cortex-a8"
CXXFLAGS="$CXXFLAGS -Wa,-march=armv7a -mcpu=cortex-a8"
if test "$use_neon" = "yes"; then
CFLAGS="$CFLAGS -mfpu=neon -mvectorize-with-neon-quad"
CXXFLAGS="$CXXFLAGS -mfpu=neon -mvectorize-with-neon-quad"
FFMPEG_EXTRACFLAGS="$FFMPEG_EXTRACFLAGS -mfpu=neon"
fi
fi
fi
# Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_CHOWN
AC_FUNC_CLOSEDIR_VOID
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FSEEKO
AC_PROG_GCC_TRADITIONAL
AC_FUNC_LSTAT
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MEMCMP
AC_FUNC_MKTIME
AC_FUNC_MMAP
# Boxee is apparently having compile problems
# if HAVE_REALLOC is defined. Sort this later.
#AC_FUNC_REALLOC
AC_FUNC_SELECT_ARGTYPES
AC_FUNC_SETVBUF_REVERSED
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_STRCOLL
AC_FUNC_STRFTIME
AC_FUNC_STRTOD
AC_FUNC_UTIME_NULL
AC_FUNC_VPRINTF
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])
# Check for various sizes
AC_CHECK_SIZEOF([int])
AC_CHECK_SIZEOF([size_t])
# Add top source directory for all builds so we can use config.h
INCLUDES="$INCLUDES -I\$(abs_top_srcdir)"
# Check inotify availability
AC_CHECK_HEADER([sys/inotify.h], AC_DEFINE([HAVE_INOTIFY],[1],[Define if we have inotify]),)
# Checks for boost headers using CXX instead of CC
AC_LANG_PUSH([C++])
AC_CHECK_HEADER([boost/shared_ptr.hpp],, AC_MSG_ERROR($missing_library))
AC_LANG_POP([C++])
# Checks for platforms libraries.
if test "$use_gles" = "yes"; then
use_gl="no"
# GLES overwrites GL if both set to yes.
if test "$host_vendor" = "apple" ; then
AC_DEFINE([HAVE_LIBEGL],[1],["Define to 1 if you have the `EGL' library (-lEGL)."])
AC_DEFINE([HAVE_LIBGLESV2],[1],["Define to 1 if you have the `GLESv2' library (-lGLESv2)."])
AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
else
AC_CHECK_LIB([EGL], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library))
fi
else
if test "$use_gl" = "yes"; then
if test "$host_vendor" = "apple" ; then
# linking to OpenGL.framework instead of libGL, libGLU so AC_CHECK_LIB will fail
LIBS="$LIBS -framework OpenGL"
AC_DEFINE([HAVE_LIBGL],[1],["Define to 1 if you have the `GL' library (-lGL)."])
AC_MSG_RESULT(== WARNING: OpenGL support is assumed.)
AC_DEFINE([HAVE_LIBGLU],[1],["Define to 1 if you have the `GLU' library (-lGLU)."])
AC_MSG_RESULT(== WARNING: OpenGLU support is assumed.)
AC_CHECK_LIB([GLEW],[main],, AC_MSG_ERROR($missing_library))
else
AC_CHECK_LIB([GL], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([GLEW],[main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([GLU], [main],, AC_MSG_ERROR($missing_library))
fi
else
AC_MSG_RESULT(== WARNING: OpenGL support is disabled. XBMC will run VERY slow. ==)
AC_CHECK_LIB([SDL_gfx],[main])
fi
fi
# platform common libraries
AC_CHECK_PROG(MYSQL_CONFIG, mysql_config, "yes", "no")
if test $MYSQL_CONFIG = "yes"; then
INCLUDES="$INCLUDES `mysql_config --include`"
MYSQL_LIBS=`mysql_config --libs`
LIBS="$LIBS $MYSQL_LIBS"
AC_SUBST(MYSQL_LIBS)
else
AC_MSG_ERROR($missing_program)
fi
AC_CHECK_HEADER([ass/ass.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([mpeg2dec/mpeg2.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([mpeg2dec/mpeg2convert.h],, AC_MSG_ERROR($missing_library),
AC_INCLUDES_DEFAULT()
[#include <mpeg2dec/mpeg2.h>])
AC_CHECK_HEADER([mad.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([jpeglib.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([samplerate.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([ogg/ogg.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([vorbis/vorbisfile.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([vorbis/vorbisenc.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([libmodplug/modplug.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([curl/curl.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([FLAC/stream_decoder.h],, AC_MSG_ERROR($missing_library))
# we need to check for the header because if it exists we set the openssl
# and gcrypt MT callback hooks. This is mostly so that libcurl operates
# in MT manner correctly.
AC_CHECK_HEADER([openssl/crypto.h], AC_DEFINE([HAVE_OPENSSL],[1],[Define if we have openssl]),)
AC_CHECK_HEADER([gcrypt.h], gcrypt_headers_available=yes,gcrypt_headers_available=no)
if test "$gcrypt_headers_available" = "yes"; then
# if we have the headers then we must have the lib
AC_CHECK_LIB([gcrypt],[gcry_control],, AC_MSG_ERROR($missing_library))
AC_DEFINE([HAVE_GCRYPT],[1],[Define if we have gcrypt])
fi
AC_CHECK_LIB([bz2], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([jpeg], [main],, AC_MSG_ERROR($missing_library)) # check for cximage
AC_CHECK_LIB([tiff], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([pthread], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([lzo2], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([z], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([crypto], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([ssl], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([mysqlclient], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([ssh], [sftp_tell64],, AC_MSG_RESULT([Could not find suitable version of libssh]))
AC_CHECK_LIB([bluetooth], [hci_devid],, AC_MSG_RESULT([Could not find suitable version of libbluetooth]))
AC_CHECK_LIB([yajl], [main],, AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([FONTCONFIG], [fontconfig],
[INCLUDES="$INCLUDES $FONTCONFIG_CFLAGS"; LIBS="$LIBS $FONTCONFIG_LIBS"],
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([FRIBIDI], [fribidi],
[INCLUDES="$INCLUDES $FRIBIDI_CFLAGS"; LIBS="$LIBS $FRIBIDI_LIBS"],
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([SQLITE3], [sqlite3],
[INCLUDES="$INCLUDES $SQLITE3_CFLAGS"; LIBS="$LIBS $SQLITE3_LIBS"],
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([PNG], [libpng],
[INCLUDES="$INCLUDES $PNG_CFLAGS"; LIBS="$LIBS $PNG_LIBS"],
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([PCRE], [libpcre],
[INCLUDES="$INCLUDES $PCRE_CFLAGS"; LIBS="$LIBS $PCRE_LIBS"]; \
AC_DEFINE([HAVE_LIBPCRE],[1],["Define to 1 if libpcre is installed"]),
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([PCRECPP], [libpcrecpp],
[INCLUDES="$INCLUDES $PCRECPP_CFLAGS"; LIBS="$LIBS $PCRECPP_LIBS"]; \
AC_DEFINE([HAVE_LIBPCRECPP],[1],["Define to 1 if libpcrecpp is installed"]),
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([CDIO], [libcdio],
[INCLUDES="$INCLUDES $CDIO_CFLAGS"; LIBS="$LIBS $CDIO_LIBS"],
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([SAMPLERATE], [samplerate],
[INCLUDES="$INCLUDES $SAMPLERATE_CFLAGS"; LIBS="$LIBS $SAMPLERATE_LIBS"],
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([FREETYPE2], [freetype2],
[INCLUDES="$INCLUDES $FREETYPE2_CFLAGS"; LIBS="$LIBS $FREETYPE2_LIBS"],
AC_MSG_ERROR($missing_library))
# check for libbluray
AS_CASE([x$use_libbluray],
[xyes],[
PKG_CHECK_MODULES([LIBBLURAY],[libbluray],[use_libbluray="yes"], AC_MSG_ERROR($missing_library))
],
[xauto],[
PKG_CHECK_MODULES([LIBBLURAY],[libbluray],[use_libbluray="yes"], [use_libbluray="no"])
])
AS_CASE([x$use_libbluray],
[xyes],[
INCLUDES="$INCLUDES $LIBBLURAY_CFLAGS";
XB_FIND_SONAME([BLURAY], [bluray], [use_libbluray])
AC_DEFINE([HAVE_LIBBLURAY], 1, [System has libbluray library])
AC_SUBST([HAVE_LIBBLURAY], 1)
XB_PUSH_FLAGS(
[$LIBBLURAY_CFLAGS]
, [$LIBBLURAY_LIBS]
, AC_MSG_CHECKING([libbluray version])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#include <libbluray/bluray.h>]
,[bd_get_playlist_info(0, 0)])]
,[AC_MSG_RESULT(version has old angle api)
AC_DEFINE([HAVE_LIBBLURAY_NOANGLE],[],[System has an old api libbluray without angle support])]
,[AC_MSG_RESULT(normal)]
)
AC_MSG_CHECKING([for libbluray log control])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[#include <libbluray/bluray.h>
#include <libbluray/log_control.h>]
,[bd_set_debug_mask(0)])]
, AC_MSG_RESULT(yes)
,[AC_MSG_RESULT(no)
AC_DEFINE([HAVE_LIBBLURAY_NOLOGCONTROL],[],[System has an old api libbluray without log support])]
)
)
],[
# AC_DEFINE([HAVE_LIBBLURAY], 0, [System has libbluray library])
AC_SUBST([HAVE_LIBBLURAY], 0)
]
)
# platform dependent libraries
if test "$host_vendor" = "apple" ; then
AC_CHECK_LIB([iconv], [main],, AC_MSG_ERROR($missing_library))
if test "$use_arch" != "arm"; then
AC_CHECK_LIB([SDL_mixer],[main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([SDL], [main],, AC_MSG_ERROR($missing_library))
AC_DEFINE([HAVE_SDL],[1],["Define to 1 if using sdl"])
fi
else
AC_CHECK_LIB([dl], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([resolv], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([jasper], [main],, AC_MSG_ERROR($missing_library)) # check for cximage
AC_CHECK_LIB([rt], [clock_gettime],, AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([ALSA], [alsa],
[INCLUDES="$INCLUDES $ALSA_CFLAGS"; LIBS="$LIBS $ALSA_LIBS"; use_alsa=yes],
AC_MSG_NOTICE($alsa_not_found); use_alsa=no)
PKG_CHECK_MODULES([DBUS], [dbus-1],
[INCLUDES="$INCLUDES $DBUS_CFLAGS"; LIBS="$LIBS $DBUS_LIBS"; use_dbus=yes]; \
AC_DEFINE([HAVE_DBUS],[1],["Define to 1 if dbus is installed"]),
AC_MSG_NOTICE($missing_library); use_dbus=no)
if test "x$use_sdl" != "xno"; then
PKG_CHECK_MODULES([SDL], [sdl],
[INCLUDES="$INCLUDES $SDL_CFLAGS"; LIBS="$LIBS $SDL_LIBS"],
AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([SDL_mixer], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([SDL_image], [main],, AC_MSG_ERROR($missing_library))
AC_DEFINE([HAVE_SDL],[1],["Define to 1 if using sdl"])
fi
fi
XB_FIND_SONAME([MAD], [mad])
XB_FIND_SONAME([OGG], [ogg])
XB_FIND_SONAME([CURL], [curl])
XB_FIND_SONAME([FLAC], [FLAC])
XB_FIND_SONAME([VORBIS], [vorbis])
XB_FIND_SONAME([VORBISENC], [vorbisenc])
XB_FIND_SONAME([VORBISFILE], [vorbisfile])
XB_FIND_SONAME([MODPLUG], [modplug])
XB_FIND_SONAME([ASS], [ass])
XB_FIND_SONAME([MPEG2], [mpeg2])
# WebServer
if test "$use_webserver" = "yes"; then
AC_CHECK_LIB([microhttpd], [main],, AC_MSG_ERROR($missing_library))
fi
# Optical
if test "$use_optical_drive" = "yes"; then
AC_DEFINE([HAS_DVD_DRIVE], [1], [Define to 1 to have optical drive support])
fi
# PulseAudio
if test "x$use_pulse" != "xno"; then
if test "$host_vendor" = "apple" ; then
if test "x$use_pulse" = "xyes"; then
AC_MSG_ERROR($pulse_disabled)
else
use_pulse="no"
AC_MSG_RESULT($pulse_disabled)
fi
USE_PULSE=0
else
AC_CHECK_LIB([pulse], [main],,
[if test "x$use_pulse" = "xyes"; then
AC_MSG_ERROR($pulse_not_found)
else
use_pulse=no
USE_PULSE=0
AC_MSG_RESULT($pulse_not_found)
fi])
USE_PULSE=1
fi
else
AC_MSG_RESULT($pulse_disabled)
USE_PULSE=0
fi
# HAL
if test "$host_vendor" = "apple" ; then
use_hal="no"
AC_MSG_RESULT($hal_disabled)
else
if test "$use_hal" = "yes"; then
PKG_CHECK_MODULES([HAL], [hal],
[INCLUDES="$INCLUDES $HAL_CFLAGS"; LIBS="$LIBS $HAL_LIBS"],
use_hal=no;AC_MSG_RESULT($hal_not_found))
PKG_CHECK_MODULES([HAL_STORAGE], [hal-storage],
[INCLUDES="$INCLUDES $HAL_STORAGE_CFLAGS"; LIBS="$LIBS $HAL_STORAGE_LIBS"],
use_hal=no;AC_MSG_RESULT($halstorage_not_found))
else
AC_MSG_RESULT($hal_disabled)
fi
if test "$use_hal" = "yes"; then
AC_DEFINE([HAS_HAL], [1], [Define to 1 if you have HAL installed])
fi
fi
# avahi
if test "$host_vendor" = "apple" ; then
use_avahi="no"
AC_MSG_RESULT($avahi_disabled)
else
if test "$use_avahi" = "yes"; then
AC_CHECK_LIB([avahi-common], [main],,
use_avahi=no;AC_MSG_RESULT($avahi_not_found))
if test "$use_avahi" = "yes"; then
#either both libs or none
AC_CHECK_LIB([avahi-client], [main],,
use_avahi=no;AC_MSG_RESULT($avahi_not_found))
fi
else
AC_MSG_RESULT($avahi_disabled)
fi
fi
# X11
if test "$use_x11" = "yes" && test "$host_vendor" != "apple"; then
AC_MSG_NOTICE($x11_enabled)
PKG_CHECK_MODULES([X11], [x11],
[INCLUDES="$INCLUDES $X11_CFLAGS"; LIBS="$LIBS $X11_LIBS"],
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([XEXT], [xext],
[INCLUDES="$INCLUDES $XEXT_CFLAGS"; LIBS="$LIBS $XEXT_LIBS"],
AC_MSG_ERROR($missing_library))
AC_DEFINE([HAVE_X11], [1], [Define to 1 if you have X11 libs installed.])
else
AC_MSG_RESULT($x11_disabled)
fi
# XRandR
if test "$host_vendor" = "apple" || test "$use_x11" = "no"; then
use_xrandr="no"
AC_MSG_RESULT($xrandr_disabled)
else
if test "$use_xrandr" = "yes" ; then
AC_CHECK_LIB([Xrandr], [main],,
use_xrandr="no";AC_MSG_RESULT($xrandr_not_found))
else
AC_MSG_RESULT($xrandr_disabled)
fi
fi
# GOOM
if test "$host_vendor" = "apple" ; then
AC_MSG_NOTICE($goom_disabled)
DISABLE_GOOM=1
else
if test "$use_goom" = "yes" && test "$use_gl" = "yes"; then
AC_MSG_NOTICE($goom_enabled)
DISABLE_GOOM=0
else
AC_MSG_NOTICE($goom_disabled)
DISABLE_GOOM=1
fi
fi
# RSXS
if test "$use_rsxs" = "no" || test "$use_gl" = "no"; then
AC_MSG_NOTICE($rsxs_disabled)
DISABLE_RSXS=1
else
AC_MSG_NOTICE($rsxs_enabled)
DISABLE_RSXS=0
# darwin osx can do rsxs but does not use x11, so do not pkg-config check for them
if test "$host_vendor" != "apple" ; then
PKG_CHECK_MODULES([XT], [xt],
[INCLUDES="$INCLUDES $XT_CFLAGS"; LIBS="$LIBS $XT_LIBS"],
AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([XMU], [xmu],
[INCLUDES="$INCLUDES $XMU_CFLAGS"; LIBS="$LIBS $XMU_LIBS"],
AC_MSG_ERROR($missing_library))
fi
fi
# PROJECTM
if test "$use_projectm" = "no" || test "$use_gl" = "no"; then
AC_MSG_NOTICE($projectm_disabled)
DISABLE_PROJECTM=1
else
AC_MSG_NOTICE($projectm_enabled)
DISABLE_PROJECTM=0
fi
# skin touched
use_skin_touched=no
if [[ -f "addons/skin.touched/addon.xml" ]]; then
use_skin_touched=yes
USE_SKIN_TOUCHED=1
AC_DEFINE([HAS_SKIN_TOUCHED], [1], [Whether to build skin touched.])
else
USE_SKIN_TOUCHED=0
fi
# libRTMP
if test "$use_librtmp" != "no"; then