Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
51796a5f
Commit
51796a5f
authored
Oct 28, 2005
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* configure.ac: Added --with-tree for various decoders.
parent
7c753216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
158 additions
and
25 deletions
+158
-25
configure.ac
configure.ac
+158
-25
No files found.
configure.ac
View file @
51796a5f
...
@@ -1975,14 +1975,43 @@ AC_ARG_ENABLE(ogg,
...
@@ -1975,14 +1975,43 @@ AC_ARG_ENABLE(ogg,
[ --enable-ogg Ogg demux support (default enabled)])
[ --enable-ogg Ogg demux support (default enabled)])
if test "${enable_ogg}" != "no"
if test "${enable_ogg}" != "no"
then
then
AC_CHECK_HEADERS(ogg/ogg.h, [
AC_ARG_WITH(ogg-tree,
AC_CHECK_LIB( ogg, oggpack_read, [
[ --with-ogg-tree=PATH ogg tree for static linking])
if test -n "${with_ogg_tree}"
then
AC_MSG_CHECKING(for libogg.a in ${with_ogg_tree})
real_ogg_tree="`cd ${with_ogg_tree} 2>/dev/null && pwd`"
if test -z "${real_ogg_tree}"
then
dnl The given directory can't be found
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot cd to ${with_ogg_tree}])
fi
if test -f "${real_ogg_tree}/src/.libs/libogg.a"
then
dnl Use a custom ogg
AC_MSG_RESULT(${real_ogg_tree}/src/.libs/libogg.a)
VLC_ADD_PLUGINS([ogg])
VLC_ADD_PLUGINS([ogg])
if test "${enable_sout}" != "no"; then
if test "${enable_sout}" != "no"; then
VLC_ADD_PLUGINS([mux_ogg])
VLC_ADD_PLUGINS([mux_ogg])
fi
fi
VLC_ADD_LDFLAGS([ogg mux_ogg],[-logg])])
VLC_ADD_LDFLAGS([ogg mux_ogg speex vorbis],[${real_ogg_tree}/src/.libs/libogg.a])
],[])
VLC_ADD_CFLAGS([ogg mux_ogg speex vorbis],[-I${real_ogg_tree}/include])
else
dnl The given ogg wasn't built
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot find ${real_ogg_tree}/src/.libs/libogg.a, make sure you compiled ogg in ${with_ogg_tree}])
fi
else
AC_CHECK_HEADERS(ogg/ogg.h, [
AC_CHECK_LIB( ogg, oggpack_read, [
VLC_ADD_PLUGINS([ogg])
if test "${enable_sout}" != "no"; then
VLC_ADD_PLUGINS([mux_ogg])
fi
VLC_ADD_LDFLAGS([ogg mux_ogg],[-logg])])
],[])
fi
fi
fi
dnl
dnl
...
@@ -2048,10 +2077,36 @@ AC_ARG_ENABLE(mod,
...
@@ -2048,10 +2077,36 @@ AC_ARG_ENABLE(mod,
[ --enable-mod Mod demux support (default enabled)])
[ --enable-mod Mod demux support (default enabled)])
if test "${enable_mod}" != "no"
if test "${enable_mod}" != "no"
then
then
AC_CHECK_HEADERS(libmodplug/modplug.h, [
AC_ARG_WITH(mod-tree,
VLC_ADD_PLUGINS([mod])
[ --with-mod-tree=PATH mod tree for static linking])
VLC_ADD_CXXFLAGS([mod],[])
if test -n "${with_mod_tree}"
VLC_ADD_LDFLAGS([mod],[-lmodplug])])
then
AC_MSG_CHECKING(for libmodplug.a in ${with_mod_tree})
real_mod_tree="`cd ${with_mod_tree} 2>/dev/null && pwd`"
if test -z "${real_mod_tree}"
then
dnl The given directory can't be found
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot cd to ${with_mod_tree}])
fi
if test -f "${real_mod_tree}/src/.libs/libmodplug.a"
then
dnl Use a custom mod
AC_MSG_RESULT(${real_mod_tree}/src/.libs/libmodplug.a)
VLC_ADD_PLUGINS([mod])
VLC_ADD_LDFLAGS([mod],[${real_mod_tree}/src/.libs/libmodplug.a])
VLC_ADD_CFLAGS([mod],[-I${real_mod_tree}/include])
else
dnl The given mod wasn't built
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot find ${real_mod_tree}/src/.libs/libmodplug.a, make sure you compiled mod in ${with_mod_tree}])
fi
else
AC_CHECK_HEADERS(libmodplug/modplug.h, [
VLC_ADD_PLUGINS([mod])
VLC_ADD_CXXFLAGS([mod],[])
VLC_ADD_LDFLAGS([mod],[-lmodplug])])
fi
fi
fi
dnl
dnl
...
@@ -2667,9 +2722,35 @@ AC_ARG_ENABLE(flac,
...
@@ -2667,9 +2722,35 @@ AC_ARG_ENABLE(flac,
[ --enable-flac flac decoder support (default disabled)])
[ --enable-flac flac decoder support (default disabled)])
if test "${enable_flac}" = "yes"
if test "${enable_flac}" = "yes"
then
then
AC_CHECK_HEADERS(FLAC/stream_decoder.h, [
AC_ARG_WITH(flac-tree,
VLC_ADD_LDFLAGS([flacdec],[-lFLAC])
[ --with-flac-tree=PATH flac tree for static linking])
],[])
if test -n "${with_flac_tree}"
then
AC_MSG_CHECKING(for libFLAC.a in ${with_flac_tree})
real_flac_tree="`cd ${with_flac_tree} 2>/dev/null && pwd`"
if test -z "${real_flac_tree}"
then
dnl The given directory can't be found
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot cd to ${with_flac_tree}])
fi
if test -f "${real_flac_tree}/src/libFLAC/.libs/libFLAC.a"
then
dnl Use a custom flac
AC_MSG_RESULT(${real_flac_tree}/src/libFLAC/.libs/libFLAC.a)
VLC_ADD_LDFLAGS([flacdec],[${real_flac_tree}/src/libFLAC/.libs/libFLAC.a])
VLC_ADD_CFLAGS([flacdec],[-I${real_flac_tree}/include])
AC_DEFINE(HAVE_FLAC_STREAM_DECODER_H, 1, [Define if you have FLAC])
else
dnl The given flac wasn't built
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot find ${real_flac_tree}/src/libFLAC/.libs/libFLAC.a, make sure you compiled flac in ${with_flac_tree}])
fi
else
AC_CHECK_HEADERS(FLAC/stream_decoder.h, [
VLC_ADD_LDFLAGS([flacdec],[-lFLAC])
],[])
fi
fi
fi
dnl
dnl
...
@@ -2732,12 +2813,38 @@ AC_ARG_ENABLE(vorbis,
...
@@ -2732,12 +2813,38 @@ AC_ARG_ENABLE(vorbis,
[ --enable-vorbis Vorbis decoder support (default enabled)])
[ --enable-vorbis Vorbis decoder support (default enabled)])
if test "${enable_vorbis}" != "no"
if test "${enable_vorbis}" != "no"
then
then
AC_CHECK_HEADERS(vorbis/codec.h, [
AC_ARG_WITH(vorbis-tree,
VLC_ADD_PLUGINS([vorbis])
[ --with-vorbis-tree=PATH vorbis tree for static linking])
VLC_ADD_LDFLAGS([vorbis],[-lvorbis -logg]) ],[])
if test -n "${with_vorbis_tree}"
then
AC_MSG_CHECKING(for libvorbis.a in ${with_vorbis_tree})
real_vorbis_tree="`cd ${with_vorbis_tree} 2>/dev/null && pwd`"
if test -z "${real_vorbis_tree}"
then
dnl The given directory can't be found
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot cd to ${with_vorbis_tree}])
fi
if test -f "${real_vorbis_tree}/lib/.libs/libvorbis.a"
then
dnl Use a custom vorbis
AC_MSG_RESULT(${real_vorbis_tree}/lib/.libs/libvorbis.a)
VLC_ADD_PLUGINS([vorbis])
VLC_ADD_LDFLAGS([vorbis],[${real_vorbis_tree}/lib/.libs/libvorbis.a ${real_vorbis_tree}/lib/.libs/libvorbisenc.a])
VLC_ADD_CFLAGS([vorbis],[-I${real_vorbis_tree}/include])
else
dnl The given vorbis wasn't built
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot find ${real_vorbis_tree}/lib/.libs/libvorbis.a, make sure you compiled vorbis in ${with_vorbis_tree}])
fi
else
AC_CHECK_HEADERS(vorbis/codec.h, [
VLC_ADD_PLUGINS([vorbis])
VLC_ADD_LDFLAGS([vorbis],[-lvorbis -logg]) ],[])
AC_CHECK_HEADERS(vorbis/vorbisenc.h, [
AC_CHECK_HEADERS(vorbis/vorbisenc.h, [
VLC_ADD_LDFLAGS([vorbis],[-lvorbisenc]) ],[])
VLC_ADD_LDFLAGS([vorbis],[-lvorbisenc]) ],[])
fi
fi
fi
dnl
dnl
...
@@ -2760,16 +2867,42 @@ AC_ARG_ENABLE(speex,
...
@@ -2760,16 +2867,42 @@ AC_ARG_ENABLE(speex,
[ --enable-speex Speex decoder support (default enabled)])
[ --enable-speex Speex decoder support (default enabled)])
if test "${enable_speex}" != "no"
if test "${enable_speex}" != "no"
then
then
AC_CHECK_HEADERS(speex/speex.h, [
AC_ARG_WITH(speex-tree,
LDFLAGS="${LDFLAGS_save} ${LDFLAGS_speex}"
[ --with-speex-tree=PATH speex tree for static linking])
AC_CHECK_LIB(speex, speex_decode_int, [
if test -n "${with_speex_tree}"
then
AC_MSG_CHECKING(for libspeex.a in ${with_speex_tree})
real_speex_tree="`cd ${with_speex_tree} 2>/dev/null && pwd`"
if test -z "${real_speex_tree}"
then
dnl The given directory can't be found
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot cd to ${with_speex_tree}])
fi
if test -f "${real_speex_tree}/libspeex/.libs/libspeex.a"
then
dnl Use a custom speex
AC_MSG_RESULT(${real_speex_tree}/libspeex/.libs/libspeex.a)
VLC_ADD_PLUGINS([speex])
VLC_ADD_PLUGINS([speex])
VLC_ADD_LDFLAGS([speex],[-lspeex]) ],
VLC_ADD_LDFLAGS([speex],[${real_speex_tree}/libspeex/.libs/libspeex.a])
[ AC_MSG_RESULT([no])
VLC_ADD_CFLAGS([speex],[-I${real_speex_tree}/include])
AC_MSG_WARN([Your libspeex is too old, please get the development
else
version.]) ],[])
dnl The given speex wasn't built
LDFLAGS="${LDFLAGS_save}"
AC_MSG_RESULT(no)
],[])
AC_MSG_ERROR([cannot find ${real_speex_tree}/libspeex/.libs/libspeex.a, make sure you compiled speex in ${with_speex_tree}])
fi
else
AC_CHECK_HEADERS(speex/speex.h, [
LDFLAGS="${LDFLAGS_save} ${LDFLAGS_speex}"
AC_CHECK_LIB(speex, speex_decode_int, [
VLC_ADD_PLUGINS([speex])
VLC_ADD_LDFLAGS([speex],[-lspeex]) ],
[ AC_MSG_RESULT([no])
AC_MSG_WARN([Your libspeex is too old, please get the development
version.]) ],[])
LDFLAGS="${LDFLAGS_save}"
],[])
fi
fi
fi
dnl
dnl
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment