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