]> sourceware.org Git - glibc.git/blame - sysdeps/s390/configure
Require autoconf 2.69
[glibc.git] / sysdeps / s390 / configure
CommitLineData
cb8a6dbd 1# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
51d8bb8f
AJ
2 # Local configure fragment for sysdeps/s390.
3
51d8bb8f 4$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
4fa8bc3b
SL
5
6
7for ac_prog in $AS
8do
9 # Extract the first word of "$ac_prog", so it can be a program name with args.
10set 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; }
13if ${ac_cv_prog_AS+:} false; then :
14 $as_echo_n "(cached) " >&6
15else
16 if test -n "$AS"; then
17 ac_cv_prog_AS="$AS" # Let the user override the test.
18else
19as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20for as_dir in $PATH
21do
22 IFS=$as_save_IFS
23 test -z "$as_dir" && as_dir=.
24 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 25 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4fa8bc3b
SL
26 ac_cv_prog_AS="$ac_prog"
27 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28 break 2
29 fi
30done
31 done
32IFS=$as_save_IFS
33
34fi
35fi
36AS=$ac_cv_prog_AS
37if test -n "$AS"; then
38 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
39$as_echo "$AS" >&6; }
40else
41 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42$as_echo "no" >&6; }
43fi
44
45
46 test -n "$AS" && break
47done
48
49if test -z "$AS"; then
50 ac_verc_fail=yes
51else
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;;
61
62 esac
63 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
64$as_echo "$ac_prog_version" >&6; }
65fi
66if test $ac_verc_fail = yes; then
67 critic_missing="$critic_missing The program AS is required in version >= 2.24 for target S390."
68fi
69
70
5a414ff7
DV
71
72{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_tbegin" >&5
73$as_echo_n "checking for __builtin_tbegin... " >&6; }
74if ${libc_cv_gcc_builtin_tbegin+:} false; then :
75 $as_echo_n "(cached) " >&6
76else
77 cat > conftest.c <<\EOF
78#include <htmintrin.h>
79void testtransaction ()
80{
81 if (__builtin_tbegin (0) == _HTM_TBEGIN_STARTED)
82 {
83 __builtin_tend ();
84 }
85}
86EOF
87if { 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
89 (eval $ac_try) 2>&5
90 ac_status=$?
91 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92 test $ac_status = 0; }; } ;
93then
94 libc_cv_gcc_builtin_tbegin=yes
95else
96 libc_cv_gcc_builtin_tbegin=no
97fi
98rm -f conftest*
99fi
100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5
101$as_echo "$libc_cv_gcc_builtin_tbegin" >&6; }
102
103if 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."
105fi
106
4fa8bc3b
SL
107test -n "$critic_missing" && as_fn_error $? "
108*** $critic_missing" "$LINENO" 5
This page took 0.116154 seconds and 5 git commands to generate.