support of appindicator < 0.2.9
authorJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 27 May 2011 19:27:22 +0000 (19:27 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 27 May 2011 19:27:22 +0000 (19:27 +0000)
NEWS
configure
configure.ac

diff --git a/NEWS b/NEWS
index 2959663..81f1c7d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+* v0.6.1.10
+
+** psensor: support of appindicator < 0.2.9
+
 * v0.6.1.9
 
 ** avoid fetching hddtemp daemon when no hdd in the sensors list
index b0ff59a..cb9439a 100755 (executable)
--- a/configure
+++ b/configure
@@ -7563,12 +7563,12 @@ if test -n "$APPINDICATOR_CFLAGS"; then
     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 = 0.2.9 \""; } >&5
-  ($PKG_CONFIG --exists --print-errors "appindicator-0.1 = 0.2.9 ") 2>&5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
+  ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
-  pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 = 0.2.9 " 2>/dev/null`
+  pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
 else
   pkg_failed=yes
 fi
@@ -7579,12 +7579,12 @@ if test -n "$APPINDICATOR_LIBS"; then
     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 = 0.2.9 \""; } >&5
-  ($PKG_CONFIG --exists --print-errors "appindicator-0.1 = 0.2.9 ") 2>&5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
+  ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
-  pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 = 0.2.9 " 2>/dev/null`
+  pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
 else
   pkg_failed=yes
 fi
@@ -7604,9 +7604,9 @@ else
         _pkg_short_errors_supported=no
 fi
         if test $_pkg_short_errors_supported = yes; then
-               APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "appindicator-0.1 = 0.2.9 " 2>&1`
+               APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "appindicator-0.1 <= 0.2.9 " 2>&1`
         else
-               APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "appindicator-0.1 = 0.2.9 " 2>&1`
+               APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "appindicator-0.1 <= 0.2.9 " 2>&1`
         fi
        # Put the nasty error message in config.log where it belongs
        echo "$APPINDICATOR_PKG_ERRORS" >&5
index 12a9226..065cd10 100644 (file)
@@ -78,7 +78,7 @@ AC_SUBST(LIBNOTIFY_LIBS)
 # Checks AppIndicator 
  APPINDICATOR_LIBS=
  PKG_CHECK_MODULES(APPINDICATOR, 
-     appindicator-0.1 = 0.2.9 , 
+     appindicator-0.1 <= 0.2.9 , 
      [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator 0.2.9])
       AC_DEFINE([HAVE_APPINDICATOR_029],[1],[Use AppIndicator 0.2.9])
      ],