diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-06 19:23:14 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-17 15:19:37 +0200 |
commit | dd5680debeeb43a13865343d5e7fe65bbc297360 (patch) | |
tree | 7a23b1826c9853949672a87709e4aa71c425e778 | |
parent | 463de46e9e018b68c2fdb20abf3e25180de4d415 (diff) |
build: new '--with-mbim' configure switch
Will enable MBIM support through libmbim.
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ed4fd1a3..e7826f3e 100644 --- a/configure.ac +++ b/configure.ac @@ -170,7 +170,26 @@ case $with_tests in ;; esac +dnl +dnl MBIM support (enabled by default) +dnl +AC_ARG_WITH(mbim, AS_HELP_STRING([--without-mbim], [Build without MBIM support]), [], [with_mbim=yes]) +AM_CONDITIONAL(WITH_MBIM, test "x$with_mbim" = "xyes") +case $with_mbim in + yes) + PKG_CHECK_MODULES(MBIM, mbim-glib) + AC_DEFINE(WITH_MBIM, 1, [Define if you want MBIM support]) + AC_SUBST(MBIM_CFLAGS) + AC_SUBST(MBIM_LIBS) + ;; + *) + with_mbim=no + ;; +esac + +dnl dnl QMI support (enabled by default) +dnl AC_ARG_WITH(qmi, AS_HELP_STRING([--without-qmi], [Build without QMI support]), [], [with_qmi=yes]) AM_CONDITIONAL(WITH_QMI, test "x$with_qmi" = "xyes") case $with_qmi in @@ -269,6 +288,7 @@ echo " PPP-enabled tests: ${have_pppd_headers} PolicyKit support: ${with_polkit} Documentation: ${with_docs} + MBIM support: ${with_mbim} QMI support: ${with_qmi} Newest QMI commands: ${with_newest_qmi_commands} " |