[omniORB] Autoconf detection of OmniORB

John R Sheets dusk@smsi-roman.com
Mon, 12 Apr 1999 10:32:07 -0500


Hi,

I'm trying to figure out the best way to discover the installed
version of omniorb, using an autoconf check.  What I have so far
is to pipe 'omniidl2 -V' through sed, to extract the version
number with a regex.  This is a little bulky:

 AC_PATH_PROG(OMNIIDL, omniidl2, )
 omniorb_major_version=`$OMNIIDL -V 2>&1 | \
  sed '2,$d;s/.*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\1/'`

(Incidentally, I'm having trouble getting this to work inside of
an autoconf macro, even though the same command works fine in a
shell script.  In autoconf, \1 returns an empty string.)

Is there an easier way to do this?  Anyone already have a working
autoconf macro?

Also, is libomniGK_stub new to 2.7.x?  Is it safe to leave it off
for 2.6.x, or does it have a different name?  What are some other
differences between 2.6.x and 2.7.x that I should watch out for?

Thanks,
John