File: configure.ac

package info (click to toggle)
lebiniou 3.30-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,240 kB
  • sloc: ansic: 19,339; sh: 4,154; makefile: 893; awk: 148
file content (698 lines) | stat: -rw-r--r-- 21,818 bytes parent folder | download
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
AC_INIT([lebiniou],[3.30],[olivier@biniou.info])
AC_PREREQ([2.68])
AC_CONFIG_SRCDIR([src/main.c])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.11 foreign -Wall -Werror])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

dnl ------------------------------------------------------------------
dnl Versioning
dnl ------------------------------------------------------------------
BINIOU_MAJOR=3
BINIOU_MINOR=30
BINIOU_VERSION="$BINIOU_MAJOR.$BINIOU_MINOR"
AC_SUBST(BINIOU_VERSION)

dnl Prelude
LDFLAGS="$LDFLAGS -rdynamic"
LDFLAGS="$LDFLAGS -Wl,-z,now"

dnl Checks for programs
OLD_FLAGS="$CFLAGS"
AC_PROG_CC
CFLAGS="$OLD_FLAGS"
AM_PROG_CC_C_O
AC_PROG_SED

dnl LFS
AC_SYS_LARGEFILE

m4_undefine([AC_PROG_F77])
m4_defun([AC_PROG_F77],[])

PKG_PROG_PKG_CONFIG

dnl Check OS family/flavor
os_family="unknown"
os_flavor="unknown"
DEFAULT_INPUT_PLUGIN=oss
case "$target_os" in
  *kfreebsd*)
    os_family=bsd
    os_flavor=kfreebsd
    ;;

  dragonfly*|darwin*)
    os_family=bsd
    LDFLAGS="$LDFLAGS -lz"
    ;;

  netbsd*)
    os_family=bsd
    os_flavor=netbsd
    export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/pkg/lib/ffmpeg4/pkgconfig"
    ;;

  freebsd*)
    os_family=bsd
    os_flavor=freebsd
    ;;

  openbsd*)
    os_family=bsd
    os_flavor=openbsd
    ;;

dnl Hurd
  *pc-gnu*)
    os_family=linux
    os_flavor=hurd
    ;;

  *)
    os_family=linux
    os_flavor=linux
    LIBS="$LIBS -ldl"
    DEFAULT_INPUT_PLUGIN=alsa
esac
AC_MSG_CHECKING([for operating system family])
AC_MSG_RESULT([${os_family}])
AC_MSG_CHECKING([for operating system flavor])
AC_MSG_RESULT([${os_flavor}])
AM_CONDITIONAL([OS_LINUX_FAMILY], [test "x${os_family}" = "xlinux"])
AM_CONDITIONAL([OS_NETBSD_OR_OPENBSD], [test "x${os_flavor}" = "xnetbsd" || test "x${os_flavor}" = "xopenbsd"])

# Checks for libraries

# glib-2.0
PKG_CHECK_MODULES([GLIB], [glib-2.0], , [AC_MSG_ERROR([You must have libglib2.0-dev installed])])
CFLAGS="$CFLAGS `$PKG_CONFIG glib-2.0 --cflags`"

# fftw3
PKG_CHECK_MODULES([FFTW3], [fftw3], , [AC_MSG_ERROR([You must have libfftw3-dev installed])])

# libxml-2.0
PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.6.0], , [AC_MSG_ERROR([You must have libxml2-dev >= 2.6 installed])])
CFLAGS="$CFLAGS `$PKG_CONFIG libxml-2.0 --cflags`"

# freetype-2
PKG_CHECK_MODULES([FT2], [freetype2], , [AC_MSG_ERROR([You must have libfreetype6-dev installed])])
CFLAGS="$CFLAGS `$PKG_CONFIG freetype2 --cflags`"

LIBS="$LIBS ${GLIB_LIBS} ${FFTW3_LIBS} ${XML2_LIBS} -lm"

