ref: 1a0bb73f345c8a6e652b4c04ef9ea80fb870d4ea
parent: a985b4c89b17af19910e3972759f9a2c5c3a67bb
author: Sam Hocevar <sam@videolan.org>
date: Tue Aug 30 06:20:18 EDT 2005
* configure.ac: forward -framework options to the linker.
--- a/configure.ac
+++ b/configure.ac
@@ -137,6 +137,7 @@
dnl
AC_CHECK_HEADER(IOKit/storage/IODVDMediaBSDClient.h,[
AC_DEFINE(DARWIN_DVD_IOCTL, 1, Have IOKit DVD IOCTL headers)
+ DVDCSS_LDFLAGS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,IOKit"
])
dnl
dnl Final tests to check what was detected
@@ -196,6 +197,7 @@
AC_PATH_PROG(LATEX, latex, no)
AM_CONDITIONAL(LATEX, test "${LATEX}" != "no")
+AC_SUBST(DVDCSS_LDFLAGS)
AC_OUTPUT([
Makefile
debian/Makefile
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,7 +15,7 @@
$(bsdi_extras)
libdvdcss_la_LIBADD = $(bsdi_libadd)
-libdvdcss_la_LDFLAGS = -version-info 2:8:0 $(libtool_flags)
+libdvdcss_la_LDFLAGS = -version-info 2:8:0 $(libtool_flags) @DVDCSS_LDFLAGS@
bsdi_extras = bsdi_ioctl.c bsdi_dvd.h