Commit d2493474 authored by Sam Hocevar's avatar Sam Hocevar

* configure.ac:

    + Build memcpyaltivec and deinterlace with -maltivec.
    + Check for -ldts_pic before -ldts.
parent a1697840
...@@ -1075,8 +1075,8 @@ AC_CACHE_CHECK([if \$CC groks AltiVec C extensions], ...@@ -1075,8 +1075,8 @@ AC_CACHE_CHECK([if \$CC groks AltiVec C extensions],
if test "${ac_cv_c_altivec}" != "no"; then if test "${ac_cv_c_altivec}" != "no"; then
AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C AltiVec extensions.) AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C AltiVec extensions.)
VLC_ADD_CFLAGS([vlc],[${ac_cv_c_altivec}]) VLC_ADD_CFLAGS([vlc],[${ac_cv_c_altivec}])
VLC_ADD_CFLAGS([idctaltivec motionaltivec memcpyaltivec deinterlace],[${ac_cv_c_altivec}]) VLC_ADD_CFLAGS([idctaltivec motionaltivec],[${ac_cv_c_altivec}])
VLC_ADD_CFLAGS([i420_yuy2_altivec],[${ac_cv_c_altivec} ${ac_cv_c_altivec_abi}]) VLC_ADD_CFLAGS([i420_yuy2_altivec memcpyaltivec deinterlace],[${ac_cv_c_altivec} ${ac_cv_c_altivec_abi}])
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi fi
...@@ -2178,6 +2178,10 @@ if test "${enable_dts}" != "no"; then ...@@ -2178,6 +2178,10 @@ if test "${enable_dts}" != "no"; then
VLC_ADD_CPPFLAGS([dtstofloat32],[-I${real_dts_tree}/include]) VLC_ADD_CPPFLAGS([dtstofloat32],[-I${real_dts_tree}/include])
VLC_ADD_LDFLAGS([dtstofloat32],[-L${real_dts_tree}/libdts]) VLC_ADD_LDFLAGS([dtstofloat32],[-L${real_dts_tree}/libdts])
LDFLAGS="${LDFLAGS_save} ${LDFLAGS_dtstofloat32}" LDFLAGS="${LDFLAGS_save} ${LDFLAGS_dtstofloat32}"
AC_CHECK_LIB(dts_pic, dts_free, [
VLC_ADD_PLUGINS([dtstofloat32])
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts_pic])
],[
AC_CHECK_LIB(dts, dts_free, [ AC_CHECK_LIB(dts, dts_free, [
VLC_ADD_BUILTINS([dtstofloat32]) VLC_ADD_BUILTINS([dtstofloat32])
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts]) VLC_ADD_LDFLAGS([dtstofloat32],[-ldts])
...@@ -2189,6 +2193,7 @@ if test "${enable_dts}" != "no"; then ...@@ -2189,6 +2193,7 @@ if test "${enable_dts}" != "no"; then
AC_MSG_ERROR([the specified tree hasn't been compiled]) AC_MSG_ERROR([the specified tree hasn't been compiled])
fi fi
]) ])
])
LDFLAGS="${LDFLAGS_save}" LDFLAGS="${LDFLAGS_save}"
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
...@@ -2197,8 +2202,12 @@ if test "${enable_dts}" != "no"; then ...@@ -2197,8 +2202,12 @@ if test "${enable_dts}" != "no"; then
else else
LDFLAGS="${LDFLAGS_save} ${LDFLAGS_dtstofloat32}" LDFLAGS="${LDFLAGS_save} ${LDFLAGS_dtstofloat32}"
AC_CHECK_HEADERS(dts.h, [ AC_CHECK_HEADERS(dts.h, [
AC_CHECK_LIB(dts, dts_free, [ AC_CHECK_LIB(dts_pic, dts_free, [
VLC_ADD_PLUGINS([dtstofloat32]) VLC_ADD_PLUGINS([dtstofloat32])
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts_pic])
],[
AC_CHECK_LIB(dts, dts_free, [
VLC_ADD_BUILTINS([dtstofloat32])
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts]) VLC_ADD_LDFLAGS([dtstofloat32],[-ldts])
],[ ],[
if test "${enable_dts}" = "yes"; then if test "${enable_dts}" = "yes"; then
...@@ -2206,6 +2215,7 @@ if test "${enable_dts}" != "no"; then ...@@ -2206,6 +2215,7 @@ if test "${enable_dts}" != "no"; then
fi fi
]) ])
]) ])
])
LDFLAGS="${LDFLAGS_save}" LDFLAGS="${LDFLAGS_save}"
fi fi
fi fi
...@@ -3643,12 +3653,9 @@ dnl ...@@ -3643,12 +3653,9 @@ dnl
dnl Joystick plugin dnl Joystick plugin
dnl dnl
AC_ARG_ENABLE(joystick, AC_ARG_ENABLE(joystick,
[ --enable-joystick joystick control (default disabled)]) [ --enable-joystick joystick control (default enabled)])
if test "${enable_joystick}" = "yes" if test "${enable_joystick}" = "yes"; then
then AC_CHECK_HEADER(linux/joystick.h, [VLC_ADD_PLUGINS([joystick])])
AC_CHECK_HEADER( linux/joystick.h,
[VLC_ADD_PLUGINS([joystick])]
)
fi fi
dnl dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment