This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: fixed check for sinl in acinclude.m4
- To: "Benjamin Kosnik" <bkoz at redhat dot com>
- Subject: Re: fixed check for sinl in acinclude.m4
- From: Steven King <sxking at uswest dot net>
- Date: Thu, 22 Jun 2000 17:21:08 -0700
- Cc: libstdc++ at sourceware dot cygnus dot com
- Organization: is the root of all evil
- References: <Pine.SOL.3.91.1000622165914.12417A-100000@cse.cygnus.com>
- Reply-To: sxking at uswest dot net
On Thu, 22 Jun 2000, Benjamin Kosnik wrote:
> in. Please take a look at the new builtin code. It's substantially different.
> In particular, it only checks for the builtins that gcc is capable of
> producing....
I though about that, but didnt figure it'd hurt to try to catch any future
additions. Anyway, it does appear neccessary to link against libm for
the builtins
2000-06-22 Steven King <sxking@uswest.net>
* acinclude.m4: Link against libm for builtin math checks.
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.37
diff -c -p -r1.37 acinclude.m4
*** acinclude.m4 2000/06/22 23:59:03 1.37
--- acinclude.m4 2000/06/23 00:32:12
*************** dnl GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
*** 425,430 ****
--- 425,436 ----
AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
dnl Test for builtin math functions.
dnl These are made in gcc/c-common.c
+
+ dnl Check libm
+ AC_CHECK_LIB(m, sin, libm="-lm")
+ ac_save_LIBS="$LIBS"
+ LIBS="$LIBS $libm"
+
GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_abs)
GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_fabsf)
GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_fabs)
--
Steven King
sxking@uswest.net