# We need to know which prefix we used to find some default values
if test "x${prefix}" = "xNONE"; then
	prefix="/usr/local"
fi
LEBINIOU_LIBDIR="$prefix/lib"
if test x"$DEB_HOST_MULTIARCH" != "x"; then
   LEBINIOU_LIBDIR="$LEBINIOU_LIBDIR/$DEB_HOST_MULTIARCH"
fi
LEBINIOU_SHAREDIR="$prefix/share/lebiniou"
LEBINIOU_DATADIR="${LEBINIOU_SHAREDIR}"
LEBINIOU_PLUGINSDIR="${LEBINIOU_LIBDIR}/lebiniou/plugins"
LEBINIOU_SCHEMES_FILE="${LEBINIOU_SHAREDIR}/etc/schemes.xml"

AC_SUBST(LEBINIOU_DATADIR)
AC_SUBST(LEBINIOU_PLUGINSDIR)
AC_SUBST(LEBINIOU_SCHEMES_FILE)

dnl Check for SwScale
PKG_CHECK_MODULES([SWSCALE], [libswscale], , [AC_MSG_ERROR([You must have libswscale-dev installed])])
CFLAGS="$CFLAGS ${SWSCALE_CFLAGS}"
LIBS="$LIBS ${SWSCALE_LIBS}"
dnl Check for avutils
PKG_CHECK_MODULES([AVUTIL], [libavutil], , [AC_MSG_ERROR([You must have libavutil-dev installed])])
LIBS="$LIBS ${AVUTIL_LIBS}"

dnl Keep a list of input/output plugins
INPUT_PLUGINS="oss"
AC_SUBST([INPUT_PLUGINS])
OUTPUT_PLUGINS="SDL2"
AC_SUBST([OUTPUT_PLUGINS])

dnl Compile the core engine
AC_ARG_ENABLE([core],
	AS_HELP_STRING([--enable-core],[build the core engine [default=yes]]),,
	enable_core="yes")
AM_CONDITIONAL([WITH_CORE], [test "x${enable_core}" = "xyes"])

dnl Check for Alsa
alsa_present="no"
AC_ARG_ENABLE([alsa],
	AS_HELP_STRING([--enable-alsa],[build the ALSA input plugin [default=yes]]),,
	enable_alsa="yes")
if test "x${enable_alsa}" = "xyes"; then
   PKG_CHECK_MODULES([ALSA], alsa, alsa_present=yes, alsa_present=no)
fi
AM_CONDITIONAL([ALSA_PLUGIN], [test "x${alsa_present}" = "xyes"])
if test "x${alsa_present}" = "xyes"; then
   INPUT_PLUGINS="$INPUT_PLUGINS, alsa"
fi

dnl Check for JACK Audio
jack_present="no"
AC_ARG_ENABLE([jackaudio],
	AS_HELP_STRING([--enable-jackaudio],[build the JACK Audio input plugin [default=yes]]),,
	enable_jack="yes")
if test "x${enable_jack}" = "xyes"; then
   PKG_CHECK_MODULES([JACK], jack, jack_present=yes, jack_present=no)
fi
AM_CONDITIONAL([JACK_PLUGIN], [test "x${jack_present}" = "xyes"])
if test "x${jack_present}" = "xyes"; then
   INPUT_PLUGINS="$INPUT_PLUGINS, jackaudio"
fi

dnl Check for libpulse
pulseaudio_present="no"
AC_ARG_ENABLE([pulseaudio],
	AS_HELP_STRING([--enable-pulseaudio],[build the PulseAudio input plugin [default=yes]]),,
	enable_pulseaudio="yes")
if test "x${enable_pulseaudio}" = "xyes"; then
   PKG_CHECK_MODULES([PULSEAUDIO], libpulse-simple, pulseaudio_present=yes, pulseaudio_present=no)
fi
AM_CONDITIONAL([PULSEAUDIO_PLUGIN], [test "x${pulseaudio_present}" = "xyes"])
if test "x${pulseaudio_present}" = "xyes"; then
   INPUT_PLUGINS="$INPUT_PLUGINS, pulseaudio"
