V3 PATCH: Don't try to compile libmath/(expf|atan2f).c

Gabriel Dos Reis gdr@codesourcery.com
Tue Jul 10 06:03:00 GMT 2001


This patch -- applied to mainline and branch -- fixes a bootstrap
failure on solaris.

Bootstrapped and tested on i686-pc-linux and solaris-2.6.

-- Gaby

2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

	* acinclude.m4: Don't AC_REPLACE_MATHFUNCS expf and atan2f.
	* aclocal.m4: Regenerate.
	* configure: Same.

Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.164
diff -p -r1.164 acinclude.m4
*** acinclude.m4	2001/07/02 23:30:01	1.164
--- acinclude.m4	2001/07/10 12:52:35
*************** dnl GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
*** 734,740 ****
  AC_DEFUN(GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT, [
    dnl Check for complex versions of math functions of platform.
    AC_CHECK_LIB(m, main)
!   AC_REPLACE_MATHFUNCS(nan hypot hypotf atan2f expf copysignf)
  
    dnl Compile the long double complex functions only if the function 
    dnl provides the non-complex long double functions that are needed.
--- 734,740 ----
  AC_DEFUN(GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT, [
    dnl Check for complex versions of math functions of platform.
    AC_CHECK_LIB(m, main)
!   AC_REPLACE_MATHFUNCS(nan hypot hypotf copysignf)
  
    dnl Compile the long double complex functions only if the function 
    dnl provides the non-complex long double functions that are needed.
Index: aclocal.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/aclocal.m4,v
retrieving revision 1.166
diff -p -r1.166 aclocal.m4
*** aclocal.m4	2001/07/02 23:30:01	1.166
--- aclocal.m4	2001/07/10 12:52:35
*************** dnl GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
*** 746,752 ****
  AC_DEFUN(GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT, [
    dnl Check for complex versions of math functions of platform.
    AC_CHECK_LIB(m, main)
!   AC_REPLACE_MATHFUNCS(nan hypot hypotf atan2f expf copysignf)
  
    dnl Compile the long double complex functions only if the function 
    dnl provides the non-complex long double functions that are needed.
--- 746,752 ----
  AC_DEFUN(GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT, [
    dnl Check for complex versions of math functions of platform.
    AC_CHECK_LIB(m, main)
!   AC_REPLACE_MATHFUNCS(nan hypot hypotf copysignf)
  
    dnl Compile the long double complex functions only if the function 
    dnl provides the non-complex long double functions that are needed.
Index: configure
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/configure,v
retrieving revision 1.192
diff -p -r1.192 configure
*** configure	2001/07/06 17:16:44	1.192
--- configure	2001/07/10 12:52:37
*************** else
*** 4174,4180 ****
    echo "$ac_t""no" 1>&6
  fi
  
!   for ac_func in nan hypot hypotf atan2f expf copysignf
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  echo "configure:4181: checking for $ac_func" >&5
--- 4174,4180 ----
    echo "$ac_t""no" 1>&6
  fi
  
!   for ac_func in nan hypot hypotf copysignf
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  echo "configure:4181: checking for $ac_func" >&5
*************** else
*** 14973,14979 ****
    echo "$ac_t""no" 1>&6
  fi
  
!   for ac_func in nan hypot hypotf atan2f expf copysignf
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  echo "configure:14980: checking for $ac_func" >&5
--- 14973,14979 ----
    echo "$ac_t""no" 1>&6
  fi
  
!   for ac_func in nan hypot hypotf copysignf
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  echo "configure:14980: checking for $ac_func" >&5



More information about the Libstdc++ mailing list