summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-07-14 17:12:55 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-07-14 17:13:07 +0200
commit5b3392e84b910c88af64db54986a74122b40f1f4 (patch)
treef539b0ebaeea341eabf13ea00f23d7470f79b369 /configure.ac
parentac588e9d0e6b4dd59d1e929545bf39247cb8f72c (diff)
downloadModemManager-5b3392e84b910c88af64db54986a74122b40f1f4.tar.gz
build: require libmbim by default, and explicitly log about --without-mbim
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac39
1 files changed, 16 insertions, 23 deletions
diff --git a/configure.ac b/configure.ac
index 9c294aaf3..e0c7653cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -184,32 +184,25 @@ fi
AM_CONDITIONAL(WITH_POLKIT, [test "x$with_polkit" != "xnone" ])
dnl
-dnl MBIM support (auto by default)
+dnl MBIM support (enabled by default)
dnl
-AC_ARG_WITH(mbim, AS_HELP_STRING([--without-mbim], [Build without MBIM support]), [], [with_mbim=auto])
-if (test "${with_mbim}" != "no"); then
- PKG_CHECK_MODULES(MBIM,
- [mbim-glib >= 1.4.0],
- [have_libmbim_glib=yes],
- [have_libmbim_glib=no])
- AC_SUBST(MBIM_CFLAGS)
- AC_SUBST(MBIM_LIBS)
-
- if (test "${have_libmbim_glib}" = "no"); then
- if (test "${with_mbim}" = "yes"); then
- AC_MSG_ERROR([Couldn't find libmbim-glib])
+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 >= 1.4], [have_mbim=yes],[have_mbim=no])
+ if test "x$have_mbim" = "xno"; then
+ AC_MSG_ERROR([Couldn't find libmbim-glib. Install it, or otherwise configure using --without-mbim to disable MBIM support.])
else
- with_mbim="no"
+ AC_DEFINE(WITH_MBIM, 1, [Define if you want MBIM support])
+ AC_SUBST(MBIM_CFLAGS)
+ AC_SUBST(MBIM_LIBS)
fi
- else
- with_mbim="yes"
- fi
-fi
-
-if (test "${with_mbim}" = "yes"); then
- AC_DEFINE(WITH_MBIM, 1, [Define if you want MBIM support])
-fi
-AM_CONDITIONAL(WITH_MBIM, test "${with_mbim}" = "yes")
+ ;;
+ *)
+ with_mbim=no
+ ;;
+esac
dnl
dnl QMI support (enabled by default)