build: require libmbim by default, and explicitly log about --without-mbim
This commit is contained in:
+16
-23
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user