fi

dnl Check for eSound
esd_present="no"
AC_ARG_ENABLE([esd],
	AS_HELP_STRING([--enable-esd],[build the ESD input plugin [default=no]]),,
	enable_esd="no")
if test "x${enable_esd}" = "xyes"; then
   PKG_CHECK_MODULES([ESD], esound >= 0.2.36, esd_present=yes, esd_present=no)
fi
AM_CONDITIONAL([ESD_PLUGIN], [test "x${esd_present}" = "xyes"])
if test "x${esd_present}" = "xyes"; then
   INPUT_PLUGINS="$INPUT_PLUGINS, esound"
fi

dnl Check for sndfile
AC_ARG_ENABLE([sndfile],
	AS_HELP_STRING([--enable-sndfile],[build the SndFile input plugin [default=yes]]),,
	enable_sndfile="yes")
if test "x${enable_sndfile}" = "xyes"; then
   PKG_CHECK_MODULES([SNDFILE], sndfile, sndfile_present=yes, sndfile_present=no)
fi
AM_CONDITIONAL([SNDFILE_PLUGIN], [test "x${sndfile_present}" = "xyes"])
if test "x${sndfile_present}" = "xyes"; then
   INPUT_PLUGINS="$INPUT_PLUGINS, sndfile"
fi

dnl Twip input plugin
AC_ARG_ENABLE([twip],
	AS_HELP_STRING([--enable-twip],[build the Twip input plugin [default=yes]]),,
	enable_twip="yes")
AM_CONDITIONAL([TWIP_PLUGIN], [test "x${enable_twip}" = "xyes"])
if test "x${enable_twip}" = "xyes"; then
   INPUT_PLUGINS="$INPUT_PLUGINS, twip"
fi

dnl Check for libcaca
caca_present="no"
AC_ARG_ENABLE([caca],
	AS_HELP_STRING([--enable-caca],[build the libcaca plugin [default=yes]]),,
	enable_caca="yes")
if test "x${enable_caca}" = "xyes"; then
	PKG_CHECK_MODULES([CACA], caca, caca_present=yes, caca_present=no)
fi
AM_CONDITIONAL([CACA_PLUGIN], [test "x${caca_present}" = "xyes"])
if test "x${caca_present}" = "xyes"; then
   OUTPUT_PLUGINS="$OUTPUT_PLUGINS, caca"
fi

dnl Fixed buffers support
AC_ARG_ENABLE([fixed],
	[AS_HELP_STRING([--enable-fixed="WIDTHxHEIGHT"],[Use fixed-size video buffers [default=no]])],
	[enable_fixed=$enableval],
	[enable_fixed="no"])
