diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-10-30 13:20:52 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-30 17:32:08 +1000 |
commit | cb8a6dbd176ee59d61068bed92e2c8d22bd28b13 (patch) | |
tree | 9ead2c7bd7a279a0669afe49476dd1da4b3c8da9 /sysdeps/unix/sysv/linux/powerpc/configure.ac | |
parent | 36a4953a1dbc2b1994c1df0478c1c89a41398dba (diff) | |
download | glibc-cb8a6dbd176ee59d61068bed92e2c8d22bd28b13.tar.gz glibc-cb8a6dbd176ee59d61068bed92e2c8d22bd28b13.tar.xz glibc-cb8a6dbd176ee59d61068bed92e2c8d22bd28b13.zip |
rename configure.in to configure.ac
Autoconf has been deprecating configure.in for quite a long time. Rename all our configure.in and preconfigure.in files to .ac. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/configure.ac')
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/configure.ac | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/configure.ac b/sysdeps/unix/sysv/linux/powerpc/configure.ac new file mode 100644 index 0000000000..1768ab1f99 --- /dev/null +++ b/sysdeps/unix/sysv/linux/powerpc/configure.ac @@ -0,0 +1,37 @@ +sinclude(./aclocal.m4)dnl Autoconf lossage +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/unix/sysv/linux/powerpc/. + +AC_CACHE_CHECK(whether $CC $CFLAGS -mlong-double-128 uses IBM extended format, + libc_cv_mlong_double_128ibm, [dnl +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -mlong-double-128" +AC_TRY_COMPILE([#include <float.h>], [ +#if LDBL_MANT_DIG != 106 +# error "compiler doesn't implement IBM extended format of long double" +#endif +long double foobar (long double x) { return x; }], + libc_cv_mlong_double_128ibm=yes, + libc_cv_mlong_double_128ibm=no) +CFLAGS="$save_CFLAGS"]) + +if test "$libc_cv_mlong_double_128ibm" = no; then + AC_CACHE_CHECK(whether $CC $CFLAGS supports -mabi=ibmlongdouble, + libc_cv_mabi_ibmlongdouble, [dnl + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble" + AC_TRY_COMPILE([#include <float.h>], [ +#if LDBL_MANT_DIG != 106 +# error "compiler doesn't implement IBM extended format of long double" +#endif +long double foobar (long double x) { return x; }], + libc_cv_mabi_ibmlongdouble=yes, + libc_cv_mabi_ibmlongdouble=no) + CFLAGS="$save_CFLAGS"]) + + if test "$libc_cv_mabi_ibmlongdouble" = yes; then + CFLAGS="$CFLAGS -mabi=ibmlongdouble" + else + AC_MSG_ERROR([this configuration requires -mlong-double-128 IBM extended format support]) + fi +fi |