depends  dbus-glib          &&
depends  AWK               &&
depends  glib2              &&
depends  intltool           &&
depends  libtool            &&
depends  DEVICE-MANAGER "--with-udev-prefix=$INSTALL_ROOT/etc" &&
depends  xml-parser-expat   &&
depends  PKG-CONFIG          &&
depends  util-linux         &&

if [[ $HAL_VER == devel ]]; then
  depends git
fi &&
# needs checking, maybe optional_depends, but definately not depends
# depends  dbus-python  &&

depends glibc &&

optional_depends  CONSOLE-MANAGER          \
                  "--enable-console-kit"   \
                  "--disable-console-kit"  \
                  "ConsoleKit support"     &&

optional_depends  gtk-doc                   \
                  "--enable-gtk-doc"        \
                  "--disable-gtk-doc"       \
                  "build documentation"     &&

optional_depends  parted                    \
                  "--enable-parted"         \
                  "--disable-parted"        \
                 "to check partition table" &&

optional_depends  docbook-utils             \
                  "--enable-docbook-docs"   \
                  "--disable-docbook-docs"  \
                  "Build Docbook Docs"      &&

optional_depends  LIBUSB                    \
                  "--enable-usb"            \
                  "--disable-usb"           \
                  "for libusb support"      &&

optional_depends  hwdata                             \
                  "--enable-pnp-ids" \
                  "--disable-pnp-ids" \
                  "for PNP hardware data" &&

optional_depends  PCIIDS              \
                  "--enable-pci-ids"  \
                  "--disable-pci-ids" \
                  "for PCI hardware data"  &&

optional_depends  USBIDS              \
                  "--enable-usb-ids"  \
                  "--disable-usb-ids" \
                  "for USB hardware data" &&

if (is_depends_enabled $SPELL hwdata) || \
     [[ "$(get_spell_provider ${SPELL} PCIIDS)" = 'hwdata' ]] || \
     [[ "$(get_spell_provider ${SPELL} USBIDS)" = 'hwdata' ]]; then
         OPTS="${OPTS} --with-hwdata=/usr/share/hwdata"
elif [[ "$(get_spell_provider ${SPELL} PCIIDS)" = 'pciutils' ]] || \
     [[ "$(get_spell_provider ${SPELL} USBIDS)" = 'usbutils' ]]; then
         OPTS="${OPTS} --with-hwdata=/usr/share"
fi &&

optional_depends  pciutils                           \
                  "--with-macbookpro"                \
                  "--without-macbookpro"             \
                  "for MacBook Pro utils"           &&

optional_depends  dmidecode                          \
                  ""                                 \
                  ""                                 \
                  "for dmidecode support"           &&

optional_depends  ACPI                               \
                  "--enable-acpi-acpid"              \
                  "--disable-acpi-acpid"             \
                  "for an acpid event source"       &&

optional_depends  cryptsetup-luks                    \
                  ""                                 \
                  ""                                 \
                  "for cryptsetup-luks support"     &&

optional_depends  libsmbios                          \
                  "--enable-smbios"                  \
                  "--disable-smbios"                 \
                  "for smbios support"
