linux: Extend internal clone3 documentation
[glibc.git] / sysdeps / ieee754 / ldbl-opt / configure.ac
blob70e3b32dc667fa3ead738040b3797e48be13cdc3
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_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
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])