summary refs log tree commit diff
path: root/sysdeps/unix/common/configure
blob: d5bfec8e6267d2ed90a5d623fd5d5a42e9347f7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
 
if test -z "$inhibit_glue"; then

# Find out what this system calls `sys_siglist'.
echo $ac_n "checking for sys_siglist""... $ac_c" 1>&4
if eval "test \"`echo '$''{'ac_cv_check_symbol_sys_siglist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
else
  cat > conftest.$ac_ext <<EOF
#line 11 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
extern char *sys_siglist[]; puts(*sys_siglist);
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  	    ac_cv_check_symbol_sys_siglist=yes
else
  rm -rf conftest*
  ac_cv_check_symbol_sys_siglist=no
fi
rm -f conftest*

fi

if test "$ac_cv_check_symbol_sys_siglist" = yes; then
  ac_tr_symbol=`echo sys_siglist | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define HAVE_${ac_tr_symbol} 1
EOF

fi
echo "$ac_t""$ac_cv_check_symbol_sys_siglist" 1>&4
echo $ac_n "checking for _sys_siglist""... $ac_c" 1>&4
if eval "test \"`echo '$''{'ac_cv_check_symbol__sys_siglist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
else
  cat > conftest.$ac_ext <<EOF
#line 43 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
extern char *_sys_siglist[]; puts(*_sys_siglist);
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  	    ac_cv_check_symbol__sys_siglist=yes
else
  rm -rf conftest*
  ac_cv_check_symbol__sys_siglist=no
fi
rm -f conftest*

fi

if test "$ac_cv_check_symbol__sys_siglist" = yes; then
  ac_tr_symbol=`echo _sys_siglist | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define HAVE_${ac_tr_symbol} 1
EOF

fi
echo "$ac_t""$ac_cv_check_symbol__sys_siglist" 1>&4

# Find out the name of the table the system's <ctype.h> uses for character
# classification.  This is used by sysdeps/unix/common/glue-ctype.c.
echo $ac_n "checking ctype array name for glue""... $ac_c" 1>&4
if eval "test \"`echo '$''{'libc_cv_ctype_glue'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
else
  for ctype in _ctype_ __ctype_ __ctype _ctype__ _ctype _locp; do
cat > conftest.$ac_ext <<EOF
#line 79 "configure"
#include "confdefs.h"
#include <ctype.h>
int main() { return 0; }
int t() {
$ctype[13];
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  libc_cv_ctype_glue="$ctype"; break
fi
rm -f conftest*

done
fi

echo "$ac_t""$libc_cv_ctype_glue" 1>&4
cat >> confdefs.h <<EOF
#define HAVE_`echo $libc_cv_ctype_glue | tr 'a-z' 'A-Z'` 1
EOF


fi