From 523046933e5f65f9a569277a596d827a0d8c7c7a Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Tue, 24 Jul 2001 15:02:05 +0000 Subject: Change DXR3 checkings. Some cosmetic changes. CVS patchset: 339 CVS date: 2001/07/24 15:02:05 --- m4/_xine.m4 | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'm4/_xine.m4') diff --git a/m4/_xine.m4 b/m4/_xine.m4 index afdcc7ac5..0410ecad5 100644 --- a/m4/_xine.m4 +++ b/m4/_xine.m4 @@ -65,14 +65,17 @@ AC_DEFUN(AC_LINUX_PATH, dnl AC_CHECK_DXR3() AC_DEFUN(AC_CHECK_DXR3, [ - AC_ARG_ENABLE(dxr3, - [ --enable-dxr3 Turn on DXR3/HW+ decoder support], - enable_dxr3=yes, enable_dxr3=no) - - if test x$enable_dxr3 = xyes; then - AC_CHECK_HEADER($linux_path/include/linux/em8300.h, have_dxr3=yes, - AC_MSG_ERROR(DXR3 headers not found)) - fi + AC_ARG_WITH(dxr3-path, + [ --with-dxr3-path=path Where em8300.h is located], + em8300_path="$withval", em8300_path="$linux_path/include/linux") + + AC_CHECK_HEADER($em8300_path/em8300.h, + have_dxr3=yes + EM8300_INCLUDE_PATH="-I`eval echo $em8300_path`", + have_dxr3=no + AC_MSG_RESULT(*** DXR3 support disabled ***)) + + AC_SUBST(EM8300_INCLUDE_PATH) ]) -- cgit v1.2.3