[Goodies-commits] r4644 - xfburn/trunk
David Mohr
squisher at xfce.org
Mon Apr 21 13:59:42 CEST 2008
Author: squisher
Date: 2008-04-21 11:59:42 +0000 (Mon, 21 Apr 2008)
New Revision: 4644
Modified:
xfburn/trunk/configure.in.in
Log:
Adding HAL detection to configure.in.in
Modified: xfburn/trunk/configure.in.in
===================================================================
--- xfburn/trunk/configure.in.in 2008-04-20 19:41:09 UTC (rev 4643)
+++ xfburn/trunk/configure.in.in 2008-04-21 11:59:42 UTC (rev 4644)
@@ -40,6 +40,35 @@
[Disable the use of Thunar's VFS layer to show mime type and icons in file browser]))
AM_CONDITIONAL([HAVE_THUNAR_VFS], [test "x$THUNAR_VFS_FOUND" = "xyes"])
+dnl ********************************
+dnl *** Check for HAL (optional) ***
+dnl ********************************
+dnl (taken from libexo's configure.in.in rev.26877)
+XDT_CHECK_OPTIONAL_PACKAGE([HAL], [hal-storage], [0.5.7], [hal], [HAL support], [yes])
+if test x"$HAL_FOUND" = x"yes"; then
+ dnl # substituted into exo-hal-0.3.pc
+ HAL_STORAGE_DEPENDENCY="hal-storage"
+
+ dnl # Check if LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRWDL is declared
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $HAL_CFLAGS"
+ AC_MSG_CHECKING([whether LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRWDL is declared])
+ AC_COMPILE_IFELSE(AC_LANG_SOURCE(
+ [#include <libhal-storage.h>
+ int main (int argc, char **argv) { return LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRWDL; }
+ ]),
+ [
+ AC_DEFINE([HAVE_LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRWDL], [1], [Define if LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRWDL present])
+ AC_MSG_RESULT([yes])
+ ],
+ [
+ AC_MSG_RESULT([no])
+ ])
+ CFLAGS="$save_CFLAGS"
+fi
+AC_SUBST([HAL_STORAGE_DEPENDENCY])
+
+
dnl check for debugging support
BM_DEBUG_SUPPORT()
More information about the Goodies-commits
mailing list