Mercurial > hg > CbC > CbC_gcc
comparison libquadmath/acinclude.m4 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 561a7518be6b |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
8 ifelse(,,,[AC_SUBST(LIBTOOL) | 8 ifelse(,,,[AC_SUBST(LIBTOOL) |
9 AC_DEFUN([AM_PROG_LIBTOOL]) | 9 AC_DEFUN([AM_PROG_LIBTOOL]) |
10 AC_DEFUN([AC_LIBTOOL_DLOPEN]) | 10 AC_DEFUN([AC_LIBTOOL_DLOPEN]) |
11 AC_DEFUN([AC_PROG_LD]) | 11 AC_DEFUN([AC_PROG_LD]) |
12 ]) | 12 ]) |
13 | |
14 dnl Check whether POSIX's signgam is defined in math.h. | |
15 AC_DEFUN([LIBQUAD_CHECK_MATH_H_SIGNGAM], [ | |
16 AC_CACHE_CHECK([whether the math.h includes POSIX's signgam], | |
17 libgfor_cv_have_math_h_signgam, [ | |
18 save_CFLAGS="$CFLAGS" | |
19 CFLAGS="$CFLAGS -Werror" | |
20 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |
21 #include <math.h> | |
22 void foo(void) { signgam = 1; }]], [])], | |
23 libgfor_cv_have_math_h_signgam=yes, | |
24 libgfor_cv_have_math_h_signgam=no) | |
25 CFLAGS="$save_CFLAGS"]) | |
26 if test $libgfor_cv_have_math_h_signgam = yes; then | |
27 AC_DEFINE(HAVE_MATH_H_SIGNGAM, 1, | |
28 [Define to 1 if the math.h includes POSIX's signgam.]) | |
29 fi]) |