RE: libdvdread-0.9.4: can't linking against libdvdcss

"Gansser, Martin" <[email protected]>
Newsgroups gmane.comp.video.ogle.devel
Message-ID <78224A6821F87A4D8023B133E5B1140B40CA98@srvmxellwangen2.ratc-de.com>
> -----Original Message-----
> From: H}kan Hjort [mailto:[email protected]]
> Sent: Friday, March 14, 2003 3:32 PM
> To: Gansser, Martin
> Cc: [email protected]
> Subject: Re: [Ogle-devel] libdvdread-0.9.4: can't linking against
> libdvdcss
> 
> 
> Fri Mar 14 2003, Gansser, Martin wrote:
> > Hi,
> >  
> > I compiled ogle-0.9.1 successfully on hpux 11.00, but the
> > playback of Encrypted DVD's fails with: Encrypted DVD 
> support unavailable
> >  
> > I used libdvdcss-1.2.4 and libdvdread-0.9.4
> >  
> > the configure script fails with:
> > 
> > checking for dvdcss_interface_2 in -ldvdcss... no      <<<< NO
> > configure: error: You need libdvdcss.so.2 or later
> 
> So we can't check for the string symbol dvdcss_interface_2 with
> AC_CHECK_LIB() using th HPUX linker.  
> Try changing dvdcss_interface_2 to dvdcss_open or something.
> 
> -- 
> Håkan Hjort

a possible solution could be this patch:

# diff -Naur configure.in.orig configure.in
--- configure.in.orig   2003-03-14 14:53:37.000000000 +0100
+++ configure.in        2003-03-14 17:28:52.000000000 +0100
@@ -81,11 +81,24 @@
   else
     saved_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS -L$dvdcss_path/lib"
-    AC_CHECK_LIB(dvdcss, dvdcss_interface_2,
+
+    case "$host" in
+    *-hpux*)
+        AC_CHECK_LIB(dvdcss, dvdcss_open,
+        [ CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss"
+         CSS_CFLAGS=-I$dvdcss_path/include ],
+        AC_MSG_ERROR(You need libdvdcss.so.2 or later)
+        )
+    ;;
+    *)
+        AC_CHECK_LIB(dvdcss, dvdcss_interface_2,
         [ CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss"
          CSS_CFLAGS=-I$dvdcss_path/include ],
         AC_MSG_ERROR(You need libdvdcss.so.2 or later)
         )
+    ;;
+    esac
+
     CFLAGS=$saved_CFLAGS
     dnl -w added to shutup GCC3.1's cpp warning about -I/usr/local
     saved_CPPFLAGS=$CPPFLAGS


could someone have a look at it and comitte it ?

thanks Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.