help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Compatibility with old and new inline functions in GSL


From: Joseph Wakeling
Subject: Re: [Help-gsl] Compatibility with old and new inline functions in GSL
Date: Fri, 28 May 2010 18:15:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

On 05/28/2010 05:38 PM, Peter Johansson wrote:
> It make sense as long as HAVE_GSL_INLINE is defined/undefined
> accurately. If the header file is only used within your package there
> should be no problem. If you install the header file it is a bit
> trickier.

Exactly my situation ... :-)

> Then you need to provide a file that defined/undefined
> HAVE_GSL_INLINE. In that case I would do as follows

I was wondering whether it was possible to cut out the middle-man, so to
speak (i.e. HAVE_GSL_INLINE) and simply rewrite the

    AC_CHECK_HEADER([gsl/gsl_inline.h],[AC_DEFINE([HAVE_GSL_INLINE],
     [1],[Define if gsl/gsl_inline.h header exists])])

to do something other than AC_DEFINE([HAVE_GSL_INLINE]) -- i.e. to
create a header that either has

    #include <gsl/gsl_inline.h>

or

    #define INLINE_FUN extern inline

... but in any case, the proposed solution seems to work, thank you very
much for the kind assistance! :-)

Best wishes,

    -- Joe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]