2.9
[glibc/nacl-glibc.git] / sysdeps / ieee754 / ldbl-opt / configure.in
bloba77fadd1c428c538739d6063fce04f04c4e5d44f
1 sinclude(./aclocal.m4)dnl Autoconf lossage
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3 # Local configure fragment for sysdeps/ieee754/ldbl-opt/.
5 AC_CACHE_CHECK(whether $CC $CFLAGS supports -mlong-double-128,
6                libc_cv_mlong_double_128, [dnl
7 save_CFLAGS="$CFLAGS"
8 CFLAGS="$CFLAGS -mlong-double-128"
9 AC_TRY_COMPILE(, [
10 #ifndef __LONG_DOUBLE_128__
11 # error "compiler did not predefine __LONG_DOUBLE_128__ as expected"
12 #endif
13 long double foobar (long double x) { return x; }],
14                libc_cv_mlong_double_128=yes,
15                libc_cv_mlong_double_128=no)
16 CFLAGS="$save_CFLAGS"])
17 if test "$libc_cv_mlong_double_128" = no; then
18   AC_MSG_ERROR([this configuration requires -mlong-double-128 support])