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
9 # Extract the first word of "$ac_prog", so it can be a program name with args.
10 set dummy $ac_prog; ac_word=$2
11 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12 $as_echo_n "checking for $ac_word... " >&6; }
13 if ${ac_cv_prog_AS+:} false; then :
14 $as_echo_n "(cached) " >&6
16 if test -n "$AS"; then
17 ac_cv_prog_AS="$AS" # Let the user override the test.
19 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23 test -z "$as_dir" && as_dir=.
24 for ac_exec_ext in '' $ac_executable_extensions; do
25 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26 ac_cv_prog_AS="$ac_prog"
27 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37 if test -n "$AS"; then
38 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
41 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46 test -n "$AS" && break
49 if test -z "$AS"; then
52 # Found it, now check the version.
53 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
54 $as_echo_n "checking version of $AS... " >&6; }
55 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
56 case $ac_prog_version in
57 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
58 2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
59 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
60 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
63 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
64 $as_echo "$ac_prog_version" >&6; }
66 if test $ac_verc_fail = yes; then
67 critic_missing="$critic_missing The program AS is required in version >= 2.24 for target S390."
72 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_tbegin" >&5
73 $as_echo_n "checking for __builtin_tbegin... " >&6; }
74 if ${libc_cv_gcc_builtin_tbegin+:} false; then :
75 $as_echo_n "(cached) " >&6
77 cat > conftest.c <<\EOF
78 #include <htmintrin.h>
79 void testtransaction ()
81 if (__builtin_tbegin (0) == _HTM_TBEGIN_STARTED)
87 if { ac_try='${CC-cc} -mhtm -O2 -S conftest.c -o - | grep -w tbegin > /dev/null'
88 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
91 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92 test $ac_status = 0; }; } ;
94 libc_cv_gcc_builtin_tbegin=yes
96 libc_cv_gcc_builtin_tbegin=no
100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5
101 $as_echo "$libc_cv_gcc_builtin_tbegin" >&6; }
103 if test "$enable_lock_elision" = yes && test "$libc_cv_gcc_builtin_tbegin" = no ; then
104 critic_missing="$critic_missing The used GCC has no support for __builtin_tbegin, which is needed for lock-elision on target S390."
108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector instruction support" >&5
109 $as_echo_n "checking for S390 vector instruction support... " >&6; }
110 if ${libc_cv_asm_s390_vx+:} false; then :
111 $as_echo_n "(cached) " >&6
113 cat > conftest.c <<\EOF
116 __asm__ (".machine \"z13\" \n\t"
117 ".machinemode \"zarch_nohighgprs\" \n\t"
118 "vistrbs %%v16,%%v17 \n\t"
119 "locghie %%r1,0" : :);
122 if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null'
123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
127 test $ac_status = 0; }; } ;
129 libc_cv_asm_s390_vx=yes
131 libc_cv_asm_s390_vx=no
135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5
136 $as_echo "$libc_cv_asm_s390_vx" >&6; }
138 if test "$libc_cv_asm_s390_vx" = yes ;
140 $as_echo "#define HAVE_S390_VX_ASM_SUPPORT 1" >>confdefs.h
143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use binutils with vector-support in order to use optimized implementations." >&5
144 $as_echo "$as_me: WARNING: Use binutils with vector-support in order to use optimized implementations." >&2;}
148 test -n "$critic_missing" && as_fn_error $? "
149 *** $critic_missing" "$LINENO" 5