1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/s390.
4 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_tbegin" >&5
8 $as_echo_n "checking for __builtin_tbegin... " >&6; }
9 if ${libc_cv_gcc_builtin_tbegin+:} false; then :
10 $as_echo_n "(cached) " >&6
12 cat > conftest.c <<\EOF
13 #include <htmintrin.h>
14 void testtransaction ()
16 if (__builtin_tbegin (0) == _HTM_TBEGIN_STARTED)
22 if { ac_try='${CC-cc} -mhtm -O2 -S conftest.c -o - | grep -w tbegin > /dev/null'
23 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27 test $ac_status = 0; }; } ;
29 libc_cv_gcc_builtin_tbegin=yes
31 libc_cv_gcc_builtin_tbegin=no
35 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5
36 $as_echo "$libc_cv_gcc_builtin_tbegin" >&6; }
38 if test "$libc_cv_gcc_builtin_tbegin" = no ; then
39 critic_missing="$critic_missing The used GCC has no support for __builtin_tbegin, which is needed for lock-elision on target S390."
43 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector instruction support" >&5
44 $as_echo_n "checking for S390 vector instruction support... " >&6; }
45 if ${libc_cv_asm_s390_vx+:} false; then :
46 $as_echo_n "(cached) " >&6
48 cat > conftest.c <<\EOF
51 __asm__ (".machine \"z13\" \n\t"
52 ".machinemode \"zarch_nohighgprs\" \n\t"
53 "vistrbs %%v16,%%v17 \n\t"
54 "locghie %%r1,0" : :);
57 if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null'
58 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
61 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62 test $ac_status = 0; }; } ;
64 libc_cv_asm_s390_vx=yes
66 libc_cv_asm_s390_vx=no
70 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5
71 $as_echo "$libc_cv_asm_s390_vx" >&6; }
73 if test "$libc_cv_asm_s390_vx" = yes ;
75 $as_echo "#define HAVE_S390_VX_ASM_SUPPORT 1" >>confdefs.h
78 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use binutils with vector-support in order to use optimized implementations." >&5
79 $as_echo "$as_me: WARNING: Use binutils with vector-support in order to use optimized implementations." >&2;}
82 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector support in gcc" >&5
83 $as_echo_n "checking for S390 vector support in gcc... " >&6; }
84 if ${libc_cv_gcc_s390_vx+:} false; then :
85 $as_echo_n "(cached) " >&6
87 cat > conftest.c <<\EOF
88 void testvecclobber ()
90 __asm__ ("" : : : "v16");
93 if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null'
94 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
97 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98 test $ac_status = 0; }; } ;
100 libc_cv_gcc_s390_vx=yes
102 libc_cv_gcc_s390_vx=no
106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5
107 $as_echo "$libc_cv_gcc_s390_vx" >&6; }
109 if test "$libc_cv_gcc_s390_vx" = yes ;
111 $as_echo "#define HAVE_S390_VX_GCC_SUPPORT 1" >>confdefs.h
115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 z196 zarch instruction support as default" >&5
116 $as_echo_n "checking for S390 z196 zarch instruction support as default... " >&6; }
117 if ${libc_cv_asm_s390_min_z196_zarch+:} false; then :
118 $as_echo_n "(cached) " >&6
120 cat > conftest.c <<\EOF
121 float testinsn (double e)
124 __asm__ ("ledbra %0,5,%1,4" : "=f" (d) : "f" (e) );
128 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS --shared conftest.c
129 -o conftest.o &> /dev/null'
130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
134 test $ac_status = 0; }; } ;
136 libc_cv_asm_s390_min_z196_zarch=yes
138 libc_cv_asm_s390_min_z196_zarch=no
142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z196_zarch" >&5
143 $as_echo "$libc_cv_asm_s390_min_z196_zarch" >&6; }
145 if test "$libc_cv_asm_s390_min_z196_zarch" = yes ;
147 $as_echo "#define HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT 1" >>confdefs.h
151 test -n "$critic_missing" && as_fn_error $? "
152 *** $critic_missing" "$LINENO" 5