summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 5681e61..587ebbc 100644
--- a/configure.in
+++ b/configure.in
@@ -7,6 +7,8 @@ AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_LN_S
+PKG_PROG_PKG_CONFIG
+
dnl ---------------------------------------------------------------------------
dnl - Should we ship the recall data
dnl ---------------------------------------------------------------------------
@@ -47,8 +49,17 @@ dnl ---------------------------------------------------------------------------
dnl - Should we enable WLAN killswitch support for ipw chipsets?
dnl ---------------------------------------------------------------------------
AC_ARG_ENABLE(killswitch_ipw_wlan, [ --enable-killswitch-ipw-wlan Include support for WLAN killswitch (requires hal >= 0.5.10)],enable_killswitch_ipw_wlan=$enableval,enable_killswitch_ipw_wlan=yes)
+
+if ! $PKG_CONFIG --atleast-version 0.5.10 hal; then
+ if test x$enable_killswitch_ipw_wlan == xyes ; then
+ AC_MSG_WARN([hal 0.5.10 or later is required for ipw killswitch. Disabling this feature.])
+ enable_killswitch_ipw_wlan=no
+ fi
+fi
+
AM_CONDITIONAL(BUILD_KILLSWITCH_IPW_WLAN, test x$enable_killswitch_ipw_wlan == xyes)
+
AC_OUTPUT([
Makefile
fdi/Makefile
@@ -74,5 +85,5 @@ echo "
killswitch support for Dell wlan: ${enable_killswitch_dell_wlan}
killswitch support for Dell Bluetooth: ${enable_killswitch_dell_bluetooth}
killswitch support for Sony Bluetooth: ${enable_killswitch_sony_bluetooth}
- killswitch support for IPW wlan: ${enable_killswitch_ipw_wlan}
+ killswitch support for IPW wlan: ${enable_killswitch_ipw_wlan} (requires hal >= 0.5.10)
"