[ include ])
PKG_3RD([giflib],[yes],
- [giflib-5.1.6],
- [ libgif.a ],
+ [giflib-5.2.1],
+ [ libgif.a \
+ libutil.a ],
[ . ])
PKG_3RD([ilmbase],[auto],
[ . ])
PKG_3RD([libjpeg],[auto],
- [libjpeg-turbo-1.5.1],
- [ .libs/libjpeg.a \
- .libs/libturbojpeg.a \
- simd/.libs/libsimd.a ],
- [ . ])
+ [libjpeg-turbo-2.0.4],
+ [ build/libjpeg.a \
+ build/libturbojpeg.a ],
+ [ opt/libjpeg-turbo/include ])
PKG_3RD([opus],[auto],
- [opus-1.3],
+ [opus-1.3.1],
[ .libs/libopus.a ],
[ include ])
PKG_3RD([openjpeg],[auto],
- [openjpeg-2.3.0],
+ [openjpeg-2.3.1],
[ bin/libopenjp2.a ],
[ src/lib/openjp2 ])
PKG_3RD([libogg],[auto],
- [libogg-1.3.3],
+ [libogg-1.3.4],
[ src/.libs/libogg.a ],
[ include ])
# [])
#
PKG_3RD([tiff],[auto],
- [tiff-4.0.10],
+ [tiff-4.1.0],
[ libtiff/.libs/libtiff.a \
libtiff/.libs/libtiffxx.a \
port/.libs/libport.a ],[
. ])
PKG_3RD([twolame],[auto],
- [twolame-0.3.13],
+ [twolame-0.4.0],
[ libtwolame/.libs/libtwolame.a ],
[ libtwolame ])
PKG_3RD([x264],[auto],
- [x264-snapshot-20190117-2245-stable],
+ [x264-snapshot-20191217-2245-stable],
[ libx264.a ],
[ . ])
PKG_3RD([x265],[auto],
- [x265_3.1.2],
+ [x265_3.2.1],
[ libx265.a ],
[ . source ])
[ usr/local/include usr/local/lib64/lv2 usr/local/lib/lv2 ])
PKG_3RD([sratom],[auto],
- [sratom-0.6.2],
+ [sratom-0.6.4],
[ usr/local/lib/libsratom-0.a ],
[ usr/local/include ])
PKG_3RD([serd],[auto],
- [serd-0.30.0],
+ [serd-0.30.2],
[ usr/local/lib/libserd-0.a ],
[ usr/local/include ])
PKG_3RD([sord],[auto],
- [sord-0.16.2],
+ [sord-0.16.4],
[ usr/local/lib/libsord-0.a ],
[ usr/local/include ])
PKG_3RD([lilv],[auto],
- [lilv-0.24.4],
+ [lilv-0.24.6],
[ usr/local/lib/liblilv-0.a ],
[ usr/local/include ])
PKG_3RD([suil],[auto],
- [suil-0.10.2],
+ [suil-0.10.6],
[ usr/local/lib/libsuil-0.a ],
[ usr/local/include ])
[ usr/local/include ])
PKG_3RD([dav1d],[auto],
- [dav1d-0.5.0],
+ [dav1d-0.6.0],
[ usr/local/lib*/libdav1d*.a ],
[ usr/local/include ])
PKG_3RD([libwebp],[auto],
- [libwebp-1.0.2],
+ [libwebp-1.1.0],
[ usr/local/lib*/libwebp*.a ],
[ usr/local/include ])
CHECK_HEADERS([lame], [lame headers], [lame/lame.h])
CHECK_LIB([libjpeg], [jpeg], [jpeg_start_decompress])
CHECK_HEADERS([libjpeg], [jpeg headers], [stdio.h jpeglib.h])
-CHECK_LIB([libogg], [ogg], [ogg_stream_init])
-CHECK_HEADERS([libogg], [ogg headers], [ogg/ogg.h])
CHECK_LIB([openjpeg], [openjp2], [opj_version])
CHECK_HEADERS([openjpeg], [openjpeg headers], [openjpeg.h])
CHECK_LIB([libsndfile], [sndfile], [sf_open])
CHECK_HEADERS([libsndfile], [sndfile headers], [sndfile.h])
CHECK_LIB([ilmbase], [IlmImf], [ImfOpenInputFile])
CHECK_HEADERS([ilmbase], [IlmImf headers], [OpenEXR/ImfCRgbaFile.h])
-CHECK_LIB([libtheora], [theora], [theora_info_init], [-ltheoraenc -ltheoradec -logg])
-CHECK_HEADERS([libtheora], [threora headers], [theora/theoraenc.h])
-CHECK_LIB([libvorbis], [vorbisenc], [vorbis_encode_init], [-lvorbis -lvorbisfile -logg])
-CHECK_HEADERS([libvorbis], [vorbis encoders headers], [vorbis/vorbisenc.h])
-CHECK_LIB([libvorbis], [vorbisfile], [ov_open])
-CHECK_HEADERS([libvorbis], [vorbis file headers], [vorbis/vorbisfile.h])
CHECK_LIB([libvpx], [vpx], [vpx_codec_decode])
CHECK_HEADERS([libvpx], [vpx headers], [vpx/vpx_decoder.h])
CHECK_LIB([mjpegtools], [mjpegutils], [mjpeg_info])
AC_DEFUN([CHECK_WANT], [
RESULT=yes
# WANT_$1
-if test "x$WANT_$1" != "xno" ; then
AC_ARG_WITH(m4_tolower([$1]),
AC_HELP_STRING([m4_join([-],[--with],m4_tolower([$1]))], [$3] (auto)),
[WANT_$1=$withval],[WANT_$1=$2])
m4_quote($4)
- if test "x$RESULT" = "xno" -a "x$PKG_$1" = "x"; then
- if test "x$WANT_$1" = "xyes" ; then
+ if test "x$WANT_$1" = "xauto" ; then
+ WANT_$1="$RESULT"
+ elif test "x$WANT_$1" = "xyes" ; then
+ if test "x$RESULT" = "xno" -a "x$PKG_$1" = "x"; then
AC_MSG_ERROR([required for $1 support.])
fi
- WANT_$1=no
- elif test "x$WANT_$1" = "xauto" ; then
- WANT_$1=yes
fi
-fi
CFG_WANTS+=" $1"
AC_SUBST([WANT_$1])
])
CHECK_LIB([ALSA], [asound], [snd_pcm_open])
CHECK_HEADERS([ALSA], [asound headers], [alsa/asoundlib.h])])
+CHECK_WANT([OGG], [auto], [use ogg/theora/vorbis], [
+ CHECK_LIB([libogg], [ogg], [ogg_stream_init])
+ CHECK_HEADERS([libogg], [ogg headers], [ogg/ogg.h])
+ CHECK_LIB([libtheora], [theora], [theora_info_init], [-ltheoraenc -ltheoradec -logg])
+ CHECK_HEADERS([libtheora], [threora headers], [theora/theoraenc.h])
+ CHECK_LIB([libvorbis], [vorbisenc], [vorbis_encode_init], [-lvorbis -lvorbisfile -logg])
+ CHECK_HEADERS([libvorbis], [vorbis encoders headers], [vorbis/vorbisenc.h])
+ CHECK_LIB([libvorbis], [vorbisfile], [ov_open])
+ CHECK_HEADERS([libvorbis], [vorbis file headers], [vorbis/vorbisfile.h])])
+
CHECK_WANT([FIREWIRE], [auto], [use firewire], [
CHECK_LIB([libavc1394], [avc1394], [avc1394_init_target])
CHECK_HEADERS([libavc1394], [libavc1394 headers], [libavc1394/avc1394.h])
CHECK_HEADERS([libiec61883], [libiec61883 headers], [libiec61883/iec61883.h])
CHECK_LIB([libraw1394], [raw1394], [raw1394_iso_recv_init])
CHECK_HEADERS([libraw1394], [libraw1394 headers], [libraw1394/raw1394.h])])
+# have all or none
+test "x$HAVE_libavc1394" = "xyes" && \
+test "x$HAVE_libiec61883" = "xyes" && \
+test "x$HAVE_libraw1394" = "xyes" && \
+ HAVE_FIREWIRE=yes || \
+HAVE_libavc1394=no && \
+HAVE_libiec61883=no && \
+HAVE_libraw1394=no && \
+ HAVE_FIREWIRE=no
CHECK_WANT([DV], [auto], [use dv], [
CHECK_LIB([libdv], [dv], [dv_init])
CHECK_HEADERS([esound], [esound headers], [esd.h])
CHECK_LIB([audiofile], [audiofile], [afOpenFile])
CHECK_HEADERS([audiofile], [audiofile headers], [audiofile.h])])
+# have all or none
+test "x$HAVE_esound" = "xyes" && \
+test "x$HAVE_audiofile" = "xyes" && \
+ HAVE_ESOUND=yes || \
+HAVE_esound=no && \
+HAVE_audiofile=no && \
+ HAVE_ESOUND=no
CHECK_WANT([PULSE], [auto], [use pulseaudio], [
CHECK_LIB([pulse_simple], [pulse-simple], [pa_simple_new])
CFLAGS="-I/usr/include/suil-0 -I/usr/local/include/suil-0"
CHECK_HEADERS([lv2], [suil headers], [suil/suil.h])
CFLAGS="$saved_CFLAGS"])
+# have all or none
+test "x$HAVE_lv2" = "xyes" && \
+test "x$HAVE_lilv" = "xyes" && \
+test "x$HAVE_sord" = "xyes" && \
+test "x$HAVE_serd" = "xyes" && \
+test "x$HAVE_sratom" = "xyes" && \
+test "x$HAVE_suil" = "xyes" && \
+ HAVE_LV2=yes || \
+HAVE_lv2=no && \
+HAVE_lilv=no && \
+HAVE_sord=no && \
+HAVE_serd=no && \
+HAVE_sratom=no && \
+HAVE_suil=no && \
+ HAVE_LV2=no
CHECK_WANT([CUDA], [auto], [build cuda plugins], [
CHECK_HEADERS([CUDA], [cuda sdk], [${CUDA_PATH:-/usr/local/cuda}/include/cuda.h])])
class EXROStream : public Imf::OStream { public:
EXROStream() : Imf::OStream("mypath") {} };
]])], [HAVE_OPENEXR=yes], [HAVE_OPENEXR=no])
- RESULT="$HAVE_OPENEXR"
- if test "x$RESULT" = "xyes"; then
- SHARED_openexr="$LIBS"
- SHARED_LIBS+=" $LIBS"
- CFG_CFLAGS+=" -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR"
+ if test "x$WANT_OPENEXR" = "xauto"; then
+ WANT_OPENEXR="yes"
+ fi
+ if test "x$WANT_OPENEXR" = "xyes" -a "x$HAVE_OPENEXR" = "xyes"; then
+ if test "x$WANT_STATIC_BUILD" = "xno"; then
+ SHARED_openexr="$LIBS"
+ SHARED_LIBS+=" $LIBS"
+ CFG_CFLAGS+=" -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR"
+ fi
fi
LIBS="$saved_LIBS"
CXXFLAGS="$saved_CXXFLAGS"
AC_MSG_RESULT([$HAVE_OPENEXR])
])
AC_SUBST([HAVE_OPENEXR])
+# have all or none
+test "x$HAVE_openexr" = "xyes" && \
+test "x$HAVE_ilmbase" = "xyes" && \
+ HAVE_OPENEXR=yes || \
+HAVE_openexr=no && \
+HAVE_ilmbase=no &&
+ HAVE_OPENEXR=no
# build global_config
OBJDIR=`uname -m`
openexr/ilmbase ilmbase/libogg \
libtheora/libogg libtheora/libvorbis ; do
lib=`dirname $dep`; needs=`basename $dep`
- eval pkg_lib="\$PKG_$lib"; eval needs_lib="\$HAVE_$needs";
+ eval pkg_lib="\$PKG_$lib"
if test "x$pkg_lib" != "xno"; then
eval "PKG_$needs=yes"
fi
if test "x$WANT_CIN_3RDPARTY" != "xno"; then
CFG_CFLAGS+=" -DHAVE_CIN_3RDPARTY"
fi
-for v in GL XFT XXF86VM OSS ALSA FIREWIRE DV DVB LADSPA \
+for v in GL XFT XXF86VM OSS ALSA FIREWIRE OGG DV DVB LADSPA \
VIDEO4LINUX2 ESOUND PULSE PACTL OPENEXR LV2 \
COMMERCIAL LIBZMPEG SHUTTLE SHUTTLE_USB XV \
VAAPI VDPAU CUDA NV WINTV X10TV; do