i386: move alignment defaults to processor_costs.
[official-gcc.git] / libquadmath / acinclude.m4
blob3703cd68efdf794090d9725cd9803374745819d3
1 dnl ----------------------------------------------------------------------
2 dnl This whole bit snagged from libgfortran.
4 sinclude(../libtool.m4)
5 sinclude(../config/enable.m4)
6 sinclude(../config/cet.m4)
7 dnl The lines below arrange for aclocal not to bring an installed
8 dnl libtool.m4 into aclocal.m4, while still arranging for automake to
9 dnl add a definition of LIBTOOL to Makefile.in.
10 ifelse(,,,[AC_SUBST(LIBTOOL)
11 AC_DEFUN([AM_PROG_LIBTOOL])
12 AC_DEFUN([AC_LIBTOOL_DLOPEN])
13 AC_DEFUN([AC_PROG_LD])
16 dnl Check whether POSIX's signgam is defined in math.h.
17 AC_DEFUN([LIBQUAD_CHECK_MATH_H_SIGNGAM], [
18   AC_CACHE_CHECK([whether the math.h includes POSIX's signgam],
19                  libgfor_cv_have_math_h_signgam, [
20   save_CFLAGS="$CFLAGS"
21   CFLAGS="$CFLAGS -Werror"
22   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
23 #include <math.h>
24 void foo(void) { signgam = 1; }]], [])],
25                     libgfor_cv_have_math_h_signgam=yes,
26                     libgfor_cv_have_math_h_signgam=no)
27   CFLAGS="$save_CFLAGS"])
28   if test $libgfor_cv_have_math_h_signgam = yes; then
29     AC_DEFINE(HAVE_MATH_H_SIGNGAM, 1,
30       [Define to 1 if the math.h includes POSIX's signgam.])
31   fi])