/[cvsroot]/skandha4/Configure
ViewVC logotype

Contents of /skandha4/Configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue May 25 09:37:03 1999 UTC (21 years, 4 months ago) by jsp
Branch: biostr, MAIN
CVS Tags: skandha4, skandha4_1_6, skandha4_1_6_pub, dsg_1_0, HEAD
Branch point for: skandha4_pub, autoconf
Changes since 1.1: +0 -0 lines
ANSI C version of Skandha4


1 #! /bin/sh
2
3 # From configure.in Revision: 1.3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
48
49 # Initialize some other variables.
50 subdirs=
51 MFLAGS= MAKEFLAGS=
52 # Maximum number of lines to put in a shell here document.
53 ac_max_here_lines=12
54
55 ac_prev=
56 for ac_option
57 do
58
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
62 ac_prev=
63 continue
64 fi
65
66 case "$ac_option" in
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 *) ac_optarg= ;;
69 esac
70
71 # Accept the important Cygnus configure options, so we can diagnose typos.
72
73 case "$ac_option" in
74
75 -bindir | --bindir | --bindi | --bind | --bin | --bi)
76 ac_prev=bindir ;;
77 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
79
80 -build | --build | --buil | --bui | --bu)
81 ac_prev=build ;;
82 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83 build="$ac_optarg" ;;
84
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87 ac_prev=cache_file ;;
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
91
92 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93 ac_prev=datadir ;;
94 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95 | --da=*)
96 datadir="$ac_optarg" ;;
97
98 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103 fi
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
106
107 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 fi
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 case "$ac_option" in
115 *=*) ;;
116 *) ac_optarg=yes ;;
117 esac
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
119
120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122 | --exec | --exe | --ex)
123 ac_prev=exec_prefix ;;
124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
128
129 -gas | --gas | --ga | --g)
130 # Obsolete; use --with-gas.
131 with_gas=yes ;;
132
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
136 cat << EOF
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
139 Configuration:
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
147 [$ac_default_prefix]
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
149 [same as prefix]
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
154 [PREFIX/share]
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
157 [PREFIX/com]
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
169 EOF
170 cat << EOF
171 Host type:
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
182 EOF
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
185 fi
186 exit 0 ;;
187
188 -host | --host | --hos | --ho)
189 ac_prev=host ;;
190 -host=* | --host=* | --hos=* | --ho=*)
191 host="$ac_optarg" ;;
192
193 -includedir | --includedir | --includedi | --included | --include \
194 | --includ | --inclu | --incl | --inc)
195 ac_prev=includedir ;;
196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
199
200 -infodir | --infodir | --infodi | --infod | --info | --inf)
201 ac_prev=infodir ;;
202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
204
205 -libdir | --libdir | --libdi | --libd)
206 ac_prev=libdir ;;
207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
209
210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211 | --libexe | --libex | --libe)
212 ac_prev=libexecdir ;;
213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
216
217 -localstatedir | --localstatedir | --localstatedi | --localstated \
218 | --localstate | --localstat | --localsta | --localst \
219 | --locals | --local | --loca | --loc | --lo)
220 ac_prev=localstatedir ;;
221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
225
226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227 ac_prev=mandir ;;
228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
230
231 -nfp | --nfp | --nf)
232 # Obsolete; use --without-fp.
233 with_fp=no ;;
234
235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236 | --no-cr | --no-c)
237 no_create=yes ;;
238
239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
241 no_recursion=yes ;;
242
243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245 | --oldin | --oldi | --old | --ol | --o)
246 ac_prev=oldincludedir ;;
247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
251
252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253 ac_prev=prefix ;;
254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
256
257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258 | --program-pre | --program-pr | --program-p)
259 ac_prev=program_prefix ;;
260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
263
264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265 | --program-suf | --program-su | --program-s)
266 ac_prev=program_suffix ;;
267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
270
271 -program-transform-name | --program-transform-name \
272 | --program-transform-nam | --program-transform-na \
273 | --program-transform-n | --program-transform- \
274 | --program-transform | --program-transfor \
275 | --program-transfo | --program-transf \
276 | --program-trans | --program-tran \
277 | --progr-tra | --program-tr | --program-t)
278 ac_prev=program_transform_name ;;
279 -program-transform-name=* | --program-transform-name=* \
280 | --program-transform-nam=* | --program-transform-na=* \
281 | --program-transform-n=* | --program-transform-=* \
282 | --program-transform=* | --program-transfor=* \
283 | --program-transfo=* | --program-transf=* \
284 | --program-trans=* | --program-tran=* \
285 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
287
288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289 | -silent | --silent | --silen | --sile | --sil)
290 silent=yes ;;
291
292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
293 ac_prev=sbindir ;;
294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295 | --sbi=* | --sb=*)
296 sbindir="$ac_optarg" ;;
297
298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300 | --sharedst | --shareds | --shared | --share | --shar \
301 | --sha | --sh)
302 ac_prev=sharedstatedir ;;
303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306 | --sha=* | --sh=*)
307 sharedstatedir="$ac_optarg" ;;
308
309 -site | --site | --sit)
310 ac_prev=site ;;
311 -site=* | --site=* | --sit=*)
312 site="$ac_optarg" ;;
313
314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315 ac_prev=srcdir ;;
316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
318
319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320 | --syscon | --sysco | --sysc | --sys | --sy)
321 ac_prev=sysconfdir ;;
322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
325
326 -target | --target | --targe | --targ | --tar | --ta | --t)
327 ac_prev=target ;;
328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
330
331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
332 verbose=yes ;;
333
334 -version | --version | --versio | --versi | --vers)
335 echo "configure generated by autoconf version 2.12"
336 exit 0 ;;
337
338 -with-* | --with-*)
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343 fi
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
345 case "$ac_option" in
346 *=*) ;;
347 *) ac_optarg=yes ;;
348 esac
349 eval "with_${ac_package}='$ac_optarg'" ;;
350
351 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 fi
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
359
360 --x)
361 # Obsolete; use --with-x.
362 with_x=yes ;;
363
364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365 | --x-incl | --x-inc | --x-in | --x-i)
366 ac_prev=x_includes ;;
367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
370
371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373 ac_prev=x_libraries ;;
374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
377
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
379 ;;
380
381 *)
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
384 fi
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387 fi
388 nonopt="$ac_option"
389 ;;
390
391 esac
392 done
393
394 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396 fi
397
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399
400 # File descriptor usage:
401 # 0 standard input
402 # 1 file creation
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
409 exec 6>/dev/null
410 else
411 exec 6>&1
412 fi
413 exec 5>./config.log
414
415 echo "\
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
418 " 1>&5
419
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
422 ac_configure_args=
423 for ac_arg
424 do
425 case "$ac_arg" in
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
433 esac
434 done
435
436 # NLS nuisances.
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
445
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
449 echo > confdefs.h
450
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file=Uniq-to-c-dir
454
455 # Find the source files, if location was not specified.
456 if test -z "$srcdir"; then
457 ac_srcdir_defaulted=yes
458 # Try the directory containing this script, then its parent.
459 ac_prog=$0
460 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
462 srcdir=$ac_confdir
463 if test ! -r $srcdir/$ac_unique_file; then
464 srcdir=..
465 fi
466 else
467 ac_srcdir_defaulted=no
468 fi
469 if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472 else
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
474 fi
475 fi
476 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477
478 # Prefer explicitly selected file to automatically selected ones.
479 if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE; then
481 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
482 else
483 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
484 fi
485 fi
486 for ac_site_file in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
489 . "$ac_site_file"
490 fi
491 done
492
493 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
495 . $cache_file
496 else
497 echo "creating cache $cache_file"
498 > $cache_file
499 fi
500
501 ac_ext=c
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503 ac_cpp='$CPP $CPPFLAGS'
504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling=$ac_cv_prog_cc_cross
507
508 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
511 ac_n= ac_c='
512 ' ac_t=' '
513 else
514 ac_n=-n ac_c= ac_t=
515 fi
516 else
517 ac_n= ac_c='\c' ac_t=
518 fi
519
520
521
522 PROGS="muq"
523 # Extract the first word of "gcc", so it can be a program name with args.
524 set dummy gcc; ac_word=$2
525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
526 echo "configure:527: checking for $ac_word" >&5
527 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
528 echo $ac_n "(cached) $ac_c" 1>&6
529 else
530 if test -n "$CC"; then
531 ac_cv_prog_CC="$CC" # Let the user override the test.
532 else
533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
534 for ac_dir in $PATH; do
535 test -z "$ac_dir" && ac_dir=.
536 if test -f $ac_dir/$ac_word; then
537 ac_cv_prog_CC="gcc"
538 break
539 fi
540 done
541 IFS="$ac_save_ifs"
542 fi
543 fi
544 CC="$ac_cv_prog_CC"
545 if test -n "$CC"; then
546 echo "$ac_t""$CC" 1>&6
547 else
548 echo "$ac_t""no" 1>&6
549 fi
550
551 if test -z "$CC"; then
552 # Extract the first word of "cc", so it can be a program name with args.
553 set dummy cc; ac_word=$2
554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
555 echo "configure:556: checking for $ac_word" >&5
556 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
558 else
559 if test -n "$CC"; then
560 ac_cv_prog_CC="$CC" # Let the user override the test.
561 else
562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
563 ac_prog_rejected=no
564 for ac_dir in $PATH; do
565 test -z "$ac_dir" && ac_dir=.
566 if test -f $ac_dir/$ac_word; then
567 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
568 ac_prog_rejected=yes
569 continue
570 fi
571 ac_cv_prog_CC="cc"
572 break
573 fi
574 done
575 IFS="$ac_save_ifs"
576 if test $ac_prog_rejected = yes; then
577 # We found a bogon in the path, so make sure we never use it.
578 set dummy $ac_cv_prog_CC
579 shift
580 if test $# -gt 0; then
581 # We chose a different compiler from the bogus one.
582 # However, it has the same basename, so the bogon will be chosen
583 # first if we set CC to just the basename; use the full file name.
584 shift
585 set dummy "$ac_dir/$ac_word" "$@"
586 shift
587 ac_cv_prog_CC="$@"
588 fi
589 fi
590 fi
591 fi
592 CC="$ac_cv_prog_CC"
593 if test -n "$CC"; then
594 echo "$ac_t""$CC" 1>&6
595 else
596 echo "$ac_t""no" 1>&6
597 fi
598
599 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
600 fi
601
602 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
603 echo "configure:604: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
604
605 ac_ext=c
606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
607 ac_cpp='$CPP $CPPFLAGS'
608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
609 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
610 cross_compiling=$ac_cv_prog_cc_cross
611
612 cat > conftest.$ac_ext <<EOF
613 #line 614 "configure"
614 #include "confdefs.h"
615 main(){return(0);}
616 EOF
617 if { (eval echo configure:618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
618 ac_cv_prog_cc_works=yes
619 # If we can't run a trivial program, we are probably using a cross compiler.
620 if (./conftest; exit) 2>/dev/null; then
621 ac_cv_prog_cc_cross=no
622 else
623 ac_cv_prog_cc_cross=yes
624 fi
625 else
626 echo "configure: failed program was:" >&5
627 cat conftest.$ac_ext >&5
628 ac_cv_prog_cc_works=no
629 fi
630 rm -fr conftest*
631
632 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
633 if test $ac_cv_prog_cc_works = no; then
634 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
635 fi
636 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
637 echo "configure:638: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
638 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
639 cross_compiling=$ac_cv_prog_cc_cross
640
641 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
642 echo "configure:643: checking whether we are using GNU C" >&5
643 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
645 else
646 cat > conftest.c <<EOF
647 #ifdef __GNUC__
648 yes;
649 #endif
650 EOF
651 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
652 ac_cv_prog_gcc=yes
653 else
654 ac_cv_prog_gcc=no
655 fi
656 fi
657
658 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
659
660 if test $ac_cv_prog_gcc = yes; then
661 GCC=yes
662 ac_test_CFLAGS="${CFLAGS+set}"
663 ac_save_CFLAGS="$CFLAGS"
664 CFLAGS=
665 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
666 echo "configure:667: checking whether ${CC-cc} accepts -g" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
669 else
670 echo 'void f(){}' > conftest.c
671 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
672 ac_cv_prog_cc_g=yes
673 else
674 ac_cv_prog_cc_g=no
675 fi
676 rm -f conftest*
677
678 fi
679
680 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
681 if test "$ac_test_CFLAGS" = set; then
682 CFLAGS="$ac_save_CFLAGS"
683 elif test $ac_cv_prog_cc_g = yes; then
684 CFLAGS="-g -O2"
685 else
686 CFLAGS="-O2"
687 fi
688 else
689 GCC=
690 test "${CFLAGS+set}" = set || CFLAGS="-g"
691 fi
692
693 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
694 echo "configure:695: checking how to run the C preprocessor" >&5
695 # On Suns, sometimes $CPP names a directory.
696 if test -n "$CPP" && test -d "$CPP"; then
697 CPP=
698 fi
699 if test -z "$CPP"; then
700 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
702 else
703 # This must be in double quotes, not single quotes, because CPP may get
704 # substituted into the Makefile and "${CC-cc}" will confuse make.
705 CPP="${CC-cc} -E"
706 # On the NeXT, cc -E runs the code through the compiler's parser,
707 # not just through cpp.
708 cat > conftest.$ac_ext <<EOF
709 #line 710 "configure"
710 #include "confdefs.h"
711 #include <assert.h>
712 Syntax Error
713 EOF
714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
715 { (eval echo configure:716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
716 ac_err=`grep -v '^ *+' conftest.out`
717 if test -z "$ac_err"; then
718 :
719 else
720 echo "$ac_err" >&5
721 echo "configure: failed program was:" >&5
722 cat conftest.$ac_ext >&5
723 rm -rf conftest*
724 CPP="${CC-cc} -E -traditional-cpp"
725 cat > conftest.$ac_ext <<EOF
726 #line 727 "configure"
727 #include "confdefs.h"
728 #include <assert.h>
729 Syntax Error
730 EOF
731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
732 { (eval echo configure:733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
733 ac_err=`grep -v '^ *+' conftest.out`
734 if test -z "$ac_err"; then
735 :
736 else
737 echo "$ac_err" >&5
738 echo "configure: failed program was:" >&5
739 cat conftest.$ac_ext >&5
740 rm -rf conftest*
741 CPP=/lib/cpp
742 fi
743 rm -f conftest*
744 fi
745 rm -f conftest*
746 ac_cv_prog_CPP="$CPP"
747 fi
748 CPP="$ac_cv_prog_CPP"
749 else
750 ac_cv_prog_CPP="$CPP"
751 fi
752 echo "$ac_t""$CPP" 1>&6
753
754 if test $ac_cv_prog_gcc = yes; then
755 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${CC-cc} needs -traditional" >&5
757 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
759 else
760 ac_pattern="Autoconf.*'x'"
761 cat > conftest.$ac_ext <<EOF
762 #line 763 "configure"
763 #include "confdefs.h"
764 #include <sgtty.h>
765 Autoconf TIOCGETP
766 EOF
767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
768 egrep "$ac_pattern" >/dev/null 2>&1; then
769 rm -rf conftest*
770 ac_cv_prog_gcc_traditional=yes
771 else
772 rm -rf conftest*
773 ac_cv_prog_gcc_traditional=no
774 fi
775 rm -f conftest*
776
777
778 if test $ac_cv_prog_gcc_traditional = no; then
779 cat > conftest.$ac_ext <<EOF
780 #line 781 "configure"
781 #include "confdefs.h"
782 #include <termio.h>
783 Autoconf TCGETA
784 EOF
785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
786 egrep "$ac_pattern" >/dev/null 2>&1; then
787 rm -rf conftest*
788 ac_cv_prog_gcc_traditional=yes
789 fi
790 rm -f conftest*
791
792 fi
793 fi
794
795 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
796 if test $ac_cv_prog_gcc_traditional = yes; then
797 CC="$CC -traditional"
798 fi
799 fi
800
801 ac_aux_dir=
802 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
803 if test -f $ac_dir/install-sh; then
804 ac_aux_dir=$ac_dir
805 ac_install_sh="$ac_aux_dir/install-sh -c"
806 break
807 elif test -f $ac_dir/install.sh; then
808 ac_aux_dir=$ac_dir
809 ac_install_sh="$ac_aux_dir/install.sh -c"
810 break
811 fi
812 done
813 if test -z "$ac_aux_dir"; then
814 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
815 fi
816 ac_config_guess=$ac_aux_dir/config.guess
817 ac_config_sub=$ac_aux_dir/config.sub
818 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
819
820 # Find a good install program. We prefer a C program (faster),
821 # so one script is as good as another. But avoid the broken or
822 # incompatible versions:
823 # SysV /etc/install, /usr/sbin/install
824 # SunOS /usr/etc/install
825 # IRIX /sbin/install
826 # AIX /bin/install
827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
829 # ./install, which can be erroneously created by make from ./install.sh.
830 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
831 echo "configure:832: checking for a BSD compatible install" >&5
832 if test -z "$INSTALL"; then
833 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
835 else
836 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
837 for ac_dir in $PATH; do
838 # Account for people who put trailing slashes in PATH elements.
839 case "$ac_dir/" in
840 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
841 *)
842 # OSF1 and SCO ODT 3.0 have their own names for install.
843 for ac_prog in ginstall installbsd scoinst install; do
844 if test -f $ac_dir/$ac_prog; then
845 if test $ac_prog = install &&
846 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
847 # AIX install. It has an incompatible calling convention.
848 # OSF/1 installbsd also uses dspmsg, but is usable.
849 :
850 else
851 ac_cv_path_install="$ac_dir/$ac_prog -c"
852 break 2
853 fi
854 fi
855 done
856 ;;
857 esac
858 done
859 IFS="$ac_save_IFS"
860
861 fi
862 if test "${ac_cv_path_install+set}" = set; then
863 INSTALL="$ac_cv_path_install"
864 else
865 # As a last resort, use the slow shell script. We don't cache a
866 # path for INSTALL within a source directory, because that will
867 # break other packages using the cache if that directory is
868 # removed, or if the path is relative.
869 INSTALL="$ac_install_sh"
870 fi
871 fi
872 echo "$ac_t""$INSTALL" 1>&6
873
874 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
875 # It thinks the first close brace ends the variable substitution.
876 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
877
878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
879
880 echo $ac_n "checking for AIX""... $ac_c" 1>&6
881 echo "configure:882: checking for AIX" >&5
882 cat > conftest.$ac_ext <<EOF
883 #line 884 "configure"
884 #include "confdefs.h"
885 #ifdef _AIX
886 yes
887 #endif
888
889 EOF
890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
891 egrep "yes" >/dev/null 2>&1; then
892 rm -rf conftest*
893 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
894 #define _ALL_SOURCE 1
895 EOF
896
897 else
898 rm -rf conftest*
899 echo "$ac_t""no" 1>&6
900 fi
901 rm -f conftest*
902
903
904 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
905 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
906 echo "configure:907: checking for minix/config.h" >&5
907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909 else
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
913 #include <minix/config.h>
914 EOF
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out`
918 if test -z "$ac_err"; then
919 rm -rf conftest*
920 eval "ac_cv_header_$ac_safe=yes"
921 else
922 echo "$ac_err" >&5
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 rm -rf conftest*
926 eval "ac_cv_header_$ac_safe=no"
927 fi
928 rm -f conftest*
929 fi
930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
931 echo "$ac_t""yes" 1>&6
932 MINIX=yes
933 else
934 echo "$ac_t""no" 1>&6
935 MINIX=
936 fi
937
938 if test "$MINIX" = yes; then
939 cat >> confdefs.h <<\EOF
940 #define _POSIX_SOURCE 1
941 EOF
942
943 cat >> confdefs.h <<\EOF
944 #define _POSIX_1_SOURCE 2
945 EOF
946
947 cat >> confdefs.h <<\EOF
948 #define _MINIX 1
949 EOF
950
951 fi
952
953 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
954 echo "configure:955: checking for POSIXized ISC" >&5
955 if test -d /etc/conf/kconfig.d &&
956 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
957 then
958 echo "$ac_t""yes" 1>&6
959 ISC=yes # If later tests want to check for ISC.
960 cat >> confdefs.h <<\EOF
961 #define _POSIX_SOURCE 1
962 EOF
963
964 if test "$GCC" = yes; then
965 CC="$CC -posix"
966 else
967 CC="$CC -Xp"
968 fi
969 else
970 echo "$ac_t""no" 1>&6
971 ISC=
972 fi
973
974 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
975 echo "configure:976: checking for getpwnam in -lsun" >&5
976 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
979 else
980 ac_save_LIBS="$LIBS"
981 LIBS="-lsun -lc $LIBS"
982 cat > conftest.$ac_ext <<EOF
983 #line 984 "configure"
984 #include "confdefs.h"
985 /* Override any gcc2 internal prototype to avoid an error. */
986 /* We use char because int might match the return type of a gcc2
987 builtin and then its argument prototype would still apply. */
988 char getpwnam();
989
990 int main() {
991 getpwnam()
992 ; return 0; }
993 EOF
994 if { (eval echo configure:995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
995 rm -rf conftest*
996 eval "ac_cv_lib_$ac_lib_var=yes"
997 else
998 echo "configure: failed program was:" >&5
999 cat conftest.$ac_ext >&5
1000 rm -rf conftest*
1001 eval "ac_cv_lib_$ac_lib_var=no"
1002 fi
1003 rm -f conftest*
1004 LIBS="$ac_save_LIBS"
1005
1006 fi
1007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1008 echo "$ac_t""yes" 1>&6
1009 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1011 cat >> confdefs.h <<EOF
1012 #define $ac_tr_lib 1
1013 EOF
1014
1015 LIBS="-lsun $LIBS"
1016
1017 else
1018 echo "$ac_t""no" 1>&6
1019 fi
1020
1021 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1022 echo "configure:1023: checking return type of signal handlers" >&5
1023 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1029 #include <sys/types.h>
1030 #include <signal.h>
1031 #ifdef signal
1032 #undef signal
1033 #endif
1034 #ifdef __cplusplus
1035 extern "C" void (*signal (int, void (*)(int)))(int);
1036 #else
1037 void (*signal ()) ();
1038 #endif
1039
1040 int main() {
1041 int i;
1042 ; return 0; }
1043 EOF
1044 if { (eval echo configure:1045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1045 rm -rf conftest*
1046 ac_cv_type_signal=void
1047 else
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1050 rm -rf conftest*
1051 ac_cv_type_signal=int
1052 fi
1053 rm -f conftest*
1054 fi
1055
1056 echo "$ac_t""$ac_cv_type_signal" 1>&6
1057 cat >> confdefs.h <<EOF
1058 #define RETSIGTYPE $ac_cv_type_signal
1059 EOF
1060
1061
1062 echo $ac_n "checking for working const""... $ac_c" 1>&6
1063 echo "configure:1064: checking for working const" >&5
1064 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066 else
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1070
1071 int main() {
1072
1073 /* Ultrix mips cc rejects this. */
1074 typedef int charset[2]; const charset x;
1075 /* SunOS 4.1.1 cc rejects this. */
1076 char const *const *ccp;
1077 char **p;
1078 /* NEC SVR4.0.2 mips cc rejects this. */
1079 struct point {int x, y;};
1080 static struct point const zero = {0,0};
1081 /* AIX XL C 1.02.0.0 rejects this.
1082 It does not let you subtract one const X* pointer from another in an arm
1083 of an if-expression whose if-part is not a constant expression */
1084 const char *g = "string";
1085 ccp = &g + (g ? g-g : 0);
1086 /* HPUX 7.0 cc rejects these. */
1087 ++ccp;
1088 p = (char**) ccp;
1089 ccp = (char const *const *) p;
1090 { /* SCO 3.2v4 cc rejects this. */
1091 char *t;
1092 char const *s = 0 ? (char *) 0 : (char const *) 0;
1093
1094 *t++ = 0;
1095 }
1096 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1097 int x[] = {25, 17};
1098 const int *foo = &x[0];
1099 ++foo;
1100 }
1101 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1102 typedef const int *iptr;
1103 iptr p = 0;
1104 ++p;
1105 }
1106 { /* AIX XL C 1.02.0.0 rejects this saying
1107 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1108 struct s { int j; const int *ap[3]; };
1109 struct s *b; b->j = 5;
1110 }
1111 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1112 const int foo = 10;
1113 }
1114
1115 ; return 0; }
1116 EOF
1117 if { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1118 rm -rf conftest*
1119 ac_cv_c_const=yes
1120 else
1121 echo "configure: failed program was:" >&5
1122 cat conftest.$ac_ext >&5
1123 rm -rf conftest*
1124 ac_cv_c_const=no
1125 fi
1126 rm -f conftest*
1127 fi
1128
1129 echo "$ac_t""$ac_cv_c_const" 1>&6
1130 if test $ac_cv_c_const = no; then
1131 cat >> confdefs.h <<\EOF
1132 #define const
1133 EOF
1134
1135 fi
1136
1137 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether byte ordering is bigendian" >&5
1139 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142 ac_cv_c_bigendian=unknown
1143 # See if sys/param.h defines the BYTE_ORDER macro.
1144 cat > conftest.$ac_ext <<EOF
1145 #line 1146 "configure"
1146 #include "confdefs.h"
1147 #include <sys/types.h>
1148 #include <sys/param.h>
1149 int main() {
1150
1151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1152 bogus endian macros
1153 #endif
1154 ; return 0; }
1155 EOF
1156 if { (eval echo configure:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1157 rm -rf conftest*
1158 # It does; now see whether it defined to BIG_ENDIAN or not.
1159 cat > conftest.$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1162 #include <sys/types.h>
1163 #include <sys/param.h>
1164 int main() {
1165
1166 #if BYTE_ORDER != BIG_ENDIAN
1167 not big endian
1168 #endif
1169 ; return 0; }
1170 EOF
1171 if { (eval echo configure:1172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1172 rm -rf conftest*
1173 ac_cv_c_bigendian=yes
1174 else
1175 echo "configure: failed program was:" >&5
1176 cat conftest.$ac_ext >&5
1177 rm -rf conftest*
1178 ac_cv_c_bigendian=no
1179 fi
1180 rm -f conftest*
1181 else
1182 echo "configure: failed program was:" >&5
1183 cat conftest.$ac_ext >&5
1184 fi
1185 rm -f conftest*
1186 if test $ac_cv_c_bigendian = unknown; then
1187 if test "$cross_compiling" = yes; then
1188 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1189 else
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 main () {
1194 /* Are we little or big endian? From Harbison&Steele. */
1195 union
1196 {
1197 long l;
1198 char c[sizeof (long)];
1199 } u;
1200 u.l = 1;
1201 exit (u.c[sizeof (long) - 1] == 1);
1202 }
1203 EOF
1204 if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1205 then
1206 ac_cv_c_bigendian=no
1207 else
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1210 rm -fr conftest*
1211 ac_cv_c_bigendian=yes
1212 fi
1213 rm -fr conftest*
1214 fi
1215
1216 fi
1217 fi
1218
1219 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1220 if test $ac_cv_c_bigendian = yes; then
1221 cat >> confdefs.h <<\EOF
1222 #define WORDS_BIGENDIAN 1
1223 EOF
1224
1225 fi
1226
1227
1228 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1229 echo "configure:1230: checking for uid_t in sys/types.h" >&5
1230 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1232 else
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <sys/types.h>
1237 EOF
1238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1239 egrep "uid_t" >/dev/null 2>&1; then
1240 rm -rf conftest*
1241 ac_cv_type_uid_t=yes
1242 else
1243 rm -rf conftest*
1244 ac_cv_type_uid_t=no
1245 fi
1246 rm -f conftest*
1247
1248 fi
1249
1250 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1251 if test $ac_cv_type_uid_t = no; then
1252 cat >> confdefs.h <<\EOF
1253 #define uid_t int
1254 EOF
1255
1256 cat >> confdefs.h <<\EOF
1257 #define gid_t int
1258 EOF
1259
1260 fi
1261
1262 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1263 echo "configure:1264: checking for ANSI C header files" >&5
1264 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1270 #include <stdlib.h>
1271 #include <stdarg.h>
1272 #include <string.h>
1273 #include <float.h>
1274 EOF
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out`
1278 if test -z "$ac_err"; then
1279 rm -rf conftest*
1280 ac_cv_header_stdc=yes
1281 else
1282 echo "$ac_err" >&5
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1285 rm -rf conftest*
1286 ac_cv_header_stdc=no
1287 fi
1288 rm -f conftest*
1289
1290 if test $ac_cv_header_stdc = yes; then
1291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1292 cat > conftest.$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1295 #include <string.h>
1296 EOF
1297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1298 egrep "memchr" >/dev/null 2>&1; then
1299 :
1300 else
1301 rm -rf conftest*
1302 ac_cv_header_stdc=no
1303 fi
1304 rm -f conftest*
1305
1306 fi
1307
1308 if test $ac_cv_header_stdc = yes; then
1309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1313 #include <stdlib.h>
1314 EOF
1315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1316 egrep "free" >/dev/null 2>&1; then
1317 :
1318 else
1319 rm -rf conftest*
1320 ac_cv_header_stdc=no
1321 fi
1322 rm -f conftest*
1323
1324 fi
1325
1326 if test $ac_cv_header_stdc = yes; then
1327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1328 if test "$cross_compiling" = yes; then
1329 :
1330 else
1331 cat > conftest.$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1334 #include <ctype.h>
1335 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1336 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1338 int main () { int i; for (i = 0; i < 256; i++)
1339 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1340 exit (0); }
1341
1342 EOF
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1344 then
1345 :
1346 else
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1349 rm -fr conftest*
1350 ac_cv_header_stdc=no
1351 fi
1352 rm -fr conftest*
1353 fi
1354
1355 fi
1356 fi
1357
1358 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1359 if test $ac_cv_header_stdc = yes; then
1360 cat >> confdefs.h <<\EOF
1361 #define STDC_HEADERS 1
1362 EOF
1363
1364 fi
1365
1366 for ac_hdr in string.h fcntl.h memory.h utime.h unistd.h
1367 do
1368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_hdr" >&5
1371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 #include <$ac_hdr>
1378 EOF
1379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1380 { (eval echo configure:1381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1381 ac_err=`grep -v '^ *+' conftest.out`
1382 if test -z "$ac_err"; then
1383 rm -rf conftest*
1384 eval "ac_cv_header_$ac_safe=yes"
1385 else
1386 echo "$ac_err" >&5
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1389 rm -rf conftest*
1390 eval "ac_cv_header_$ac_safe=no"
1391 fi
1392 rm -f conftest*
1393 fi
1394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1395 echo "$ac_t""yes" 1>&6
1396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1397 cat >> confdefs.h <<EOF
1398 #define $ac_tr_hdr 1
1399 EOF
1400
1401 else
1402 echo "$ac_t""no" 1>&6
1403 fi
1404 done
1405
1406 for ac_hdr in sys/resource.h
1407 do
1408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_hdr" >&5
1411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 #include <$ac_hdr>
1418 EOF
1419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1420 { (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1421 ac_err=`grep -v '^ *+' conftest.out`
1422 if test -z "$ac_err"; then
1423 rm -rf conftest*
1424 eval "ac_cv_header_$ac_safe=yes"
1425 else
1426 echo "$ac_err" >&5
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1429 rm -rf conftest*
1430 eval "ac_cv_header_$ac_safe=no"
1431 fi
1432 rm -f conftest*
1433 fi
1434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1435 echo "$ac_t""yes" 1>&6
1436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1437 cat >> confdefs.h <<EOF
1438 #define $ac_tr_hdr 1
1439 EOF
1440
1441 else
1442 echo "$ac_t""no" 1>&6
1443 fi
1444 done
1445 for ac_hdr in sys/rusage.h
1446 do
1447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1449 echo "configure:1450: checking for $ac_hdr" >&5
1450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1452 else
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1456 #include <$ac_hdr>
1457 EOF
1458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1459 { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1460 ac_err=`grep -v '^ *+' conftest.out`
1461 if test -z "$ac_err"; then
1462 rm -rf conftest*
1463 eval "ac_cv_header_$ac_safe=yes"
1464 else
1465 echo "$ac_err" >&5
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1468 rm -rf conftest*
1469 eval "ac_cv_header_$ac_safe=no"
1470 fi
1471 rm -f conftest*
1472 fi
1473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1476 cat >> confdefs.h <<EOF
1477 #define $ac_tr_hdr 1
1478 EOF
1479
1480 else
1481 echo "$ac_t""no" 1>&6
1482 fi
1483 done
1484 for ac_hdr in stdarg.h stdlib.h
1485 do
1486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1488 echo "configure:1489: checking for $ac_hdr" >&5
1489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1491 else
1492 cat > conftest.$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1495 #include <$ac_hdr>
1496 EOF
1497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1498 { (eval echo configure:1499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1499 ac_err=`grep -v '^ *+' conftest.out`
1500 if test -z "$ac_err"; then
1501 rm -rf conftest*
1502 eval "ac_cv_header_$ac_safe=yes"
1503 else
1504 echo "$ac_err" >&5
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1507 rm -rf conftest*
1508 eval "ac_cv_header_$ac_safe=no"
1509 fi
1510 rm -f conftest*
1511 fi
1512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1515 cat >> confdefs.h <<EOF
1516 #define $ac_tr_hdr 1
1517 EOF
1518
1519 else
1520 echo "$ac_t""no" 1>&6
1521 fi
1522 done
1523
1524 for ac_hdr in time.h
1525 do
1526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1528 echo "configure:1529: checking for $ac_hdr" >&5
1529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531 else
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535 #include <$ac_hdr>
1536 EOF
1537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1538 { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1539 ac_err=`grep -v '^ *+' conftest.out`
1540 if test -z "$ac_err"; then
1541 rm -rf conftest*
1542 eval "ac_cv_header_$ac_safe=yes"
1543 else
1544 echo "$ac_err" >&5
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1547 rm -rf conftest*
1548 eval "ac_cv_header_$ac_safe=no"
1549 fi
1550 rm -f conftest*
1551 fi
1552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1555 cat >> confdefs.h <<EOF
1556 #define $ac_tr_hdr 1
1557 EOF
1558
1559 else
1560 echo "$ac_t""no" 1>&6
1561 fi
1562 done
1563
1564 for ac_hdr in sys/times.h
1565 do
1566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1568 echo "configure:1569: checking for $ac_hdr" >&5
1569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571 else
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575 #include <$ac_hdr>
1576 EOF
1577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1578 { (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1579 ac_err=`grep -v '^ *+' conftest.out`
1580 if test -z "$ac_err"; then
1581 rm -rf conftest*
1582 eval "ac_cv_header_$ac_safe=yes"
1583 else
1584 echo "$ac_err" >&5
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1587 rm -rf conftest*
1588 eval "ac_cv_header_$ac_safe=no"
1589 fi
1590 rm -f conftest*
1591 fi
1592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1593 echo "$ac_t""yes" 1>&6
1594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1595 cat >> confdefs.h <<EOF
1596 #define $ac_tr_hdr 1
1597 EOF
1598
1599 else
1600 echo "$ac_t""no" 1>&6
1601 fi
1602 done
1603
1604 for ac_hdr in limits.h
1605 do
1606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1608 echo "configure:1609: checking for $ac_hdr" >&5
1609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1611 else
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 #include <$ac_hdr>
1616 EOF
1617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1618 { (eval echo configure:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1619 ac_err=`grep -v '^ *+' conftest.out`
1620 if test -z "$ac_err"; then
1621 rm -rf conftest*
1622 eval "ac_cv_header_$ac_safe=yes"
1623 else
1624 echo "$ac_err" >&5
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 rm -rf conftest*
1628 eval "ac_cv_header_$ac_safe=no"
1629 fi
1630 rm -f conftest*
1631 fi
1632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1633 echo "$ac_t""yes" 1>&6
1634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1635 cat >> confdefs.h <<EOF
1636 #define $ac_tr_hdr 1
1637 EOF
1638
1639 else
1640 echo "$ac_t""no" 1>&6
1641 fi
1642 done
1643
1644 for ac_hdr in malloc.h
1645 do
1646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1648 echo "configure:1649: checking for $ac_hdr" >&5
1649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1651 else
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <$ac_hdr>
1656 EOF
1657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1658 { (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1659 ac_err=`grep -v '^ *+' conftest.out`
1660 if test -z "$ac_err"; then
1661 rm -rf conftest*
1662 eval "ac_cv_header_$ac_safe=yes"
1663 else
1664 echo "$ac_err" >&5
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 rm -rf conftest*
1668 eval "ac_cv_header_$ac_safe=no"
1669 fi
1670 rm -f conftest*
1671 fi
1672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1675 cat >> confdefs.h <<EOF
1676 #define $ac_tr_hdr 1
1677 EOF
1678
1679 else
1680 echo "$ac_t""no" 1>&6
1681 fi
1682 done
1683
1684 for ac_hdr in libc.h
1685 do
1686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1688 echo "configure:1689: checking for $ac_hdr" >&5
1689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1691 else
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 #include <$ac_hdr>
1696 EOF
1697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1698 { (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1699 ac_err=`grep -v '^ *+' conftest.out`
1700 if test -z "$ac_err"; then
1701 rm -rf conftest*
1702 eval "ac_cv_header_$ac_safe=yes"
1703 else
1704 echo "$ac_err" >&5
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1707 rm -rf conftest*
1708 eval "ac_cv_header_$ac_safe=no"
1709 fi
1710 rm -f conftest*
1711 fi
1712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1713 echo "$ac_t""yes" 1>&6
1714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1715 cat >> confdefs.h <<EOF
1716 #define $ac_tr_hdr 1
1717 EOF
1718
1719 else
1720 echo "$ac_t""no" 1>&6
1721 fi
1722 done
1723
1724 for ac_hdr in ctype.h sys/types.h arpa/inet.h errno.h
1725 do
1726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1728 echo "configure:1729: checking for $ac_hdr" >&5
1729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1731 else
1732 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1735 #include <$ac_hdr>
1736 EOF
1737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1738 { (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1739 ac_err=`grep -v '^ *+' conftest.out`
1740 if test -z "$ac_err"; then
1741 rm -rf conftest*
1742 eval "ac_cv_header_$ac_safe=yes"
1743 else
1744 echo "$ac_err" >&5
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1747 rm -rf conftest*
1748 eval "ac_cv_header_$ac_safe=no"
1749 fi
1750 rm -f conftest*
1751 fi
1752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1753 echo "$ac_t""yes" 1>&6
1754 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1755 cat >> confdefs.h <<EOF
1756 #define $ac_tr_hdr 1
1757 EOF
1758
1759 else
1760 echo "$ac_t""no" 1>&6
1761 fi
1762 done
1763
1764 for ac_hdr in netdb.h netinet/in.h signal.h sys/file.h
1765 do
1766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_hdr" >&5
1769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 #include <$ac_hdr>
1776 EOF
1777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1778 { (eval echo configure:1779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1779 ac_err=`grep -v '^ *+' conftest.out`
1780 if test -z "$ac_err"; then
1781 rm -rf conftest*
1782 eval "ac_cv_header_$ac_safe=yes"
1783 else
1784 echo "$ac_err" >&5
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1787 rm -rf conftest*
1788 eval "ac_cv_header_$ac_safe=no"
1789 fi
1790 rm -f conftest*
1791 fi
1792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1795 cat >> confdefs.h <<EOF
1796 #define $ac_tr_hdr 1
1797 EOF
1798
1799 else
1800 echo "$ac_t""no" 1>&6
1801 fi
1802 done
1803
1804 for ac_hdr in sys/ioctl.h sys/socket.h sys/time.h sys/stat.h sys/wait.h
1805 do
1806 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_hdr" >&5
1809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811 else
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 #include <$ac_hdr>
1816 EOF
1817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1818 { (eval echo configure:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1819 ac_err=`grep -v '^ *+' conftest.out`
1820 if test -z "$ac_err"; then
1821 rm -rf conftest*
1822 eval "ac_cv_header_$ac_safe=yes"
1823 else
1824 echo "$ac_err" >&5
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1827 rm -rf conftest*
1828 eval "ac_cv_header_$ac_safe=no"
1829 fi
1830 rm -f conftest*
1831 fi
1832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1833 echo "$ac_t""yes" 1>&6
1834 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1835 cat >> confdefs.h <<EOF
1836 #define $ac_tr_hdr 1
1837 EOF
1838
1839 else
1840 echo "$ac_t""no" 1>&6
1841 fi
1842 done
1843
1844 for ac_hdr in setjmp.h math.h sys/select.h
1845 do
1846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_hdr" >&5
1849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1855 #include <$ac_hdr>
1856 EOF
1857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1858 { (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1859 ac_err=`grep -v '^ *+' conftest.out`
1860 if test -z "$ac_err"; then
1861 rm -rf conftest*
1862 eval "ac_cv_header_$ac_safe=yes"
1863 else
1864 echo "$ac_err" >&5
1865 echo "configure: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1867 rm -rf conftest*
1868 eval "ac_cv_header_$ac_safe=no"
1869 fi
1870 rm -f conftest*
1871 fi
1872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1873 echo "$ac_t""yes" 1>&6
1874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1875 cat >> confdefs.h <<EOF
1876 #define $ac_tr_hdr 1
1877 EOF
1878
1879 else
1880 echo "$ac_t""no" 1>&6
1881 fi
1882 done
1883
1884 for ac_hdr in sys/param.h
1885 do
1886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $ac_hdr" >&5
1889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 #include <$ac_hdr>
1896 EOF
1897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1898 { (eval echo configure:1899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1899 ac_err=`grep -v '^ *+' conftest.out`
1900 if test -z "$ac_err"; then
1901 rm -rf conftest*
1902 eval "ac_cv_header_$ac_safe=yes"
1903 else
1904 echo "$ac_err" >&5
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 eval "ac_cv_header_$ac_safe=no"
1909 fi
1910 rm -f conftest*
1911 fi
1912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1915 cat >> confdefs.h <<EOF
1916 #define $ac_tr_hdr 1
1917 EOF
1918
1919 else
1920 echo "$ac_t""no" 1>&6
1921 fi
1922 done
1923 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1924 echo "configure:1925: checking whether time.h and sys/time.h may both be included" >&5
1925 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1927 else
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 #include <sys/types.h>
1932 #include <sys/time.h>
1933 #include <time.h>
1934 int main() {
1935 struct tm *tp;
1936 ; return 0; }
1937 EOF
1938 if { (eval echo configure:1939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1939 rm -rf conftest*
1940 ac_cv_header_time=yes
1941 else
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1944 rm -rf conftest*
1945 ac_cv_header_time=no
1946 fi
1947 rm -f conftest*
1948 fi
1949
1950 echo "$ac_t""$ac_cv_header_time" 1>&6
1951 if test $ac_cv_header_time = yes; then
1952 cat >> confdefs.h <<\EOF
1953 #define TIME_WITH_SYS_TIME 1
1954 EOF
1955
1956 fi
1957
1958 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1959 echo "configure:1960: checking whether struct tm is in sys/time.h or time.h" >&5
1960 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1962 else
1963 cat > conftest.$ac_ext <<EOF
1964 #line 1965 "configure"
1965 #include "confdefs.h"
1966 #include <sys/types.h>
1967 #include <time.h>
1968 int main() {
1969 struct tm *tp; tp->tm_sec;
1970 ; return 0; }
1971 EOF
1972 if { (eval echo configure:1973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1973 rm -rf conftest*
1974 ac_cv_struct_tm=time.h
1975 else
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1978 rm -rf conftest*
1979 ac_cv_struct_tm=sys/time.h
1980 fi
1981 rm -f conftest*
1982 fi
1983
1984 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1985 if test $ac_cv_struct_tm = sys/time.h; then
1986 cat >> confdefs.h <<\EOF
1987 #define TM_IN_SYS_TIME 1
1988 EOF
1989
1990 fi
1991
1992 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1993 echo "configure:1994: checking for tm_zone in struct tm" >&5
1994 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 #include <sys/types.h>
2001 #include <$ac_cv_struct_tm>
2002 int main() {
2003 struct tm tm; tm.tm_zone;
2004 ; return 0; }
2005 EOF
2006 if { (eval echo configure:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2007 rm -rf conftest*
2008 ac_cv_struct_tm_zone=yes
2009 else
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2012 rm -rf conftest*
2013 ac_cv_struct_tm_zone=no
2014 fi
2015 rm -f conftest*
2016 fi
2017
2018 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2019 if test "$ac_cv_struct_tm_zone" = yes; then
2020 cat >> confdefs.h <<\EOF
2021 #define HAVE_TM_ZONE 1
2022 EOF
2023
2024 else
2025 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2026 echo "configure:2027: checking for tzname" >&5
2027 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2029 else
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 #include <time.h>
2034 #ifndef tzname /* For SGI. */
2035 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2036 #endif
2037 int main() {
2038 atoi(*tzname);
2039 ; return 0; }
2040 EOF
2041 if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2042 rm -rf conftest*
2043 ac_cv_var_tzname=yes
2044 else
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2047 rm -rf conftest*
2048 ac_cv_var_tzname=no
2049 fi
2050 rm -f conftest*
2051 fi
2052
2053 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2054 if test $ac_cv_var_tzname = yes; then
2055 cat >> confdefs.h <<\EOF
2056 #define HAVE_TZNAME 1
2057 EOF
2058
2059 fi
2060 fi
2061
2062 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2063 echo "configure:2064: checking for pid_t" >&5
2064 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <sys/types.h>
2071 #if STDC_HEADERS
2072 #include <stdlib.h>
2073 #include <stddef.h>
2074 #endif
2075 EOF
2076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2077 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2078 rm -rf conftest*
2079 ac_cv_type_pid_t=yes
2080 else
2081 rm -rf conftest*
2082 ac_cv_type_pid_t=no
2083 fi
2084 rm -f conftest*
2085
2086 fi
2087 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2088 if test $ac_cv_type_pid_t = no; then
2089 cat >> confdefs.h <<\EOF
2090 #define pid_t int
2091 EOF
2092
2093 fi
2094
2095 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2096 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2097 echo "configure:2098: checking for vfork.h" >&5
2098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 #include <vfork.h>
2105 EOF
2106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2107 { (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2108 ac_err=`grep -v '^ *+' conftest.out`
2109 if test -z "$ac_err"; then
2110 rm -rf conftest*
2111 eval "ac_cv_header_$ac_safe=yes"
2112 else
2113 echo "$ac_err" >&5
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116 rm -rf conftest*
2117 eval "ac_cv_header_$ac_safe=no"
2118 fi
2119 rm -f conftest*
2120 fi
2121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2122 echo "$ac_t""yes" 1>&6
2123 cat >> confdefs.h <<\EOF
2124 #define HAVE_VFORK_H 1
2125 EOF
2126
2127 else
2128 echo "$ac_t""no" 1>&6
2129 fi
2130
2131 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2132 echo "configure:2133: checking for working vfork" >&5
2133 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2135 else
2136 if test "$cross_compiling" = yes; then
2137 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2138 echo "configure:2139: checking for vfork" >&5
2139 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 /* System header to define __stub macros and hopefully few prototypes,
2146 which can conflict with char vfork(); below. */
2147 #include <assert.h>
2148 /* Override any gcc2 internal prototype to avoid an error. */
2149 /* We use char because int might match the return type of a gcc2
2150 builtin and then its argument prototype would still apply. */
2151 char vfork();
2152
2153 int main() {
2154
2155 /* The GNU C library defines this for functions which it implements
2156 to always fail with ENOSYS. Some functions are actually named
2157 something starting with __ and the normal name is an alias. */
2158 #if defined (__stub_vfork) || defined (__stub___vfork)
2159 choke me
2160 #else
2161 vfork();
2162 #endif
2163
2164 ; return 0; }
2165 EOF
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2167 rm -rf conftest*
2168 eval "ac_cv_func_vfork=yes"
2169 else
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 rm -rf conftest*
2173 eval "ac_cv_func_vfork=no"
2174 fi
2175 rm -f conftest*
2176 fi
2177
2178 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2179 echo "$ac_t""yes" 1>&6
2180 :
2181 else
2182 echo "$ac_t""no" 1>&6
2183 fi
2184
2185 else
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2189 /* Thanks to Paul Eggert for this test. */
2190 #include <stdio.h>
2191 #include <sys/types.h>
2192 #include <sys/stat.h>
2193 #ifdef HAVE_UNISTD_H
2194 #include <unistd.h>
2195 #endif
2196 #ifdef HAVE_VFORK_H
2197 #include <vfork.h>
2198 #endif
2199 /* On some sparc systems, changes by the child to local and incoming
2200 argument registers are propagated back to the parent.
2201 The compiler is told about this with #include <vfork.h>,
2202 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2203 Test for this by using a static variable whose address
2204 is put into a register that is clobbered by the vfork. */
2205 static
2206 #ifdef __cplusplus
2207 sparc_address_test (int arg)
2208 #else
2209 sparc_address_test (arg) int arg;
2210 #endif
2211 {
2212 static pid_t child;
2213 if (!child) {
2214 child = vfork ();
2215 if (child < 0) {
2216 perror ("vfork");
2217 _exit(2);
2218 }
2219 if (!child) {
2220 arg = getpid();
2221 write(-1, "", 0);
2222 _exit (arg);
2223 }
2224 }
2225 }
2226 main() {
2227 pid_t parent = getpid ();
2228 pid_t child;
2229
2230 sparc_address_test ();
2231
2232 child = vfork ();
2233
2234 if (child == 0) {
2235 /* Here is another test for sparc vfork register problems.
2236 This test uses lots of local variables, at least
2237 as many local variables as main has allocated so far
2238 including compiler temporaries. 4 locals are enough for
2239 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2240 A buggy compiler should reuse the register of parent
2241 for one of the local variables, since it will think that
2242 parent can't possibly be used any more in this routine.
2243 Assigning to the local variable will thus munge parent
2244 in the parent process. */
2245 pid_t
2246 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2247 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2248 /* Convince the compiler that p..p7 are live; otherwise, it might
2249 use the same hardware register for all 8 local variables. */
2250 if (p != p1 || p != p2 || p != p3 || p != p4
2251 || p != p5 || p != p6 || p != p7)
2252 _exit(1);
2253
2254 /* On some systems (e.g. IRIX 3.3),
2255 vfork doesn't separate parent from child file descriptors.
2256 If the child closes a descriptor before it execs or exits,
2257 this munges the parent's descriptor as well.
2258 Test for this by closing stdout in the child. */
2259 _exit(close(fileno(stdout)) != 0);
2260 } else {
2261 int status;
2262 struct stat st;
2263
2264 while (wait(&status) != child)
2265 ;
2266 exit(
2267 /* Was there some problem with vforking? */
2268 child < 0
2269
2270 /* Did the child fail? (This shouldn't happen.) */
2271 || status
2272
2273 /* Did the vfork/compiler bug occur? */
2274 || parent != getpid()
2275
2276 /* Did the file descriptor bug occur? */
2277 || fstat(fileno(stdout), &st) != 0
2278 );
2279 }
2280 }
2281 EOF
2282 if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2283 then
2284 ac_cv_func_vfork_works=yes
2285 else
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 rm -fr conftest*
2289 ac_cv_func_vfork_works=no
2290 fi
2291 rm -fr conftest*
2292 fi
2293
2294 fi
2295
2296 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2297 if test $ac_cv_func_vfork_works = no; then
2298 cat >> confdefs.h <<\EOF
2299 #define vfork fork
2300 EOF
2301
2302 fi
2303
2304 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2305 echo "configure:2306: checking for vprintf" >&5
2306 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2308 else
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char vprintf(); below. */
2314 #include <assert.h>
2315 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */
2318 char vprintf();
2319
2320 int main() {
2321
2322 /* The GNU C library defines this for functions which it implements
2323 to always fail with ENOSYS. Some functions are actually named
2324 something starting with __ and the normal name is an alias. */
2325 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2326 choke me
2327 #else
2328 vprintf();
2329 #endif
2330
2331 ; return 0; }
2332 EOF
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2334 rm -rf conftest*
2335 eval "ac_cv_func_vprintf=yes"
2336 else
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2339 rm -rf conftest*
2340 eval "ac_cv_func_vprintf=no"
2341 fi
2342 rm -f conftest*
2343 fi
2344
2345 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 cat >> confdefs.h <<\EOF
2348 #define HAVE_VPRINTF 1
2349 EOF
2350
2351 else
2352 echo "$ac_t""no" 1>&6
2353 fi
2354
2355 if test "$ac_cv_func_vprintf" != yes; then
2356 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2357 echo "configure:2358: checking for _doprnt" >&5
2358 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2360 else
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* System header to define __stub macros and hopefully few prototypes,
2365 which can conflict with char _doprnt(); below. */
2366 #include <assert.h>
2367 /* Override any gcc2 internal prototype to avoid an error. */
2368 /* We use char because int might match the return type of a gcc2
2369 builtin and then its argument prototype would still apply. */
2370 char _doprnt();
2371
2372 int main() {
2373
2374 /* The GNU C library defines this for functions which it implements
2375 to always fail with ENOSYS. Some functions are actually named
2376 something starting with __ and the normal name is an alias. */
2377 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2378 choke me
2379 #else
2380 _doprnt();
2381 #endif
2382
2383 ; return 0; }
2384 EOF
2385 if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2386 rm -rf conftest*
2387 eval "ac_cv_func__doprnt=yes"
2388 else
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 rm -rf conftest*
2392 eval "ac_cv_func__doprnt=no"
2393 fi
2394 rm -f conftest*
2395 fi
2396
2397 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2398 echo "$ac_t""yes" 1>&6
2399 cat >> confdefs.h <<\EOF
2400 #define HAVE_DOPRNT 1
2401 EOF
2402
2403 else
2404 echo "$ac_t""no" 1>&6
2405 fi
2406
2407 fi
2408
2409 ac_header_dirent=no
2410 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2411 do
2412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2413 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2414 echo "configure:2415: checking for $ac_hdr that defines DIR" >&5
2415 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2417 else
2418 cat > conftest.$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2421 #include <sys/types.h>
2422 #include <$ac_hdr>
2423 int main() {
2424 DIR *dirp = 0;
2425 ; return 0; }
2426 EOF
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 rm -rf conftest*
2429 eval "ac_cv_header_dirent_$ac_safe=yes"
2430 else
2431 echo "configure: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2433 rm -rf conftest*
2434 eval "ac_cv_header_dirent_$ac_safe=no"
2435 fi
2436 rm -f conftest*
2437 fi
2438 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2439 echo "$ac_t""yes" 1>&6
2440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2441 cat >> confdefs.h <<EOF
2442 #define $ac_tr_hdr 1
2443 EOF
2444 ac_header_dirent=$ac_hdr; break
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448 done
2449 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2450 if test $ac_header_dirent = dirent.h; then
2451 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2452 echo "configure:2453: checking for opendir in -ldir" >&5
2453 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2456 else
2457 ac_save_LIBS="$LIBS"
2458 LIBS="-ldir $LIBS"
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 /* Override any gcc2 internal prototype to avoid an error. */
2463 /* We use char because int might match the return type of a gcc2
2464 builtin and then its argument prototype would still apply. */
2465 char opendir();
2466
2467 int main() {
2468 opendir()
2469 ; return 0; }
2470 EOF
2471 if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2472 rm -rf conftest*
2473 eval "ac_cv_lib_$ac_lib_var=yes"
2474 else
2475 echo "configure: failed program was:" >&5
2476 cat conftest.$ac_ext >&5
2477 rm -rf conftest*
2478 eval "ac_cv_lib_$ac_lib_var=no"
2479 fi
2480 rm -f conftest*
2481 LIBS="$ac_save_LIBS"
2482
2483 fi
2484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2485 echo "$ac_t""yes" 1>&6
2486 LIBS="$LIBS -ldir"
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491 else
2492 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2493 echo "configure:2494: checking for opendir in -lx" >&5
2494 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2497 else
2498 ac_save_LIBS="$LIBS"
2499 LIBS="-lx $LIBS"
2500 cat > conftest.$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2503 /* Override any gcc2 internal prototype to avoid an error. */
2504 /* We use char because int might match the return type of a gcc2
2505 builtin and then its argument prototype would still apply. */
2506 char opendir();
2507
2508 int main() {
2509 opendir()
2510 ; return 0; }
2511 EOF
2512 if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2513 rm -rf conftest*
2514 eval "ac_cv_lib_$ac_lib_var=yes"
2515 else
2516 echo "configure: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 rm -rf conftest*
2519 eval "ac_cv_lib_$ac_lib_var=no"
2520 fi
2521 rm -f conftest*
2522 LIBS="$ac_save_LIBS"
2523
2524 fi
2525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2526 echo "$ac_t""yes" 1>&6
2527 LIBS="$LIBS -lx"
2528 else
2529 echo "$ac_t""no" 1>&6
2530 fi
2531
2532 fi
2533
2534
2535 echo $ac_n "checking for _filbuf prototype""... $ac_c" 1>&6
2536 echo "configure:2537: checking for _filbuf prototype" >&5
2537 ac_need=1
2538 for h in stdio.h; do
2539 cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542 #include <$h>
2543 EOF
2544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2545 { (eval echo configure:2546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2546 ac_err=`grep -v '^ *+' conftest.out`
2547 if test -z "$ac_err"; then
2548 rm -rf conftest*
2549 echo "#include \"confdefs.h\"
2550 #include <$h>" > conftest.c
2551 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2552 if egrep "_filbuf[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2553 :
2554 else
2555 rm -rf conftest*
2556 continue
2557 fi
2558 rm -f conftest*
2559 cat > conftest.c <<EOF
2560 #include <$h>
2561 extern char**** _filbuf(char****, int****);
2562 main() { return 0; }
2563 EOF
2564 if eval $ac_compile >/dev/null 2>&1; then
2565 rm -f conftest*
2566 else
2567 rm -f conftest*
2568 ac_need=0
2569 break
2570 fi
2571
2572 else
2573 echo "$ac_err" >&5
2574 echo "configure: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2576 fi
2577 rm -f conftest*
2578 done
2579 if test $ac_need = 1; then
2580 name=NEED_`echo _filbuf | tr '[a-z]' '[A-Z]'`_PROTO
2581 cat >> confdefs.h <<EOF
2582 #define $name 1
2583 EOF
2584
2585 echo "$ac_t""ABSENT" 1>&6
2586 else
2587 echo "$ac_t""present" 1>&6
2588 fi
2589
2590 echo $ac_n "checking for _flsbuf prototype""... $ac_c" 1>&6
2591 echo "configure:2592: checking for _flsbuf prototype" >&5
2592 ac_need=1
2593 for h in stdio.h; do
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <$h>
2598 EOF
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out`
2602 if test -z "$ac_err"; then
2603 rm -rf conftest*
2604 echo "#include \"confdefs.h\"
2605 #include <$h>" > conftest.c
2606 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2607 if egrep "_flsbuf[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2608 :
2609 else
2610 rm -rf conftest*
2611 continue
2612 fi
2613 rm -f conftest*
2614 cat > conftest.c <<EOF
2615 #include <$h>
2616 extern char**** _flsbuf(char****, int****);
2617 main() { return 0; }
2618 EOF
2619 if eval $ac_compile >/dev/null 2>&1; then
2620 rm -f conftest*
2621 else
2622 rm -f conftest*
2623 ac_need=0
2624 break
2625 fi
2626
2627 else
2628 echo "$ac_err" >&5
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 fi
2632 rm -f conftest*
2633 done
2634 if test $ac_need = 1; then
2635 name=NEED_`echo _flsbuf | tr '[a-z]' '[A-Z]'`_PROTO
2636 cat >> confdefs.h <<EOF
2637 #define $name 1
2638 EOF
2639
2640 echo "$ac_t""ABSENT" 1>&6
2641 else
2642 echo "$ac_t""present" 1>&6
2643 fi
2644
2645 echo $ac_n "checking for accept prototype""... $ac_c" 1>&6
2646 echo "configure:2647: checking for accept prototype" >&5
2647 ac_need=1
2648 for h in sys/socket.h; do
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 #include <$h>
2653 EOF
2654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655 { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656 ac_err=`grep -v '^ *+' conftest.out`
2657 if test -z "$ac_err"; then
2658 rm -rf conftest*
2659 echo "#include \"confdefs.h\"
2660 #include <$h>" > conftest.c
2661 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2662 if egrep "accept[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2663 :
2664 else
2665 rm -rf conftest*
2666 continue
2667 fi
2668 rm -f conftest*
2669 cat > conftest.c <<EOF
2670 #include <$h>
2671 extern char**** accept(char****, int****);
2672 main() { return 0; }
2673 EOF
2674 if eval $ac_compile >/dev/null 2>&1; then
2675 rm -f conftest*
2676 else
2677 rm -f conftest*
2678 ac_need=0
2679 break
2680 fi
2681
2682 else
2683 echo "$ac_err" >&5
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 fi
2687 rm -f conftest*
2688 done
2689 if test $ac_need = 1; then
2690 name=NEED_`echo accept | tr '[a-z]' '[A-Z]'`_PROTO
2691 cat >> confdefs.h <<EOF
2692 #define $name 1
2693 EOF
2694
2695 echo "$ac_t""ABSENT" 1>&6
2696 else
2697 echo "$ac_t""present" 1>&6
2698 fi
2699
2700 echo $ac_n "checking for strcasecmp prototype""... $ac_c" 1>&6
2701 echo "configure:2702: checking for strcasecmp prototype" >&5
2702 ac_need=1
2703 for h in string.h; do
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 #include <$h>
2708 EOF
2709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2710 { (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2711 ac_err=`grep -v '^ *+' conftest.out`
2712 if test -z "$ac_err"; then
2713 rm -rf conftest*
2714 echo "#include \"confdefs.h\"
2715 #include <$h>" > conftest.c
2716 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2717 if egrep "strcasecmp[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2718 :
2719 else
2720 rm -rf conftest*
2721 continue
2722 fi
2723 rm -f conftest*
2724 cat > conftest.c <<EOF
2725 #include <$h>
2726 extern char**** strcasecmp(char****, int****);
2727 main() { return 0; }
2728 EOF
2729 if eval $ac_compile >/dev/null 2>&1; then
2730 rm -f conftest*
2731 else
2732 rm -f conftest*
2733 ac_need=0
2734 break
2735 fi
2736
2737 else
2738 echo "$ac_err" >&5
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2741 fi
2742 rm -f conftest*
2743 done
2744 if test $ac_need = 1; then
2745 name=NEED_`echo strcasecmp | tr '[a-z]' '[A-Z]'`_PROTO
2746 cat >> confdefs.h <<EOF
2747 #define $name 1
2748 EOF
2749
2750 echo "$ac_t""ABSENT" 1>&6
2751 else
2752 echo "$ac_t""present" 1>&6
2753 fi
2754
2755 echo $ac_n "checking for bcopy prototype""... $ac_c" 1>&6
2756 echo "configure:2757: checking for bcopy prototype" >&5
2757 ac_need=1
2758 for h in strings.h string.h memory.h bstring.h X11/Xfuncs.h; do
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2762 #include <$h>
2763 EOF
2764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2765 { (eval echo configure:2766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2766 ac_err=`grep -v '^ *+' conftest.out`
2767 if test -z "$ac_err"; then
2768 rm -rf conftest*
2769 echo "#include \"confdefs.h\"
2770 #include <$h>" > conftest.c
2771 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2772 if egrep "bcopy[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2773 :
2774 else
2775 rm -rf conftest*
2776 continue
2777 fi
2778 rm -f conftest*
2779 cat > conftest.c <<EOF
2780 #include <$h>
2781 extern char**** bcopy(char****, int****);
2782 main() { return 0; }
2783 EOF
2784 if eval $ac_compile >/dev/null 2>&1; then
2785 rm -f conftest*
2786 else
2787 rm -f conftest*
2788 ac_need=0
2789 break
2790 fi
2791
2792 else
2793 echo "$ac_err" >&5
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2796 fi
2797 rm -f conftest*
2798 done
2799 if test $ac_need = 1; then
2800 name=NEED_`echo bcopy | tr '[a-z]' '[A-Z]'`_PROTO
2801 cat >> confdefs.h <<EOF
2802 #define $name 1
2803 EOF
2804
2805 echo "$ac_t""ABSENT" 1>&6
2806 else
2807 echo "$ac_t""present" 1>&6
2808 fi
2809
2810 echo $ac_n "checking for bind prototype""... $ac_c" 1>&6
2811 echo "configure:2812: checking for bind prototype" >&5
2812 ac_need=1
2813 for h in sys/socket.h; do
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 #include <$h>
2818 EOF
2819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2820 { (eval echo configure:2821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2821 ac_err=`grep -v '^ *+' conftest.out`
2822 if test -z "$ac_err"; then
2823 rm -rf conftest*
2824 echo "#include \"confdefs.h\"
2825 #include <$h>" > conftest.c
2826 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2827 if egrep "bind[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2828 :
2829 else
2830 rm -rf conftest*
2831 continue
2832 fi
2833 rm -f conftest*
2834 cat > conftest.c <<EOF
2835 #include <$h>
2836 extern char**** bind(char****, int****);
2837 main() { return 0; }
2838 EOF
2839 if eval $ac_compile >/dev/null 2>&1; then
2840 rm -f conftest*
2841 else
2842 rm -f conftest*
2843 ac_need=0
2844 break
2845 fi
2846
2847 else
2848 echo "$ac_err" >&5
2849 echo "configure: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2851 fi
2852 rm -f conftest*
2853 done
2854 if test $ac_need = 1; then
2855 name=NEED_`echo bind | tr '[a-z]' '[A-Z]'`_PROTO
2856 cat >> confdefs.h <<EOF
2857 #define $name 1
2858 EOF
2859
2860 echo "$ac_t""ABSENT" 1>&6
2861 else
2862 echo "$ac_t""present" 1>&6
2863 fi
2864
2865 echo $ac_n "checking for bzero prototype""... $ac_c" 1>&6
2866 echo "configure:2867: checking for bzero prototype" >&5
2867 ac_need=1
2868 for h in strings.h string.h memory.h bstring.h; do
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 #include <$h>
2873 EOF
2874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2875 { (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2876 ac_err=`grep -v '^ *+' conftest.out`
2877 if test -z "$ac_err"; then
2878 rm -rf conftest*
2879 echo "#include \"confdefs.h\"
2880 #include <$h>" > conftest.c
2881 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2882 if egrep "bzero[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2883 :
2884 else
2885 rm -rf conftest*
2886 continue
2887 fi
2888 rm -f conftest*
2889 cat > conftest.c <<EOF
2890 #include <$h>
2891 extern char**** bzero(char****, int****);
2892 main() { return 0; }
2893 EOF
2894 if eval $ac_compile >/dev/null 2>&1; then
2895 rm -f conftest*
2896 else
2897 rm -f conftest*
2898 ac_need=0
2899 break
2900 fi
2901
2902 else
2903 echo "$ac_err" >&5
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 fi
2907 rm -f conftest*
2908 done
2909 if test $ac_need = 1; then
2910 name=NEED_`echo bzero | tr '[a-z]' '[A-Z]'`_PROTO
2911 cat >> confdefs.h <<EOF
2912 #define $name 1
2913 EOF
2914
2915 echo "$ac_t""ABSENT" 1>&6
2916 else
2917 echo "$ac_t""present" 1>&6
2918 fi
2919
2920 echo $ac_n "checking for close prototype""... $ac_c" 1>&6
2921 echo "configure:2922: checking for close prototype" >&5
2922 ac_need=1
2923 for h in unistd.h; do
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 #include <$h>
2928 EOF
2929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2930 { (eval echo configure:2931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2931 ac_err=`grep -v '^ *+' conftest.out`
2932 if test -z "$ac_err"; then
2933 rm -rf conftest*
2934 echo "#include \"confdefs.h\"
2935 #include <$h>" > conftest.c
2936 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2937 if egrep "close[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2938 :
2939 else
2940 rm -rf conftest*
2941 continue
2942 fi
2943 rm -f conftest*
2944 cat > conftest.c <<EOF
2945 #include <$h>
2946 extern char**** close(char****, int****);
2947 main() { return 0; }
2948 EOF
2949 if eval $ac_compile >/dev/null 2>&1; then
2950 rm -f conftest*
2951 else
2952 rm -f conftest*
2953 ac_need=0
2954 break
2955 fi
2956
2957 else
2958 echo "$ac_err" >&5
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2961 fi
2962 rm -f conftest*
2963 done
2964 if test $ac_need = 1; then
2965 name=NEED_`echo close | tr '[a-z]' '[A-Z]'`_PROTO
2966 cat >> confdefs.h <<EOF
2967 #define $name 1
2968 EOF
2969
2970 echo "$ac_t""ABSENT" 1>&6
2971 else
2972 echo "$ac_t""present" 1>&6
2973 fi
2974
2975 echo $ac_n "checking for connect prototype""... $ac_c" 1>&6
2976 echo "configure:2977: checking for connect prototype" >&5
2977 ac_need=1
2978 for h in sys/socket.h; do
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <$h>
2983 EOF
2984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2985 { (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2986 ac_err=`grep -v '^ *+' conftest.out`
2987 if test -z "$ac_err"; then
2988 rm -rf conftest*
2989 echo "#include \"confdefs.h\"
2990 #include <$h>" > conftest.c
2991 eval "$ac_cpp conftest.c > conftest.out 2>&1"
2992 if egrep "connect[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
2993 :
2994 else
2995 rm -rf conftest*
2996 continue
2997 fi
2998 rm -f conftest*
2999 cat > conftest.c <<EOF
3000 #include <$h>
3001 extern char**** connect(char****, int****);
3002 main() { return 0; }
3003 EOF
3004 if eval $ac_compile >/dev/null 2>&1; then
3005 rm -f conftest*
3006 else
3007 rm -f conftest*
3008 ac_need=0
3009 break
3010 fi
3011
3012 else
3013 echo "$ac_err" >&5
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 fi
3017 rm -f conftest*
3018 done
3019 if test $ac_need = 1; then
3020 name=NEED_`echo connect | tr '[a-z]' '[A-Z]'`_PROTO
3021 cat >> confdefs.h <<EOF
3022 #define $name 1
3023 EOF
3024
3025 echo "$ac_t""ABSENT" 1>&6
3026 else
3027 echo "$ac_t""present" 1>&6
3028 fi
3029
3030 echo $ac_n "checking for fclose prototype""... $ac_c" 1>&6
3031 echo "configure:3032: checking for fclose prototype" >&5
3032 ac_need=1
3033 for h in stdio.h; do
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 #include <$h>
3038 EOF
3039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3040 { (eval echo configure:3041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3041 ac_err=`grep -v '^ *+' conftest.out`
3042 if test -z "$ac_err"; then
3043 rm -rf conftest*
3044 echo "#include \"confdefs.h\"
3045 #include <$h>" > conftest.c
3046 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3047 if egrep "fclose[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3048 :
3049 else
3050 rm -rf conftest*
3051 continue
3052 fi
3053 rm -f conftest*
3054 cat > conftest.c <<EOF
3055 #include <$h>
3056 extern char**** fclose(char****, int****);
3057 main() { return 0; }
3058 EOF
3059 if eval $ac_compile >/dev/null 2>&1; then
3060 rm -f conftest*
3061 else
3062 rm -f conftest*
3063 ac_need=0
3064 break
3065 fi
3066
3067 else
3068 echo "$ac_err" >&5
3069 echo "configure: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3071 fi
3072 rm -f conftest*
3073 done
3074 if test $ac_need = 1; then
3075 name=NEED_`echo fclose | tr '[a-z]' '[A-Z]'`_PROTO
3076 cat >> confdefs.h <<EOF
3077 #define $name 1
3078 EOF
3079
3080 echo "$ac_t""ABSENT" 1>&6
3081 else
3082 echo "$ac_t""present" 1>&6
3083 fi
3084
3085 echo $ac_n "checking for fflush prototype""... $ac_c" 1>&6
3086 echo "configure:3087: checking for fflush prototype" >&5
3087 ac_need=1
3088 for h in stdio.h; do
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 #include <$h>
3093 EOF
3094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3095 { (eval echo configure:3096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3096 ac_err=`grep -v '^ *+' conftest.out`
3097 if test -z "$ac_err"; then
3098 rm -rf conftest*
3099 echo "#include \"confdefs.h\"
3100 #include <$h>" > conftest.c
3101 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3102 if egrep "fflush[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3103 :
3104 else
3105 rm -rf conftest*
3106 continue
3107 fi
3108 rm -f conftest*
3109 cat > conftest.c <<EOF
3110 #include <$h>
3111 extern char**** fflush(char****, int****);
3112 main() { return 0; }
3113 EOF
3114 if eval $ac_compile >/dev/null 2>&1; then
3115 rm -f conftest*
3116 else
3117 rm -f conftest*
3118 ac_need=0
3119 break
3120 fi
3121
3122 else
3123 echo "$ac_err" >&5
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3126 fi
3127 rm -f conftest*
3128 done
3129 if test $ac_need = 1; then
3130 name=NEED_`echo fflush | tr '[a-z]' '[A-Z]'`_PROTO
3131 cat >> confdefs.h <<EOF
3132 #define $name 1
3133 EOF
3134
3135 echo "$ac_t""ABSENT" 1>&6
3136 else
3137 echo "$ac_t""present" 1>&6
3138 fi
3139
3140 echo $ac_n "checking for fgetc prototype""... $ac_c" 1>&6
3141 echo "configure:3142: checking for fgetc prototype" >&5
3142 ac_need=1
3143 for h in stdio.h; do
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <$h>
3148 EOF
3149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3150 { (eval echo configure:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3151 ac_err=`grep -v '^ *+' conftest.out`
3152 if test -z "$ac_err"; then
3153 rm -rf conftest*
3154 echo "#include \"confdefs.h\"
3155 #include <$h>" > conftest.c
3156 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3157 if egrep "fgetc[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3158 :
3159 else
3160 rm -rf conftest*
3161 continue
3162 fi
3163 rm -f conftest*
3164 cat > conftest.c <<EOF
3165 #include <$h>
3166 extern char**** fgetc(char****, int****);
3167 main() { return 0; }
3168 EOF
3169 if eval $ac_compile >/dev/null 2>&1; then
3170 rm -f conftest*
3171 else
3172 rm -f conftest*
3173 ac_need=0
3174 break
3175 fi
3176
3177 else
3178 echo "$ac_err" >&5
3179 echo "configure: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3181 fi
3182 rm -f conftest*
3183 done
3184 if test $ac_need = 1; then
3185 name=NEED_`echo fgetc | tr '[a-z]' '[A-Z]'`_PROTO
3186 cat >> confdefs.h <<EOF
3187 #define $name 1
3188 EOF
3189
3190 echo "$ac_t""ABSENT" 1>&6
3191 else
3192 echo "$ac_t""present" 1>&6
3193 fi
3194
3195 echo $ac_n "checking for pclose prototype""... $ac_c" 1>&6
3196 echo "configure:3197: checking for pclose prototype" >&5
3197 ac_need=1
3198 for h in stdio.h; do
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3202 #include <$h>
3203 EOF
3204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3205 { (eval echo configure:3206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3206 ac_err=`grep -v '^ *+' conftest.out`
3207 if test -z "$ac_err"; then
3208 rm -rf conftest*
3209 echo "#include \"confdefs.h\"
3210 #include <$h>" > conftest.c
3211 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3212 if egrep "pclose[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3213 :
3214 else
3215 rm -rf conftest*
3216 continue
3217 fi
3218 rm -f conftest*
3219 cat > conftest.c <<EOF
3220 #include <$h>
3221 extern char**** pclose(char****, int****);
3222 main() { return 0; }
3223 EOF
3224 if eval $ac_compile >/dev/null 2>&1; then
3225 rm -f conftest*
3226 else
3227 rm -f conftest*
3228 ac_need=0
3229 break
3230 fi
3231
3232 else
3233 echo "$ac_err" >&5
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3236 fi
3237 rm -f conftest*
3238 done
3239 if test $ac_need = 1; then
3240 name=NEED_`echo pclose | tr '[a-z]' '[A-Z]'`_PROTO
3241 cat >> confdefs.h <<EOF
3242 #define $name 1
3243 EOF
3244
3245 echo "$ac_t""ABSENT" 1>&6
3246 else
3247 echo "$ac_t""present" 1>&6
3248 fi
3249
3250 echo $ac_n "checking for fprintf prototype""... $ac_c" 1>&6
3251 echo "configure:3252: checking for fprintf prototype" >&5
3252 ac_need=1
3253 for h in stdio.h; do
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 #include <$h>
3258 EOF
3259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3260 { (eval echo configure:3261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3261 ac_err=`grep -v '^ *+' conftest.out`
3262 if test -z "$ac_err"; then
3263 rm -rf conftest*
3264 echo "#include \"confdefs.h\"
3265 #include <$h>" > conftest.c
3266 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3267 if egrep "fprintf[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3268 :
3269 else
3270 rm -rf conftest*
3271 continue
3272 fi
3273 rm -f conftest*
3274 cat > conftest.c <<EOF
3275 #include <$h>
3276 extern char**** fprintf(char****, int****);
3277 main() { return 0; }
3278 EOF
3279 if eval $ac_compile >/dev/null 2>&1; then
3280 rm -f conftest*
3281 else
3282 rm -f conftest*
3283 ac_need=0
3284 break
3285 fi
3286
3287 else
3288 echo "$ac_err" >&5
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3291 fi
3292 rm -f conftest*
3293 done
3294 if test $ac_need = 1; then
3295 name=NEED_`echo fprintf | tr '[a-z]' '[A-Z]'`_PROTO
3296 cat >> confdefs.h <<EOF
3297 #define $name 1
3298 EOF
3299
3300 echo "$ac_t""ABSENT" 1>&6
3301 else
3302 echo "$ac_t""present" 1>&6
3303 fi
3304
3305 echo $ac_n "checking for fputc prototype""... $ac_c" 1>&6
3306 echo "configure:3307: checking for fputc prototype" >&5
3307 ac_need=1
3308 for h in stdio.h; do
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 #include <$h>
3313 EOF
3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316 ac_err=`grep -v '^ *+' conftest.out`
3317 if test -z "$ac_err"; then
3318 rm -rf conftest*
3319 echo "#include \"confdefs.h\"
3320 #include <$h>" > conftest.c
3321 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3322 if egrep "fputc[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3323 :
3324 else
3325 rm -rf conftest*
3326 continue
3327 fi
3328 rm -f conftest*
3329 cat > conftest.c <<EOF
3330 #include <$h>
3331 extern char**** fputc(char****, int****);
3332 main() { return 0; }
3333 EOF
3334 if eval $ac_compile >/dev/null 2>&1; then
3335 rm -f conftest*
3336 else
3337 rm -f conftest*
3338 ac_need=0
3339 break
3340 fi
3341
3342 else
3343 echo "$ac_err" >&5
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3346 fi
3347 rm -f conftest*
3348 done
3349 if test $ac_need = 1; then
3350 name=NEED_`echo fputc | tr '[a-z]' '[A-Z]'`_PROTO
3351 cat >> confdefs.h <<EOF
3352 #define $name 1
3353 EOF
3354
3355 echo "$ac_t""ABSENT" 1>&6
3356 else
3357 echo "$ac_t""present" 1>&6
3358 fi
3359
3360 echo $ac_n "checking for fputs prototype""... $ac_c" 1>&6
3361 echo "configure:3362: checking for fputs prototype" >&5
3362 ac_need=1
3363 for h in stdio.h; do
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <$h>
3368 EOF
3369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3370 { (eval echo configure:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3371 ac_err=`grep -v '^ *+' conftest.out`
3372 if test -z "$ac_err"; then
3373 rm -rf conftest*
3374 echo "#include \"confdefs.h\"
3375 #include <$h>" > conftest.c
3376 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3377 if egrep "fputs[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3378 :
3379 else
3380 rm -rf conftest*
3381 continue
3382 fi
3383 rm -f conftest*
3384 cat > conftest.c <<EOF
3385 #include <$h>
3386 extern char**** fputs(char****, int****);
3387 main() { return 0; }
3388 EOF
3389 if eval $ac_compile >/dev/null 2>&1; then
3390 rm -f conftest*
3391 else
3392 rm -f conftest*
3393 ac_need=0
3394 break
3395 fi
3396
3397 else
3398 echo "$ac_err" >&5
3399 echo "configure: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3401 fi
3402 rm -f conftest*
3403 done
3404 if test $ac_need = 1; then
3405 name=NEED_`echo fputs | tr '[a-z]' '[A-Z]'`_PROTO
3406 cat >> confdefs.h <<EOF
3407 #define $name 1
3408 EOF
3409
3410 echo "$ac_t""ABSENT" 1>&6
3411 else
3412 echo "$ac_t""present" 1>&6
3413 fi
3414
3415 echo $ac_n "checking for fread prototype""... $ac_c" 1>&6
3416 echo "configure:3417: checking for fread prototype" >&5
3417 ac_need=1
3418 for h in stdio.h; do
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 #include <$h>
3423 EOF
3424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3425 { (eval echo configure:3426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3426 ac_err=`grep -v '^ *+' conftest.out`
3427 if test -z "$ac_err"; then
3428 rm -rf conftest*
3429 echo "#include \"confdefs.h\"
3430 #include <$h>" > conftest.c
3431 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3432 if egrep "fread[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3433 :
3434 else
3435 rm -rf conftest*
3436 continue
3437 fi
3438 rm -f conftest*
3439 cat > conftest.c <<EOF
3440 #include <$h>
3441 extern char**** fread(char****, int****);
3442 main() { return 0; }
3443 EOF
3444 if eval $ac_compile >/dev/null 2>&1; then
3445 rm -f conftest*
3446 else
3447 rm -f conftest*
3448 ac_need=0
3449 break
3450 fi
3451
3452 else
3453 echo "$ac_err" >&5
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3456 fi
3457 rm -f conftest*
3458 done
3459 if test $ac_need = 1; then
3460 name=NEED_`echo fread | tr '[a-z]' '[A-Z]'`_PROTO
3461 cat >> confdefs.h <<EOF
3462 #define $name 1
3463 EOF
3464
3465 echo "$ac_t""ABSENT" 1>&6
3466 else
3467 echo "$ac_t""present" 1>&6
3468 fi
3469
3470 echo $ac_n "checking for free prototype""... $ac_c" 1>&6
3471 echo "configure:3472: checking for free prototype" >&5
3472 ac_need=1
3473 for h in stdlib.h; do
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 #include <$h>
3478 EOF
3479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3480 { (eval echo configure:3481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3481 ac_err=`grep -v '^ *+' conftest.out`
3482 if test -z "$ac_err"; then
3483 rm -rf conftest*
3484 echo "#include \"confdefs.h\"
3485 #include <$h>" > conftest.c
3486 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3487 if egrep "free[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3488 :
3489 else
3490 rm -rf conftest*
3491 continue
3492 fi
3493 rm -f conftest*
3494 cat > conftest.c <<EOF
3495 #include <$h>
3496 extern char**** free(char****, int****);
3497 main() { return 0; }
3498 EOF
3499 if eval $ac_compile >/dev/null 2>&1; then
3500 rm -f conftest*
3501 else
3502 rm -f conftest*
3503 ac_need=0
3504 break
3505 fi
3506
3507 else
3508 echo "$ac_err" >&5
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3511 fi
3512 rm -f conftest*
3513 done
3514 if test $ac_need = 1; then
3515 name=NEED_`echo free | tr '[a-z]' '[A-Z]'`_PROTO
3516 cat >> confdefs.h <<EOF
3517 #define $name 1
3518 EOF
3519
3520 echo "$ac_t""ABSENT" 1>&6
3521 else
3522 echo "$ac_t""present" 1>&6
3523 fi
3524
3525 echo $ac_n "checking for fscanf prototype""... $ac_c" 1>&6
3526 echo "configure:3527: checking for fscanf prototype" >&5
3527 ac_need=1
3528 for h in stdio.h; do
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <$h>
3533 EOF
3534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3535 { (eval echo configure:3536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3536 ac_err=`grep -v '^ *+' conftest.out`
3537 if test -z "$ac_err"; then
3538 rm -rf conftest*
3539 echo "#include \"confdefs.h\"
3540 #include <$h>" > conftest.c
3541 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3542 if egrep "fscanf[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3543 :
3544 else
3545 rm -rf conftest*
3546 continue
3547 fi
3548 rm -f conftest*
3549 cat > conftest.c <<EOF
3550 #include <$h>
3551 extern char**** fscanf(char****, int****);
3552 main() { return 0; }
3553 EOF
3554 if eval $ac_compile >/dev/null 2>&1; then
3555 rm -f conftest*
3556 else
3557 rm -f conftest*
3558 ac_need=0
3559 break
3560 fi
3561
3562 else
3563 echo "$ac_err" >&5
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3566 fi
3567 rm -f conftest*
3568 done
3569 if test $ac_need = 1; then
3570 name=NEED_`echo fscanf | tr '[a-z]' '[A-Z]'`_PROTO
3571 cat >> confdefs.h <<EOF
3572 #define $name 1
3573 EOF
3574
3575 echo "$ac_t""ABSENT" 1>&6
3576 else
3577 echo "$ac_t""present" 1>&6
3578 fi
3579
3580 echo $ac_n "checking for fwrite prototype""... $ac_c" 1>&6
3581 echo "configure:3582: checking for fwrite prototype" >&5
3582 ac_need=1
3583 for h in stdio.h; do
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 #include <$h>
3588 EOF
3589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3590 { (eval echo configure:3591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3591 ac_err=`grep -v '^ *+' conftest.out`
3592 if test -z "$ac_err"; then
3593 rm -rf conftest*
3594 echo "#include \"confdefs.h\"
3595 #include <$h>" > conftest.c
3596 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3597 if egrep "fwrite[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3598 :
3599 else
3600 rm -rf conftest*
3601 continue
3602 fi
3603 rm -f conftest*
3604 cat > conftest.c <<EOF
3605 #include <$h>
3606 extern char**** fwrite(char****, int****);
3607 main() { return 0; }
3608 EOF
3609 if eval $ac_compile >/dev/null 2>&1; then
3610 rm -f conftest*
3611 else
3612 rm -f conftest*
3613 ac_need=0
3614 break
3615 fi
3616
3617 else
3618 echo "$ac_err" >&5
3619 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3621 fi
3622 rm -f conftest*
3623 done
3624 if test $ac_need = 1; then
3625 name=NEED_`echo fwrite | tr '[a-z]' '[A-Z]'`_PROTO
3626 cat >> confdefs.h <<EOF
3627 #define $name 1
3628 EOF
3629
3630 echo "$ac_t""ABSENT" 1>&6
3631 else
3632 echo "$ac_t""present" 1>&6
3633 fi
3634
3635 echo $ac_n "checking for getdtablesize prototype""... $ac_c" 1>&6
3636 echo "configure:3637: checking for getdtablesize prototype" >&5
3637 ac_need=1
3638 for h in unistd.h; do
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <$h>
3643 EOF
3644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3645 { (eval echo configure:3646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3646 ac_err=`grep -v '^ *+' conftest.out`
3647 if test -z "$ac_err"; then
3648 rm -rf conftest*
3649 echo "#include \"confdefs.h\"
3650 #include <$h>" > conftest.c
3651 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3652 if egrep "getdtablesize[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3653 :
3654 else
3655 rm -rf conftest*
3656 continue
3657 fi
3658 rm -f conftest*
3659 cat > conftest.c <<EOF
3660 #include <$h>
3661 extern char**** getdtablesize(char****, int****);
3662 main() { return 0; }
3663 EOF
3664 if eval $ac_compile >/dev/null 2>&1; then
3665 rm -f conftest*
3666 else
3667 rm -f conftest*
3668 ac_need=0
3669 break
3670 fi
3671
3672 else
3673 echo "$ac_err" >&5
3674 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3676 fi
3677 rm -f conftest*
3678 done
3679 if test $ac_need = 1; then
3680 name=NEED_`echo getdtablesize | tr '[a-z]' '[A-Z]'`_PROTO
3681 cat >> confdefs.h <<EOF
3682 #define $name 1
3683 EOF
3684
3685 echo "$ac_t""ABSENT" 1>&6
3686 else
3687 echo "$ac_t""present" 1>&6
3688 fi
3689
3690 echo $ac_n "checking for getpagesize prototype""... $ac_c" 1>&6
3691 echo "configure:3692: checking for getpagesize prototype" >&5
3692 ac_need=1
3693 for h in stdlib.h unistd.h; do
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 #include <$h>
3698 EOF
3699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3700 { (eval echo configure:3701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3701 ac_err=`grep -v '^ *+' conftest.out`
3702 if test -z "$ac_err"; then
3703 rm -rf conftest*
3704 echo "#include \"confdefs.h\"
3705 #include <$h>" > conftest.c
3706 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3707 if egrep "getpagesize[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3708 :
3709 else
3710 rm -rf conftest*
3711 continue
3712 fi
3713 rm -f conftest*
3714 cat > conftest.c <<EOF
3715 #include <$h>
3716 extern char**** getpagesize(char****, int****);
3717 main() { return 0; }
3718 EOF
3719 if eval $ac_compile >/dev/null 2>&1; then
3720 rm -f conftest*
3721 else
3722 rm -f conftest*
3723 ac_need=0
3724 break
3725 fi
3726
3727 else
3728 echo "$ac_err" >&5
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3731 fi
3732 rm -f conftest*
3733 done
3734 if test $ac_need = 1; then
3735 name=NEED_`echo getpagesize | tr '[a-z]' '[A-Z]'`_PROTO
3736 cat >> confdefs.h <<EOF
3737 #define $name 1
3738 EOF
3739
3740 echo "$ac_t""ABSENT" 1>&6
3741 else
3742 echo "$ac_t""present" 1>&6
3743 fi
3744
3745 echo $ac_n "checking for getrusage prototype""... $ac_c" 1>&6
3746 echo "configure:3747: checking for getrusage prototype" >&5
3747 ac_need=1
3748 for h in sys/resource.h sys/rusage.h; do
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <$h>
3753 EOF
3754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3755 { (eval echo configure:3756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3756 ac_err=`grep -v '^ *+' conftest.out`
3757 if test -z "$ac_err"; then
3758 rm -rf conftest*
3759 echo "#include \"confdefs.h\"
3760 #include <$h>" > conftest.c
3761 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3762 if egrep "getrusage[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3763 :
3764 else
3765 rm -rf conftest*
3766 continue
3767 fi
3768 rm -f conftest*
3769 cat > conftest.c <<EOF
3770 #include <$h>
3771 extern char**** getrusage(char****, int****);
3772 main() { return 0; }
3773 EOF
3774 if eval $ac_compile >/dev/null 2>&1; then
3775 rm -f conftest*
3776 else
3777 rm -f conftest*
3778 ac_need=0
3779 break
3780 fi
3781
3782 else
3783 echo "$ac_err" >&5
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3786 fi
3787 rm -f conftest*
3788 done
3789 if test $ac_need = 1; then
3790 name=NEED_`echo getrusage | tr '[a-z]' '[A-Z]'`_PROTO
3791 cat >> confdefs.h <<EOF
3792 #define $name 1
3793 EOF
3794
3795 echo "$ac_t""ABSENT" 1>&6
3796 else
3797 echo "$ac_t""present" 1>&6
3798 fi
3799
3800 echo $ac_n "checking for getsockname prototype""... $ac_c" 1>&6
3801 echo "configure:3802: checking for getsockname prototype" >&5
3802 ac_need=1
3803 for h in sys/socket.h; do
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3807 #include <$h>
3808 EOF
3809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3810 { (eval echo configure:3811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3811 ac_err=`grep -v '^ *+' conftest.out`
3812 if test -z "$ac_err"; then
3813 rm -rf conftest*
3814 echo "#include \"confdefs.h\"
3815 #include <$h>" > conftest.c
3816 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3817 if egrep "getsockname[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3818 :
3819 else
3820 rm -rf conftest*
3821 continue
3822 fi
3823 rm -f conftest*
3824 cat > conftest.c <<EOF
3825 #include <$h>
3826 extern char**** getsockname(char****, int****);
3827 main() { return 0; }
3828 EOF
3829 if eval $ac_compile >/dev/null 2>&1; then
3830 rm -f conftest*
3831 else
3832 rm -f conftest*
3833 ac_need=0
3834 break
3835 fi
3836
3837 else
3838 echo "$ac_err" >&5
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3841 fi
3842 rm -f conftest*
3843 done
3844 if test $ac_need = 1; then
3845 name=NEED_`echo getsockname | tr '[a-z]' '[A-Z]'`_PROTO
3846 cat >> confdefs.h <<EOF
3847 #define $name 1
3848 EOF
3849
3850 echo "$ac_t""ABSENT" 1>&6
3851 else
3852 echo "$ac_t""present" 1>&6
3853 fi
3854
3855 echo $ac_n "checking for gettimeofday prototype""... $ac_c" 1>&6
3856 echo "configure:3857: checking for gettimeofday prototype" >&5
3857 ac_need=1
3858 for h in sys/time.h; do
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 #include <$h>
3863 EOF
3864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3865 { (eval echo configure:3866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3866 ac_err=`grep -v '^ *+' conftest.out`
3867 if test -z "$ac_err"; then
3868 rm -rf conftest*
3869 echo "#include \"confdefs.h\"
3870 #include <$h>" > conftest.c
3871 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3872 if egrep "gettimeofday[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3873 :
3874 else
3875 rm -rf conftest*
3876 continue
3877 fi
3878 rm -f conftest*
3879 cat > conftest.c <<EOF
3880 #include <$h>
3881 extern char**** gettimeofday(char****, int****);
3882 main() { return 0; }
3883 EOF
3884 if eval $ac_compile >/dev/null 2>&1; then
3885 rm -f conftest*
3886 else
3887 rm -f conftest*
3888 ac_need=0
3889 break
3890 fi
3891
3892 else
3893 echo "$ac_err" >&5
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3896 fi
3897 rm -f conftest*
3898 done
3899 if test $ac_need = 1; then
3900 name=NEED_`echo gettimeofday | tr '[a-z]' '[A-Z]'`_PROTO
3901 cat >> confdefs.h <<EOF
3902 #define $name 1
3903 EOF
3904
3905 echo "$ac_t""ABSENT" 1>&6
3906 else
3907 echo "$ac_t""present" 1>&6
3908 fi
3909
3910 echo $ac_n "checking for ioctl prototype""... $ac_c" 1>&6
3911 echo "configure:3912: checking for ioctl prototype" >&5
3912 ac_need=1
3913 for h in unistd.h sys/ioctl.h; do
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 #include <$h>
3918 EOF
3919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3920 { (eval echo configure:3921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3921 ac_err=`grep -v '^ *+' conftest.out`
3922 if test -z "$ac_err"; then
3923 rm -rf conftest*
3924 echo "#include \"confdefs.h\"
3925 #include <$h>" > conftest.c
3926 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3927 if egrep "ioctl[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3928 :
3929 else
3930 rm -rf conftest*
3931 continue
3932 fi
3933 rm -f conftest*
3934 cat > conftest.c <<EOF
3935 #include <$h>
3936 extern char**** ioctl(char****, int****);
3937 main() { return 0; }
3938 EOF
3939 if eval $ac_compile >/dev/null 2>&1; then
3940 rm -f conftest*
3941 else
3942 rm -f conftest*
3943 ac_need=0
3944 break
3945 fi
3946
3947 else
3948 echo "$ac_err" >&5
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3951 fi
3952 rm -f conftest*
3953 done
3954 if test $ac_need = 1; then
3955 name=NEED_`echo ioctl | tr '[a-z]' '[A-Z]'`_PROTO
3956 cat >> confdefs.h <<EOF
3957 #define $name 1
3958 EOF
3959
3960 echo "$ac_t""ABSENT" 1>&6
3961 else
3962 echo "$ac_t""present" 1>&6
3963 fi
3964
3965 echo $ac_n "checking for listen prototype""... $ac_c" 1>&6
3966 echo "configure:3967: checking for listen prototype" >&5
3967 ac_need=1
3968 for h in sys/socket.h; do
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 #include <$h>
3973 EOF
3974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3975 { (eval echo configure:3976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3976 ac_err=`grep -v '^ *+' conftest.out`
3977 if test -z "$ac_err"; then
3978 rm -rf conftest*
3979 echo "#include \"confdefs.h\"
3980 #include <$h>" > conftest.c
3981 eval "$ac_cpp conftest.c > conftest.out 2>&1"
3982 if egrep "listen[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
3983 :
3984 else
3985 rm -rf conftest*
3986 continue
3987 fi
3988 rm -f conftest*
3989 cat > conftest.c <<EOF
3990 #include <$h>
3991 extern char**** listen(char****, int****);
3992 main() { return 0; }
3993 EOF
3994 if eval $ac_compile >/dev/null 2>&1; then
3995 rm -f conftest*
3996 else
3997 rm -f conftest*
3998 ac_need=0
3999 break
4000 fi
4001
4002 else
4003 echo "$ac_err" >&5
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 fi
4007 rm -f conftest*
4008 done
4009 if test $ac_need = 1; then
4010 name=NEED_`echo listen | tr '[a-z]' '[A-Z]'`_PROTO
4011 cat >> confdefs.h <<EOF
4012 #define $name 1
4013 EOF
4014
4015 echo "$ac_t""ABSENT" 1>&6
4016 else
4017 echo "$ac_t""present" 1>&6
4018 fi
4019
4020 echo $ac_n "checking for malloc prototype""... $ac_c" 1>&6
4021 echo "configure:4022: checking for malloc prototype" >&5
4022 ac_need=1
4023 for h in stdlib.h; do
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 #include <$h>
4028 EOF
4029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4030 { (eval echo configure:4031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4031 ac_err=`grep -v '^ *+' conftest.out`
4032 if test -z "$ac_err"; then
4033 rm -rf conftest*
4034 echo "#include \"confdefs.h\"
4035 #include <$h>" > conftest.c
4036 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4037 if egrep "malloc[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4038 :
4039 else
4040 rm -rf conftest*
4041 continue
4042 fi
4043 rm -f conftest*
4044 cat > conftest.c <<EOF
4045 #include <$h>
4046 extern char**** malloc(char****, int****);
4047 main() { return 0; }
4048 EOF
4049 if eval $ac_compile >/dev/null 2>&1; then
4050 rm -f conftest*
4051 else
4052 rm -f conftest*
4053 ac_need=0
4054 break
4055 fi
4056
4057 else
4058 echo "$ac_err" >&5
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 fi
4062 rm -f conftest*
4063 done
4064 if test $ac_need = 1; then
4065 name=NEED_`echo malloc | tr '[a-z]' '[A-Z]'`_PROTO
4066 cat >> confdefs.h <<EOF
4067 #define $name 1
4068 EOF
4069
4070 echo "$ac_t""ABSENT" 1>&6
4071 else
4072 echo "$ac_t""present" 1>&6
4073 fi
4074
4075 echo $ac_n "checking for memmove prototype""... $ac_c" 1>&6
4076 echo "configure:4077: checking for memmove prototype" >&5
4077 ac_need=1
4078 for h in string.h; do
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4082 #include <$h>
4083 EOF
4084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4085 { (eval echo configure:4086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4086 ac_err=`grep -v '^ *+' conftest.out`
4087 if test -z "$ac_err"; then
4088 rm -rf conftest*
4089 echo "#include \"confdefs.h\"
4090 #include <$h>" > conftest.c
4091 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4092 if egrep "memmove[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4093 :
4094 else
4095 rm -rf conftest*
4096 continue
4097 fi
4098 rm -f conftest*
4099 cat > conftest.c <<EOF
4100 #include <$h>
4101 extern char**** memmove(char****, int****);
4102 main() { return 0; }
4103 EOF
4104 if eval $ac_compile >/dev/null 2>&1; then
4105 rm -f conftest*
4106 else
4107 rm -f conftest*
4108 ac_need=0
4109 break
4110 fi
4111
4112 else
4113 echo "$ac_err" >&5
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4116 fi
4117 rm -f conftest*
4118 done
4119 if test $ac_need = 1; then
4120 name=NEED_`echo memmove | tr '[a-z]' '[A-Z]'`_PROTO
4121 cat >> confdefs.h <<EOF
4122 #define $name 1
4123 EOF
4124
4125 echo "$ac_t""ABSENT" 1>&6
4126 else
4127 echo "$ac_t""present" 1>&6
4128 fi
4129
4130 echo $ac_n "checking for memset prototype""... $ac_c" 1>&6
4131 echo "configure:4132: checking for memset prototype" >&5
4132 ac_need=1
4133 for h in memory.h string.h; do
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 #include <$h>
4138 EOF
4139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4140 { (eval echo configure:4141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4141 ac_err=`grep -v '^ *+' conftest.out`
4142 if test -z "$ac_err"; then
4143 rm -rf conftest*
4144 echo "#include \"confdefs.h\"
4145 #include <$h>" > conftest.c
4146 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4147 if egrep "memset[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4148 :
4149 else
4150 rm -rf conftest*
4151 continue
4152 fi
4153 rm -f conftest*
4154 cat > conftest.c <<EOF
4155 #include <$h>
4156 extern char**** memset(char****, int****);
4157 main() { return 0; }
4158 EOF
4159 if eval $ac_compile >/dev/null 2>&1; then
4160 rm -f conftest*
4161 else
4162 rm -f conftest*
4163 ac_need=0
4164 break
4165 fi
4166
4167 else
4168 echo "$ac_err" >&5
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 fi
4172 rm -f conftest*
4173 done
4174 if test $ac_need = 1; then
4175 name=NEED_`echo memset | tr '[a-z]' '[A-Z]'`_PROTO
4176 cat >> confdefs.h <<EOF
4177 #define $name 1
4178 EOF
4179
4180 echo "$ac_t""ABSENT" 1>&6
4181 else
4182 echo "$ac_t""present" 1>&6
4183 fi
4184
4185 echo $ac_n "checking for printf prototype""... $ac_c" 1>&6
4186 echo "configure:4187: checking for printf prototype" >&5
4187 ac_need=1
4188 for h in stdio.h; do
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4192 #include <$h>
4193 EOF
4194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4195 { (eval echo configure:4196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4196 ac_err=`grep -v '^ *+' conftest.out`
4197 if test -z "$ac_err"; then
4198 rm -rf conftest*
4199 echo "#include \"confdefs.h\"
4200 #include <$h>" > conftest.c
4201 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4202 if egrep "printf[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4203 :
4204 else
4205 rm -rf conftest*
4206 continue
4207 fi
4208 rm -f conftest*
4209 cat > conftest.c <<EOF
4210 #include <$h>
4211 extern char**** printf(char****, int****);
4212 main() { return 0; }
4213 EOF
4214 if eval $ac_compile >/dev/null 2>&1; then
4215 rm -f conftest*
4216 else
4217 rm -f conftest*
4218 ac_need=0
4219 break
4220 fi
4221
4222 else
4223 echo "$ac_err" >&5
4224 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4226 fi
4227 rm -f conftest*
4228 done
4229 if test $ac_need = 1; then
4230 name=NEED_`echo printf | tr '[a-z]' '[A-Z]'`_PROTO
4231 cat >> confdefs.h <<EOF
4232 #define $name 1
4233 EOF
4234
4235 echo "$ac_t""ABSENT" 1>&6
4236 else
4237 echo "$ac_t""present" 1>&6
4238 fi
4239
4240 echo $ac_n "checking for puts prototype""... $ac_c" 1>&6
4241 echo "configure:4242: checking for puts prototype" >&5
4242 ac_need=1
4243 for h in stdio.h; do
4244 cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4247 #include <$h>
4248 EOF
4249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4250 { (eval echo configure:4251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4251 ac_err=`grep -v '^ *+' conftest.out`
4252 if test -z "$ac_err"; then
4253 rm -rf conftest*
4254 echo "#include \"confdefs.h\"
4255 #include <$h>" > conftest.c
4256 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4257 if egrep "puts[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4258 :
4259 else
4260 rm -rf conftest*
4261 continue
4262 fi
4263 rm -f conftest*
4264 cat > conftest.c <<EOF
4265 #include <$h>
4266 extern char**** puts(char****, int****);
4267 main() { return 0; }
4268 EOF
4269 if eval $ac_compile >/dev/null 2>&1; then
4270 rm -f conftest*
4271 else
4272 rm -f conftest*
4273 ac_need=0
4274 break
4275 fi
4276
4277 else
4278 echo "$ac_err" >&5
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4281 fi
4282 rm -f conftest*
4283 done
4284 if test $ac_need = 1; then
4285 name=NEED_`echo puts | tr '[a-z]' '[A-Z]'`_PROTO
4286 cat >> confdefs.h <<EOF
4287 #define $name 1
4288 EOF
4289
4290 echo "$ac_t""ABSENT" 1>&6
4291 else
4292 echo "$ac_t""present" 1>&6
4293 fi
4294
4295 echo $ac_n "checking for srand48 prototype""... $ac_c" 1>&6
4296 echo "configure:4297: checking for srand48 prototype" >&5
4297 ac_need=1
4298 for h in math.h stdlib.h; do
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 #include <$h>
4303 EOF
4304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4305 { (eval echo configure:4306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4306 ac_err=`grep -v '^ *+' conftest.out`
4307 if test -z "$ac_err"; then
4308 rm -rf conftest*
4309 echo "#include \"confdefs.h\"
4310 #include <$h>" > conftest.c
4311 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4312 if egrep "srand48[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4313 :
4314 else
4315 rm -rf conftest*
4316 continue
4317 fi
4318 rm -f conftest*
4319 cat > conftest.c <<EOF
4320 #include <$h>
4321 extern char**** srand48(char****, int****);
4322 main() { return 0; }
4323 EOF
4324 if eval $ac_compile >/dev/null 2>&1; then
4325 rm -f conftest*
4326 else
4327 rm -f conftest*
4328 ac_need=0
4329 break
4330 fi
4331
4332 else
4333 echo "$ac_err" >&5
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 fi
4337 rm -f conftest*
4338 done
4339 if test $ac_need = 1; then
4340 name=NEED_`echo srand48 | tr '[a-z]' '[A-Z]'`_PROTO
4341 cat >> confdefs.h <<EOF
4342 #define $name 1
4343 EOF
4344
4345 echo "$ac_t""ABSENT" 1>&6
4346 else
4347 echo "$ac_t""present" 1>&6
4348 fi
4349
4350 echo $ac_n "checking for drand48 prototype""... $ac_c" 1>&6
4351 echo "configure:4352: checking for drand48 prototype" >&5
4352 ac_need=1
4353 for h in math.h stdlib.h; do
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 #include <$h>
4358 EOF
4359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4360 { (eval echo configure:4361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4361 ac_err=`grep -v '^ *+' conftest.out`
4362 if test -z "$ac_err"; then
4363 rm -rf conftest*
4364 echo "#include \"confdefs.h\"
4365 #include <$h>" > conftest.c
4366 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4367 if egrep "drand48[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4368 :
4369 else
4370 rm -rf conftest*
4371 continue
4372 fi
4373 rm -f conftest*
4374 cat > conftest.c <<EOF
4375 #include <$h>
4376 extern char**** drand48(char****, int****);
4377 main() { return 0; }
4378 EOF
4379 if eval $ac_compile >/dev/null 2>&1; then
4380 rm -f conftest*
4381 else
4382 rm -f conftest*
4383 ac_need=0
4384 break
4385 fi
4386
4387 else
4388 echo "$ac_err" >&5
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 fi
4392 rm -f conftest*
4393 done
4394 if test $ac_need = 1; then
4395 name=NEED_`echo drand48 | tr '[a-z]' '[A-Z]'`_PROTO
4396 cat >> confdefs.h <<EOF
4397 #define $name 1
4398 EOF
4399
4400 echo "$ac_t""ABSENT" 1>&6
4401 else
4402 echo "$ac_t""present" 1>&6
4403 fi
4404
4405 echo $ac_n "checking for random prototype""... $ac_c" 1>&6
4406 echo "configure:4407: checking for random prototype" >&5
4407 ac_need=1
4408 for h in math.h stdlib.h; do
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 #include <$h>
4413 EOF
4414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4415 { (eval echo configure:4416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4416 ac_err=`grep -v '^ *+' conftest.out`
4417 if test -z "$ac_err"; then
4418 rm -rf conftest*
4419 echo "#include \"confdefs.h\"
4420 #include <$h>" > conftest.c
4421 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4422 if egrep "random[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4423 :
4424 else
4425 rm -rf conftest*
4426 continue
4427 fi
4428 rm -f conftest*
4429 cat > conftest.c <<EOF
4430 #include <$h>
4431 extern char**** random(char****, int****);
4432 main() { return 0; }
4433 EOF
4434 if eval $ac_compile >/dev/null 2>&1; then
4435 rm -f conftest*
4436 else
4437 rm -f conftest*
4438 ac_need=0
4439 break
4440 fi
4441
4442 else
4443 echo "$ac_err" >&5
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 fi
4447 rm -f conftest*
4448 done
4449 if test $ac_need = 1; then
4450 name=NEED_`echo random | tr '[a-z]' '[A-Z]'`_PROTO
4451 cat >> confdefs.h <<EOF
4452 #define $name 1
4453 EOF
4454
4455 echo "$ac_t""ABSENT" 1>&6
4456 else
4457 echo "$ac_t""present" 1>&6
4458 fi
4459
4460 echo $ac_n "checking for srandom prototype""... $ac_c" 1>&6
4461 echo "configure:4462: checking for srandom prototype" >&5
4462 ac_need=1
4463 for h in math.h stdlib.h; do
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 #include <$h>
4468 EOF
4469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4470 { (eval echo configure:4471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4471 ac_err=`grep -v '^ *+' conftest.out`
4472 if test -z "$ac_err"; then
4473 rm -rf conftest*
4474 echo "#include \"confdefs.h\"
4475 #include <$h>" > conftest.c
4476 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4477 if egrep "srandom[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4478 :
4479 else
4480 rm -rf conftest*
4481 continue
4482 fi
4483 rm -f conftest*
4484 cat > conftest.c <<EOF
4485 #include <$h>
4486 extern char**** srandom(char****, int****);
4487 main() { return 0; }
4488 EOF
4489 if eval $ac_compile >/dev/null 2>&1; then
4490 rm -f conftest*
4491 else
4492 rm -f conftest*
4493 ac_need=0
4494 break
4495 fi
4496
4497 else
4498 echo "$ac_err" >&5
4499 echo "configure: failed program was:" >&5
4500 cat conftest.$ac_ext >&5
4501 fi
4502 rm -f conftest*
4503 done
4504 if test $ac_need = 1; then
4505 name=NEED_`echo srandom | tr '[a-z]' '[A-Z]'`_PROTO
4506 cat >> confdefs.h <<EOF
4507 #define $name 1
4508 EOF
4509
4510 echo "$ac_t""ABSENT" 1>&6
4511 else
4512 echo "$ac_t""present" 1>&6
4513 fi
4514
4515 echo $ac_n "checking for read prototype""... $ac_c" 1>&6
4516 echo "configure:4517: checking for read prototype" >&5
4517 ac_need=1
4518 for h in unistd.h; do
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 #include <$h>
4523 EOF
4524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4525 { (eval echo configure:4526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4526 ac_err=`grep -v '^ *+' conftest.out`
4527 if test -z "$ac_err"; then
4528 rm -rf conftest*
4529 echo "#include \"confdefs.h\"
4530 #include <$h>" > conftest.c
4531 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4532 if egrep "read[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4533 :
4534 else
4535 rm -rf conftest*
4536 continue
4537 fi
4538 rm -f conftest*
4539 cat > conftest.c <<EOF
4540 #include <$h>
4541 extern char**** read(char****, int****);
4542 main() { return 0; }
4543 EOF
4544 if eval $ac_compile >/dev/null 2>&1; then
4545 rm -f conftest*
4546 else
4547 rm -f conftest*
4548 ac_need=0
4549 break
4550 fi
4551
4552 else
4553 echo "$ac_err" >&5
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 fi
4557 rm -f conftest*
4558 done
4559 if test $ac_need = 1; then
4560 name=NEED_`echo read | tr '[a-z]' '[A-Z]'`_PROTO
4561 cat >> confdefs.h <<EOF
4562 #define $name 1
4563 EOF
4564
4565 echo "$ac_t""ABSENT" 1>&6
4566 else
4567 echo "$ac_t""present" 1>&6
4568 fi
4569
4570 echo $ac_n "checking for realloc prototype""... $ac_c" 1>&6
4571 echo "configure:4572: checking for realloc prototype" >&5
4572 ac_need=1
4573 for h in stdlib.h; do
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 #include <$h>
4578 EOF
4579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4580 { (eval echo configure:4581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4581 ac_err=`grep -v '^ *+' conftest.out`
4582 if test -z "$ac_err"; then
4583 rm -rf conftest*
4584 echo "#include \"confdefs.h\"
4585 #include <$h>" > conftest.c
4586 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4587 if egrep "realloc[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4588 :
4589 else
4590 rm -rf conftest*
4591 continue
4592 fi
4593 rm -f conftest*
4594 cat > conftest.c <<EOF
4595 #include <$h>
4596 extern char**** realloc(char****, int****);
4597 main() { return 0; }
4598 EOF
4599 if eval $ac_compile >/dev/null 2>&1; then
4600 rm -f conftest*
4601 else
4602 rm -f conftest*
4603 ac_need=0
4604 break
4605 fi
4606
4607 else
4608 echo "$ac_err" >&5
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 fi
4612 rm -f conftest*
4613 done
4614 if test $ac_need = 1; then
4615 name=NEED_`echo realloc | tr '[a-z]' '[A-Z]'`_PROTO
4616 cat >> confdefs.h <<EOF
4617 #define $name 1
4618 EOF
4619
4620 echo "$ac_t""ABSENT" 1>&6
4621 else
4622 echo "$ac_t""present" 1>&6
4623 fi
4624
4625 echo $ac_n "checking for recvfrom prototype""... $ac_c" 1>&6
4626 echo "configure:4627: checking for recvfrom prototype" >&5
4627 ac_need=1
4628 for h in sys/socket.h; do
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <$h>
4633 EOF
4634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err=`grep -v '^ *+' conftest.out`
4637 if test -z "$ac_err"; then
4638 rm -rf conftest*
4639 echo "#include \"confdefs.h\"
4640 #include <$h>" > conftest.c
4641 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4642 if egrep "recvfrom[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4643 :
4644 else
4645 rm -rf conftest*
4646 continue
4647 fi
4648 rm -f conftest*
4649 cat > conftest.c <<EOF
4650 #include <$h>
4651 extern char**** recvfrom(char****, int****);
4652 main() { return 0; }
4653 EOF
4654 if eval $ac_compile >/dev/null 2>&1; then
4655 rm -f conftest*
4656 else
4657 rm -f conftest*
4658 ac_need=0
4659 break
4660 fi
4661
4662 else
4663 echo "$ac_err" >&5
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 fi
4667 rm -f conftest*
4668 done
4669 if test $ac_need = 1; then
4670 name=NEED_`echo recvfrom | tr '[a-z]' '[A-Z]'`_PROTO
4671 cat >> confdefs.h <<EOF
4672 #define $name 1
4673 EOF
4674
4675 echo "$ac_t""ABSENT" 1>&6
4676 else
4677 echo "$ac_t""present" 1>&6
4678 fi
4679
4680 echo $ac_n "checking for remove prototype""... $ac_c" 1>&6
4681 echo "configure:4682: checking for remove prototype" >&5
4682 ac_need=1
4683 for h in stdio.h; do
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 #include <$h>
4688 EOF
4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4691 ac_err=`grep -v '^ *+' conftest.out`
4692 if test -z "$ac_err"; then
4693 rm -rf conftest*
4694 echo "#include \"confdefs.h\"
4695 #include <$h>" > conftest.c
4696 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4697 if egrep "remove[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4698 :
4699 else
4700 rm -rf conftest*
4701 continue
4702 fi
4703 rm -f conftest*
4704 cat > conftest.c <<EOF
4705 #include <$h>
4706 extern char**** remove(char****, int****);
4707 main() { return 0; }
4708 EOF
4709 if eval $ac_compile >/dev/null 2>&1; then
4710 rm -f conftest*
4711 else
4712 rm -f conftest*
4713 ac_need=0
4714 break
4715 fi
4716
4717 else
4718 echo "$ac_err" >&5
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 fi
4722 rm -f conftest*
4723 done
4724 if test $ac_need = 1; then
4725 name=NEED_`echo remove | tr '[a-z]' '[A-Z]'`_PROTO
4726 cat >> confdefs.h <<EOF
4727 #define $name 1
4728 EOF
4729
4730 echo "$ac_t""ABSENT" 1>&6
4731 else
4732 echo "$ac_t""present" 1>&6
4733 fi
4734
4735 echo $ac_n "checking for rename prototype""... $ac_c" 1>&6
4736 echo "configure:4737: checking for rename prototype" >&5
4737 ac_need=1
4738 for h in stdio.h unistd.h; do
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 #include <$h>
4743 EOF
4744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4745 { (eval echo configure:4746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4746 ac_err=`grep -v '^ *+' conftest.out`
4747 if test -z "$ac_err"; then
4748 rm -rf conftest*
4749 echo "#include \"confdefs.h\"
4750 #include <$h>" > conftest.c
4751 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4752 if egrep "rename[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4753 :
4754 else
4755 rm -rf conftest*
4756 continue
4757 fi
4758 rm -f conftest*
4759 cat > conftest.c <<EOF
4760 #include <$h>
4761 extern char**** rename(char****, int****);
4762 main() { return 0; }
4763 EOF
4764 if eval $ac_compile >/dev/null 2>&1; then
4765 rm -f conftest*
4766 else
4767 rm -f conftest*
4768 ac_need=0
4769 break
4770 fi
4771
4772 else
4773 echo "$ac_err" >&5
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4776 fi
4777 rm -f conftest*
4778 done
4779 if test $ac_need = 1; then
4780 name=NEED_`echo rename | tr '[a-z]' '[A-Z]'`_PROTO
4781 cat >> confdefs.h <<EOF
4782 #define $name 1
4783 EOF
4784
4785 echo "$ac_t""ABSENT" 1>&6
4786 else
4787 echo "$ac_t""present" 1>&6
4788 fi
4789
4790 echo $ac_n "checking for rewind prototype""... $ac_c" 1>&6
4791 echo "configure:4792: checking for rewind prototype" >&5
4792 ac_need=1
4793 for h in stdio.h; do
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4797 #include <$h>
4798 EOF
4799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4800 { (eval echo configure:4801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4801 ac_err=`grep -v '^ *+' conftest.out`
4802 if test -z "$ac_err"; then
4803 rm -rf conftest*
4804 echo "#include \"confdefs.h\"
4805 #include <$h>" > conftest.c
4806 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4807 if egrep "rewind[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4808 :
4809 else
4810 rm -rf conftest*
4811 continue
4812 fi
4813 rm -f conftest*
4814 cat > conftest.c <<EOF
4815 #include <$h>
4816 extern char**** rewind(char****, int****);
4817 main() { return 0; }
4818 EOF
4819 if eval $ac_compile >/dev/null 2>&1; then
4820 rm -f conftest*
4821 else
4822 rm -f conftest*
4823 ac_need=0
4824 break
4825 fi
4826
4827 else
4828 echo "$ac_err" >&5
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4831 fi
4832 rm -f conftest*
4833 done
4834 if test $ac_need = 1; then
4835 name=NEED_`echo rewind | tr '[a-z]' '[A-Z]'`_PROTO
4836 cat >> confdefs.h <<EOF
4837 #define $name 1
4838 EOF
4839
4840 echo "$ac_t""ABSENT" 1>&6
4841 else
4842 echo "$ac_t""present" 1>&6
4843 fi
4844
4845 echo $ac_n "checking for sbrk prototype""... $ac_c" 1>&6
4846 echo "configure:4847: checking for sbrk prototype" >&5
4847 ac_need=1
4848 for h in unistd.h; do
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 #include <$h>
4853 EOF
4854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4855 { (eval echo configure:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4856 ac_err=`grep -v '^ *+' conftest.out`
4857 if test -z "$ac_err"; then
4858 rm -rf conftest*
4859 echo "#include \"confdefs.h\"
4860 #include <$h>" > conftest.c
4861 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4862 if egrep "sbrk[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4863 :
4864 else
4865 rm -rf conftest*
4866 continue
4867 fi
4868 rm -f conftest*
4869 cat > conftest.c <<EOF
4870 #include <$h>
4871 extern char**** sbrk(char****, int****);
4872 main() { return 0; }
4873 EOF
4874 if eval $ac_compile >/dev/null 2>&1; then
4875 rm -f conftest*
4876 else
4877 rm -f conftest*
4878 ac_need=0
4879 break
4880 fi
4881
4882 else
4883 echo "$ac_err" >&5
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 fi
4887 rm -f conftest*
4888 done
4889 if test $ac_need = 1; then
4890 name=NEED_`echo sbrk | tr '[a-z]' '[A-Z]'`_PROTO
4891 cat >> confdefs.h <<EOF
4892 #define $name 1
4893 EOF
4894
4895 echo "$ac_t""ABSENT" 1>&6
4896 else
4897 echo "$ac_t""present" 1>&6
4898 fi
4899
4900 echo $ac_n "checking for select prototype""... $ac_c" 1>&6
4901 echo "configure:4902: checking for select prototype" >&5
4902 ac_need=1
4903 for h in unistd.h sys/select.h sys/time.h; do
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 #include <$h>
4908 EOF
4909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4910 { (eval echo configure:4911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4911 ac_err=`grep -v '^ *+' conftest.out`
4912 if test -z "$ac_err"; then
4913 rm -rf conftest*
4914 echo "#include \"confdefs.h\"
4915 #include <$h>" > conftest.c
4916 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4917 if egrep "select[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4918 :
4919 else
4920 rm -rf conftest*
4921 continue
4922 fi
4923 rm -f conftest*
4924 cat > conftest.c <<EOF
4925 #include <$h>
4926 extern char**** select(char****, int****);
4927 main() { return 0; }
4928 EOF
4929 if eval $ac_compile >/dev/null 2>&1; then
4930 rm -f conftest*
4931 else
4932 rm -f conftest*
4933 ac_need=0
4934 break
4935 fi
4936
4937 else
4938 echo "$ac_err" >&5
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4941 fi
4942 rm -f conftest*
4943 done
4944 if test $ac_need = 1; then
4945 name=NEED_`echo select | tr '[a-z]' '[A-Z]'`_PROTO
4946 cat >> confdefs.h <<EOF
4947 #define $name 1
4948 EOF
4949
4950 echo "$ac_t""ABSENT" 1>&6
4951 else
4952 echo "$ac_t""present" 1>&6
4953 fi
4954
4955 echo $ac_n "checking for sendto prototype""... $ac_c" 1>&6
4956 echo "configure:4957: checking for sendto prototype" >&5
4957 ac_need=1
4958 for h in sys/socket.h; do
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 #include <$h>
4963 EOF
4964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4965 { (eval echo configure:4966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4966 ac_err=`grep -v '^ *+' conftest.out`
4967 if test -z "$ac_err"; then
4968 rm -rf conftest*
4969 echo "#include \"confdefs.h\"
4970 #include <$h>" > conftest.c
4971 eval "$ac_cpp conftest.c > conftest.out 2>&1"
4972 if egrep "sendto[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
4973 :
4974 else
4975 rm -rf conftest*
4976 continue
4977 fi
4978 rm -f conftest*
4979 cat > conftest.c <<EOF
4980 #include <$h>
4981 extern char**** sendto(char****, int****);
4982 main() { return 0; }
4983 EOF
4984 if eval $ac_compile >/dev/null 2>&1; then
4985 rm -f conftest*
4986 else
4987 rm -f conftest*
4988 ac_need=0
4989 break
4990 fi
4991
4992 else
4993 echo "$ac_err" >&5
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 fi
4997 rm -f conftest*
4998 done
4999 if test $ac_need = 1; then
5000 name=NEED_`echo sendto | tr '[a-z]' '[A-Z]'`_PROTO
5001 cat >> confdefs.h <<EOF
5002 #define $name 1
5003 EOF
5004
5005 echo "$ac_t""ABSENT" 1>&6
5006 else
5007 echo "$ac_t""present" 1>&6
5008 fi
5009
5010 echo $ac_n "checking for setsockopt prototype""... $ac_c" 1>&6
5011 echo "configure:5012: checking for setsockopt prototype" >&5
5012 ac_need=1
5013 for h in sys/socket.h; do
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5017 #include <$h>
5018 EOF
5019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5020 { (eval echo configure:5021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5021 ac_err=`grep -v '^ *+' conftest.out`
5022 if test -z "$ac_err"; then
5023 rm -rf conftest*
5024 echo "#include \"confdefs.h\"
5025 #include <$h>" > conftest.c
5026 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5027 if egrep "setsockopt[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5028 :
5029 else
5030 rm -rf conftest*
5031 continue
5032 fi
5033 rm -f conftest*
5034 cat > conftest.c <<EOF
5035 #include <$h>
5036 extern char**** setsockopt(char****, int****);
5037 main() { return 0; }
5038 EOF
5039 if eval $ac_compile >/dev/null 2>&1; then
5040 rm -f conftest*
5041 else
5042 rm -f conftest*
5043 ac_need=0
5044 break
5045 fi
5046
5047 else
5048 echo "$ac_err" >&5
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5051 fi
5052 rm -f conftest*
5053 done
5054 if test $ac_need = 1; then
5055 name=NEED_`echo setsockopt | tr '[a-z]' '[A-Z]'`_PROTO
5056 cat >> confdefs.h <<EOF
5057 #define $name 1
5058 EOF
5059
5060 echo "$ac_t""ABSENT" 1>&6
5061 else
5062 echo "$ac_t""present" 1>&6
5063 fi
5064
5065 echo $ac_n "checking for shutdown prototype""... $ac_c" 1>&6
5066 echo "configure:5067: checking for shutdown prototype" >&5
5067 ac_need=1
5068 for h in sys/socket.h; do
5069 cat > conftest.$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5072 #include <$h>
5073 EOF
5074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5075 { (eval echo configure:5076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5076 ac_err=`grep -v '^ *+' conftest.out`
5077 if test -z "$ac_err"; then
5078 rm -rf conftest*
5079 echo "#include \"confdefs.h\"
5080 #include <$h>" > conftest.c
5081 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5082 if egrep "shutdown[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5083 :
5084 else
5085 rm -rf conftest*
5086 continue
5087 fi
5088 rm -f conftest*
5089 cat > conftest.c <<EOF
5090 #include <$h>
5091 extern char**** shutdown(char****, int****);
5092 main() { return 0; }
5093 EOF
5094 if eval $ac_compile >/dev/null 2>&1; then
5095 rm -f conftest*
5096 else
5097 rm -f conftest*
5098 ac_need=0
5099 break
5100 fi
5101
5102 else
5103 echo "$ac_err" >&5
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5106 fi
5107 rm -f conftest*
5108 done
5109 if test $ac_need = 1; then
5110 name=NEED_`echo shutdown | tr '[a-z]' '[A-Z]'`_PROTO
5111 cat >> confdefs.h <<EOF
5112 #define $name 1
5113 EOF
5114
5115 echo "$ac_t""ABSENT" 1>&6
5116 else
5117 echo "$ac_t""present" 1>&6
5118 fi
5119
5120 echo $ac_n "checking for sigaction prototype""... $ac_c" 1>&6
5121 echo "configure:5122: checking for sigaction prototype" >&5
5122 ac_need=1
5123 for h in signal.h; do
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 #include <$h>
5128 EOF
5129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5130 { (eval echo configure:5131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5131 ac_err=`grep -v '^ *+' conftest.out`
5132 if test -z "$ac_err"; then
5133 rm -rf conftest*
5134 echo "#include \"confdefs.h\"
5135 #include <$h>" > conftest.c
5136 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5137 if egrep "sigaction[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5138 :
5139 else
5140 rm -rf conftest*
5141 continue
5142 fi
5143 rm -f conftest*
5144 cat > conftest.c <<EOF
5145 #include <$h>
5146 extern char**** sigaction(char****, int****);
5147 main() { return 0; }
5148 EOF
5149 if eval $ac_compile >/dev/null 2>&1; then
5150 rm -f conftest*
5151 else
5152 rm -f conftest*
5153 ac_need=0
5154 break
5155 fi
5156
5157 else
5158 echo "$ac_err" >&5
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5161 fi
5162 rm -f conftest*
5163 done
5164 if test $ac_need = 1; then
5165 name=NEED_`echo sigaction | tr '[a-z]' '[A-Z]'`_PROTO
5166 cat >> confdefs.h <<EOF
5167 #define $name 1
5168 EOF
5169
5170 echo "$ac_t""ABSENT" 1>&6
5171 else
5172 echo "$ac_t""present" 1>&6
5173 fi
5174
5175 echo $ac_n "checking for sigvec prototype""... $ac_c" 1>&6
5176 echo "configure:5177: checking for sigvec prototype" >&5
5177 ac_need=1
5178 for h in signal.h; do
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5182 #include <$h>
5183 EOF
5184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5185 { (eval echo configure:5186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5186 ac_err=`grep -v '^ *+' conftest.out`
5187 if test -z "$ac_err"; then
5188 rm -rf conftest*
5189 echo "#include \"confdefs.h\"
5190 #include <$h>" > conftest.c
5191 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5192 if egrep "sigvec[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5193 :
5194 else
5195 rm -rf conftest*
5196 continue
5197 fi
5198 rm -f conftest*
5199 cat > conftest.c <<EOF
5200 #include <$h>
5201 extern char**** sigvec(char****, int****);
5202 main() { return 0; }
5203 EOF
5204 if eval $ac_compile >/dev/null 2>&1; then
5205 rm -f conftest*
5206 else
5207 rm -f conftest*
5208 ac_need=0
5209 break
5210 fi
5211
5212 else
5213 echo "$ac_err" >&5
5214 echo "configure: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5216 fi
5217 rm -f conftest*
5218 done
5219 if test $ac_need = 1; then
5220 name=NEED_`echo sigvec | tr '[a-z]' '[A-Z]'`_PROTO
5221 cat >> confdefs.h <<EOF
5222 #define $name 1
5223 EOF
5224
5225 echo "$ac_t""ABSENT" 1>&6
5226 else
5227 echo "$ac_t""present" 1>&6
5228 fi
5229
5230 echo $ac_n "checking for socket prototype""... $ac_c" 1>&6
5231 echo "configure:5232: checking for socket prototype" >&5
5232 ac_need=1
5233 for h in sys/socket.h; do
5234 cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5237 #include <$h>
5238 EOF
5239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5240 { (eval echo configure:5241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5241 ac_err=`grep -v '^ *+' conftest.out`
5242 if test -z "$ac_err"; then
5243 rm -rf conftest*
5244 echo "#include \"confdefs.h\"
5245 #include <$h>" > conftest.c
5246 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5247 if egrep "socket[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5248 :
5249 else
5250 rm -rf conftest*
5251 continue
5252 fi
5253 rm -f conftest*
5254 cat > conftest.c <<EOF
5255 #include <$h>
5256 extern char**** socket(char****, int****);
5257 main() { return 0; }
5258 EOF
5259 if eval $ac_compile >/dev/null 2>&1; then
5260 rm -f conftest*
5261 else
5262 rm -f conftest*
5263 ac_need=0
5264 break
5265 fi
5266
5267 else
5268 echo "$ac_err" >&5
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 fi
5272 rm -f conftest*
5273 done
5274 if test $ac_need = 1; then
5275 name=NEED_`echo socket | tr '[a-z]' '[A-Z]'`_PROTO
5276 cat >> confdefs.h <<EOF
5277 #define $name 1
5278 EOF
5279
5280 echo "$ac_t""ABSENT" 1>&6
5281 else
5282 echo "$ac_t""present" 1>&6
5283 fi
5284
5285 echo $ac_n "checking for sscanf prototype""... $ac_c" 1>&6
5286 echo "configure:5287: checking for sscanf prototype" >&5
5287 ac_need=1
5288 for h in stdio.h; do
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5292 #include <$h>
5293 EOF
5294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5295 { (eval echo configure:5296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5296 ac_err=`grep -v '^ *+' conftest.out`
5297 if test -z "$ac_err"; then
5298 rm -rf conftest*
5299 echo "#include \"confdefs.h\"
5300 #include <$h>" > conftest.c
5301 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5302 if egrep "sscanf[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5303 :
5304 else
5305 rm -rf conftest*
5306 continue
5307 fi
5308 rm -f conftest*
5309 cat > conftest.c <<EOF
5310 #include <$h>
5311 extern char**** sscanf(char****, int****);
5312 main() { return 0; }
5313 EOF
5314 if eval $ac_compile >/dev/null 2>&1; then
5315 rm -f conftest*
5316 else
5317 rm -f conftest*
5318 ac_need=0
5319 break
5320 fi
5321
5322 else
5323 echo "$ac_err" >&5
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 fi
5327 rm -f conftest*
5328 done
5329 if test $ac_need = 1; then
5330 name=NEED_`echo sscanf | tr '[a-z]' '[A-Z]'`_PROTO
5331 cat >> confdefs.h <<EOF
5332 #define $name 1
5333 EOF
5334
5335 echo "$ac_t""ABSENT" 1>&6
5336 else
5337 echo "$ac_t""present" 1>&6
5338 fi
5339
5340 echo $ac_n "checking for strcasecmp prototype""... $ac_c" 1>&6
5341 echo "configure:5342: checking for strcasecmp prototype" >&5
5342 ac_need=1
5343 for h in string.h; do
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 #include <$h>
5348 EOF
5349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5350 { (eval echo configure:5351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5351 ac_err=`grep -v '^ *+' conftest.out`
5352 if test -z "$ac_err"; then
5353 rm -rf conftest*
5354 echo "#include \"confdefs.h\"
5355 #include <$h>" > conftest.c
5356 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5357 if egrep "strcasecmp[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5358 :
5359 else
5360 rm -rf conftest*
5361 continue
5362 fi
5363 rm -f conftest*
5364 cat > conftest.c <<EOF
5365 #include <$h>
5366 extern char**** strcasecmp(char****, int****);
5367 main() { return 0; }
5368 EOF
5369 if eval $ac_compile >/dev/null 2>&1; then
5370 rm -f conftest*
5371 else
5372 rm -f conftest*
5373 ac_need=0
5374 break
5375 fi
5376
5377 else
5378 echo "$ac_err" >&5
5379 echo "configure: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 fi
5382 rm -f conftest*
5383 done
5384 if test $ac_need = 1; then
5385 name=NEED_`echo strcasecmp | tr '[a-z]' '[A-Z]'`_PROTO
5386 cat >> confdefs.h <<EOF
5387 #define $name 1
5388 EOF
5389
5390 echo "$ac_t""ABSENT" 1>&6
5391 else
5392 echo "$ac_t""present" 1>&6
5393 fi
5394
5395 echo $ac_n "checking for strdup prototype""... $ac_c" 1>&6
5396 echo "configure:5397: checking for strdup prototype" >&5
5397 ac_need=1
5398 for h in string.h; do
5399 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure"
5401 #include "confdefs.h"
5402 #include <$h>
5403 EOF
5404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5405 { (eval echo configure:5406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5406 ac_err=`grep -v '^ *+' conftest.out`
5407 if test -z "$ac_err"; then
5408 rm -rf conftest*
5409 echo "#include \"confdefs.h\"
5410 #include <$h>" > conftest.c
5411 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5412 if egrep "strdup[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5413 :
5414 else
5415 rm -rf conftest*
5416 continue
5417 fi
5418 rm -f conftest*
5419 cat > conftest.c <<EOF
5420 #include <$h>
5421 extern char**** strdup(char****, int****);
5422 main() { return 0; }
5423 EOF
5424 if eval $ac_compile >/dev/null 2>&1; then
5425 rm -f conftest*
5426 else
5427 rm -f conftest*
5428 ac_need=0
5429 break
5430 fi
5431
5432 else
5433 echo "$ac_err" >&5
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 fi
5437 rm -f conftest*
5438 done
5439 if test $ac_need = 1; then
5440 name=NEED_`echo strdup | tr '[a-z]' '[A-Z]'`_PROTO
5441 cat >> confdefs.h <<EOF
5442 #define $name 1
5443 EOF
5444
5445 echo "$ac_t""ABSENT" 1>&6
5446 else
5447 echo "$ac_t""present" 1>&6
5448 fi
5449
5450 echo $ac_n "checking for strerror prototype""... $ac_c" 1>&6
5451 echo "configure:5452: checking for strerror prototype" >&5
5452 ac_need=1
5453 for h in string.h; do
5454 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 #include <$h>
5458 EOF
5459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5460 { (eval echo configure:5461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5461 ac_err=`grep -v '^ *+' conftest.out`
5462 if test -z "$ac_err"; then
5463 rm -rf conftest*
5464 echo "#include \"confdefs.h\"
5465 #include <$h>" > conftest.c
5466 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5467 if egrep "strerror[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5468 :
5469 else
5470 rm -rf conftest*
5471 continue
5472 fi
5473 rm -f conftest*
5474 cat > conftest.c <<EOF
5475 #include <$h>
5476 extern char**** strerror(char****, int****);
5477 main() { return 0; }
5478 EOF
5479 if eval $ac_compile >/dev/null 2>&1; then
5480 rm -f conftest*
5481 else
5482 rm -f conftest*
5483 ac_need=0
5484 break
5485 fi
5486
5487 else
5488 echo "$ac_err" >&5
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5491 fi
5492 rm -f conftest*
5493 done
5494 if test $ac_need = 1; then
5495 name=NEED_`echo strerror | tr '[a-z]' '[A-Z]'`_PROTO
5496 cat >> confdefs.h <<EOF
5497 #define $name 1
5498 EOF
5499
5500 echo "$ac_t""ABSENT" 1>&6
5501 else
5502 echo "$ac_t""present" 1>&6
5503 fi
5504
5505 echo $ac_n "checking for strftime prototype""... $ac_c" 1>&6
5506 echo "configure:5507: checking for strftime prototype" >&5
5507 ac_need=1
5508 for h in time.h; do
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 #include <$h>
5513 EOF
5514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5515 { (eval echo configure:5516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5516 ac_err=`grep -v '^ *+' conftest.out`
5517 if test -z "$ac_err"; then
5518 rm -rf conftest*
5519 echo "#include \"confdefs.h\"
5520 #include <$h>" > conftest.c
5521 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5522 if egrep "strftime[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5523 :
5524 else
5525 rm -rf conftest*
5526 continue
5527 fi
5528 rm -f conftest*
5529 cat > conftest.c <<EOF
5530 #include <$h>
5531 extern char**** strftime(char****, int****);
5532 main() { return 0; }
5533 EOF
5534 if eval $ac_compile >/dev/null 2>&1; then
5535 rm -f conftest*
5536 else
5537 rm -f conftest*
5538 ac_need=0
5539 break
5540 fi
5541
5542 else
5543 echo "$ac_err" >&5
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5546 fi
5547 rm -f conftest*
5548 done
5549 if test $ac_need = 1; then
5550 name=NEED_`echo strftime | tr '[a-z]' '[A-Z]'`_PROTO
5551 cat >> confdefs.h <<EOF
5552 #define $name 1
5553 EOF
5554
5555 echo "$ac_t""ABSENT" 1>&6
5556 else
5557 echo "$ac_t""present" 1>&6
5558 fi
5559
5560 echo $ac_n "checking for strncasecmp prototype""... $ac_c" 1>&6
5561 echo "configure:5562: checking for strncasecmp prototype" >&5
5562 ac_need=1
5563 for h in string.h; do
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 #include <$h>
5568 EOF
5569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5570 { (eval echo configure:5571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5571 ac_err=`grep -v '^ *+' conftest.out`
5572 if test -z "$ac_err"; then
5573 rm -rf conftest*
5574 echo "#include \"confdefs.h\"
5575 #include <$h>" > conftest.c
5576 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5577 if egrep "strncasecmp[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5578 :
5579 else
5580 rm -rf conftest*
5581 continue
5582 fi
5583 rm -f conftest*
5584 cat > conftest.c <<EOF
5585 #include <$h>
5586 extern char**** strncasecmp(char****, int****);
5587 main() { return 0; }
5588 EOF
5589 if eval $ac_compile >/dev/null 2>&1; then
5590 rm -f conftest*
5591 else
5592 rm -f conftest*
5593 ac_need=0
5594 break
5595 fi
5596
5597 else
5598 echo "$ac_err" >&5
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5601 fi
5602 rm -f conftest*
5603 done
5604 if test $ac_need = 1; then
5605 name=NEED_`echo strncasecmp | tr '[a-z]' '[A-Z]'`_PROTO
5606 cat >> confdefs.h <<EOF
5607 #define $name 1
5608 EOF
5609
5610 echo "$ac_t""ABSENT" 1>&6
5611 else
5612 echo "$ac_t""present" 1>&6
5613 fi
5614
5615 echo $ac_n "checking for sysconf prototype""... $ac_c" 1>&6
5616 echo "configure:5617: checking for sysconf prototype" >&5
5617 ac_need=1
5618 for h in unistd.h; do
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622 #include <$h>
5623 EOF
5624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5625 { (eval echo configure:5626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5626 ac_err=`grep -v '^ *+' conftest.out`
5627 if test -z "$ac_err"; then
5628 rm -rf conftest*
5629 echo "#include \"confdefs.h\"
5630 #include <$h>" > conftest.c
5631 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5632 if egrep "sysconf[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5633 :
5634 else
5635 rm -rf conftest*
5636 continue
5637 fi
5638 rm -f conftest*
5639 cat > conftest.c <<EOF
5640 #include <$h>
5641 extern char**** sysconf(char****, int****);
5642 main() { return 0; }
5643 EOF
5644 if eval $ac_compile >/dev/null 2>&1; then
5645 rm -f conftest*
5646 else
5647 rm -f conftest*
5648 ac_need=0
5649 break
5650 fi
5651
5652 else
5653 echo "$ac_err" >&5
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 fi
5657 rm -f conftest*
5658 done
5659 if test $ac_need = 1; then
5660 name=NEED_`echo sysconf | tr '[a-z]' '[A-Z]'`_PROTO
5661 cat >> confdefs.h <<EOF
5662 #define $name 1
5663 EOF
5664
5665 echo "$ac_t""ABSENT" 1>&6
5666 else
5667 echo "$ac_t""present" 1>&6
5668 fi
5669
5670 echo $ac_n "checking for system prototype""... $ac_c" 1>&6
5671 echo "configure:5672: checking for system prototype" >&5
5672 ac_need=1
5673 for h in stdlib.h; do
5674 cat > conftest.$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5677 #include <$h>
5678 EOF
5679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5680 { (eval echo configure:5681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5681 ac_err=`grep -v '^ *+' conftest.out`
5682 if test -z "$ac_err"; then
5683 rm -rf conftest*
5684 echo "#include \"confdefs.h\"
5685 #include <$h>" > conftest.c
5686 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5687 if egrep "system[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5688 :
5689 else
5690 rm -rf conftest*
5691 continue
5692 fi
5693 rm -f conftest*
5694 cat > conftest.c <<EOF
5695 #include <$h>
5696 extern char**** system(char****, int****);
5697 main() { return 0; }
5698 EOF
5699 if eval $ac_compile >/dev/null 2>&1; then
5700 rm -f conftest*
5701 else
5702 rm -f conftest*
5703 ac_need=0
5704 break
5705 fi
5706
5707 else
5708 echo "$ac_err" >&5
5709 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5711 fi
5712 rm -f conftest*
5713 done
5714 if test $ac_need = 1; then
5715 name=NEED_`echo system | tr '[a-z]' '[A-Z]'`_PROTO
5716 cat >> confdefs.h <<EOF
5717 #define $name 1
5718 EOF
5719
5720 echo "$ac_t""ABSENT" 1>&6
5721 else
5722 echo "$ac_t""present" 1>&6
5723 fi
5724
5725 echo $ac_n "checking for time prototype""... $ac_c" 1>&6
5726 echo "configure:5727: checking for time prototype" >&5
5727 ac_need=1
5728 for h in time.h; do
5729 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5732 #include <$h>
5733 EOF
5734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5735 { (eval echo configure:5736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5736 ac_err=`grep -v '^ *+' conftest.out`
5737 if test -z "$ac_err"; then
5738 rm -rf conftest*
5739 echo "#include \"confdefs.h\"
5740 #include <$h>" > conftest.c
5741 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5742 if egrep "time[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5743 :
5744 else
5745 rm -rf conftest*
5746 continue
5747 fi
5748 rm -f conftest*
5749 cat > conftest.c <<EOF
5750 #include <$h>
5751 extern char**** time(char****, int****);
5752 main() { return 0; }
5753 EOF
5754 if eval $ac_compile >/dev/null 2>&1; then
5755 rm -f conftest*
5756 else
5757 rm -f conftest*
5758 ac_need=0
5759 break
5760 fi
5761
5762 else
5763 echo "$ac_err" >&5
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5766 fi
5767 rm -f conftest*
5768 done
5769 if test $ac_need = 1; then
5770 name=NEED_`echo time | tr '[a-z]' '[A-Z]'`_PROTO
5771 cat >> confdefs.h <<EOF
5772 #define $name 1
5773 EOF
5774
5775 echo "$ac_t""ABSENT" 1>&6
5776 else
5777 echo "$ac_t""present" 1>&6
5778 fi
5779
5780 echo $ac_n "checking for times prototype""... $ac_c" 1>&6
5781 echo "configure:5782: checking for times prototype" >&5
5782 ac_need=1
5783 for h in bsd/libc.h sys/times.h; do
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 #include <$h>
5788 EOF
5789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5790 { (eval echo configure:5791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5791 ac_err=`grep -v '^ *+' conftest.out`
5792 if test -z "$ac_err"; then
5793 rm -rf conftest*
5794 echo "#include \"confdefs.h\"
5795 #include <$h>" > conftest.c
5796 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5797 if egrep "times[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5798 :
5799 else
5800 rm -rf conftest*
5801 continue
5802 fi
5803 rm -f conftest*
5804 cat > conftest.c <<EOF
5805 #include <$h>
5806 extern char**** times(char****, int****);
5807 main() { return 0; }
5808 EOF
5809 if eval $ac_compile >/dev/null 2>&1; then
5810 rm -f conftest*
5811 else
5812 rm -f conftest*
5813 ac_need=0
5814 break
5815 fi
5816
5817 else
5818 echo "$ac_err" >&5
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5821 fi
5822 rm -f conftest*
5823 done
5824 if test $ac_need = 1; then
5825 name=NEED_`echo times | tr '[a-z]' '[A-Z]'`_PROTO
5826 cat >> confdefs.h <<EOF
5827 #define $name 1
5828 EOF
5829
5830 echo "$ac_t""ABSENT" 1>&6
5831 else
5832 echo "$ac_t""present" 1>&6
5833 fi
5834
5835 echo $ac_n "checking for tolower prototype""... $ac_c" 1>&6
5836 echo "configure:5837: checking for tolower prototype" >&5
5837 ac_need=1
5838 for h in ctype.h; do
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 #include <$h>
5843 EOF
5844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5845 { (eval echo configure:5846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5846 ac_err=`grep -v '^ *+' conftest.out`
5847 if test -z "$ac_err"; then
5848 rm -rf conftest*
5849 echo "#include \"confdefs.h\"
5850 #include <$h>" > conftest.c
5851 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5852 if egrep "tolower[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5853 :
5854 else
5855 rm -rf conftest*
5856 continue
5857 fi
5858 rm -f conftest*
5859 cat > conftest.c <<EOF
5860 #include <$h>
5861 extern char**** tolower(char****, int****);
5862 main() { return 0; }
5863 EOF
5864 if eval $ac_compile >/dev/null 2>&1; then
5865 rm -f conftest*
5866 else
5867 rm -f conftest*
5868 ac_need=0
5869 break
5870 fi
5871
5872 else
5873 echo "$ac_err" >&5
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5876 fi
5877 rm -f conftest*
5878 done
5879 if test $ac_need = 1; then
5880 name=NEED_`echo tolower | tr '[a-z]' '[A-Z]'`_PROTO
5881 cat >> confdefs.h <<EOF
5882 #define $name 1
5883 EOF
5884
5885 echo "$ac_t""ABSENT" 1>&6
5886 else
5887 echo "$ac_t""present" 1>&6
5888 fi
5889
5890 echo $ac_n "checking for toupper prototype""... $ac_c" 1>&6
5891 echo "configure:5892: checking for toupper prototype" >&5
5892 ac_need=1
5893 for h in ctype.h; do
5894 cat > conftest.$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5897 #include <$h>
5898 EOF
5899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5900 { (eval echo configure:5901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5901 ac_err=`grep -v '^ *+' conftest.out`
5902 if test -z "$ac_err"; then
5903 rm -rf conftest*
5904 echo "#include \"confdefs.h\"
5905 #include <$h>" > conftest.c
5906 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5907 if egrep "toupper[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5908 :
5909 else
5910 rm -rf conftest*
5911 continue
5912 fi
5913 rm -f conftest*
5914 cat > conftest.c <<EOF
5915 #include <$h>
5916 extern char**** toupper(char****, int****);
5917 main() { return 0; }
5918 EOF
5919 if eval $ac_compile >/dev/null 2>&1; then
5920 rm -f conftest*
5921 else
5922 rm -f conftest*
5923 ac_need=0
5924 break
5925 fi
5926
5927 else
5928 echo "$ac_err" >&5
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5931 fi
5932 rm -f conftest*
5933 done
5934 if test $ac_need = 1; then
5935 name=NEED_`echo toupper | tr '[a-z]' '[A-Z]'`_PROTO
5936 cat >> confdefs.h <<EOF
5937 #define $name 1
5938 EOF
5939
5940 echo "$ac_t""ABSENT" 1>&6
5941 else
5942 echo "$ac_t""present" 1>&6
5943 fi
5944
5945 echo $ac_n "checking for unlink prototype""... $ac_c" 1>&6
5946 echo "configure:5947: checking for unlink prototype" >&5
5947 ac_need=1
5948 for h in unistd.h; do
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 #include <$h>
5953 EOF
5954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5955 { (eval echo configure:5956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5956 ac_err=`grep -v '^ *+' conftest.out`
5957 if test -z "$ac_err"; then
5958 rm -rf conftest*
5959 echo "#include \"confdefs.h\"
5960 #include <$h>" > conftest.c
5961 eval "$ac_cpp conftest.c > conftest.out 2>&1"
5962 if egrep "unlink[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
5963 :
5964 else
5965 rm -rf conftest*
5966 continue
5967 fi
5968 rm -f conftest*
5969 cat > conftest.c <<EOF
5970 #include <$h>
5971 extern char**** unlink(char****, int****);
5972 main() { return 0; }
5973 EOF
5974 if eval $ac_compile >/dev/null 2>&1; then
5975 rm -f conftest*
5976 else
5977 rm -f conftest*
5978 ac_need=0
5979 break
5980 fi
5981
5982 else
5983 echo "$ac_err" >&5
5984 echo "configure: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 fi
5987 rm -f conftest*
5988 done
5989 if test $ac_need = 1; then
5990 name=NEED_`echo unlink | tr '[a-z]' '[A-Z]'`_PROTO
5991 cat >> confdefs.h <<EOF
5992 #define $name 1
5993 EOF
5994
5995 echo "$ac_t""ABSENT" 1>&6
5996 else
5997 echo "$ac_t""present" 1>&6
5998 fi
5999
6000 echo $ac_n "checking for vsprintf prototype""... $ac_c" 1>&6
6001 echo "configure:6002: checking for vsprintf prototype" >&5
6002 ac_need=1
6003 for h in stdio.h; do
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006