1GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2# Local configure fragment for sysdeps/powerpc/powerpc32/fpu.
3
4# Test whether integer to floating point conversions use fcfid.
5AC_CACHE_CHECK([for fcfid use], [libc_cv_ppc_fcfid], [dnl
6echo 'double foo (int x) { return (double) x; }' > conftest.c
7libc_cv_ppc_fcfid=no
8if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
9changequote(,)dnl
10  if grep '[ 	]fcfid' conftest.s > /dev/null 2>&1; then
11    libc_cv_ppc_fcfid=yes
12  fi
13changequote([,])dnl
14fi
15rm -rf conftest*])
16if test $libc_cv_ppc_fcfid = yes; then
17  AC_DEFINE([HAVE_PPC_FCFID])
18fi
19
20# Test whether floating point to long long conversions use fctidz.
21AC_CACHE_CHECK([for fctidz use], [libc_cv_ppc_fctidz], [dnl
22echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c
23libc_cv_ppc_fctidz=no
24if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
25changequote(,)dnl
26  if grep '[ 	]fctidz' conftest.s > /dev/null 2>&1; then
27    libc_cv_ppc_fctidz=yes
28  fi
29changequote([,])dnl
30fi
31rm -rf conftest*])
32if test $libc_cv_ppc_fctidz = yes; then
33  AC_DEFINE([HAVE_PPC_FCTIDZ])
34fi
35