diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-11-25 19:03:02 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-01-16 11:24:11 +0100 |
commit | 117775369f0b7e4e8151d4ebf0a249a9e50a5c1a (patch) | |
tree | 7fea8556966e0c2357d70cb1a1df899fa325da67 /configure.ac | |
parent | 42eca204b98155c6d7a34f36fc00c1f19a1455fb (diff) | |
download | external_libqmi-117775369f0b7e4e8151d4ebf0a249a9e50a5c1a.zip external_libqmi-117775369f0b7e4e8151d4ebf0a249a9e50a5c1a.tar.gz external_libqmi-117775369f0b7e4e8151d4ebf0a249a9e50a5c1a.tar.bz2 |
qmi-firmware-update: new QfuUpdater with the core upgrade logic
Initially, load sysfs path and setup state machine.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 47 |
1 files changed, 38 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 1238945..311c10e 100644 --- a/configure.ac +++ b/configure.ac @@ -64,9 +64,13 @@ AC_SUBST(QMI_GLIB_LT_CURRENT) AC_SUBST(QMI_GLIB_LT_REVISION) AC_SUBST(QMI_GLIB_LT_AGE) -dnl Dependencies +dnl Required dependency versions +GLIB_REQUIRED=2.36 +GUDEV_REQUIRED=147 + +dnl GLib, GIO... PKG_CHECK_MODULES(GLIB, - glib-2.0 >= 2.36 + glib-2.0 >= $GLIB_REQUIRED gobject-2.0 gio-2.0 gio-unix-2.0) @@ -76,6 +80,26 @@ AC_SUBST(GLIB_LIBS) GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` AC_SUBST(GLIB_MKENUMS) +dnl GUdev +PKG_CHECK_MODULES(GUDEV, + [gudev-1.0 >= $GUDEV_REQUIRED], + [have_gudev=yes],[have_gudev=no]) +AC_SUBST(GUDEV_CFLAGS) +AC_SUBST(GUDEV_LIBS) + +dnl qmi-firmware-update is optional, enabled by default +AC_ARG_ENABLE([firmware-update], + AS_HELP_STRING([--enable-firmware-update], + [enable compilation of `qmi-firmware-update' [default=yes]]), + [build_firmware_update=$enableval], + [build_firmware_update=yes]) +if test "x$build_firmware_update" = "xyes"; then + if test "x$have_gudev" = "xno"; then + AC_MSG_ERROR([Cannot build `qmi-firmware-update' if GUDev >= GUDEV_REQUIRED is not available. Install it, or otherwise configure using --disable-firmware-update to disable building `qmi-firmware-update'.]) + fi +fi +AM_CONDITIONAL([BUILD_FIRMWARE_UPDATE], [test "x$build_firmware_update" = "xyes"]) + dnl Documentation GTK_DOC_CHECK(1.0) @@ -166,11 +190,16 @@ echo " libqmi (libqmi-glib, qmicli) $VERSION ============================================== - compiler: ${CC} - cflags: ${CFLAGS} - Maintainer mode: ${USE_MAINTAINER_MODE} - udev base directory: ${UDEV_BASE_DIR} - Documentation: ${enable_gtk_doc} - QMI username: ${QMI_USERNAME_ENABLED} (${QMI_USERNAME}) - QMUX over MBIM: ${enable_mbim_qmux} + compiler: ${CC} + cflags: ${CFLAGS} + Maintainer mode: ${USE_MAINTAINER_MODE} + udev base directory: ${UDEV_BASE_DIR} + Documentation: ${enable_gtk_doc} + QMI username: ${QMI_USERNAME_ENABLED} (${QMI_USERNAME}) + QMUX over MBIM: ${enable_mbim_qmux} + + Built items: + libqmi-glib: yes + qmicli: yes + qmi-firmware-update: ${build_firmware_update} " |