if test "x${enable_fixed}" != "xno"; then
   FIXED_W=${enableval%*x*}
   FIXED_H=${enableval#*x*}
   CPPFLAGS="$CPPFLAGS -DFIXED -DWIDTH=$FIXED_W -DHEIGHT=$FIXED_H"
fi

dnl Set webcam capture size
AC_ARG_ENABLE([camsize],
	[AS_HELP_STRING([--enable-camsize="WIDTHxHEIGHT"],[Set webcam capture size [default="640x480"]])],
	[enable_camsize=$enableval],
	[enable_camsize="no"])
CAP_W=640
CAP_H=480
if test "x${enable_camsize}" != "xno"; then
   CAP_W=${enableval%*x*}
   CAP_H=${enableval#*x*}
   CPPFLAGS="$CPPFLAGS -DCAPTURE_SET -DCAP_WIDTH=$CAP_W -DCAP_HEIGHT=$CAP_H"
fi

dnl Check for getopt / getopt_long
dnl XXX completely review this -- only needed for the main binary --oliv3
dnl FIXME eeeuh on check 2x ?! --oliv3
AC_CHECK_FUNCS([getopt_long], , AC_DEFINE([HAVE_GETOPT_LONG]))
HAVE_GETOPT_LONG="no"
GETOPT_LONG_LIBS=""
AC_CHECK_FUNC([getopt_long], [HAVE_GETOPT_LONG="yes"])
if test "x$HAVE_GETOPT_LONG" != "xyes" ; then
        dnl FreeBSD has a gnugetopt library
        AC_CHECK_LIB([gnugetopt], [getopt_long], [HAVE_GETOPT_LONG="yes"])
        if test "x$HAVE_GETOPT_LONG" = "xyes"; then
                GETOPT_LONG_LIBS="-lgnugetopt"
        fi
fi
AC_SUBST(GETOPT_LONG_LIBS)
if test "x$HAVE_GETOPT_LONG" = "xyes"; then
	AC_DEFINE([HAVE_GETOPT_LONG])
fi

dnl Checks for header files
AC_CHECK_HEADERS([ \
sys/mman.h \
poll.h \
sys/time.h \
sys/ioctl.h \
sys/stat.h \
sys/types.h \
stdio.h \
stdlib.h \
string.h \
unistd.h \
dirent.h \
errno.h \
fcntl.h \
dlfcn.h \
zlib.h \
complex.h \
pthread.h \
ctype.h \
stdint.h \
assert.h \
malloc.h \
math.h \
getopt.h \
time.h \
soundcard.h \
sys/soundcard.h \
sys/select.h
])

dnl Check for SDL2
DEFAULT_OUTPUT_PLUGIN=SDL2
PKG_CHECK_MODULES([SDL2],[sdl2],have_sdl2=yes,[AC_MSG_ERROR([You must have libsdl2-dev installed])])

dnl Check for SDL2_ttf
PKG_CHECK_MODULES([SDL2_ttf],[SDL2_ttf],have_sdl2_ttf=yes,[AC_MSG_ERROR([You must have libsdl2-ttf-dev installed])])

dnl Set default font path
dnl default: Debian/Ubuntu
OSD_FONT="/usr/share/fonts/truetype/freefont/FreeMono.ttf"
OSD_PTSIZE=16
if test x"${os_flavor}" = x"freebsd"; then
   OSD_FONT="/usr/local/share/fonts/dejavu/DejaVuSansMono.ttf"
OSD_PTSIZE=14
fi
AC_SUBST(OSD_FONT)
AC_SUBST(OSD_PTSIZE)

dnl Check for OpenGL/GLU
PKG_CHECK_MODULES([GLU],[glu],[have_opengl="yes"],[have_opengl="no"])
AC_ARG_ENABLE([opengl],
	AS_HELP_STRING([--enable-opengl],[enable OpenGL support [default=no]]),,
	[enable_opengl="no"])
AM_CONDITIONAL([EXTRA_OPENGL], [test "x${enable_opengl}" = "xyes"])
if test "x${enable_opengl}" = "xyes" && test "x${have_opengl}" = "xyes"; then
   CPPFLAGS="$CPPFLAGS -DWITH_GL"
   LIBS="$LIBS ${GLU_LIBS}"
   OUTPUT_PLUGINS="$OUTPUT_PLUGINS, GL"
fi

dnl ffmpeg/RTMP/mp4
OUTPUT_PLUGINS="$OUTPUT_PLUGINS, RTMP, mp4"

dnl pandoc
AC_CHECK_PROG([have_pandoc],[pandoc],[yes],[no])
AM_CONDITIONAL([WITH_PANDOC], [test "x${have_pandoc}" = "xyes"])
if test "x${have_pandoc}" = "xyes"; then
   CPPFLAGS="$CPPFLAGS -DMANLINK=\"\\\"$prefix/share/doc/lebiniou/html/manual.html\\\"\""
else
   AC_MSG_WARN([pandoc not found, can not build documentation])
fi

dnl Webcam support
have_webcam="no"
AC_CHECK_HEADERS(linux/videodev2.h, have_webcam=yes)
AC_CHECK_HEADERS(sys/videoio.h, have_webcam=yes)

AC_DEFINE_UNQUOTED([DEFAULT_INPUT_PLUGIN], ["$DEFAULT_INPUT_PLUGIN"], [Default input plugin])
AC_DEFINE_UNQUOTED([DEFAULT_OUTPUT_PLUGIN], ["$DEFAULT_OUTPUT_PLUGIN"], [Default output plugin])
AC_SUBST(LIBS)

if test "x$os_flavor" = "xopenbsd"; then
  CPPFLAGS="$CPPFLAGS -DSDL_DISABLE_IMMINTRIN_H"
fi

dnl Hardening
AC_CHECK_PROG(DPKG_BUILDFLAGS_CHECK,dpkg-buildflags,yes)
if test x"$DPKG_BUILDFLAGS_CHECK" = x"yes" ; then
CFLAGS="$CFLAGS `dpkg-buildflags --get CFLAGS`"
CPPFLAGS="$CPPFLAGS `dpkg-buildflags --get CPPFLAGS`"
LDFLAGS="$LDFLAGS `dpkg-buildflags --get LDFLAGS`"
else
CFLAGS="$CFLAGS -g -O2 -fstack-protector-strong -Wformat -Werror=format-security"
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
if test "x$os_flavor" != "xopenbsd"; then
  CPPFLAGS="$CPPFLAGS -Wdate-time"
fi
LDFLAGS="$LDFLAGS -Wl,-z,relro"
fi

dnl armhf
CFLAGS="$CFLAGS -fsigned-char"

dnl ------------------------------------------------------------------
dnl Options
dnl ------------------------------------------------------------------
dnl Debugging option
AC_ARG_ENABLE([debug],
	AS_HELP_STRING([--enable-debug],[turn on debugging [default=no]]),,
	enable_debug="no")
if test "x${enable_debug}" = "xyes"; then
	CPPFLAGS="$CPPFLAGS -DDEBUG"
	CFLAGS="$CFLAGS -O"
else
 	CPPFLAGS="$CPPFLAGS -DNDEBUG"
	CFLAGS="$CFLAGS -fomit-frame-pointer"
fi

dnl Extra debugging option
AC_ARG_ENABLE([xdebug],
	AS_HELP_STRING([--enable-xdebug],[turn on extra debugging [default=no]]),,
	enable_xdebug="no")
if test "x${enable_xdebug}" = "xyes"; then
	CPPFLAGS="$CPPFLAGS -DXDEBUG"
fi

dnl Treat warnings as errors
AC_ARG_ENABLE([warnings],
	AS_HELP_STRING([--enable-warnings],[treat warnings as errors [default=yes]]),,
	enable_warnings="yes")
if test "x${enable_warnings}" = "xyes"; then
	CFLAGS="$CFLAGS -Wall -Werror"
   if test "x${os_flavor}" != "xopenbsd"; then
	CFLAGS="$CFLAGS -Wextra -Wno-unused-parameter"
   fi
   if test "x${os_flavor}" = "xnetbsd"; then
        CFLAGS="$CFLAGS -Wno-old-style-declaration"
   fi
fi

dnl Disable calls to dlclose() (for debugging with valgrind)
AC_ARG_ENABLE([dlclose],
    AS_HELP_STRING([--disable-foo], [call dlclose() when unloading plugins [default=yes]]),[call_dlclose=no],[call_dlclose=yes])
if test "x${call_dlclose}" = "xno"; then
   CPPFLAGS="$CPPFLAGS -DDISABLE_DLCLOSE"
fi

dnl Use embedded pnglite
AC_ARG_WITH([pnglite],
            [AS_HELP_STRING([--with-pnglite],
              [Use embedded pnglite library])],
            [],
            [with_pnglite=no])
if test "x${os_family}" = "xbsd"; then
   with_pnglite="yes"
fi
AM_CONDITIONAL([WITH_PNGLITE], [test "x${with_pnglite}" != "xno"])
if test "x${with_pnglite}" = "xno"; then
   LIBS="$LIBS -lpnglite"
else
   LIBS="$LIBS -lz"
fi

dnl ------------------------------------------------------------------
dnl Plugin-specific stuff
dnl ------------------------------------------------------------------
AC_ARG_ENABLE([diskwriter],
	AS_HELP_STRING([--enable-diskwriter],[compile the diskwriter output plugin [default=yes]]),,
	enable_diskwriter="yes")
AM_CONDITIONAL([EXTRA_DISKWRITER], [test "x${enable_diskwriter}" = "xyes"])
if test "x${enable_diskwriter}" = "xyes"; then
   OUTPUT_PLUGINS="$OUTPUT_PLUGINS, diskwriter"
fi

if test "x${have_webcam}" = "xyes"; then
   AC_ARG_ENABLE([webcam],
	AS_HELP_STRING([--enable-webcam],[compile the Webcam plugin [default=yes]]),[enable_webcam=$enableval],
	[enable_webcam="yes"])
else
   enable_webcam="no"
fi
AM_CONDITIONAL([EXTRA_WEBCAM], [test "x${enable_webcam}" = "xyes"])
if test "x${enable_webcam}" = "xyes"; then
   CPPFLAGS="$CPPFLAGS -DWITH_WEBCAM"
fi

AC_ARG_ENABLE([old-delay],
	AS_HELP_STRING([--enable-old-delay],[compile old delay plugin [default=no]]),,
	enable_old_delay="no")
AM_CONDITIONAL([EXTRA_OLD_DELAY], [test "x${enable_old_delay}" = "xyes"])

dnl ------------------------------------------------------------------
dnl Output files
dnl ------------------------------------------------------------------
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([

Makefile
src/Makefile
src/defaults.h
plugins/Makefile
doc/Makefile
doc/manual/html/Makefile

plugins/stable/Makefile
plugins/stable/input/Makefile
plugins/stable/main/Makefile
plugins/stable/output/Makefile

plugins/stable/input/alsa/Makefile
plugins/stable/input/random/Makefile
plugins/stable/input/esound/Makefile
plugins/stable/input/oss/Makefile
plugins/stable/input/pulseaudio/Makefile
plugins/stable/input/sndfile/Makefile
plugins/stable/input/twip/Makefile
plugins/stable/input/jackaudio/Makefile

plugins/stable/main/aurora/Makefile
plugins/stable/main/bassline/Makefile
plugins/stable/main/blur1/Makefile
plugins/stable/main/blur2/Makefile
plugins/stable/main/blur3/Makefile
plugins/stable/main/blur4/Makefile
plugins/stable/main/blur5/Makefile
plugins/stable/main/blur6/Makefile
plugins/stable/main/blur7/Makefile
plugins/stable/main/blur8/Makefile
plugins/stable/main/cirrus/Makefile
plugins/stable/main/cirrus2/Makefile
plugins/stable/main/clear/Makefile
plugins/stable/main/color_cycle/Makefile
plugins/stable/main/critters/Makefile
plugins/stable/main/crp/Makefile
plugins/stable/main/cth_bighalfwheel/Makefile
plugins/stable/main/cth_hurricane/Makefile
plugins/stable/main/cth_smoke/Makefile
plugins/stable/main/cth_space_in/Makefile
plugins/stable/main/cth_space_out/Makefile
plugins/stable/main/cth_spiral/Makefile
plugins/stable/main/cth_xroller/Makefile
plugins/stable/main/cth_yroller/Makefile
plugins/stable/main/delay_l/Makefile
plugins/stable/main/delay_p/Makefile
plugins/stable/main/delay_pp/Makefile
plugins/stable/main/delay_ls/Makefile
plugins/stable/main/delay_ps/Makefile
plugins/stable/main/delay2/Makefile
plugins/stable/main/delay3/Makefile
plugins/stable/main/delayS_ls/Makefile
plugins/stable/main/delayS_lsp/Makefile
plugins/stable/main/drops/Makefile
plugins/stable/main/edge/Makefile
plugins/stable/main/emboss/Makefile
plugins/stable/main/faders/Makefile
plugins/stable/main/flow/Makefile
plugins/stable/main/foo/Makefile
plugins/stable/main/galaxy/Makefile
plugins/stable/main/warp/Makefile
plugins/stable/main/hodge/Makefile
plugins/stable/main/infinity/Makefile
plugins/stable/main/isquares/Makefile
plugins/stable/main/iPulse/Makefile
plugins/stable/main/kaleid2/Makefile
plugins/stable/main/life/Makefile
plugins/stable/main/melt/Makefile
plugins/stable/main/mosaic/Makefile
plugins/stable/main/nspiral/Makefile
plugins/stable/main/of_archimedean_spiral_3d/Makefile
plugins/stable/main/of_spiral/Makefile
plugins/stable/main/poincare/Makefile
plugins/stable/main/polaroscillo/Makefile
plugins/stable/main/pulse/Makefile
plugins/stable/main/ripple/Makefile
plugins/stable/main/roscillo/Makefile
plugins/stable/main/rotors/Makefile
plugins/stable/main/rp/Makefile
plugins/stable/main/scroll_bt/Makefile
plugins/stable/main/scroll_lr/Makefile
plugins/stable/main/scroll_rl/Makefile
plugins/stable/main/scroll_tb/Makefile
plugins/stable/main/sin1oscillo/Makefile
plugins/stable/main/sin2oscillo/Makefile
plugins/stable/main/speaker/Makefile
plugins/stable/main/spectrum/Makefile
plugins/stable/main/splash/Makefile
plugins/stable/main/swarm/Makefile
plugins/stable/main/taquin/Makefile
plugins/stable/main/touw_eiffel/Makefile
plugins/stable/main/tunnel/Makefile
plugins/stable/main/venus/Makefile
plugins/stable/main/video/Makefile
plugins/stable/main/voiceprint/Makefile
plugins/stable/main/xgum/Makefile
plugins/stable/main/xmirror_bottom/Makefile
plugins/stable/main/xmirror_top/Makefile
plugins/stable/main/xoscillo/Makefile
plugins/stable/main/xoscillo_s/Makefile
plugins/stable/main/xscanline/Makefile
plugins/stable/main/xshaker/Makefile
plugins/stable/main/xwave/Makefile
plugins/stable/main/ygum/Makefile
plugins/stable/main/ymirror_left/Makefile
plugins/stable/main/ymirror_right/Makefile
plugins/stable/main/yoscillo/Makefile
plugins/stable/main/yoscillo_s/Makefile
plugins/stable/main/yscanline/Makefile
plugins/stable/main/yshaker/Makefile
plugins/stable/main/ywave/Makefile
plugins/stable/main/zblur1/Makefile
plugins/stable/main/zblur2/Makefile
plugins/stable/main/zbroken/Makefile
plugins/stable/main/zebu1/Makefile
plugins/stable/main/zmonitor/Makefile
plugins/stable/main/zreflector/Makefile
plugins/stable/main/zspirals/Makefile
plugins/stable/main/GLCube/Makefile

plugins/stable/main/tv_webcam/Makefile
plugins/stable/main/tv_quark/Makefile
plugins/stable/main/tv_streak/Makefile
plugins/stable/main/tv_1d/Makefile
plugins/stable/main/tv_nervous/Makefile
plugins/stable/main/tv_predator/Makefile
plugins/stable/main/tv_fire/Makefile
plugins/stable/main/tv_diff/Makefile

plugins/stable/output/caca/Makefile
plugins/stable/output/diskwriter/Makefile
plugins/stable/output/mp4/Makefile
plugins/stable/output/SDL2/Makefile
plugins/stable/output/GL/Makefile
plugins/stable/output/RTMP/Makefile

])

AC_CONFIG_FILES([lebiniou.1.head lebiniou.1.tail lebiniou.desktop])
AC_CONFIG_FILES([doc/lebiniourc])

INPUT_PLUGINS="$INPUT_PLUGINS, random, NULL (no input)"
AC_DEFINE_UNQUOTED([INPUT_PLUGINS], ["$INPUT_PLUGINS"], [Available input plugins])
OUTPUT_PLUGINS="$OUTPUT_PLUGINS, NULL (no output)"
AC_DEFINE_UNQUOTED([OUTPUT_PLUGINS], ["$OUTPUT_PLUGINS"], [Available output plugins])

dnl Plugins compilation flags
COMPILER=`basename $CC`
PLUGIN_CFLAGS="-I$srcdir/../../../../src -fPIC"
PLUGIN_LDFLAGS="-shared -fPIC"

AC_SUBST([PLUGIN_CFLAGS])
AC_SUBST([PLUGIN_LDFLAGS])

dnl Output files
AC_OUTPUT

dnl ------------------------------------------------------------------
dnl Configuration report
dnl ------------------------------------------------------------------
yn() {
	if test "x$1" = "xyes"; then
		echo -n "	@<:@*@:>@ ";
	else
		echo -n "	@<:@ @:>@ ";
	fi
	echo $2
}

echo "-REPORT-"
echo
echo "=== Le Biniou v${BINIOU_VERSION} ==="
echo
echo " * Build options:"
echo "        Target OS:                  ${target_os}"
echo "        OS family:                  ${os_family}"
echo "        OS flavor:                  ${os_flavor}"
echo "        Installation prefix:        ${prefix}"
echo "        Preprocessor flags:        ${CPPFLAGS}"
echo "        Compiler flags:            ${CFLAGS}"
echo "        Linker flags:              ${LDFLAGS}"
echo "        Libraries:                 ${LIBS}"
echo "        Debug enabled:              ${enable_debug}"
echo "        Extra debug enabled:        ${enable_xdebug}"
echo "        Treat warnings as errors:   ${enable_warnings}"
echo "        Use dlclose():              ${call_dlclose}"
echo "        Plugin compiler flags:      ${PLUGIN_CFLAGS}"
echo "        Plugin linker flags:        ${PLUGIN_LDFLAGS}"
echo
echo "        Core engine:                ${enable_core}"
echo "        Embedded pnglite:           ${with_pnglite}"
if test "x${enable_fixed}" != "xno"; then
echo "        Fixed video buffers:        ${enable_fixed}"
fi
echo -n "        Webcam:                     ${enable_webcam}"
if test "x${enable_webcam}" != "xno"; then
   echo " (capture at ${CAP_W}x${CAP_H})"
else
   echo
fi
echo "        Documentation:              ${have_pandoc}"
echo "        Compile old delay plugins:  ${enable_old_delay}"

echo
echo " * Input plugins:"
yn yes "OSS"
yn ${jack_present} "JACK Audio"
if test "x${os_family}" = "xlinux"; then
	yn ${alsa_present} "ALSA"
	yn ${pulseaudio_present} "PulseAudio"
fi
yn ${esd_present} "eSound"
yn yes "/dev/urandom"
yn ${sndfile_present} "sndfile"
yn ${enable_twip} "twip"
echo "   (Default input plugin: "${DEFAULT_INPUT_PLUGIN}")"

echo
echo " * Output plugins:"
yn ${have_sdl2} "SDL2"
echo "   (Default font: "${OSD_FONT}", "${OSD_PTSIZE}"px)"
yn ${caca_present} "libcaca"
yn ${enable_diskwriter} "diskwriter"
if test "x${enable_opengl}" = "xyes"; then
   yn ${enable_opengl} "GL"
fi
yn yes "MP4 encoder"
yn yes "RTMP transport"
echo "   (Default output plugin: "${DEFAULT_OUTPUT_PLUGIN}")"
echo