# DBUS
PKG_CHECK_MODULES(DBUS, "dbus-1")

AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)

# HAL
PKG_CHECK_MODULES(HAL, "hal")

AC_SUBST(HAL_CFLAGS)
AC_SUBST(HAL_LIBS)

VERSION=0.01	
AC_SUBST(VERSION)

# DBUS QT BINDING ### stolen from kpowersave and knetworkmanager ;) #   
CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS $all_includes -DDBUS_API_SUBJECT_TO_CHANGE"
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER([dbus/connection.h],,[AC_MSG_ERROR([You need D-BUS/Qt3 bindings])])
AC_CHECK_HEADER([dbus/message.h],,[AC_MSG_ERROR([You need D-BUS/Qt3 bindings])])
CPPFLAGS=$safe_CPPFLAGS
AC_LANG_RESTORE

