Il Sunday 08 June 2008 13:20:50 Andreas Öman ha scritto:
> nicodvb wrote:
> > Author: nicodvb
> > Date: Sun Jun 8 11:25:29 2008
> > New Revision: 1094
> >
> > Log:
> > completed the removal of dvdread: the new build system uses dvdread-config
>
> Yay! \o/
> _______________________________________________
> DVDnav-discuss mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss
>
Dan, why DVDREAD_LIBS isn't being used (or expanded) in src/Makefile.am ?
That's why I hate so savagely autotools :(
Index: configure.ac
===================================================================
--- configure.ac (revisione 1093)
+++ configure.ac (copia locale)
@@ -175,12 +175,18 @@
;;
esac
+dvdread_config=dvdread-config
+test -n "$with_dvdread_config" && dvdread_config=$with_dvdread_config
+DVDREAD_CFLAGS=`$dvdread_config --cflags`
+DVDREAD_LIBS=`$dvdread_config --libs`
+AC_SUBST(DVDREAD_LIBS)
+
dnl ---------------------------------------------
dnl cflags
dnl ---------------------------------------------
dnl Common cflags for all platforms
-CFLAGS="-O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $CFLAGS"
-DEBUG_CFLAGS="-g -DDEBUG $CFLAGS"
+CFLAGS="-O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $DVDREAD_CFLAGS $CFLAGS"
+DEBUG_CFLAGS="-g -DDEBUG $DVDREAD_CFLAGS $CFLAGS"
AC_SUBST(DEBUG_CFLAGS)
Index: src/Makefile.am
===================================================================
--- src/Makefile.am (revisione 1093)
+++ src/Makefile.am (copia locale)
@@ -17,7 +17,7 @@
dvdnav_internal.h read_cache.h remap.h
libdvdnav_la_LIBADD = $(THREAD_LIBS) \
- $(top_builddir)/src/vm/libdvdvm.la -ldvdread
+ $(top_builddir)/src/vm/libdvdvm.la $(DVDREAD_LIBS)
libdvdnav_la_LDFLAGS = \
-version-info $(DVDNAV_LT_CURRENT):$(DVDNAV_LT_REVISION):$(DVDNAV_LT_AGE) \
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss