From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32571 invoked by alias); 20 Feb 2009 09:54:28 -0000 Received: (qmail 32563 invoked by uid 22791); 20 Feb 2009 09:54:27 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.network-theory.co.uk (HELO mail.network-theory.co.uk) (66.199.228.187) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Feb 2009 09:54:22 +0000 Date: Fri, 20 Feb 2009 09:54:00 -0000 Message-ID: From: Brian Gough To: M Joonas Pihlaja Cc: gsl-discuss@sources.redhat.com Subject: Re: Conditional compilation based on GSL version In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) Emacs/22.2 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Message-Mac: cee88eefa0b27cdcf9702be297ee31a3 Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00011.txt.bz2 At Thu, 19 Feb 2009 23:04:40 +0200 (EET), M Joonas Pihlaja wrote: > Could GSL expose some facility in gsl_version.h to compare the version > of GSL at compile time for dumb clients which don't want to impose > special build system requirements? The current GSL_VERSION define > exports a string like "1.12", but that's not so useful for testing > against versions using the C preprocessor at compile time. Something > simple like GSL_VERSION_MAJOR and GSL_VERSION_MINOR defines would go a > long way. Or perhaps a more complex macro like > GSL_VERSION_IS_COMPATIBLE(major,minor) would be preferable. I'd say the GNU approach to compatibility is to test for the presence of individual functions or features with autoconf, rather than package versions--it is more reliable in the long-term. So if you can use autoconf, I would recommend that. If not, maybe you could describe the details of the situation a bit more. -- Brian Gough