Add Changelog ...
[glibc.git] / sysdeps / alpha / configure
blob1d0daf5a818ae7af02801534f243c87a41c4f548
2 # as_fn_set_status STATUS
3 # -----------------------
4 # Set $? to STATUS, without forking.
5 as_fn_set_status ()
7   return $1
8 } # as_fn_set_status
10 # as_fn_exit STATUS
11 # -----------------
12 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13 as_fn_exit ()
15   set +e
16   as_fn_set_status $1
17   exit $1
18 } # as_fn_exit
19 if expr a : '\(a\)' >/dev/null 2>&1 &&
20    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21   as_expr=expr
22 else
23   as_expr=false
26 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27   as_basename=basename
28 else
29   as_basename=false
32 as_me=`$as_basename -- "$0" ||
33 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34          X"$0" : 'X\(//\)$' \| \
35          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36 $as_echo X/"$0" |
37     sed '/^.*\/\([^/][^/]*\)\/*$/{
38             s//\1/
39             q
40           }
41           /^X\/\(\/\/\)$/{
42             s//\1/
43             q
44           }
45           /^X\/\(\/\).*/{
46             s//\1/
47             q
48           }
49           s/.*/./; q'`
52   as_lineno_1=$LINENO as_lineno_1a=$LINENO
53   as_lineno_2=$LINENO as_lineno_2a=$LINENO
54   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
55   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
56   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
57   sed -n '
58     p
59     /[$]LINENO/=
60   ' <$as_myself |
61     sed '
62       s/[$]LINENO.*/&-/
63       t lineno
64       b
65       :lineno
66       N
67       :loop
68       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
69       t loop
70       s/-\n.*//
71     ' >$as_me.lineno &&
72   chmod +x "$as_me.lineno" ||
73     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
75   # Don't try to exec as it changes $[0], causing all sort of problems
76   # (the dirname of $[0] is not the place where we might find the
77   # original and so on.  Autoconf is especially sensitive to this).
78   . "./$as_me.lineno"
79   # Exit status is that of the last command.
80   exit
83 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
84  # Local configure fragment for sysdeps/alpha.
86 # Check for support of thread-local storage handling in assembler and linker.
87 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Alpha TLS support" >&5
88 $as_echo_n "checking for Alpha TLS support... " >&6; }
89 if ${libc_cv_alpha_tls+:} false; then :
90   $as_echo_n "(cached) " >&6
91 else
92   cat > conftest.s <<\EOF
93         .section ".tdata", "awT", @progbits
94         .globl foo
95 foo:    .quad   1
96         .section ".tbss", "awT", @nobits
97         .globl bar
98 bar:    .skip   8
99         .text
100 baz:
101         .set nomacro
102         ldq     $27, __tls_get_addr($29)        !literal!1
103         ldq     $16, a($29)                     !tlsgd!1
104         jsr     $26, ($27), __tls_get_addr      !lituse_tlsgd!1
106         jsr     $26, ($27), __tls_get_addr      !lituse_tlsldm!2
107         ldq     $27, __tls_get_addr($29)        !literal!2
108         ldq     $16, b($29)                     !tlsldm!2
110         ldq     $16, c($29)                     !tlsgd
111         ldq     $16, d($29)                     !tlsldm
113         ldq     $16, e($29)                     !tlsgd!3
114         ldq     $16, f($29)                     !tlsldm!4
116         ldq     $16, g($29)                     !gotdtprel
117         ldah    $16, h($31)                     !dtprelhi
118         lda     $16, i($16)                     !dtprello
119         lda     $16, j($31)                     !dtprel
121         ldq     $16, k($29)                     !gottprel
122         ldah    $16, l($31)                     !tprelhi
123         lda     $16, m($16)                     !tprello
124         lda     $16, n($31)                     !tprel
126 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
127   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
128   (eval $ac_try) 2>&5
129   ac_status=$?
130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
131   test $ac_status = 0; }; }; then
132   libc_cv_alpha_tls=yes
133 else
134   libc_cv_alpha_tls=no
136 rm -f conftest*
138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_alpha_tls" >&5
139 $as_echo "$libc_cv_alpha_tls" >&6; }
140 if test $libc_cv_alpha_tls = no; then
141   as_fn_error $? "the assembler must support TLS" "$LINENO" 5
144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GP relative module local relocs" >&5
145 $as_echo_n "checking for GP relative module local relocs... " >&6; }
146 if ${libc_cv_alpha_hidden_gprel+:} false; then :
147   $as_echo_n "(cached) " >&6
148 else
149   cat > conftest.c <<\EOF
150 static volatile int bar;
151 int baz __attribute__((visibility("hidden")));
152 int f(void) { return bar + baz; }
155 libc_cv_alpha_hidden_gprel=no
156 if { ac_try='${CC-cc} -S $CFLAGS -O2 -fpic conftest.c 1>&5'
157   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
158   (eval $ac_try) 2>&5
159   ac_status=$?
160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
161   test $ac_status = 0; }; }; then
162   if grep -q 'bar.*!gprel' conftest.s \
163      && grep -q 'baz.*!gprel' conftest.s \
164      && ! grep -q 'bar.*!literal' conftest.s \
165      && ! grep -q 'baz.*!literal' conftest.s; then
166     libc_cv_alpha_hidden_gprel=yes
167   fi
169 rm -f conftest*
171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_alpha_hidden_gprel" >&5
172 $as_echo "$libc_cv_alpha_hidden_gprel" >&6; }
173 if test $libc_cv_alpha_hidden_gprel = yes; then
174   $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h