Blame sysdeps/s390/configure

Packit Service 82fcde
# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
Packit Service 82fcde
 # Local configure fragment for sysdeps/s390.
Packit Service 82fcde
Packit Service 82fcde
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_tbegin" >&5
Packit Service 82fcde
$as_echo_n "checking for __builtin_tbegin... " >&6; }
Packit Service 82fcde
if ${libc_cv_gcc_builtin_tbegin+:} false; then :
Packit Service 82fcde
  $as_echo_n "(cached) " >&6
Packit Service 82fcde
else
Packit Service 82fcde
  cat > conftest.c <<\EOF
Packit Service 82fcde
#include <htmintrin.h>
Packit Service 82fcde
void testtransaction ()
Packit Service 82fcde
{
Packit Service 82fcde
  if (__builtin_tbegin (0) == _HTM_TBEGIN_STARTED)
Packit Service 82fcde
    {
Packit Service 82fcde
      __builtin_tend ();
Packit Service 82fcde
    }
Packit Service 82fcde
}
Packit Service 82fcde
EOF
Packit Service 82fcde
if { ac_try='${CC-cc} -mhtm -O2 -S conftest.c -o - | grep -w tbegin > /dev/null'
Packit Service 82fcde
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
Packit Service 82fcde
  (eval $ac_try) 2>&5
Packit Service 82fcde
  ac_status=$?
Packit Service 82fcde
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Packit Service 82fcde
  test $ac_status = 0; }; } ;
Packit Service 82fcde
then
Packit Service 82fcde
  libc_cv_gcc_builtin_tbegin=yes
Packit Service 82fcde
else
Packit Service 82fcde
  libc_cv_gcc_builtin_tbegin=no
Packit Service 82fcde
fi
Packit Service 82fcde
rm -f conftest*
Packit Service 82fcde
fi
Packit Service 82fcde
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5
Packit Service 82fcde
$as_echo "$libc_cv_gcc_builtin_tbegin" >&6; }
Packit Service 82fcde
Packit Service 82fcde
if test "$libc_cv_gcc_builtin_tbegin" = no ; then
Packit Service 82fcde
   critic_missing="$critic_missing The used GCC has no support for __builtin_tbegin, which is needed for lock-elision on target S390."
Packit Service 82fcde
fi
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector instruction support" >&5
Packit Service 82fcde
$as_echo_n "checking for S390 vector instruction support... " >&6; }
Packit Service 82fcde
if ${libc_cv_asm_s390_vx+:} false; then :
Packit Service 82fcde
  $as_echo_n "(cached) " >&6
Packit Service 82fcde
else
Packit Service 82fcde
  cat > conftest.c <<\EOF
Packit Service 82fcde
void testvecinsn ()
Packit Service 82fcde
{
Packit Service 82fcde
    __asm__ (".machine \"z13\" \n\t"
Packit Service 82fcde
	     ".machinemode \"zarch_nohighgprs\" \n\t"
Packit Service 82fcde
	     "vistrbs %%v16,%%v17 \n\t"
Packit Service 82fcde
	     "locghie %%r1,0" : :);
Packit Service 82fcde
}
Packit Service 82fcde
EOF
Packit Service 82fcde
if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null'
Packit Service 82fcde
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
Packit Service 82fcde
  (eval $ac_try) 2>&5
Packit Service 82fcde
  ac_status=$?
Packit Service 82fcde
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Packit Service 82fcde
  test $ac_status = 0; }; } ;
Packit Service 82fcde
then
Packit Service 82fcde
  libc_cv_asm_s390_vx=yes
Packit Service 82fcde
else
Packit Service 82fcde
  libc_cv_asm_s390_vx=no
Packit Service 82fcde
fi
Packit Service 82fcde
rm -f conftest*
Packit Service 82fcde
fi
Packit Service 82fcde
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5
Packit Service 82fcde
$as_echo "$libc_cv_asm_s390_vx" >&6; }
Packit Service 82fcde
Packit Service 82fcde
if test "$libc_cv_asm_s390_vx" = yes ;
Packit Service 82fcde
then
Packit Service 82fcde
  $as_echo "#define HAVE_S390_VX_ASM_SUPPORT 1" >>confdefs.h
Packit Service 82fcde
Packit Service 82fcde
else
Packit Service 82fcde
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use binutils with vector-support in order to use optimized implementations." >&5
Packit Service 82fcde
$as_echo "$as_me: WARNING: Use binutils with vector-support in order to use optimized implementations." >&2;}
Packit Service 82fcde
fi
Packit Service 82fcde
Packit Service 82fcde
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector support in gcc" >&5
Packit Service 82fcde
$as_echo_n "checking for S390 vector support in gcc... " >&6; }
Packit Service 82fcde
if ${libc_cv_gcc_s390_vx+:} false; then :
Packit Service 82fcde
  $as_echo_n "(cached) " >&6
Packit Service 82fcde
else
Packit Service 82fcde
  cat > conftest.c <<\EOF
Packit Service 82fcde
void testvecclobber ()
Packit Service 82fcde
{
Packit Service 82fcde
  __asm__ ("" : : : "v16");
Packit Service 82fcde
}
Packit Service 82fcde
EOF
Packit Service 82fcde
if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null'
Packit Service 82fcde
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
Packit Service 82fcde
  (eval $ac_try) 2>&5
Packit Service 82fcde
  ac_status=$?
Packit Service 82fcde
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Packit Service 82fcde
  test $ac_status = 0; }; } ;
