diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-15 01:53:59 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-15 01:53:59 -0500 |
commit | dc78015f323f5ed3c3b7a9f2e6d9c1edcd9f77e2 (patch) | |
tree | 0e3eaac5fabbf426845423da85eda27c5297323b /configure.ac | |
parent | systemtime: Use gettimeofday if POSIX timers not available (diff) | |
parent | contrib: Update RPM spec to use GeoClue2 (diff) | |
download | redshift-ng-dc78015f323f5ed3c3b7a9f2e6d9c1edcd9f77e2.tar.gz redshift-ng-dc78015f323f5ed3c3b7a9f2e6d9c1edcd9f77e2.tar.bz2 redshift-ng-dc78015f323f5ed3c3b7a9f2e6d9c1edcd9f77e2.tar.xz |
Merge branch 'geoclue2-provider'
Add GeoClue2 location provider
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9fe8b13..1bb5424 100644 --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,7 @@ PKG_CHECK_MODULES([XCB_RANDR], [xcb-randr], PKG_CHECK_MODULES([GLIB], [glib-2.0 gobject-2.0], [have_glib=yes], [have_glib=no]) PKG_CHECK_MODULES([GEOCLUE], [geoclue], [have_geoclue=yes], [have_geoclue=no]) +PKG_CHECK_MODULES([GEOCLUE2], [glib-2.0 gio-2.0 >= 2.26], [have_geoclue2=yes], [have_geoclue2=no]) AC_CHECK_HEADER([windows.h], [have_windows_h=yes], [have_windows_h=no]) @@ -159,6 +160,30 @@ AS_IF([test "x$enable_geoclue" != xno], [ ]) AM_CONDITIONAL([ENABLE_GEOCLUE], [test "x$enable_geoclue" = xyes]) +# Check Geoclue2 location provider +AC_MSG_CHECKING([whether to enable Geoclue2 location provider]) +AC_ARG_ENABLE([geoclue2], [AC_HELP_STRING([--enable-geoclue2], + [enable Geoclue2 location provider])], + [enable_geoclue2=$enableval],[enable_geoclue2=maybe]) +AS_IF([test "x$enable_geoclue2" != xno], [ + AS_IF([test "x$have_geoclue2" = xyes], [ + AC_DEFINE([ENABLE_GEOCLUE2], 1, + [Define to 1 to enable Geoclue2 location provider]) + AC_MSG_RESULT([yes]) + enable_geoclue2=yes + ], [ + AC_MSG_RESULT([missing dependencies]) + AS_IF([test "x$enable_geoclue2" = xyes], [ + AC_MSG_ERROR([missing dependencies for Geoclue2 location provider]) + ]) + enable_geoclue2=no + ]) +], [ + AC_MSG_RESULT([no]) + enable_geoclue2=no +]) +AM_CONDITIONAL([ENABLE_GEOCLUE2], [test "x$enable_geoclue2" = xyes]) + # Check for GUI status icon AC_MSG_CHECKING([whether to enable GUI status icon]) @@ -249,6 +274,7 @@ echo " Location providers: Geoclue: ${enable_geoclue} + Geoclue2: ${enable_geoclue2} GUI: ${enable_gui} Ubuntu icons: ${enable_ubuntu} |