[Top][All Lists]
[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: |
Peter Johansson |
Subject: |
Re: [Help-gsl] Compatibility with old and new inline functions in GSL |
Date: |
Fri, 28 May 2010 14:16:39 -0400 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20090105) |
Hi Joseph,
Joseph Wakeling wrote:
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
You could do
AC_CHECK_HEADER([gsl/gsl_version.h],
[foo="#include <gsl/gsl_inline.h>"],
[foo="#define INLINE_FUN extern inline"])
AC_SUBST(foo)
AC_CONFIG_FILES([config_public.h])
in configure.ac
and have a config_public.h.in
@foo@
The downside with this approach is that 'config_public.h' will be
touched every time you run configure and potentially cause some
significant re-compiling for you.
Cheers,
Peter
--
Peter Johansson
svndigest maintainer, http://dev.thep.lu.se/svndigest
yat maintainer, http://dev.thep.lu.se/yat