Packit Service 82fcde
then
Packit Service 82fcde
  libc_cv_gcc_s390_vx=yes
Packit Service 82fcde
else
Packit Service 82fcde
  libc_cv_gcc_s390_vx=no
Packit Service 82fcde
fi
Packit Service 82fcde
rm -f conftest*
Packit Service 82fcde
fi
Packit Service 82fcde
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5
Packit Service 82fcde
$as_echo "$libc_cv_gcc_s390_vx" >&6; }
Packit Service 82fcde
Packit Service 82fcde
if test "$libc_cv_gcc_s390_vx" = yes ;
Packit Service 82fcde
then
Packit Service 82fcde
  $as_echo "#define HAVE_S390_VX_GCC_SUPPORT 1" >>confdefs.h
Packit Service 82fcde
Packit Service 82fcde
fi
Packit Service 82fcde
Packit Service 42c2fb
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 z10 zarch instruction support as default" >&5
Packit Service 42c2fb
$as_echo_n "checking for S390 z10 zarch instruction support as default... " >&6; }
Packit Service 42c2fb
if ${libc_cv_asm_s390_min_z10_zarch+:} false; then :
Packit Service 42c2fb
  $as_echo_n "(cached) " >&6
Packit Service 42c2fb
else
Packit Service 42c2fb
  cat > conftest.c <<\EOF
Packit Service 42c2fb
void testinsn (void *a, void *b, int n)
Packit Service 42c2fb
{
Packit Service 42c2fb
    __asm__ ("exrl %2,1f \n\t"
Packit Service 42c2fb
	     "j 2f \n\t"
Packit Service 42c2fb
	     "1: mvc 0(1,%0),0(%1) \n\t"
Packit Service 42c2fb
	     "2:"
Packit Service 42c2fb
	     : : "a" (a), "a" (b), "d" (n)
Packit Service 42c2fb
	     : "memory", "cc");
Packit Service 42c2fb
}
Packit Service 42c2fb
EOF
Packit Service 42c2fb
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS --shared conftest.c
Packit Service 42c2fb
			-o conftest.o &> /dev/null'
Packit Service 42c2fb
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
Packit Service 42c2fb
  (eval $ac_try) 2>&5
Packit Service 42c2fb
  ac_status=$?
Packit Service 42c2fb
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Packit Service 42c2fb
  test $ac_status = 0; }; } ;
Packit Service 42c2fb
then
Packit Service 42c2fb
  libc_cv_asm_s390_min_z10_zarch=yes
Packit Service 42c2fb
else
Packit Service 42c2fb
  libc_cv_asm_s390_min_z10_zarch=no
Packit Service 42c2fb
fi
Packit Service 42c2fb
rm -f conftest*
Packit Service 42c2fb
fi
Packit Service 42c2fb
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z10_zarch" >&5
Packit Service 42c2fb
$as_echo "$libc_cv_asm_s390_min_z10_zarch" >&6; }
Packit Service 42c2fb
Packit Service 42c2fb
if test "$libc_cv_asm_s390_min_z10_zarch" = yes ;
Packit Service 42c2fb
then
Packit Service 42c2fb
  $as_echo "#define HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT 1" >>confdefs.h
Packit Service 42c2fb
Packit Service 42c2fb
fi
Packit Service 42c2fb
Packit Service 82fcde
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 z196 zarch instruction support as default" >&5
Packit Service 82fcde
$as_echo_n "checking for S390 z196 zarch instruction support as default... " >&6; }
Packit Service 82fcde
if ${libc_cv_asm_s390_min_z196_zarch+:} false; then :
Packit Service 82fcde
  $as_echo_n "(cached) " >&6
Packit Service 82fcde
else
Packit Service 82fcde
  cat > conftest.c <<\EOF
Packit Service 82fcde
float testinsn (double e)
Packit Service 82fcde
{
Packit Service 82fcde
    float d;
Packit Service 82fcde
    __asm__ ("ledbra %0,5,%1,4" : "=f" (d) : "f" (e) );
Packit Service 82fcde
    return d;
Packit Service 82fcde
}
Packit Service 82fcde
EOF
Packit Service 82fcde
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS --shared conftest.c
Packit Service 82fcde
			-o conftest.o &> /dev/null'
Packit Service 82fcde
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
Packit Service 82fcde
  (eval $ac_try) 2>&5
Packit Service 82fcde
  ac_status=$?
Packit Service 82fcde
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Packit Service 82fcde
  test $ac_status = 0; }; } ;
Packit Service 82fcde
then
Packit Service 82fcde
  libc_cv_asm_s390_min_z196_zarch=yes
Packit Service 82fcde
else
Packit Service 82fcde
  libc_cv_asm_s390_min_z196_zarch=no
Packit Service 82fcde
fi
Packit Service 82fcde
rm -f conftest*
Packit Service 82fcde
fi
Packit Service 82fcde
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z196_zarch" >&5
Packit Service 82fcde
$as_echo "$libc_cv_asm_s390_min_z196_zarch" >&6; }
Packit Service 82fcde
Packit Service 82fcde
if test "$libc_cv_asm_s390_min_z196_zarch" = yes ;
Packit Service 82fcde
then
Packit Service 82fcde
  $as_echo "#define HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT 1" >>confdefs.h
Packit Service 82fcde
Packit Service 82fcde
fi
Packit Service 82fcde
Packit Service 82fcde
test -n "$critic_missing" && as_fn_error $? "
Packit Service 82fcde
*** $critic_missing" "$LINENO" 5