[banshee] [AppleDevice] Add the appledevice m4 file



commit c4b7aceb8f29b59cf0259e9a98975a7d1aa6099f
Author: Alan McGovern <alan mcgovern gmail com>
Date:   Wed Jul 21 00:12:41 2010 +0100

    [AppleDevice] Add the appledevice m4 file

 build/m4/banshee/dap-appledevice.m4 |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/build/m4/banshee/dap-appledevice.m4 b/build/m4/banshee/dap-appledevice.m4
new file mode 100644
index 0000000..f4d594a
--- /dev/null
+++ b/build/m4/banshee/dap-appledevice.m4
@@ -0,0 +1,26 @@
+AC_DEFUN([BANSHEE_CHECK_DAP_APPLEDEVICE],
+[
+	LIBGPODSHARP_REQUIRED=0.1
+
+	AC_ARG_ENABLE(appledevice, AC_HELP_STRING([--disable-appledevice], [Disable Apple device (iPhone, iPod, iPad) DAP support]), , enable_appledevice="yes")
+
+	if test "x$enable_appledevice" = "xyes"; then
+		has_libgpod=no
+		PKG_CHECK_MODULES(LIBGPODSHARP,
+			libgpod-sharp >= $LIBGPODSHARP_REQUIRED,
+			has_libgpod=yes, has_libgpod=no)
+		if test "x$has_libgpod" = "xno"; then
+			AC_MSG_ERROR([libgpod-sharp was not found or is not up to date. Please install libgpod-sharp of at least version $LIBGPODSHARP_REQUIRED, or disable Apple device support by passing --disable-appledevice])
+		fi
+	fi
+
+	if test "x$enable_appledevice" = "xyes"; then
+		asm="`$PKG_CONFIG --variable=Libraries libgpod-sharp`"
+		LIBGPODSHARP_ASSEMBLIES="$LIBGPODSHARP_ASSEMBLIES $asm"
+		[[ -r "$asm.mdb" ]] && LIBGPODSHARP_ASSEMBLIES="$LIBGPODSHARP_ASSEMBLIES $asm.mdb"
+		AC_SUBST(LIBGPODSHARP_ASSEMBLIES)
+	fi
+	
+	AM_CONDITIONAL(ENABLE_APPLEDEVICE, test "x$enable_appledevice" = "xyes")
+])
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]