public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Andrew W. Steiner" <awsteiner@gmail.com>
To: "Robert G. Brown" <rgb@phy.duke.edu>
Cc: GSL Discussion list <gsl-discuss@sources.redhat.com>
Subject: Re: Stupid question...
Date: Sun, 11 Oct 2009 17:42:00 -0000	[thread overview]
Message-ID: <63c059b10910111041x6360a64y80d5ca693c909107@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.00.0910110947130.7810@lilith>

I looked at the configure.ac file I use, and the code below looks
similar, except that I use AC_CHECK_LIB's optional arguments.

http://o2scl.svn.sourceforge.net/viewvc/o2scl/trunk/configure.ac?revision=43&view=markup

Have you looked at the config.log file to see why it fails? Also, which platform
is this for?

Take care,
Andrew

On Sun, Oct 11, 2009 at 9:52 AM, Robert G. Brown <rgb@phy.duke.edu> wrote:
> I'm trying to get gsl to be correctly detected in a configure.ac
> (something that has never quite worked, for reasons I don't understand).
>
> The following lines are what I've got.  I don't quite understand either
> why the gsl check fails or why the gslcblas succeeds.  I've tried lots
> of different functions (including [main]) in the gsl check, but they all
> return no.  I've tried including an argument such as gsl_sf_gamma(1.0),
> no go.  Is there a simple one liner solution to this somebody could
> contribute, or is somebody enough of an expert with autoconf that they
> can tell me why this works/doesn't work?
>
> #==================================================================
> # Checks for libraries, and headers.
> #==================================================================
> AC_CHECK_HEADER([gsl/gsl_sf_gamma.h],,[AC_MSG_ERROR([Couldn't find GSL
> headers! Please install gsl-devel.])])
> AC_CHECK_LIB([gsl],[gsl_sf_gamma])
> # FIXME: Replace `main' with a function in `-lgslcblas':
> AC_CHECK_LIB([gslcblas], [main])
>
>
> checking gsl/gsl_sf_gamma.h usability... yes
> checking gsl/gsl_sf_gamma.h presence... yes
> checking for gsl/gsl_sf_gamma.h... yes
> checking for gsl_sf_gamma in -lgsl... no
> checking for main in -lgslcblas... yes
>
>
> TIA,
>
>   rgb
>
> Robert G. Brown                        http://www.phy.duke.edu/~rgb/
> Duke University Dept. of Physics, Box 90305
> Durham, N.C. 27708-0305
> Phone: 1-919-660-2567  Fax: 919-660-2525     email:rgb@phy.duke.edu
>
>
>

  parent reply	other threads:[~2009-10-11 17:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-11 13:52 Robert G. Brown
2009-10-11 14:06 ` Robert G. Brown
2009-10-11 16:49 ` John D Lamb
2009-10-11 17:42 ` Andrew W. Steiner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-12-19 13:20 stupid question Matthew J. Doller
2001-11-19 10:26 ` Matthew J. Doller
2001-12-19 13:20 ` Achim Gaedke
2001-11-20  2:00   ` Achim Gaedke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=63c059b10910111041x6360a64y80d5ca693c909107@mail.gmail.com \
    --to=awsteiner@gmail.com \
    --cc=gsl-discuss@sources.redhat.com \
    --cc=rgb@phy.duke.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).