VirtualBox

Changeset 14989 in vbox for trunk/configure


Ignore:
Timestamp:
Dec 4, 2008 2:42:43 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40359
Message:

Config.kmk/configure: use libdbus-1 directly instead of libhal on Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r14926 r14989  
    6363WITH_ALSA=1
    6464WITH_PULSE=1
    65 WITH_LIBHAL=1
     65WITH_DBUS=1
    6666WITH_KMODS=1
    6767WITH_HARDENING=1
     
    9393PKGCONFIG="`which_wrapper pkg-config`"
    9494if [ -n $PKGCONFIG ]; then
    95   FLAGSHAL="`$PKGCONFIG hal --cflags 2>/dev/null`"
    96   LIBDIRHAL="`$PKGCONFIG hal --libs-only-L 2>/dev/null`"
    97   LIBHAL="`$PKGCONFIG hal --libs-only-l 2>/dev/null`"
     95  FLAGSDBUS="`$PKGCONFIG dbus-1 --cflags 2>/dev/null`"
     96  LIBDIRDBUS="`$PKGCONFIG dbus-1 --libs-only-L 2>/dev/null`"
     97  LIBDBUS="`$PKGCONFIG dbus-1 --libs-only-l 2>/dev/null`"
    9898fi
    9999PYTHONDIR="/usr /usr/local"
     
    11651165
    11661166#
    1167 # Check for libhal
    1168 #
    1169 check_libhal()
    1170 {
    1171   test_header "libhal"
     1167# Check for DBus
     1168#
     1169check_dbus()
     1170{
     1171  test_header "DBus"
    11721172  cat > .tmp_src.cc << EOF
    1173 #include <libhal.h>
     1173#include <dbus/dbus.h>
    11741174extern "C" int main(void)
    11751175{
     
    11771177}
    11781178EOF
    1179   if [ -n $PKGCONFIG ] && test_compile "$FLAGSHAL $LIBDIRHAL $LIBHAL" libhal libhal; then
     1179  if [ -n $PKGCONFIG ] && test_compile "$FLAGSDBUS $LIBDIRDBUS $LIBDBUS" DBus DBus; then
    11801180    log_success "found"
    11811181  fi
     
    17861786  --disable-alsa           disable the ALSA sound backend
    17871787  --disable-pulse          disable the PulseAudio backend
    1788   --disable-libhal         don't use hal for hardware detection
     1788  --disable-dbus           don't use DBus and hal for hardware detection
    17891789  --disable-kmods          don't build Linux kernel modules (host and guest)
    17901790  --disable-hardening      don't be strict about /dev/vboxdrv access
     
    18861886      WITH_PULSE=0
    18871887      ;;
    1888     --disable-libhal)
    1889       WITH_LIBHAL=0
     1888    --disable-dbus)
     1889      WITH_DBUS=0
    18901890      ;;
    18911891    --disable-kmods)
     
    20852085    cnf_append "VBOX_WITH_PULSE" ""
    20862086  fi
    2087   if [ $WITH_LIBHAL -eq 1 ]; then
    2088     check_libhal
     2087  if [ $WITH_DBUS -eq 1 ]; then
     2088    check_dbus
    20892089  else
    2090     cnf_append "VBOX_WITH_LIBHAL" ""
     2090    cnf_append "VBOX_WITH_DBUS" ""
    20912091  fi
    20922092  check_compiler_h
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette