cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/ricci configure
Date: 17 Nov 2006 00:37:28 -0000	[thread overview]
Message-ID: <20061117003728.30233.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Branch: 	RHEL5
Changes by:	kupcevic at sourceware.org	2006-11-17 00:37:26

Modified files:
	ricci          : configure 

Log message:
	ricci: fix D-BUS detection (handle format X.X.X, eg. 1.2.3)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/configure.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8&r2=1.8.2.1

--- conga/ricci/configure	2006/08/22 23:01:17	1.8
+++ conga/ricci/configure	2006/11/17 00:37:26	1.8.2.1
@@ -45,15 +45,27 @@
 
 
 # D-BUS version
-DBUS_VERSION=`pkg-config --modversion dbus-1`
+DBUS_VERSION=`pkg-config --modversion dbus-1 2>/dev/null`
 if [ -z "$DBUS_VERSION" ] ; then 
-    echo "missing d-bus"
+    echo "D-BUS required, but I am unable to locate it. Is it installed?"
     rm -f $MAKE_DEFINES
     exit 1
 else
-    echo "detected dbus version: $DBUS_VERSION"
-    DBUS_MAJOR_VERSION=`echo $DBUS_VERSION | sed -e s,^\\\\\([012]\\\\\)\.[0123456789]*,\\\1,`
-    DBUS_MINOR_VERSION=`echo $DBUS_VERSION | sed -e s,^[012]\.\\\\\([0123456789]*\\\\\),\\\1,`
+    echo -n "D-BUS version $DBUS_VERSION detected"
+    VERSIONS=(`echo $DBUS_VERSION | sed -e s,^\\\\\([0123456789]*\\\\\)\.\\\\\([0123456789]*\\\\\).*,\\\1\ \\\2, 2>/dev/null`)
+    DBUS_MAJOR_VERSION=${VERSIONS[0]}
+    DBUS_MINOR_VERSION=${VERSIONS[1]}
+    if [ -z "$DBUS_MAJOR_VERSION" ] ; then 
+	echo "; failed extraction of major D-BUS version"
+	rm -f $MAKE_DEFINES
+	exit 1
+    fi
+    if [ -z "$DBUS_MINOR_VERSION" ] ; then 
+	echo "; failed extraction of minor D-BUS version"
+	rm -f $MAKE_DEFINES
+	exit 1
+    fi
+    echo '  ->' major $DBUS_MAJOR_VERSION, minor $DBUS_MINOR_VERSION
 fi
 
 
@@ -65,4 +77,3 @@
     | sed -e s,@@DBUS_MINOR_VERSION@@,$DBUS_MINOR_VERSION,g \
     | sed -e s,@@PEGASUS_PLATFORM@@,$PEGASUS_PLATFORM,g \
     >> $MAKE_DEFINES
-



             reply	other threads:[~2006-11-17  0:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17  0:37 kupcevic [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-11-17  0:31 [Cluster-devel] conga/ricci configure kupcevic
2006-08-21 20:13 kupcevic
2006-07-25 21:49 kupcevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061117003728.30233.qmail@sourceware.org \
    --to=kupcevic@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).