]> gcc.gnu.org Git - gcc.git/commitdiff
re PR fortran/46520 (libquadmath: fails at link test on bare irons)
authorTobias Burnus <burnus@net-b.de>
Sun, 19 Dec 2010 19:01:38 +0000 (20:01 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sun, 19 Dec 2010 19:01:38 +0000 (20:01 +0100)
2010-12-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46520
        * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
        * configure: Regenerate

From-SVN: r168069

libquadmath/ChangeLog
libquadmath/configure
libquadmath/configure.ac

index de3eaa0643475047d3fcf117c63fa2402769fd4e..e87d14a2ebbd0337e65582861f1fa55830c4d8be 100644 (file)
@@ -1,3 +1,9 @@
+2010-12-19  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/46520
+       * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
+       * configure: Regenerate
+
 2010-12-13  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/46625
index eb370580bebb09670f2273ddca32c073e0506e0d..078b4101ab489715a44bc3dcb0bd8336f7f5bc4f 100755 (executable)
@@ -11748,7 +11748,10 @@ esac
 
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
+# If available, sqrtl and cbrtl speed up the calculation -
+# but they are not required
+if test x$gcc_no_link != xyes; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
 $as_echo_n "checking for sqrtl in -lm... " >&6; }
 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
   $as_echo_n "(cached) " >&6
@@ -11793,7 +11796,7 @@ $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
 
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
 $as_echo_n "checking for cbrtl in -lm... " >&6; }
 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
   $as_echo_n "(cached) " >&6
@@ -11838,6 +11841,18 @@ $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
 
 fi
 
+else
+  if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
+
+$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
+
+  fi
+  if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
+
+$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
+
+  fi
+fi
 
 # Check for symbol versioning (copied from libssp).
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
index 56b1fcb2792f0311a3f290ffca6434a2906f2951..68b5cf8924cea28c4ad42f0accefa66309398f33 100644 (file)
@@ -109,8 +109,19 @@ esac
 AC_SUBST(toolexecdir)
 AC_SUBST(toolexeclibdir)
 
-AC_CHECK_LIB([m],[sqrtl],[AC_DEFINE([HAVE_SQRTL],[1],[libm includes sqrtl])])
-AC_CHECK_LIB([m],[cbrtl],[AC_DEFINE([HAVE_CBRTL],[1],[libm includes cbrtl])])
+# If available, sqrtl and cbrtl speed up the calculation -
+# but they are not required
+if test x$gcc_no_link != xyes; then
+  AC_CHECK_LIB([m],[sqrtl],[AC_DEFINE([HAVE_SQRTL],[1],[libm includes sqrtl])])
+  AC_CHECK_LIB([m],[cbrtl],[AC_DEFINE([HAVE_CBRTL],[1],[libm includes cbrtl])])
+else
+  if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
+    AC_DEFINE([HAVE_SQRTL],[1],[libm includes sqrtl])  
+  fi
+  if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
+    AC_DEFINE([HAVE_CBRTL],[1],[libm includes cbrtl])  
+  fi
+fi
 
 # Check for symbol versioning (copied from libssp).
 AC_MSG_CHECKING([whether symbol versioning is supported])
This page took 0.086196 seconds and 5 git commands to generate.