2 # as_fn_set_status STATUS
3 # -----------------------
4 # Set $? to STATUS, without forking.
12 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19 if expr a : '\(a\)' >/dev/null 2>&1 &&
20 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32 as_me=`$as_basename -- "$0" ||
33 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34 X"$0" : 'X\(//\)$' \| \
35 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
68 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
79 # Exit status is that of the last command.
83 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
84 # Local configure fragment for sysdeps/ia64.
86 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -g produces usable source locations for assembler-with-cpp" >&5
87 $as_echo_n "checking if -g produces usable source locations for assembler-with-cpp... " >&6; }
88 if ${libc_cv_cpp_asm_debuginfo+:} false; then :
89 $as_echo_n "(cached) " >&6
91 cat > conftest.S <<EOF
97 ${libc_cv_asm_global_directive} foo
99 /* Unfortunately this test only works for a real instruction,
100 not for any of the machine-independent pseudo-ops.
101 So we just have to assume everybody has a "nop". */
108 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&5'
109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113 test $ac_status = 0; }; } && {
114 ac_pattern='conftest\.S'
115 { ac_try='readelf --debug-dump=line conftest.o |
116 grep $ac_pattern 1>&5'
117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
121 test $ac_status = 0; }; }
123 libc_cv_cpp_asm_debuginfo=yes
125 libc_cv_cpp_asm_debuginfo=no
129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cpp_asm_debuginfo" >&5
130 $as_echo "$libc_cv_cpp_asm_debuginfo" >&6; }
131 if test $libc_cv_cpp_asm_debuginfo = yes; then
132 $as_echo "#define HAVE_CPP_ASM_DEBUGINFO 1" >>confdefs.h
136 # Check for support of thread-local storage handling in assembler and
138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia64 TLS support" >&5
139 $as_echo_n "checking for ia64 TLS support... " >&6; }
140 if ${libc_cv_ia64_tls+:} false; then :
141 $as_echo_n "(cached) " >&6
143 cat > conftest.s <<\EOF
144 .section ".tdata","awT",@progbits
147 addl r16 = @ltoff(@dtpmod(foo#)), gp
148 addl r17 = @ltoff(@dtprel(foo#)), gp
149 addl r18 = @ltoff(@tprel(foo#)), gp
150 addl r19 = @dtprel(foo#), gp
151 adds r21 = @dtprel(foo#), r13
152 movl r23 = @dtprel(foo#)
153 addl r20 = @tprel(foo#), gp
154 adds r22 = @tprel(foo#), r13
155 movl r24 = @tprel(foo#)
157 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
162 test $ac_status = 0; }; }; then
169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ia64_tls" >&5
170 $as_echo "$libc_cv_ia64_tls" >&6; }
171 if test $libc_cv_ia64_tls = no; then
172 as_fn_error $? "the assembler must support TLS" "$LINENO" 5
175 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h