r956: README.BUILD - add more library recommendations
[cinelerra_cv/ct.git] / configure.in
blobe142f8b3c612cdeb006dd08e5a6624e247028af6
1 AC_INIT(Cinelerra, 2.1)
3 AC_CANONICAL_SYSTEM
5 # Test for minimal version of autoconf
6 AC_PREREQ(2.57)
8 AM_INIT_AUTOMAKE
9 AC_CONFIG_HEADER(config.h)
10 AM_GNU_GETTEXT([external])
11 AM_GNU_GETTEXT_VERSION(0.12.1)
12 AM_PROG_AS
14 AC_LANG_CPLUSPLUS
15 AC_LANG_C
16 AC_PROG_CXX
18 AC_ENABLE_SHARED
19 AC_DISABLE_STATIC
20 AC_PROG_LIBTOOL
22 # hack for libtool 1.5 -- this is ugly and probably wrong, but works
23 if test `libtool --version | grep ltmain.sh | cut -b 25-27` = "1.5"; then
24    LTC_FLAGS="--tag=CC"
25    LTCXX_FLAGS="--tag=CXX"
27 AC_SUBST(LTC_FLAGS)
28 AC_SUBST(LTCXX_FLAGS)
31 # hack for using nasm for .S files
32 CCAS="\$(top_srcdir)/admin/nasm"
33 AC_SUBST(CCAS)
34 AC_SUBST(CCASFLAGS)
36 dnl Check for Video4Linux2
37 AH_TEMPLATE(HAVE_VIDEO4LINUX2, [Define to 1 if Video4Linux2 is available.])
38 AC_CHECK_HEADER([linux/videodev2.h], 
39         [AC_CHECK_MEMBER(struct v4l2_buffer.index, [AC_DEFINE(HAVE_VIDEO4LINUX2)], [],
40                 [#include <linux/time.h>])],
41         [],[#include <linux/time.h>] )
43 ############## SPECIAL DIRECTORIES
44 AC_ARG_WITH(plugindir,
45                                                 AC_HELP_STRING([--with-plugindir], [sets the directory where the plugins should be installed]),
46                                                 [ plugindir=$withval ],
47                                                 [ plugindir="\${exec_prefix}/lib/cinelerra" ])
48 AC_SUBST(plugindir)
50 AC_ARG_WITH(fontsdir,
51                                                 AC_HELP_STRING([--with-fontsdir], [sets the directory where the fonts should be installed]),
52                                                 [ fontsdir=$withval ],
53                                                 [ fontsdir="\${plugindir}/fonts" ])
54 AC_SUBST(fontsdir)
55 ############## END OF SPECIAL DIRECTORIES
57 ############## XLIB
58 AC_PATH_XTRA
59 if test "$no_x" = yes; then
60   if test "x$have_x" = "xdisabled"; then
61     AC_MSG_WARN([Do not use --without-x or --with-x=no.])
62   else
63     AC_MSG_WARN([X Windows development tools were not found.])
64     AC_MSG_WARN([Please install xlib-dev or xorg-x11-devel.])
65   fi
66   AC_MSG_ERROR([Cinelerra requires X Windows.])
68 AH_TEMPLATE(HAVE_LIBXXF86VM, [Define to 1 if libXxf86vm is available.])
69 AC_DEFINE(HAVE_LIBXXF86VM)
70 ############## END XLIB
72 ############## SOUND
73 # the sound options are propagated by SOUND_CFLAGS and SOUND_LDFLAGS
74 AC_ARG_ENABLE(oss, 
75                                                         AC_HELP_STRING([--disable-oss], [disable support for oss (default=enabled)]))
76 AC_ARG_ENABLE(alsa, 
77         AC_HELP_STRING([--disable-alsa],[disable support for ALSA (default=autodetect)]),
78         [enable_alsa=$enableval],[enable_alsa=yes])
79 AC_ARG_ENABLE(esd, 
80         AC_HELP_STRING([--disable-esd], [disable support for ESD (default=autodetect)]),
81         [enable_esd=$enableval],[enable_esd=yes])
83 if test "x$enable_oss" = "xyes" || test "x$enable_oss" = "x"; then
84         SOUND_CFLAGS="-DHAVE_OSS $SOUND_CFLAGS"
86 if test "x$enable_alsa" = "xyes"; then
87         AM_PATH_ALSA(1.0.2,[alsa=yes])
88         if test "x$alsa" = "xyes"; then
89                 SOUND_CFLAGS="$ALSA_CFLAGS -DHAVE_ALSA $SOUND_CFLAGS"
90                 SOUND_LDFLAGS="$ALSA_LIBS $SOUND_LDFLAGS"
91                 enable_alsa=ok
92         fi
93         dnl This added -lasound to LIBS. LIBS is used in every link command.
94         dnl But we do not want to link all shared libraries against -lasound.
95         dnl So we remove it again.
96         LIBS=`echo "$LIBS" | sed -e s/-lasound//g`
99 if test "x$enable_esd" = "xyes"; then
100         AM_PATH_ESD(,[esound=yes])
101         if test "x$esound" = xyes; then
102                 SOUND_CFLAGS="$ESD_CFLAGS -DHAVE_ESOUND $SOUND_CFLAGS"
103                 SOUND_LDFLAGS="$ESD_LIBS $SOUND_LDFLAGS"
104                 enable_esd=ok
105         fi
107 AC_SUBST(SOUND_CFLAGS)
108 AC_SUBST(SOUND_LDFLAGS)
109 ############### END OF SOUND
111 ############## MJPEGTOOLS (for YUV4MPEG)
112 PKG_CHECK_MODULES(MJPEG, mjpegtools,[mjpegtools=yes],:)
113 AC_SUBST(MJPEG_CFLAGS)
114 AC_SUBST(MJPEG_LIBS)
115 AC_MSG_CHECKING([for number of arguments to y4m_write_frame_header])
116 # check if mjpegtools has 3 arguements for y4m_write_frame_header
117 # Note: this test came from transcode...
118 save_CFLAGS="$CFLAGS"
119 save_LIBS="$LIBS"
120 CFLAGS="$CFLAGS $MJPEG_CFLAGS"
121 LIBS="$LIBS $MJPEG_LIBS"
122 AC_TRY_LINK(
124 #include <mjpegtools/yuv4mpeg.h>
125 #include <mjpegtools/mpegconsts.h>
127 [y4m_write_frame_header(1,NULL,NULL)],
129 AC_DEFINE(
130            [MJPEGTOOLS_Y4M_WRITE_FRAME_HEADER__3ARGS], 
131            [1], 
132            [using y4m_write_frame_header with 3 arguments]
133           )
134 mjpeg_version_info="3 arguments (new versions)"
135 ],[mjpeg_version_info="assuming 2 arguments (older versions)"])
136 AC_MSG_RESULT($mjpeg_version_info)
137 CFLAGS="$save_CFLAGS"
138 LIBS="$save_LIBS"
139 ############## END MJPEGTOOLS
141 ############## MISC LIBRARIES
142 AC_CHECK_HEADER(uuid/uuid.h,[libuuidh=yes])
143 AC_CHECK_LIB(uuid, uuid_clear,[libuuid=yes])
145 AC_CHECK_HEADER(fftw3.h,[libfftw3h=yes])
146 AC_CHECK_LIB(fftw3, fftw_free,[libfftw3=yes])
148 PKG_CHECK_MODULES(LIBDV,libdv >= 0.103,[libdv=yes],:)
149 AC_SUBST(LIBDV_CFLAGS)
150 AC_SUBST(LIBDV_LIBS)
152 PKG_CHECK_MODULES(PNG,libpng,[libpng=yes],:)
154 AC_CHECK_HEADER(jpeglib.h,[libjpegh=yes])
155 AC_CHECK_LIB(jpeg,jpeg_start_decompress,[libjpeg=yes])
157 AC_ARG_ENABLE(freetype2,
158         AC_HELP_STRING([--enable-freetype2],[enables freetype2 usage (default is use pkg-config detection)]),
159         [ 
160           [freetype2=yes] ],
161         [ PKG_CHECK_MODULES(FREETYPE,freetype2,[freetype2=yes],:) ])
162 ############## END OF MISC LIBRARIES
164 LARGEFILE_CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
165 AC_SUBST(LARGEFILE_CFLAGS)
167 ############## A52DEC
168 AC_CHECK_LIB(a52,a52_init,[liba52=yes])
169 AC_CHECK_HEADER(a52dec/a52.h,[liba52h=yes])
171 if test "x$liba52$liba52h" = "xyesyes"; then
172     A52DEC_CFLAGS=
173     A52DEC_LIBS=-la52
175 AC_SUBST(A52DEC_CFLAGS)
176 AC_SUBST(A52DEC_LDFLAGS)
177 ############## END OF A52DEC
179 ############## LIBSNDFILE
180 AC_CHECK_LIB(sndfile, sf_open,[libsndfile=yes])
181 AC_CHECK_HEADERS(sndfile.h,[libsndfileh=yes])
182 ############## END OF LIBSNDFILE
184 ############## OpenEXR
185 PKG_CHECK_MODULES(OPENEXR, OpenEXR,[libOpenEXR=yes],:)
186 AC_SUBST(OPENEXR_CFLAGS)
187 AC_SUBST(OPENEXR_LIBS)
188 ############## END OF OpenEXR
190 ############## LIBFAAD, LIBFAAC
191 AC_CHECK_LIB(faac, faacEncOpen,[libfaac=yes])
192 AC_CHECK_HEADER(faac.h,[libfaach=yes])
194 AC_CHECK_LIB(faad, faacDecInit,[libfaad=yes],
195         AC_CHECK_LIB(faad, NeAACDecInit,[libfaad=yes]))
196 AC_CHECK_HEADER(faad.h,[libfaadh=yes])
197 if test "x$libfaad$libfaadh" = xyesyes; then
198     FAAD_CFLAGS=
199     FAAD_LIBS="-lfaad"
201 AC_SUBST(FAAD_CFLAGS)
202 AC_SUBST(FAAD_LIBS)
203 ############## END OF LIBFAAD, LIBFAAC
205 ############## FIREWIRE
206 # firewire settings are propagated through FIREWIRE_CFLAGS and FIREWIRE_LDFLAGS
207 AC_ARG_ENABLE(firewire, 
208                                                         AC_HELP_STRING([--disable-firewire], [disable support for firewire (default=enabled)]),
209                                                         [ enable_firewire=$enableval ],
210                                                         [ enable_firewire=yes ])
212 if test "x$enable_firewire" = "xyes"; then
213         PKG_CHECK_MODULES(LIBRAW1394, libraw1394 >= 1.2.0,[libraw1394=yes],:)
214         PKG_CHECK_MODULES(LIBIEC61883, libiec61883,[libiec61883=yes],:)
216         AC_CHECK_LIB(avc1394, avc1394_send_command,[libavc1394=yes],:,$LIBRAW1394_LIBS)
217         AC_CHECK_HEADER([libavc1394/avc1394.h],[libavc1394h=yes])
218         AC_CHECK_LIB(rom1394, rom1394_get_bus_id,[librom1394=yes],:,$LIBRAW1394_LIBS)
219         AC_CHECK_HEADER([libavc1394/rom1394.h],[librom1394h=yes])
222 if test "x$enable_firewire$libraw1394$libiec61883$libavc1394$libavc1394h$librom1394$librom1394h" = "xyesyesyesyesyesyesyes"; then
223         FIREWIRE_CFLAGS="-DHAVE_FIREWIRE $LIBIEC61883_CFLAGS $LIBRAW1394_CFLAGS"
224         FIREWIRE_LDFLAGS="-lavc1394 -lrom1394 $LIBIEC61883_LIBS $LIBRAW1394_LIBS"
225         enable_firewire=ok
227 AC_SUBST(FIREWIRE_CFLAGS)
228 AC_SUBST(FIREWIRE_LDFLAGS)
229 AM_CONDITIONAL(HAVE_FIREWIRE,test "x$enable_firewire" = "xok")
230 ############## END OF FIREWIRE
232 ############# BUILDINFO display, (for displaying version / date)
233 AC_ARG_WITH(buildinfo,
234           AC_HELP_STRING(
235                   [--with-buildinfo],
236                   [includes revision information in the 'About' box; allowed values: svn, git; add /recompile to force rebuild on each make invocation]),
237         [ buildinfo=$withval],
238         [ buildinfo="none" ])
239 AC_SUBST(buildinfo)
241 BUILDINFO_repository=$(echo $buildinfo | sed 's=/recompile==')
242 BUILDINFO_recompile=$(echo $buildinfo | sed 's=.*/recompile=yes=')
243 AM_CONDITIONAL(BUILDINFO_GIT, test "x$BUILDINFO_repository" = "xgit")
244 AM_CONDITIONAL(BUILDINFO_SVN, test "x$BUILDINFO_repository" = "xsvn")
245 AM_CONDITIONAL(BUILDINFO_RECOMPILE, test "x$BUILDINFO_recompile" = "xyes")
247 echo removing cinelerra/versioninfo.h to force a re-build
248 rm -f cinelerra/versioninfo.h > /dev/null 2>&1
250 ############# END BUILDINFO display, (for displaying version / date)
252 ############# CSS SUPPORT IN LIBMPEG3
253 if test "x$enable_css" = "xyes"; then
254         CSS_CFLAGS="-DHAVE_CSS"
256 AC_SUBST(CSS_CFLAGS)
257 AC_ARG_ENABLE(css, 
258                                                         AC_HELP_STRING([--disable-css], [disable support for css in libmpeg3 (default=enabled)]),,
259                                                         [ enable_css=$enableval ],
260                                                         [ enable_css=yes ])
261 ############## END OF CSS SUPPORT IN LIBMPEG3
264 # MPEG2ENC declarations
265 have_asm_mmx=false
266 have_asm_sse=false
267 have_asm_nasm=false
268 have_x86cpu=false
271 ############## libx264
272 AC_CHECK_LIB(x264, x264_encoder_open,[libx264=yes],,-lpthread -lm)
273 AC_CHECK_HEADER(x264.h, [libx264h=yes])
274 ##############
276 ############## MMX / 3DNOW  POWERPC / ALTIVEC
278 AC_ARG_ENABLE(mmx, 
279                                                         AC_HELP_STRING([--enable-mmx], [enables support for mmx (default is disabled)]), 
280                                                         [ enable_mmx=$enableval ],
281                                                         [ enable_mmx=no ])
282 AC_ARG_ENABLE(3dnow, 
283                                                         AC_HELP_STRING([--enable-3dnow], [enables support for 3dnow (default is disabled)]),
284                                                         [ enable_3dnow=$enableval ],
285                                                         [ enable_3dnow=no ])
287 AC_ARG_ENABLE(altivec, 
288                 AC_HELP_STRING([--enable-altivec], [enables altivec support (default is disabled)]),
289                 [ enable_altivec=$enableval ],
290                 [ enable_altivec=no ])
292 ############ external ffmpeg
293 AC_ARG_WITH([external-ffmpeg], AC_HELP_STRING([--with-external-ffmpeg], [use external ffmpeg library]))
295 if test "x$with_external_ffmpeg" = "xyes"; then
296      PKG_CHECK_MODULES([FFMPEG], [libavcodec libpostproc])
297      FFMPEG_FOLDER=""
298      FFMPEG_EXTERNALTEXT="External ffmpeg"
299 else
300      FFMPEG_FOLDER=ffmpeg
301      FFMPEG_CFLAGS="-I\$(srcdir)/ffmpeg/libavcodec"
302      FFMPEG_LIBS="ffmpeg/libavcodec/libavcodec.la"
303      FFMPEG_EXTERNALTEXT="Internal ffmpeg"
306 AC_SUBST(FFMPEG_FOLDER)
307 AC_SUBST(FFMPEG_CFLAGS)
308 AC_SUBST(FFMPEG_LIBS)
309 AC_SUBST(FFMPEG_EXTERNALTEXT)
310 ############# END external ffmpeg
312 ############# run ffmpeg configure to generates avconfig.h
313 echo --- FFMPEG CONFIGURATION SECTION --------------
314 if test "x$with_external_ffmpeg" = "xyes"; then
315         echo Using external ffmpeg - no configuration needed
316 else
317         ff_conf_args=" "
319         if test "x$enable_mmx" = "xno"; then
320                 ff_conf_args="$ff_conf_args --disable-mmx"
321         fi
323         # Where altivec is not present
324         if test "x$enable_altivec" = "xno"; then
325                 ff_conf_args="$ff_conf_args --disable-altivec"
326         fi
329         srcdir_c=$(readlink -f $srcdir)
330         mkdir -p quicktime/ffmpeg/ > /dev/null 2>&1
331         cd quicktime/ffmpeg/
332         echo quicktime/ffmpeg/configure $ff_conf_args
333         $srcdir_c/quicktime/ffmpeg/configure $ff_conf_args
334         cd ../../
336 echo --------------------------------------------------
337 ############# END run ffmpeg configure to generates avconfig.h
339 enable_mmx=no
340 enable_3dnow=no
341 enable_powerpc=no
342 enable_altivec=no
344 case "$target_cpu" in
345 i586 | i686)
346         enable_mmx=yes
348         CPU_CFLAGS="-DX86_CPU $CPU_CFLAGS"
349         have_x86cpu=true
351         if test "x$enable_mmx" = "xyes"; then
352         CPU_CFLAGS="-DHAVE_MMX -DUSE_MMX $CPU_CFLAGS" # -D_MMX_ doesn't work
353         have_asm_mmx=true
354         fi
355         if test "x$enable_3dnow" = "xyes"; then
356                 CPU_CFLAGS="-DHAVE_3Dnow $CPU_CFLAGS" # -DUSE_3DNOW --> don't use, not compilin
357         fi
359 powerpc)
360         CPU_CFLAGS="-mcpu=powerpc $CPU_CFLAGS"
361         if test "x$enable_altivec" = "xyes"; then
362         CPU_CFLAGS="-maltivec -mabi=altivec $CPU_CFLAGS"
363         fi
364         enable_powerpc=yes
366 esac
368 AM_CONDITIONAL(USEMMX, test "x$enable_mmx" = "xyes")
369 AM_CONDITIONAL(TARGET_BUILTIN_VECTOR,test "x$enable_mmx" = "xyes")
370 AM_CONDITIONAL(USE3DNOW, test "x$enable_3dnow" = "xyes")
371 AM_CONDITIONAL(TARGET_ARCH_POWERPC, test "x$enable_powerpc" = "xyes")
372 AM_CONDITIONAL(TARGET_ALTIVEC, test "x$enable_altivec" = "xyes")
373 AC_SUBST(LIBDECORE_LIBADD)
374 AC_SUBST(CPU_CFLAGS)
377 ############## END OF MMX / 3DNOW
379 ############## XIPH
380 PKG_CHECK_MODULES(libogg,ogg >= 1.1,[libogg=yes],:)
381 PKG_CHECK_MODULES(libvorbis,vorbis,[libvorbis=yes],:)
382 PKG_CHECK_MODULES(libvorbisenc,vorbisenc,[libvorbisenc=yes],:)
383 PKG_CHECK_MODULES(libvorbisfile,vorbisfile,[libvorbisfile=yes],:)
384 PKG_CHECK_MODULES(libtheora,theora,[libtheora=yes],:)
385 XIPH_CFLAGS="$libogg_CFLAGS $libvorbis_CFLAGS $libvorbisenc_CFLAGS $libvorbisfile_CFLAGS $libtheora_CFLAGS"
386 XIPH_LIBS="$libogg_LIBS $libvorbis_LIBS $libvorbisenc_LIBS $libvorbisfile_LIBS $libtheora_LIBS"
387 AC_SUBST(XIPH_CFLAGS)
388 AC_SUBST(XIPH_LIBS)
389 ############## END OF XIPH
391 ############## LAME
392 # Just test to see if we have lame installed.
393 AC_CHECK_HEADER(lame/lame.h,[libmp3lameh=yes])
394 AC_CHECK_LIB(mp3lame,lame_init,[libmp3lame=yes],,[$XIPH_LIBS])
395 # END LAME
397 ############## OpenGL
398 AH_TEMPLATE(HAVE_GL, [Define to 1 if OpenGL 2.0 is available.])
399 AC_ARG_ENABLE(opengl,
400         AC_HELP_STRING([--disable-opengl],
401                 [disables hardware accelerated rendering (default=autodetect, requires OpenGL 2.0)]),
402         [ enable_opengl=$enableval ],
403         [ enable_opengl=yes ])
404 if test "x$enableval" = "xyes"; then
405         AC_CHECK_LIB([GL], [glUseProgram],
406                 [OPENGL_LIBS="-lGL"; libGL=yes],
407 # On SUSE 10.1, NVidia places the OpenGL 2.0 capable library in /usr/X11R6/lib
408 # but it doesn't place a libGL.so there, so the linker won't pick it up
409 # we have to use the explicit libGL.so.1 path.
410                 save_LIBS="$LIBS"
411                 LIBS="/usr/X11R6/lib/libGL.so.1"
412                 AC_MSG_CHECKING(for glUseProgram in /usr/X11R6/lib/libGL.so.1)
413                 AC_TRY_LINK([],[extern int glUseProgram(); glUseProgram();],
414                         [OPENGL_LIBS="/usr/X11R6/lib/libGL.so.1"; libGL=yes],[libGL=no])
415                 AC_MSG_RESULT([$libGL])
416                 LIBS="$save_LIBS"
417         )
419 if test "x$libGL" = "xyes"; then
420         enable_opengl=ok
421         OPENGL_LIBS="-lGLU $OPENGL_LIBS"
422         AC_DEFINE(HAVE_GL)
424 AC_SUBST(OPENGL_LIBS)
425 # END OpenGL
427 ############## .png TO .o CONVERSION
429 AC_CHECK_TOOL(OBJCOPY, objcopy)
430 if test "x$OBJCOPY" = "x"; then
431         AC_MSG_ERROR("objcopy from GNU binutils >= 2.11.90 not found")
433 AC_CHECK_TOOL(OBJDUMP, objdump)
434 dnl extract target and architecture if objdump was found
435 if test "x$OBJDUMP" = "x"; then :; else
436   AC_MSG_CHECKING(for object target)
437   octarget=`$OBJDUMP --info | sed -ne '2p'` # extract first target
438   AC_MSG_RESULT($octarget)
439   AC_MSG_CHECKING(for object architecture)
440   ocarch=`$OBJDUMP --info | sed -ne '4p'` # extract corresponding arch
441   AC_MSG_RESULT($ocarch)
443 AC_SUBST(OBJCOPYTARGET, $octarget)
444 AC_SUBST(OBJCOPYARCH, $ocarch)
446 ############## END of .png TO .o CONVERSION
449 AC_OUTPUT(Makefile cinelerra-cvs-current.spec po/Makefile.in \
450         m4/Makefile \
451                                         libmpeg3/Makefile libmpeg3/video/Makefile libmpeg3/audio/Makefile \
452                                         quicktime/Makefile \
453                                         quicktime/encore50/Makefile \
454         quicktime/ffmpeg/Makefile \
455         quicktime/ffmpeg/libavcodec/Makefile \
456         quicktime/ffmpeg/libavcodec/i386/Makefile \
457         quicktime/ffmpeg/libavcodec/ppc/Makefile \
458                                         mpeg2enc/Makefile toolame-02l/Makefile \
459                                         guicast/Makefile cinelerra/Makefile \
460         cinelerra/data/Makefile \
461         mplexlo/Makefile \
462                                         plugins/colors/Makefile \
463                                         plugins/libfourier/Makefile \
464                                         plugins/libeffecttv/Makefile \
465                                         plugins/Makefile
466                                         plugins/1080to540/Makefile \
467                                         plugins/histogram/Makefile \
468                                         plugins/720to480/Makefile \
469                                         plugins/bandslide/Makefile \
470                                         plugins/bandwipe/Makefile 
471                                         plugins/blur/Makefile 
472                                         plugins/brightness/Makefile \
473                                         plugins/burn/Makefile plugins/parametric/Makefile plugins/aging/Makefile \
474                                         plugins/cdripper/Makefile \
475                                         plugins/chromakey/Makefile \
476                                         plugins/chromakeyhsv/Makefile \
477                                         plugins/colorbalance/Makefile \
478                                         plugins/compressor/Makefile \
479                                         plugins/crossfade/Makefile \
480                                         plugins/decimate/Makefile \
481                                         plugins/deinterlace/Makefile plugins/delayaudio/Makefile plugins/delayvideo/Makefile \
482                                         plugins/denoise/Makefile plugins/denoisefft/Makefile plugins/denoisevideo/Makefile \
483                                         plugins/denoisemjpeg/Makefile \
484                                         plugins/despike/Makefile plugins/dissolve/Makefile plugins/dot/Makefile \
485                                         plugins/fieldframe/Makefile plugins/flip/Makefile plugins/framefield/Makefile \
486                                         plugins/freeverb/Makefile plugins/freezeframe/Makefile plugins/gain/Makefile \
487         plugins/gamma/Makefile \
488                                         plugins/holo/Makefile plugins/huesaturation/Makefile \
489                                         plugins/interpolate/Makefile \
490                                         plugins/interpolateaudio/Makefile \
491                                         plugins/interpolatevideo/Makefile \
492                                         plugins/invertaudio/Makefile plugins/invertvideo/Makefile plugins/irissquare/Makefile \
493                                         plugins/ivtc/Makefile \
494         plugins/liveaudio/Makefile \
495         plugins/livevideo/Makefile \
496                                         plugins/loopaudio/Makefile \
497                                         plugins/loopvideo/Makefile \
498                                         plugins/motion/Makefile \
499                                         plugins/motionblur/Makefile \
500                                         plugins/normalize/Makefile \
501                                         plugins/oilpainting/Makefile \
502                                         plugins/overlay/Makefile \
503         plugins/overlayaudio/Makefile \
504                                         plugins/pitch/Makefile \
505                                         plugins/polar/Makefile \
506                                         plugins/reframert/Makefile
507                                         plugins/reframe/Makefile plugins/resample/Makefile plugins/reverb/Makefile \
508                                         plugins/reverseaudio/Makefile plugins/reversevideo/Makefile plugins/rgb601/Makefile \
509                                         plugins/rotate/Makefile \
510                                         plugins/scale/Makefile \
511                                         plugins/denoiseseltempavg/Makefile \
512                                         plugins/shapewipe/Makefile \
513                                         plugins/sharpen/Makefile \
514                                         plugins/shiftinterlace/Makefile plugins/slide/Makefile plugins/spectrogram/Makefile \
515         plugins/suv/Makefile \
516         plugins/suv/data/Makefile \
517         plugins/defaulttheme/Makefile \
518         plugins/defaulttheme/data/Makefile \
519                                         plugins/swapchannels/Makefile \
520                                         plugins/synthesizer/Makefile \
521                                         plugins/threshold/Makefile \
522                                         plugins/timeavg/Makefile \
523                                         plugins/timestretch/Makefile plugins/titler/Makefile plugins/translate/Makefile \
524                                         plugins/unsharp/Makefile \
525                                         plugins/videoscope/Makefile plugins/wave/Makefile plugins/whirl/Makefile \
526                                         plugins/wipe/Makefile \
527                                         plugins/yuv/Makefile \
528                                         plugins/downsample/Makefile plugins/flash/Makefile plugins/gradient/Makefile \
529                                         plugins/level/Makefile plugins/linearblur/Makefile \
530                                         plugins/perspective/Makefile plugins/radialblur/Makefile plugins/zoomblur/Makefile \
531                                         plugins/timefront/Makefile \
532                                         plugins/svg/Makefile \
533                                         plugins/diffkey/Makefile \
534                                         plugins/fonts/Makefile \
535                                         image/Makefile)
537 succeeded=yes
538 AC_DEFUN([RPT],[if test "x$$1" = "xyes"; then status=found; else status=missing; succeeded=no; fi
539 echo "AC_HELP_STRING($2,$status)"])
541 echo
542 echo "Summary of mandatory components:"
543 RPT(libogg,libogg)
544 RPT(libvorbis,libvorbis)
545 RPT(libvorbisenc,libvorbisenc)
546 RPT(libvorbisfile,libvorbisfile)
547 RPT(libtheora,libtheora)
548 RPT(libOpenEXR,OpenEXR)
549 RPT(libdv,libdv)
550 RPT(libpng,libpng)
551 RPT(libjpeg,libjpeg libraries)
552 RPT(libjpegh,libjpeg headers)
553 RPT(freetype2,FreeType 2)
554 RPT(libx264,libx264 libraries)
555 RPT(libx264h,libx264 headers)
556 RPT(libuuid,libuuid libraries)
557 RPT(libuuidh,libuuid headers)
558 RPT(mjpegtools,mjpegtools)
559 RPT(libfftw3,libfftw3 libraries)
560 RPT(libfftw3h,libfftw3 headers)
561 RPT(liba52,liba52 libraries)
562 RPT(liba52h,liba52 headers)
563 RPT(libmp3lame,libmp3lame libraries)
564 RPT(libmp3lameh,libmp3lame headers)
565 RPT(libsndfile,libsndfile libraries)
566 RPT(libsndfileh,libsndfile headers)
567 RPT(libfaac,libfaac libraries)
568 RPT(libfaach,libfaac headers)
569 RPT(libfaad,libfaad libraries)
570 RPT(libfaadh,libfaad headers)
571 mandatory="$succeeded"
573 echo
574 echo "Summary of optional components:"
575 AC_DEFUN([ORPT],[if test "x$$1" = "xno"; then
576         echo "$2 was opted out with $3"
577 else
578         if test "x$$1" = "xok"; then component=enabled; else component=disabled; fi
579         $4
580         echo "$2 is $component"
581 fi])
582 ORPT(enable_esd,ESD (Enlightenment Sound Daemon),--disable-esd,RPT(esound,ESD subsystem))
583 ORPT(enable_alsa,ALSA,--disable-alsa,RPT(alsa,ALSA subsystem))
584 ORPT(enable_firewire,Firewire,--disable-firewire,
585         RPT(libraw1394,libraw1394)
586         RPT(libiec61883,libiec61883)
587         RPT(libavc1394,libavc1394 libraries)
588         RPT(libavc1394h,libavc1394 headers)
589         RPT(librom1394,librom1394 libraries)
590         RPT(librom1394h,librom1394 headers)
592 ORPT(enable_opengl,Hardware acceleration using OpenGL 2.0,--disable-opengl,
593         RPT(libGL,OpenGL 2.0 libraries)
596 if test "x$mandatory" = "xno"; then
597         echo
598         echo "WARNING: Mandatory components are missing; compilation may fail!"
599 else
600         echo
601         echo "Now type"; echo "          make"; echo; echo "to start compilation."