+AM_CONDITIONAL(WIFI, test "${enable_wifi}" != "no")
+AM_CONDITIONAL(WIFI_BUILTIN, test "${enable_wifi}" = "builtin")
+
+AC_ARG_ENABLE(bluetooth,
+ AC_HELP_STRING([--enable-bluetooth], [enable Bluetooth support]),
+ [enable_bluetooth=${enableval}], [enable_bluetooth="no"])
+AM_CONDITIONAL(BLUETOOTH, test "${enable_bluetooth}" != "no")
+AM_CONDITIONAL(BLUETOOTH_BUILTIN, test "${enable_bluetooth}" = "builtin")
+
+AC_ARG_ENABLE(ofono,
+ AC_HELP_STRING([--enable-ofono], [enable oFono support]),
+ [enable_ofono=${enableval}], [enable_ofono="no"])
+AM_CONDITIONAL(OFONO, test "${enable_ofono}" != "no")
+AM_CONDITIONAL(OFONO_BUILTIN, test "${enable_ofono}" = "builtin")
+
+AC_ARG_ENABLE(modemmgr,
+ AC_HELP_STRING([--enable-modemmgr], [enable Modem Manager support]),
+ [enable_modemmgr=${enableval}], [enable_modemmgr="no"])
+AM_CONDITIONAL(MODEMMGR, test "${enable_modemmgr}" != "no")
+AM_CONDITIONAL(MODEMMGR_BUILTIN, test "${enable_modemmgr}" = "builtin")
+
+AC_ARG_WITH(udhcpc, AC_HELP_STRING([--with-udhcpc=PROGRAM],
+ [specify location of udhcpc binary]), [path_udhcpc=${withval}])
+
+AC_ARG_ENABLE(udhcp,
+ AC_HELP_STRING([--enable-udhcp], [enable uDHCP support]),
+ [enable_udhcp=${enableval}], [enable_udhcp="no"])
+if (test "${enable_udhcp}" != "no"); then
+ if (test -z "${path_udhcpc}"); then
+ AC_PATH_PROG(UDHCPC, [udhcpc], [], $PATH:/sbin:/usr/sbin)
+ else
+ UDHCPC="${path_udhcpc}"
+ AC_SUBST(UDHCPC)
+ fi
+fi
+AM_CONDITIONAL(UDHCP, test "${enable_udhcp}" != "no")
+AM_CONDITIONAL(UDHCP_BUILTIN, test "${enable_udhcp}" = "builtin")
+
+AC_ARG_WITH(dhclient, AC_HELP_STRING([--with-dhclient=PROGRAM],
+ [specify location of dhclient binary]), [path_dhclient=${withval}])
+
+AC_ARG_ENABLE(dhclient,
+ AC_HELP_STRING([--enable-dhclient], [enable dhclient support]),
+ [enable_dhclient=${enableval}], [enable_dhclient="no"])
+if (test "${enable_dhclient}" != "no"); then
+ if (test -z "${path_dhclient}"); then
+ AC_PATH_PROG(DHCLIENT, [dhclient], [], $PATH:/sbin:/usr/sbin)
+ else
+ DHCLIENT="${path_dhclient}"
+ AC_SUBST(DHCLIENT)
+ fi
+fi
+AM_CONDITIONAL(DHCLIENT, test "${enable_dhclient}" != "no")
+AM_CONDITIONAL(DHCLIENT_BUILTIN, test "${enable_dhclient}" = "builtin")
+
+AC_ARG_WITH(resolvconf, AC_HELP_STRING([--with-resolvconf=PROGRAM],
+ [specify location of resolvconf binary]), [path_resolvconf=${withval}])
+
+AC_ARG_ENABLE(resolvconf,
+ AC_HELP_STRING([--enable-resolvconf], [enable resolvconf support]),
+ [enable_resolvconf=${enableval}], [enable_resolvconf="no"])
+if (test "${enable_resolvconf}" != "no"); then
+ if (test -z "${path_resolvconf}"); then
+ AC_PATH_PROG(RESOLVCONF, [resolvconf], [], $PATH:/sbin:/usr/sbin)
+ else
+ RESOLVCONF="${path_resolvconf}"
+ AC_SUBST(RESOLVCONF)
+ fi
+fi
+AM_CONDITIONAL(RESOLVCONF, test "${enable_resolvconf}" != "no")
+AM_CONDITIONAL(RESOLVCONF_BUILTIN, test "${enable_resolvconf}" = "builtin")
+
+AC_ARG_ENABLE(dnsproxy,
+ AC_HELP_STRING([--enable-dnsproxy], [enable DNS proxy support]),
+ [enable_dnsproxy=${enableval}], [enable_dnsproxy="no"])
+AM_CONDITIONAL(DNSPROXY, test "${enable_dnsproxy}" != "no")
+AM_CONDITIONAL(DNSPROXY_BUILTIN, test "${enable_dnsproxy}" = "builtin")
+
+AC_ARG_ENABLE(novatel, AC_HELP_STRING([--enable-novatel],
+ [enable Novatel support]), [enable_novatel=${enableval}])
+AM_CONDITIONAL(NOVATEL, test "${enable_novatel}" = "yes")
+
+AC_ARG_ENABLE(huawei, AC_HELP_STRING([--enable-huawei],
+ [enable HUAWEI support]), [enable_huawei=${enableval}])
+AM_CONDITIONAL(HUAWEI, test "${enable_huawei}" = "yes")
+
+AC_ARG_ENABLE(hso,
+ AC_HELP_STRING([--enable-hso], [enable HSO support]),
+ [enable_hso=${enableval}], [enable_hso="no"])
+AM_CONDITIONAL(HSO, test "${enable_hso}" != "no")
+AM_CONDITIONAL(HSO_BUILTIN, test "${enable_hso}" = "builtin")