From alsa-devel-owner@alsa.jcu.cz  Mon Feb  1 19:59:19 1999
Received: from entry.jcu.cz (IDENT:perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id TAA29197;
	Mon, 1 Feb 1999 19:59:00 +0100
Date: Mon, 1 Feb 1999 19:59:00 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: Andy Lo A Foe <arloafoe@cs.vu.nl>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: trouble with CVS alsa-utils configure script..
In-Reply-To: <Pine.GSO.4.05.9902011943510.24712-100000@galjas.cs.vu.nl>
Message-ID: <Pine.LNX.3.96.990201195502.8624D-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Mon, 1 Feb 1999, Andy Lo A Foe wrote:

> On Mon, 1 Feb 1999, Christopher T. Lansdown wrote:
> 
> > Andy,
> >         Don't bother trying to fix the configure script.  It's an 
> > auto-generated autoconf script, any changes that you make will simply be  
> > over-written when next someone does an autoconf.  Instead, take a look at
> 
> Ok, figured that out partially :)  thanks..
> 
> It looks like the program is testing the values of SND_LIB_MAJOR,
> SND_LIB_MINOR, etc. which is defined in sys/asoundlib.h. But these are 
> just #define'd in this file and I don't know what the default value
> assignment of #define is:
> (from sys/asoundlib.h, alsa-utils/include/version.h)
> 
> /*
>  *  version.h
>  */
> 
> #define SND_LIB_MAJOR           
> #define SND_LIB_MINOR           
> #define SND_LIB_SUBMINOR        
> #define SND_LIB_VERSION         ((SND_LIB_MAJOR<<16)|\
>                                  (SND_LIB_MINOR<<8)|\
>                                   SND_LIB_SUBMINOR)
> 
> Jaroslav, is this correct?

No, it isn't correct. It looks like you have misconfigured alsa-lib
package. It isn't in some cases bad idea to run 'make clean' after 'cvs
update'.

The alsa-lib/include/version.h file must look like following after
./configure:

/*
 *  version.h
 */

#define SND_LIB_MAJOR           0
#define SND_LIB_MINOR           3
#define SND_LIB_SUBMINOR        0
#define SND_LIB_VERSION         ((SND_LIB_MAJOR<<16)|\
                                 (SND_LIB_MINOR<<8)|\
                                  SND_LIB_SUBMINOR)
#define SND_LIB_VERSION_STR     "0.3.0pre4"

/* OBSOLETE DEFINES WHICH WILLN'T BE IN 0.3.0 FINAL!!! */
#define SOUNDLIB_VERSION_MAJOR          SND_LIB_MAJOR
#define SOUNDLIB_VERSION_MINOR          SND_LIB_MINOR
#define SOUNDLIB_VERSION_SUBMINOR       SND_LIB_SUBMINOR


-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


