summaryrefslogtreecommitdiff
path: root/macros/gnome-pilot.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gnome-pilot.m4')
-rw-r--r--macros/gnome-pilot.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/macros/gnome-pilot.m4 b/macros/gnome-pilot.m4
index a2ebfe5e..39f73cca 100644
--- a/macros/gnome-pilot.m4
+++ b/macros/gnome-pilot.m4
@@ -99,10 +99,12 @@ AC_DEFUN([PILOT_LINK_CHECK],[
AC_DEFUN([GNOME_PILOT_HOOK],[
AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
AC_CACHE_CHECK([for gnome-pilot environment],gnome_cv_pilot_found,[
- if test x$GNOME_CONFIG = xno; then
+ if test "x$GNOME_CONFIG" = "xno"; then
gnome_cv_pilot_found=no
else
- if $GNOME_CONFIG --modversion gpilot 2> /dev/null; then
+ # gnome-config doesn't return a useful error status,
+ # so we check if it outputs anything to stderr
+ if test "x`$GNOME_CONFIG gpilot 2>&1 > /dev/null`" = "x"; then
gnome_cv_pilot_found=yes
else
gnome_cv_pilot_found=no