File: acinclude.m4

package info (click to toggle)
gcc-avr 1%3A5.4.0%2BAtmel3.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 589,872 kB
  • sloc: ansic: 2,775,581; ada: 756,757; cpp: 723,977; f90: 117,673; asm: 66,898; makefile: 62,755; xml: 44,466; sh: 29,549; exp: 23,315; objc: 15,216; fortran: 10,901; pascal: 4,185; python: 4,093; perl: 2,969; awk: 2,811; ml: 2,385; cs: 879; yacc: 316; lex: 198; haskell: 112; lisp: 8
file content (29 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
dnl ----------------------------------------------------------------------
dnl This whole bit snagged from libgfortran.

sinclude(../libtool.m4)
dnl The lines below arrange for aclocal not to bring an installed
dnl libtool.m4 into aclocal.m4, while still arranging for automake to
dnl add a definition of LIBTOOL to Makefile.in.
ifelse(,,,[AC_SUBST(LIBTOOL)
AC_DEFUN([AM_PROG_LIBTOOL])
AC_DEFUN([AC_LIBTOOL_DLOPEN])
AC_DEFUN([AC_PROG_LD])
])

dnl Check whether POSIX's signgam is defined in math.h.
AC_DEFUN([LIBQUAD_CHECK_MATH_H_SIGNGAM], [
  AC_CACHE_CHECK([whether the math.h includes POSIX's signgam],
                 libgfor_cv_have_math_h_signgam, [
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -Werror"
  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <math.h>
void foo(void) { signgam = 1; }]], [])],
                    libgfor_cv_have_math_h_signgam=yes,
                    libgfor_cv_have_math_h_signgam=no)
  CFLAGS="$save_CFLAGS"])
  if test $libgfor_cv_have_math_h_signgam = yes; then
    AC_DEFINE(HAVE_MATH_H_SIGNGAM, 1,
      [Define to 1 if the math.h includes POSIX's signgam.])
  fi])