Re: [anjuta-list] undefined references to math.



Hi!

> If I just add -lm to CFLAGS will ./configure do proper testing of the math 
> library?

libm doesn't have a pkg-config file so you will have to add this
manually to configure.ac:

AC_CHECK_LIB([m],[cos])

You can add more method you need like [cos sin tan].

See also:
http://www.gnu.org/software/gsl/manual/html_node/Autoconf-Macros.html

Regards,
Johannes



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