public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* autoconf usage : -DHAVE_GSL ?
@ 2001-12-19 13:20 Peter Teuben
  2001-12-19 13:20 ` Brian Gough
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Peter Teuben @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

I'd like to have a macro HAVE_GSL, so i can #ifdef my code. I followed some of
the instructions in section 2.4 on automake, and added the gsl.m4 to my
aclocal.m4 and did something like the following in configure.in :

AM_PATH_GSL(0.9.2, ok=yes, ok=no)
if test "$ok" = "yes"; then
    AC_MSG_RESULT(ok, i found GSL)
    NEMO_CFLAGS="$NEMO_CFLAGS $GSL_CFLAGS -DHAVE_GSL"
    NEMO_LIBS="$NEMO_LIBS $GSL_LIBS"
else
    AC_MSG_WARN(could not find GSL library)
fi

My question is about the kludgie looking -DHAVE_GSL. I wanted to use
something like


AC_CHECK_LIB(gsl,gsl_version)

but that fails, gsl_version seems to needs -lgslcblas! (which is actually odd,
if I look at the output of nm..... -static will fix that dependancy, but
AC_CHECK_LIB does not do that) I'd like to know which function/static would be
the one that doesn't need another library. Can that be done with AC_CHECK_LIB?
If so, perhaps this should be added to section 2.4 on the automake macros. Or
perhaps is there a better way to get the HAVE_GSL macro?

- peter

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 autoconf usage : -DHAVE_GSL ? Peter Teuben
2001-12-19 13:20 ` Brian Gough
2001-12-19 13:20   ` gsl-discuss
2001-12-19 13:20     ` Peter Teuben
2001-12-19 13:20       ` fprintf(stderr,...) output in GSL routines (gsl_rng_env_setup) Peter Teuben
2001-12-19 13:20         ` Brian Gough
2001-12-19 13:20           ` Peter Teuben
2001-12-19 13:20             ` Brian Gough
2001-12-19 13:20       ` autoconf usage : -DHAVE_GSL ? Brian Gough
2001-12-19 13:20         ` J.J. Gomez Cadenas
2001-12-19 13:20           ` Brian Gough
2001-12-19 13:20 ` gsl-discuss
2001-12-19 13:20 ` gsl_poly_eval Peter Teuben
2001-12-19 13:20   ` gsl_poly_eval Brian Gough

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).