68
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 dnl ----------------------------------------------------------------------
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 dnl This whole bit snagged from libgfortran.
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 sinclude(../libtool.m4)
|
131
|
5 sinclude(../config/enable.m4)
|
|
6 sinclude(../config/cet.m4)
|
68
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
|
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
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 dnl add a definition of LIBTOOL to Makefile.in.
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 ifelse(,,,[AC_SUBST(LIBTOOL)
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 AC_DEFUN([AM_PROG_LIBTOOL])
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 AC_DEFUN([AC_LIBTOOL_DLOPEN])
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 AC_DEFUN([AC_PROG_LD])
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 ])
|
111
|
15
|
|
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])
|