summaryrefslogtreecommitdiff
path: root/gnulib-m4/signbit.m4
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-02 10:30:51 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-02 10:30:51 +0100
commitfd167a99e31b7021c78972c09acbf83b2d347c98 (patch)
treeca8ccd8fed78f99dd13ea6ab5069431983dac7b9 /gnulib-m4/signbit.m4
parent4d76768442551c97a85e6f133cb818d223012746 (diff)
parent44a3eaeba04ef78835ca741592c376428ada5f71 (diff)
Update upstream source from tag 'upstream/0.9.8'
Update to upstream version '0.9.8' with Debian dir bac53b09be895fe7915b59f95882628bcc7b606e
Diffstat (limited to 'gnulib-m4/signbit.m4')
-rw-r--r--gnulib-m4/signbit.m416
1 files changed, 14 insertions, 2 deletions
diff --git a/gnulib-m4/signbit.m4 b/gnulib-m4/signbit.m4
index e42f183..db60ab7 100644
--- a/gnulib-m4/signbit.m4
+++ b/gnulib-m4/signbit.m4
@@ -1,5 +1,5 @@
-# signbit.m4 serial 13
-dnl Copyright (C) 2007-2016 Free Software Foundation, Inc.
+# signbit.m4 serial 15
+dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -31,6 +31,8 @@ AC_DEFUN([gl_SIGNBIT],
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_signbit="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_signbit="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_signbit="guessing no" ;;
esac
@@ -60,6 +62,13 @@ AC_DEFUN([gl_SIGNBIT],
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
+ # Guess yes on mingw, no on MSVC.
+ mingw*) if test -n "$GCC"; then
+ gl_cv_func_signbit_gcc="guessing yes"
+ else
+ gl_cv_func_signbit_gcc="guessing no"
+ fi
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_signbit_gcc="guessing no" ;;
esac
@@ -272,6 +281,7 @@ int main ()
{
/* More than one bit difference. */
fprintf (fp, "unknown");
+ fclose (fp);
return 2;
}
if (x)
@@ -284,6 +294,7 @@ int main ()
{
/* No difference. */
fprintf (fp, "unknown");
+ fclose (fp);
return 3;
}
/* Now m = plus.word[k] ^ ~minus.word[k]. */
@@ -292,6 +303,7 @@ int main ()
/* Oh? The sign bit is set in the positive and cleared in the negative
numbers? */
fprintf (fp, "unknown");
+ fclose (fp);
return 4;
}
for (i = 0; ; i++)