| 12088 |
|
|
| 12089 |
|
|
| 12090 |
|
|
| 12091 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 12092 |
– |
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 12093 |
– |
if ${ac_cv_header_stdc+:} false; then : |
| 12094 |
– |
$as_echo_n "(cached) " >&6 |
| 12095 |
– |
else |
| 12096 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12097 |
– |
/* end confdefs.h. */ |
| 12098 |
– |
#include <stdlib.h> |
| 12099 |
– |
#include <stdarg.h> |
| 12100 |
– |
#include <string.h> |
| 12101 |
– |
#include <float.h> |
| 12102 |
– |
|
| 12103 |
– |
int |
| 12104 |
– |
main () |
| 12105 |
– |
{ |
| 12106 |
– |
|
| 12107 |
– |
; |
| 12108 |
– |
return 0; |
| 12109 |
– |
} |
| 12110 |
– |
_ACEOF |
| 12111 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12112 |
– |
ac_cv_header_stdc=yes |
| 12113 |
– |
else |
| 12114 |
– |
ac_cv_header_stdc=no |
| 12115 |
– |
fi |
| 12116 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12117 |
– |
|
| 12118 |
– |
if test $ac_cv_header_stdc = yes; then |
| 12119 |
– |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 12120 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12121 |
– |
/* end confdefs.h. */ |
| 12122 |
– |
#include <string.h> |
| 12123 |
– |
|
| 12124 |
– |
_ACEOF |
| 12125 |
– |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12126 |
– |
$EGREP "memchr" >/dev/null 2>&1; then : |
| 12127 |
– |
|
| 12128 |
– |
else |
| 12129 |
– |
ac_cv_header_stdc=no |
| 12130 |
– |
fi |
| 12131 |
– |
rm -f conftest* |
| 12132 |
– |
|
| 12133 |
– |
fi |
| 12134 |
– |
|
| 12135 |
– |
if test $ac_cv_header_stdc = yes; then |
| 12136 |
– |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 12137 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12138 |
– |
/* end confdefs.h. */ |
| 12139 |
– |
#include <stdlib.h> |
| 12140 |
– |
|
| 12141 |
– |
_ACEOF |
| 12142 |
– |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12143 |
– |
$EGREP "free" >/dev/null 2>&1; then : |
| 12144 |
– |
|
| 12145 |
– |
else |
| 12146 |
– |
ac_cv_header_stdc=no |
| 12147 |
– |
fi |
| 12148 |
– |
rm -f conftest* |
| 12149 |
– |
|
| 12150 |
– |
fi |
| 12151 |
– |
|
| 12152 |
– |
if test $ac_cv_header_stdc = yes; then |
| 12153 |
– |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 12154 |
– |
if test "$cross_compiling" = yes; then : |
| 12155 |
– |
: |
| 12156 |
– |
else |
| 12157 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12158 |
– |
/* end confdefs.h. */ |
| 12159 |
– |
#include <ctype.h> |
| 12160 |
– |
#include <stdlib.h> |
| 12161 |
– |
#if ((' ' & 0x0FF) == 0x020) |
| 12162 |
– |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 12163 |
– |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 12164 |
– |
#else |
| 12165 |
– |
# define ISLOWER(c) \ |
| 12166 |
– |
(('a' <= (c) && (c) <= 'i') \ |
| 12167 |
– |
|| ('j' <= (c) && (c) <= 'r') \ |
| 12168 |
– |
|| ('s' <= (c) && (c) <= 'z')) |
| 12169 |
– |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 12170 |
– |
#endif |
| 12171 |
– |
|
| 12172 |
– |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 12173 |
– |
int |
| 12174 |
– |
main () |
| 12175 |
– |
{ |
| 12176 |
– |
int i; |
| 12177 |
– |
for (i = 0; i < 256; i++) |
| 12178 |
– |
if (XOR (islower (i), ISLOWER (i)) |
| 12179 |
– |
|| toupper (i) != TOUPPER (i)) |
| 12180 |
– |
return 2; |
| 12181 |
– |
return 0; |
| 12182 |
– |
} |
| 12183 |
– |
_ACEOF |
| 12184 |
– |
if ac_fn_c_try_run "$LINENO"; then : |
| 12185 |
– |
|
| 12186 |
– |
else |
| 12187 |
– |
ac_cv_header_stdc=no |
| 12188 |
– |
fi |
| 12189 |
– |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12190 |
– |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12191 |
– |
fi |
| 12192 |
– |
|
| 12193 |
– |
fi |
| 12194 |
– |
fi |
| 12195 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 12196 |
– |
$as_echo "$ac_cv_header_stdc" >&6; } |
| 12197 |
– |
if test $ac_cv_header_stdc = yes; then |
| 12198 |
– |
|
| 12199 |
– |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 12200 |
– |
|
| 12201 |
– |
fi |
| 12202 |
– |
|
| 12203 |
– |
|
| 12091 |
|
for ac_header in sys/poll.h |
| 12092 |
|
do : |
| 12093 |
|
ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" |