annotate libquadmath/acinclude.m4 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 dnl ----------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 dnl This whole bit snagged from libgfortran.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 sinclude(../libtool.m4)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
5 sinclude(../config/enable.m4)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
6 sinclude(../config/cet.m4)
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 dnl The lines below arrange for aclocal not to bring an installed
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 dnl libtool.m4 into aclocal.m4, while still arranging for automake to
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 dnl add a definition of LIBTOOL to Makefile.in.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 ifelse(,,,[AC_SUBST(LIBTOOL)
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 AC_DEFUN([AM_PROG_LIBTOOL])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 AC_DEFUN([AC_LIBTOOL_DLOPEN])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 AC_DEFUN([AC_PROG_LD])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 ])
111
kono
parents: 68
diff changeset
15
kono
parents: 68
diff changeset
16 dnl Check whether POSIX's signgam is defined in math.h.
kono
parents: 68
diff changeset
17 AC_DEFUN([LIBQUAD_CHECK_MATH_H_SIGNGAM], [
kono
parents: 68
diff changeset
18 AC_CACHE_CHECK([whether the math.h includes POSIX's signgam],
kono
parents: 68
diff changeset
19 libgfor_cv_have_math_h_signgam, [
kono
parents: 68
diff changeset
20 save_CFLAGS="$CFLAGS"
kono
parents: 68
diff changeset
21 CFLAGS="$CFLAGS -Werror"
kono
parents: 68
diff changeset
22 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
kono
parents: 68
diff changeset
23 #include <math.h>
kono
parents: 68
diff changeset
24 void foo(void) { signgam = 1; }]], [])],
kono
parents: 68
diff changeset
25 libgfor_cv_have_math_h_signgam=yes,
kono
parents: 68
diff changeset
26 libgfor_cv_have_math_h_signgam=no)
kono
parents: 68
diff changeset
27 CFLAGS="$save_CFLAGS"])
kono
parents: 68
diff changeset
28 if test $libgfor_cv_have_math_h_signgam = yes; then
kono
parents: 68
diff changeset
29 AC_DEFINE(HAVE_MATH_H_SIGNGAM, 1,
kono
parents: 68
diff changeset
30 [Define to 1 if the math.h includes POSIX's signgam.])
kono
parents: 68
diff changeset
31 fi])