Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1c582f37
Commit
1c582f37
authored
Apr 14, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect libdca properly
parent
19bbed6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
58 deletions
+41
-58
configure.ac
configure.ac
+41
-58
No files found.
configure.ac
View file @
1c582f37
...
@@ -3237,69 +3237,52 @@ AC_ARG_WITH(a52-fixed,
...
@@ -3237,69 +3237,52 @@ AC_ARG_WITH(a52-fixed,
dnl
dnl
dnl DTS Coherent Acoustics decoder plugin
dnl DTS Coherent Acoustics decoder plugin
dnl
dnl
AC_ARG_ENABLE(dts,
AS_IF([test "x${enable_dts}" != "x"], [
[ --enable-dts DTS Coherent Acoustics support with libdca (default enabled)])
AC_MSG_ERROR([--enable-dts is not obsolete. Please use libdca and --enable-dca.])
if test "${enable_dts}" != "no"; then
])
AC_ARG_WITH(dts-tree,
AS_IF([test "x${with_dts_tree}" != "x"], [
[ --with-dts-tree=PATH libdts tree for static linking ],[],[])
AC_MSG_ERROR([--with-dts-tree is obsolete. Please use libdca and --with-dca-tree.])
if test "${with_dts_tree}" != "no" -a -n "${with_dts_tree}"
])
then
real_dts_tree="`cd ${with_dts_tree} 2>/dev/null && pwd`"
AC_ARG_ENABLE(dca,
if test -z "${real_dts_tree}"
[ --enable-dca DTS Coherent Acoustics support with libdca (default enabled)])
then
AS_IF([test "${enable_dca}" != "no"], [
AC_ARG_WITH(dca-tree,
[ --with-dca-tree=PATH libdca tree for static linking],,
[with_dca_tree="no"])
AS_IF([test "${with_dca_tree}" != "no"], [
real_dca_tree="`cd ${with_dca_tree} 2>/dev/null && pwd`"
AS_IF([test -z "${real_dca_tree}"], [
dnl The given directory can't be found
dnl The given directory can't be found
AC_MSG_RESULT(no)
AC_MSG_RESULT(no)
AC_MSG_ERROR([${with_dts_tree} directory doesn't exist])
AC_MSG_ERROR([${with_dca_tree} directory doesn't exist])
fi
])
dnl Use a custom libdts
dnl Use a custom libdca
AC_MSG_CHECKING(for dts.h in ${real_dts_tree}/include)
AC_MSG_CHECKING(for libdca in ${real_dca_tree})
if test -f ${real_dts_tree}/include/dts.h
AS_IF([test -f "${real_dca_tree}/libdca/.libs/libdca.a"], [
then
AC_MSG_RESULT(yes)
AC_MSG_RESULT(yes)
VLC_ADD_CPPFLAGS([dtstofloat32],[-I${real_dts_tree}/include])
VLC_ADD_LDFLAGS([dtstofloat32],[${real_dca_tree}/libdca/.libs/libdca.a])
VLC_ADD_LDFLAGS([dtstofloat32],[-L${real_dts_tree}/libdts])
AS_IF([test -f "${real_dca_tree}/include/dca.h"], [
LDFLAGS="${LDFLAGS_save} ${LDFLAGS_dtstofloat32}"
VLC_ADD_CPPFLAGS([dtstofloat32],[-I${real_dca_tree}/include])
AC_CHECK_LIB(dts_pic, dts_free, [
], [
VLC_ADD_PLUGINS([dtstofloat32])
VLC_ADD_CPPFLAGS([dtstofloat32],[-I${real_dca_tree}/../include])
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts_pic -lm])
],[
AC_CHECK_LIB(dts, dts_free, [
VLC_ADD_BUILTINS([dtstofloat32])
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts])
],[
if test -f ${real_dts_tree}/libdts/libdts.a
then
AC_MSG_ERROR([make sure you have at least libdts-0.0.2])
else
AC_MSG_ERROR([the specified tree hasn't been compiled])
fi
])
])
], [-lm])
], [
LDFLAGS="${LDFLAGS_save}"
else
AC_MSG_RESULT(no)
AC_MSG_RESULT(no)
AC_MSG_ERROR([the specified tree doesn't have dts.h])
AC_MSG_ERROR([the specified tree doesn't have libdca/.libs/libdca.a])
fi
])
else
], [
LDFLAGS="${LDFLAGS_save} ${LDFLAGS_dtstofloat32}"
PKG_CHECK_MODULES([DCA], [libdca >= 0.0.5], [
AC_CHECK_HEADERS(dts.h, [
AC_CHECK_LIB(dts_pic, dts_free, [
VLC_ADD_PLUGINS([dtstofloat32])
VLC_ADD_PLUGINS([dtstofloat32])
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts_pic -lm])
VLC_ADD_CPPFLAGS([dtstofloat32], [${DCA_CFLAGS}])
],[
VLC_ADD_LDFLAGS([dtstofloat32], [${DCA_LIBS}])
AC_CHECK_LIB(dts, dts_free, [
], [
VLC_ADD_BUILTINS([dtstofloat32])
AS_IF([test "x${enable_dca}" != "x"], [
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts])
AC_MSG_ERROR([${DCA_PKG_ERRORS}])
],[
if test "${enable_dts}" = "yes"; then
AC_MSG_ERROR([Could not find libdts on your system: you may get it from http://www.videolan.org/dtsdec.html])
fi
])
])
], [-lm])
])
])
LDFLAGS="${LDFLAGS_save}"
])
fi
])
fi
dnl
dnl
dnl Flac plugin
dnl Flac plugin
...
...
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