fi
if test "x$enable_hal" = "xyes" ; then
- PKG_CHECK_MODULES(HAL, hal)
- AC_SUBST(HAL_LIBS)
- AC_SUBST(HAL_CFLAGS)
- AC_DEFINE([WITH_HAL], 1, [Listen to special events using hal])
+ PKG_CHECK_MODULES(HAL, hal, HAVE_HAL=yes, HAVE_HAL=no)
+ if test "x$HAVE_HAL" = "xyes"; then
+ AC_SUBST(HAL_LIBS)
+ AC_SUBST(HAL_CFLAGS)
+ AC_DEFINE([WITH_HAL], 1, [Listen to special events using HAL])
+ else
+ AC_MSG_NOTICE([HAL support requested but not found, disabling])
+ fi
fi
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)