OSDN Git Service

Fix erroneous duplication.
[pf3gnuchains/gcc-fork.git] / libgfortran / acinclude.m4
index d1994b4..3355287 100644 (file)
@@ -86,10 +86,10 @@ if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);],
 dnl Check if threads are supported.
 AC_DEFUN([LIBGFOR_CHECK_GTHR_DEFAULT], [
   AC_CACHE_CHECK([configured target thread model],
-                target_thread_file, [
-target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`])
+                libgfor_cv_target_thread_file, [
+libgfor_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`])
 
-  if test $target_thread_file != single; then
+  if test $libgfor_cv_target_thread_file != single; then
     AC_DEFINE(HAVE_GTHR_DEFAULT, 1,
              [Define if the compiler has a thread header that is non single.])
   fi])
@@ -376,3 +376,15 @@ __mingw_snprintf (NULL, 0, "%d\n", 1);
     AC_DEFINE(HAVE_MINGW_SNPRINTF, 1, [Define if you have __mingw_snprintf.])
   fi
 ])
+
+dnl Check whether we have a broken powf implementation
+AC_DEFUN([LIBGFOR_CHECK_FOR_BROKEN_POWF], [
+  AC_CACHE_CHECK([whether powf is broken], libgfor_cv_have_broken_powf, [
+case "${target}" in
+  hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
+  *) libgfor_cv_have_broken_powf=no;;
+esac])
+  if test x"$libgfor_cv_have_broken_powf" = xyes; then
+    AC_DEFINE(HAVE_BROKEN_POWF, 1, [Define if powf is broken.])
+  fi
+])