Re: Trouble with variable substitution

2004-01-28 Thread martin f krafft
also sprach Gary V. Vaughan [EMAIL PROTECTED] [2004.01.28.1101 +0100]: Note the lack of $AC_PACKAGE_VERSION, AC_PACKAGE_VERSION is an m4 macro! Thanks, this was the problem. I am a total newbie, so I appreciate your patience and kind answer! -- martin; (greetings from the heart of

Re: Trouble with variable substitution

2004-01-28 Thread Gary V. Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 martin f krafft wrote: | Hi there, I am trying to do the following: | | AC_INIT(libhid, 0.1.91.0.0, [EMAIL PROTECTED]) | | LIBHID_MAJOR_VERSION=`echo $AC_PACKAGE_VERSION | cut -d. -f1` | LIBHID_MINOR_VERSION=`echo $AC_PACKAGE_VERSION | cut -d.

Re: Trouble with variable substitution

2004-01-28 Thread Patrick Welche
On Wed, Jan 28, 2004 at 10:01:27AM +, Gary V. Vaughan wrote: ~From libtool configure.ac (which uses maj.min[.mic][alpha]): LT_MAJOR=`echo AC_PACKAGE_VERSION | sed ['s,\..*$,,g']` LT_MINOR=`echo AC_PACKAGE_VERSION | sed ['s,^[0-9]*\.\([0-9]*\).*$,\1,']` LT_MICRO=`echo AC_PACKAGE_VERSION \

Re: Trouble with variable substitution

2004-01-28 Thread Scott James Remnant
On Wed, 2004-01-28 at 13:02, Patrick Welche wrote: On Wed, Jan 28, 2004 at 10:01:27AM +, Gary V. Vaughan wrote: ~From libtool configure.ac (which uses maj.min[.mic][alpha]): LT_MAJOR=`echo AC_PACKAGE_VERSION | sed ['s,\..*$,,g']` LT_MINOR=`echo AC_PACKAGE_VERSION | sed

Re: Trouble with variable substitution

2004-01-28 Thread Patrick Welche
On Wed, Jan 28, 2004 at 03:48:48PM +, Scott James Remnant wrote: On Wed, 2004-01-28 at 13:02, Patrick Welche wrote: On a tangent - is there an easy way of finding out the libtool.m4 version without having to process libtoolize --version? A sort of AC_PREREQ(2.59) equivalent? This is to

Re: Trouble with variable substitution

2004-01-28 Thread Scott James Remnant
On Wed, 2004-01-28 at 16:18, Patrick Welche wrote: On Wed, Jan 28, 2004 at 03:48:48PM +, Scott James Remnant wrote: On Wed, 2004-01-28 at 13:02, Patrick Welche wrote: On a further tangent, shouldn't something better be, set AC_CONFIG_MACRO_DIR, run libtoolize, then presumably use