This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: another baby step - namespace adjustments
On 19-Jul-2003, DJ Delorie <dj@redhat.com> wrote:
>
> > C90 guarantees that the system has a sqrt() function somewhere, but
> > says nothing about the name of the library containing it.
>
> Perhaps an autoconf test to see if "-lm" works? That should be
> reliable enough, since it wouldn't depend on functions. Just "hello.c
> -lm" and see if it complains about not finding -lm.
I think you'd need at least two tests, one for static linking and one
for dynamic linking, because the static version of libm might not be
installed.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.