Lines 103-117
Link Here
|
103 |
AC_MSG_ERROR(You need libdvdcss (dvdcss.h)) |
103 |
AC_MSG_ERROR(You need libdvdcss (dvdcss.h)) |
104 |
) |
104 |
) |
105 |
AC_MSG_CHECKING([for dvdcss_interface_2 in -ldvdcss]) |
105 |
AC_MSG_CHECKING([for dvdcss_interface_2 in -ldvdcss]) |
106 |
saved_LDFLAGS=$LDFLAGS |
106 |
saved_LIBS=$LIBS |
107 |
LDFLAGS="$LDFLAGS -ldvdcss" |
107 |
LIBS="-ldvdcss" |
108 |
AC_TRY_LINK([#include <dvdcss/dvdcss.h>], |
108 |
AC_TRY_LINK([#include <dvdcss/dvdcss.h>], |
109 |
[if(!dvdcss_interface_2) { return 1; }], |
109 |
[if(!dvdcss_interface_2) { return 1; }], |
110 |
[ CSS_LIBS=-ldvdcss ], |
110 |
[ CSS_LIBS=-ldvdcss ], |
111 |
[ AC_MSG_RESULT([no]) |
111 |
[ AC_MSG_RESULT([no]) |
112 |
AC_MSG_ERROR(You need libdvdcss.so.2 or later) |
112 |
AC_MSG_ERROR(You need libdvdcss.so.2 or later) |
113 |
] ) |
113 |
] ) |
114 |
LDFLAGS=$saved_LDFLAGS |
114 |
LIBS=$saved_LIBS |
115 |
AC_MSG_RESULT([yes]) |
115 |
AC_MSG_RESULT([yes]) |
116 |
else |
116 |
else |
117 |
dnl -w added to shutup GCC3.1's cpp warning about -I/usr/local |
117 |
dnl -w added to shutup GCC3.1's cpp warning about -I/usr/local |