Update.
[platform/upstream/glibc.git] / sysdeps / unix / common / configure
1  
2 if test -z "$inhibit_glue"; then
3
4 # Find out what this system calls `sys_siglist'.
5 echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
6 echo "configure:7: checking for sys_siglist" >&5
7 if eval "test \"`echo '$''{'ac_cv_check_symbol_sys_siglist'+set}'`\" = set"; then
8   echo $ac_n "(cached) $ac_c" 1>&6
9 else
10   cat > conftest.$ac_ext <<EOF
11 #line 12 "configure"
12 #include "confdefs.h"
13
14 int main() {
15 extern char *sys_siglist[]; puts(*sys_siglist);
16 ; return 0; }
17 EOF
18 if { (eval echo configure:19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19   rm -rf conftest*
20             ac_cv_check_symbol_sys_siglist=yes
21 else
22   echo "configure: failed program was:" >&5
23   cat conftest.$ac_ext >&5
24   rm -rf conftest*
25   ac_cv_check_symbol_sys_siglist=no
26 fi
27 rm -f conftest*
28 fi
29
30 if test "$ac_cv_check_symbol_sys_siglist" = yes; then
31   ac_tr_symbol=`echo sys_siglist | tr '[a-z]' '[A-Z]'`
32   cat >> confdefs.h <<EOF
33 #define HAVE_${ac_tr_symbol} 1
34 EOF
35
36 fi
37 echo "$ac_t""$ac_cv_check_symbol_sys_siglist" 1>&6
38 echo $ac_n "checking for _sys_siglist""... $ac_c" 1>&6
39 echo "configure:40: checking for _sys_siglist" >&5
40 if eval "test \"`echo '$''{'ac_cv_check_symbol__sys_siglist'+set}'`\" = set"; then
41   echo $ac_n "(cached) $ac_c" 1>&6
42 else
43   cat > conftest.$ac_ext <<EOF
44 #line 45 "configure"
45 #include "confdefs.h"
46
47 int main() {
48 extern char *_sys_siglist[]; puts(*_sys_siglist);
49 ; return 0; }
50 EOF
51 if { (eval echo configure:52: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
52   rm -rf conftest*
53             ac_cv_check_symbol__sys_siglist=yes
54 else
55   echo "configure: failed program was:" >&5
56   cat conftest.$ac_ext >&5
57   rm -rf conftest*
58   ac_cv_check_symbol__sys_siglist=no
59 fi
60 rm -f conftest*
61 fi
62
63 if test "$ac_cv_check_symbol__sys_siglist" = yes; then
64   ac_tr_symbol=`echo _sys_siglist | tr '[a-z]' '[A-Z]'`
65   cat >> confdefs.h <<EOF
66 #define HAVE_${ac_tr_symbol} 1
67 EOF
68
69 fi
70 echo "$ac_t""$ac_cv_check_symbol__sys_siglist" 1>&6
71
72 # Find out the name of the table the system's <ctype.h> uses for character
73 # classification.  This is used by sysdeps/unix/common/glue-ctype.c.
74 echo $ac_n "checking ctype array name for glue""... $ac_c" 1>&6
75 echo "configure:76: checking ctype array name for glue" >&5
76 if eval "test \"`echo '$''{'libc_cv_ctype_glue'+set}'`\" = set"; then
77   echo $ac_n "(cached) $ac_c" 1>&6
78 else
79   for ctype in _ctype_ __ctype_ __ctype _ctype__ _ctype _locp; do
80 cat > conftest.$ac_ext <<EOF
81 #line 82 "configure"
82 #include "confdefs.h"
83 #include <ctype.h>
84 int main() {
85 $ctype[13];
86 ; return 0; }
87 EOF
88 if { (eval echo configure:89: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
89   rm -rf conftest*
90   libc_cv_ctype_glue="$ctype"; break
91 else
92   echo "configure: failed program was:" >&5
93   cat conftest.$ac_ext >&5
94 fi
95 rm -f conftest*
96 done
97 fi
98
99 echo "$ac_t""$libc_cv_ctype_glue" 1>&6
100 cat >> confdefs.h <<EOF
101 #define HAVE_`echo $libc_cv_ctype_glue | tr 'a-z' 'A-Z'` 1
102 EOF
103
104
105 fi