]> jfr.im git - irc/unrealircd/unrealircd.git/blob - configure
3.2 with -d -P, just to be sure.
[irc/unrealircd/unrealircd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
148 ;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS=" $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="src/ircd.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635 done
636
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710 else
711 ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
813
814 cat <<\_ACEOF
815 _ACEOF
816 fi
817
818 if test -n "$ac_init_help"; then
819
820 cat <<\_ACEOF
821
822 Optional Features:
823 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
824 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
825 --enable-nospoof Enable spoofing protection
826 --enable-prefixaq Enable chanadmin and chanowner prefixes
827 --enable-hub Compile as a hub server
828 --enable-ssl= enable ssl will check /usr/local/ssl /usr/lib/ssl
829 /usr/ssl /usr/pkg /usr/local /usr
830 --enable-ziplinks enable ziplinks will check /usr/local /usr /usr/pkg
831 --enable-libcurl=DIR enable libcurl (remote include) support
832 --enable-dynamic-linking
833 Make the IRCd dynamically link shared objects rather
834 than statically
835 --enable-inet6 Make the IRCd support IPv6
836
837 Optional Packages:
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-listen=backlog Specify the listen backlog value
841 --with-nick-history=length
842 Specify the length of the nickname history
843 --with-sendq=maxsendq Specify the max sendq for the server
844 --with-bufferpool=size Specify the size of the buffer pool
845 --with-hostname=host Specify the local hostname of the server
846 --with-permissions=permissions
847 Specify the default permissions for configuration
848 files
849 --with-dpath=path Specify the path where configuration files are
850 stored
851 --with-fd-setsize=size Specify the max file descriptors to use
852 --with-spath Specify the location of the executable
853
854 Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861 CPP C preprocessor
862
863 Use these variables to override the choices made by `configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
865
866 _ACEOF
867 fi
868
869 if test "$ac_init_help" = "recursive"; then
870 # If there are subdirs, report their specific --help.
871 ac_popdir=`pwd`
872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873 test -d $ac_dir || continue
874 ac_builddir=.
875
876 if test "$ac_dir" != .; then
877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
878 # A "../" for each directory in $ac_dir_suffix.
879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880 else
881 ac_dir_suffix= ac_top_builddir=
882 fi
883
884 case $srcdir in
885 .) # No --srcdir option. We are building in place.
886 ac_srcdir=.
887 if test -z "$ac_top_builddir"; then
888 ac_top_srcdir=.
889 else
890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891 fi ;;
892 [\\/]* | ?:[\\/]* ) # Absolute path.
893 ac_srcdir=$srcdir$ac_dir_suffix;
894 ac_top_srcdir=$srcdir ;;
895 *) # Relative path.
896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
898 esac
899 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
900 # absolute.
901 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
902 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
903 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
904 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
905
906 cd $ac_dir
907 # Check for guested configure; otherwise get Cygnus style configure.
908 if test -f $ac_srcdir/configure.gnu; then
909 echo
910 $SHELL $ac_srcdir/configure.gnu --help=recursive
911 elif test -f $ac_srcdir/configure; then
912 echo
913 $SHELL $ac_srcdir/configure --help=recursive
914 elif test -f $ac_srcdir/configure.ac ||
915 test -f $ac_srcdir/configure.in; then
916 echo
917 $ac_configure --help
918 else
919 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
920 fi
921 cd $ac_popdir
922 done
923 fi
924
925 test -n "$ac_init_help" && exit 0
926 if $ac_init_version; then
927 cat <<\_ACEOF
928
929 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
930 Free Software Foundation, Inc.
931 This configure script is free software; the Free Software Foundation
932 gives unlimited permission to copy, distribute and modify it.
933 _ACEOF
934 exit 0
935 fi
936 exec 5>config.log
937 cat >&5 <<_ACEOF
938 This file contains any messages produced by compilers while
939 running configure, to aid debugging if configure makes a mistake.
940
941 It was created by $as_me, which was
942 generated by GNU Autoconf 2.53. Invocation command line was
943
944 $ $0 $@
945
946 _ACEOF
947 {
948 cat <<_ASUNAME
949 ## --------- ##
950 ## Platform. ##
951 ## --------- ##
952
953 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
954 uname -m = `(uname -m) 2>/dev/null || echo unknown`
955 uname -r = `(uname -r) 2>/dev/null || echo unknown`
956 uname -s = `(uname -s) 2>/dev/null || echo unknown`
957 uname -v = `(uname -v) 2>/dev/null || echo unknown`
958
959 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
960 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
961
962 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
963 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
964 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
965 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
966 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
967 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
968 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
969
970 _ASUNAME
971
972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
973 for as_dir in $PATH
974 do
975 IFS=$as_save_IFS
976 test -z "$as_dir" && as_dir=.
977 echo "PATH: $as_dir"
978 done
979
980 } >&5
981
982 cat >&5 <<_ACEOF
983
984
985 ## ----------- ##
986 ## Core tests. ##
987 ## ----------- ##
988
989 _ACEOF
990
991
992 # Keep a trace of the command line.
993 # Strip out --no-create and --no-recursion so they do not pile up.
994 # Also quote any args containing shell meta-characters.
995 ac_configure_args=
996 ac_sep=
997 for ac_arg
998 do
999 case $ac_arg in
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n ) continue ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 continue ;;
1005 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1006 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1007 esac
1008 case " $ac_configure_args " in
1009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1010 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1011 ac_sep=" " ;;
1012 esac
1013 # Get rid of the leading space.
1014 done
1015
1016 # When interrupted or exit'd, cleanup temporary files, and complete
1017 # config.log. We remove comments because anyway the quotes in there
1018 # would cause problems or look ugly.
1019 # WARNING: Be sure not to use single quotes in there, as some shells,
1020 # such as our DU 5.0 friend, will then `close' the trap.
1021 trap 'exit_status=$?
1022 # Save into config.log some information that might help in debugging.
1023 {
1024 echo
1025 cat <<\_ASBOX
1026 ## ---------------- ##
1027 ## Cache variables. ##
1028 ## ---------------- ##
1029 _ASBOX
1030 echo
1031 # The following way of writing the cache mishandles newlines in values,
1032 {
1033 (set) 2>&1 |
1034 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1035 *ac_space=\ *)
1036 sed -n \
1037 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1039 ;;
1040 *)
1041 sed -n \
1042 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1043 ;;
1044 esac;
1045 }
1046 echo
1047 if test -s confdefs.h; then
1048 cat <<\_ASBOX
1049 ## ----------- ##
1050 ## confdefs.h. ##
1051 ## ----------- ##
1052 _ASBOX
1053 echo
1054 sed "/^$/d" confdefs.h
1055 echo
1056 fi
1057 test "$ac_signal" != 0 &&
1058 echo "$as_me: caught signal $ac_signal"
1059 echo "$as_me: exit $exit_status"
1060 } >&5
1061 rm -f core core.* *.core &&
1062 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1063 exit $exit_status
1064 ' 0
1065 for ac_signal in 1 2 13 15; do
1066 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1067 done
1068 ac_signal=0
1069
1070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1071 rm -rf conftest* confdefs.h
1072 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1073 echo >confdefs.h
1074
1075 # Predefined preprocessor variables.
1076
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_NAME "$PACKAGE_NAME"
1079 _ACEOF
1080
1081
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1084 _ACEOF
1085
1086
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1089 _ACEOF
1090
1091
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_STRING "$PACKAGE_STRING"
1094 _ACEOF
1095
1096
1097 cat >>confdefs.h <<_ACEOF
1098 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1099 _ACEOF
1100
1101
1102 # Let the site file select an alternate cache file if it wants to.
1103 # Prefer explicitly selected file to automatically selected ones.
1104 if test -z "$CONFIG_SITE"; then
1105 if test "x$prefix" != xNONE; then
1106 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1107 else
1108 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1109 fi
1110 fi
1111 for ac_site_file in $CONFIG_SITE; do
1112 if test -r "$ac_site_file"; then
1113 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1114 echo "$as_me: loading site script $ac_site_file" >&6;}
1115 sed 's/^/| /' "$ac_site_file" >&5
1116 . "$ac_site_file"
1117 fi
1118 done
1119
1120 if test -r "$cache_file"; then
1121 # Some versions of bash will fail to source /dev/null (special
1122 # files actually), so we avoid doing that.
1123 if test -f "$cache_file"; then
1124 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1125 echo "$as_me: loading cache $cache_file" >&6;}
1126 case $cache_file in
1127 [\\/]* | ?:[\\/]* ) . $cache_file;;
1128 *) . ./$cache_file;;
1129 esac
1130 fi
1131 else
1132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1133 echo "$as_me: creating cache $cache_file" >&6;}
1134 >$cache_file
1135 fi
1136
1137 # Check that the precious variables saved in the cache have kept the same
1138 # value.
1139 ac_cache_corrupted=false
1140 for ac_var in `(set) 2>&1 |
1141 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1142 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1143 eval ac_new_set=\$ac_env_${ac_var}_set
1144 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1145 eval ac_new_val="\$ac_env_${ac_var}_value"
1146 case $ac_old_set,$ac_new_set in
1147 set,)
1148 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1149 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1150 ac_cache_corrupted=: ;;
1151 ,set)
1152 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1153 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1154 ac_cache_corrupted=: ;;
1155 ,);;
1156 *)
1157 if test "x$ac_old_val" != "x$ac_new_val"; then
1158 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1159 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1160 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1161 echo "$as_me: former value: $ac_old_val" >&2;}
1162 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1163 echo "$as_me: current value: $ac_new_val" >&2;}
1164 ac_cache_corrupted=:
1165 fi;;
1166 esac
1167 # Pass precious variables to config.status.
1168 if test "$ac_new_set" = set; then
1169 case $ac_new_val in
1170 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1171 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1172 *) ac_arg=$ac_var=$ac_new_val ;;
1173 esac
1174 case " $ac_configure_args " in
1175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1176 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1177 esac
1178 fi
1179 done
1180 if $ac_cache_corrupted; then
1181 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1182 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1183 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1184 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1185 { (exit 1); exit 1; }; }
1186 fi
1187
1188 ac_ext=c
1189 ac_cpp='$CPP $CPPFLAGS'
1190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211 if test $# = 0; then
1212 echo "You might want to run ./Config or provide some parameters to this script."
1213 echo "./configure --help for information about this script"
1214 exit 0
1215 fi
1216 ac_config_headers="$ac_config_headers include/setup.h"
1217
1218 ac_ext=c
1219 ac_cpp='$CPP $CPPFLAGS'
1220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1223 if test -n "$ac_tool_prefix"; then
1224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1226 echo "$as_me:$LINENO: checking for $ac_word" >&5
1227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1228 if test "${ac_cv_prog_CC+set}" = set; then
1229 echo $ECHO_N "(cached) $ECHO_C" >&6
1230 else
1231 if test -n "$CC"; then
1232 ac_cv_prog_CC="$CC" # Let the user override the test.
1233 else
1234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235 for as_dir in $PATH
1236 do
1237 IFS=$as_save_IFS
1238 test -z "$as_dir" && as_dir=.
1239 for ac_exec_ext in '' $ac_executable_extensions; do
1240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1243 break 2
1244 fi
1245 done
1246 done
1247
1248 fi
1249 fi
1250 CC=$ac_cv_prog_CC
1251 if test -n "$CC"; then
1252 echo "$as_me:$LINENO: result: $CC" >&5
1253 echo "${ECHO_T}$CC" >&6
1254 else
1255 echo "$as_me:$LINENO: result: no" >&5
1256 echo "${ECHO_T}no" >&6
1257 fi
1258
1259 fi
1260 if test -z "$ac_cv_prog_CC"; then
1261 ac_ct_CC=$CC
1262 # Extract the first word of "gcc", so it can be a program name with args.
1263 set dummy gcc; ac_word=$2
1264 echo "$as_me:$LINENO: checking for $ac_word" >&5
1265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269 if test -n "$ac_ct_CC"; then
1270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1271 else
1272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273 for as_dir in $PATH
1274 do
1275 IFS=$as_save_IFS
1276 test -z "$as_dir" && as_dir=.
1277 for ac_exec_ext in '' $ac_executable_extensions; do
1278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1279 ac_cv_prog_ac_ct_CC="gcc"
1280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1281 break 2
1282 fi
1283 done
1284 done
1285
1286 fi
1287 fi
1288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1289 if test -n "$ac_ct_CC"; then
1290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1291 echo "${ECHO_T}$ac_ct_CC" >&6
1292 else
1293 echo "$as_me:$LINENO: result: no" >&5
1294 echo "${ECHO_T}no" >&6
1295 fi
1296
1297 CC=$ac_ct_CC
1298 else
1299 CC="$ac_cv_prog_CC"
1300 fi
1301
1302 if test -z "$CC"; then
1303 if test -n "$ac_tool_prefix"; then
1304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1305 set dummy ${ac_tool_prefix}cc; ac_word=$2
1306 echo "$as_me:$LINENO: checking for $ac_word" >&5
1307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1308 if test "${ac_cv_prog_CC+set}" = set; then
1309 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 else
1311 if test -n "$CC"; then
1312 ac_cv_prog_CC="$CC" # Let the user override the test.
1313 else
1314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1315 for as_dir in $PATH
1316 do
1317 IFS=$as_save_IFS
1318 test -z "$as_dir" && as_dir=.
1319 for ac_exec_ext in '' $ac_executable_extensions; do
1320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1321 ac_cv_prog_CC="${ac_tool_prefix}cc"
1322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1323 break 2
1324 fi
1325 done
1326 done
1327
1328 fi
1329 fi
1330 CC=$ac_cv_prog_CC
1331 if test -n "$CC"; then
1332 echo "$as_me:$LINENO: result: $CC" >&5
1333 echo "${ECHO_T}$CC" >&6
1334 else
1335 echo "$as_me:$LINENO: result: no" >&5
1336 echo "${ECHO_T}no" >&6
1337 fi
1338
1339 fi
1340 if test -z "$ac_cv_prog_CC"; then
1341 ac_ct_CC=$CC
1342 # Extract the first word of "cc", so it can be a program name with args.
1343 set dummy cc; ac_word=$2
1344 echo "$as_me:$LINENO: checking for $ac_word" >&5
1345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349 if test -n "$ac_ct_CC"; then
1350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1351 else
1352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1353 for as_dir in $PATH
1354 do
1355 IFS=$as_save_IFS
1356 test -z "$as_dir" && as_dir=.
1357 for ac_exec_ext in '' $ac_executable_extensions; do
1358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1359 ac_cv_prog_ac_ct_CC="cc"
1360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1361 break 2
1362 fi
1363 done
1364 done
1365
1366 fi
1367 fi
1368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1369 if test -n "$ac_ct_CC"; then
1370 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1371 echo "${ECHO_T}$ac_ct_CC" >&6
1372 else
1373 echo "$as_me:$LINENO: result: no" >&5
1374 echo "${ECHO_T}no" >&6
1375 fi
1376
1377 CC=$ac_ct_CC
1378 else
1379 CC="$ac_cv_prog_CC"
1380 fi
1381
1382 fi
1383 if test -z "$CC"; then
1384 # Extract the first word of "cc", so it can be a program name with args.
1385 set dummy cc; ac_word=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 if test -n "$CC"; then
1392 ac_cv_prog_CC="$CC" # Let the user override the test.
1393 else
1394 ac_prog_rejected=no
1395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1396 for as_dir in $PATH
1397 do
1398 IFS=$as_save_IFS
1399 test -z "$as_dir" && as_dir=.
1400 for ac_exec_ext in '' $ac_executable_extensions; do
1401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1402 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1403 ac_prog_rejected=yes
1404 continue
1405 fi
1406 ac_cv_prog_CC="cc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 break 2
1409 fi
1410 done
1411 done
1412
1413 if test $ac_prog_rejected = yes; then
1414 # We found a bogon in the path, so make sure we never use it.
1415 set dummy $ac_cv_prog_CC
1416 shift
1417 if test $# != 0; then
1418 # We chose a different compiler from the bogus one.
1419 # However, it has the same basename, so the bogon will be chosen
1420 # first if we set CC to just the basename; use the full file name.
1421 shift
1422 set dummy "$as_dir/$ac_word" ${1+"$@"}
1423 shift
1424 ac_cv_prog_CC="$@"
1425 fi
1426 fi
1427 fi
1428 fi
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 fi
1437
1438 fi
1439 if test -z "$CC"; then
1440 if test -n "$ac_tool_prefix"; then
1441 for ac_prog in cl
1442 do
1443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450 if test -n "$CC"; then
1451 ac_cv_prog_CC="$CC" # Let the user override the test.
1452 else
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 for as_dir in $PATH
1455 do
1456 IFS=$as_save_IFS
1457 test -z "$as_dir" && as_dir=.
1458 for ac_exec_ext in '' $ac_executable_extensions; do
1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1460 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 break 2
1463 fi
1464 done
1465 done
1466
1467 fi
1468 fi
1469 CC=$ac_cv_prog_CC
1470 if test -n "$CC"; then
1471 echo "$as_me:$LINENO: result: $CC" >&5
1472 echo "${ECHO_T}$CC" >&6
1473 else
1474 echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1476 fi
1477
1478 test -n "$CC" && break
1479 done
1480 fi
1481 if test -z "$CC"; then
1482 ac_ct_CC=$CC
1483 for ac_prog in cl
1484 do
1485 # Extract the first word of "$ac_prog", so it can be a program name with args.
1486 set dummy $ac_prog; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492 if test -n "$ac_ct_CC"; then
1493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494 else
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1497 do
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_ac_ct_CC="$ac_prog"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 break 2
1505 fi
1506 done
1507 done
1508
1509 fi
1510 fi
1511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1512 if test -n "$ac_ct_CC"; then
1513 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1514 echo "${ECHO_T}$ac_ct_CC" >&6
1515 else
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 fi
1519
1520 test -n "$ac_ct_CC" && break
1521 done
1522
1523 CC=$ac_ct_CC
1524 fi
1525
1526 fi
1527
1528
1529 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1530 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533 # Provide some information about the compiler.
1534 echo "$as_me:$LINENO:" \
1535 "checking for C compiler version" >&5
1536 ac_compiler=`set X $ac_compile; echo $2`
1537 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1538 (eval $ac_compiler --version </dev/null >&5) 2>&5
1539 ac_status=$?
1540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1541 (exit $ac_status); }
1542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1543 (eval $ac_compiler -v </dev/null >&5) 2>&5
1544 ac_status=$?
1545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1546 (exit $ac_status); }
1547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1548 (eval $ac_compiler -V </dev/null >&5) 2>&5
1549 ac_status=$?
1550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1551 (exit $ac_status); }
1552
1553 cat >conftest.$ac_ext <<_ACEOF
1554 #line $LINENO "configure"
1555 #include "confdefs.h"
1556
1557 #ifdef F77_DUMMY_MAIN
1558 # ifdef __cplusplus
1559 extern "C"
1560 # endif
1561 int F77_DUMMY_MAIN() { return 1; }
1562 #endif
1563 int
1564 main ()
1565 {
1566
1567 ;
1568 return 0;
1569 }
1570 _ACEOF
1571 ac_clean_files_save=$ac_clean_files
1572 ac_clean_files="$ac_clean_files a.out a.exe"
1573 # Try to create an executable without -o first, disregard a.out.
1574 # It will help us diagnose broken compilers, and finding out an intuition
1575 # of exeext.
1576 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1577 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1578 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1579 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1580 (eval $ac_link_default) 2>&5
1581 ac_status=$?
1582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1583 (exit $ac_status); }; then
1584 # Find the output, starting from the most likely. This scheme is
1585 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1586 # resort.
1587
1588 # Be careful to initialize this variable, since it used to be cached.
1589 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1590 ac_cv_exeext=
1591 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1592 ls a.out conftest 2>/dev/null;
1593 ls a.* conftest.* 2>/dev/null`; do
1594 case $ac_file in
1595 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1596 a.out ) # We found the default executable, but exeext='' is most
1597 # certainly right.
1598 break;;
1599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1600 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1601 export ac_cv_exeext
1602 break;;
1603 * ) break;;
1604 esac
1605 done
1606 else
1607 echo "$as_me: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1609 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1610 echo "$as_me: error: C compiler cannot create executables" >&2;}
1611 { (exit 77); exit 77; }; }
1612 fi
1613
1614 ac_exeext=$ac_cv_exeext
1615 echo "$as_me:$LINENO: result: $ac_file" >&5
1616 echo "${ECHO_T}$ac_file" >&6
1617
1618 # Check the compiler produces executables we can run. If not, either
1619 # the compiler is broken, or we cross compile.
1620 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1621 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1622 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1623 # If not cross compiling, check that we can run a simple program.
1624 if test "$cross_compiling" != yes; then
1625 if { ac_try='./$ac_file'
1626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1627 (eval $ac_try) 2>&5
1628 ac_status=$?
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }; }; then
1631 cross_compiling=no
1632 else
1633 if test "$cross_compiling" = maybe; then
1634 cross_compiling=yes
1635 else
1636 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1637 If you meant to cross compile, use \`--host'." >&5
1638 echo "$as_me: error: cannot run C compiled programs.
1639 If you meant to cross compile, use \`--host'." >&2;}
1640 { (exit 1); exit 1; }; }
1641 fi
1642 fi
1643 fi
1644 echo "$as_me:$LINENO: result: yes" >&5
1645 echo "${ECHO_T}yes" >&6
1646
1647 rm -f a.out a.exe conftest$ac_cv_exeext
1648 ac_clean_files=$ac_clean_files_save
1649 # Check the compiler produces executables we can run. If not, either
1650 # the compiler is broken, or we cross compile.
1651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1654 echo "${ECHO_T}$cross_compiling" >&6
1655
1656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1659 (eval $ac_link) 2>&5
1660 ac_status=$?
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }; then
1663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1665 # work properly (i.e., refer to `conftest.exe'), while it won't with
1666 # `rm'.
1667 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1668 case $ac_file in
1669 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1671 export ac_cv_exeext
1672 break;;
1673 * ) break;;
1674 esac
1675 done
1676 else
1677 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1678 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1679 { (exit 1); exit 1; }; }
1680 fi
1681
1682 rm -f conftest$ac_cv_exeext
1683 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1684 echo "${ECHO_T}$ac_cv_exeext" >&6
1685
1686 rm -f conftest.$ac_ext
1687 EXEEXT=$ac_cv_exeext
1688 ac_exeext=$EXEEXT
1689 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1690 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1691 if test "${ac_cv_objext+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694 cat >conftest.$ac_ext <<_ACEOF
1695 #line $LINENO "configure"
1696 #include "confdefs.h"
1697
1698 #ifdef F77_DUMMY_MAIN
1699 # ifdef __cplusplus
1700 extern "C"
1701 # endif
1702 int F77_DUMMY_MAIN() { return 1; }
1703 #endif
1704 int
1705 main ()
1706 {
1707
1708 ;
1709 return 0;
1710 }
1711 _ACEOF
1712 rm -f conftest.o conftest.obj
1713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1714 (eval $ac_compile) 2>&5
1715 ac_status=$?
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); }; then
1718 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1719 case $ac_file in
1720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1722 break;;
1723 esac
1724 done
1725 else
1726 echo "$as_me: failed program was:" >&5
1727 cat conftest.$ac_ext >&5
1728 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1729 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1730 { (exit 1); exit 1; }; }
1731 fi
1732
1733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1734 fi
1735 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1736 echo "${ECHO_T}$ac_cv_objext" >&6
1737 OBJEXT=$ac_cv_objext
1738 ac_objext=$OBJEXT
1739 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1740 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1741 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744 cat >conftest.$ac_ext <<_ACEOF
1745 #line $LINENO "configure"
1746 #include "confdefs.h"
1747
1748 #ifdef F77_DUMMY_MAIN
1749 # ifdef __cplusplus
1750 extern "C"
1751 # endif
1752 int F77_DUMMY_MAIN() { return 1; }
1753 #endif
1754 int
1755 main ()
1756 {
1757 #ifndef __GNUC__
1758 choke me
1759 #endif
1760
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 rm -f conftest.$ac_objext
1766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1767 (eval $ac_compile) 2>&5
1768 ac_status=$?
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); } &&
1771 { ac_try='test -s conftest.$ac_objext'
1772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1773 (eval $ac_try) 2>&5
1774 ac_status=$?
1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776 (exit $ac_status); }; }; then
1777 ac_compiler_gnu=yes
1778 else
1779 echo "$as_me: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1781 ac_compiler_gnu=no
1782 fi
1783 rm -f conftest.$ac_objext conftest.$ac_ext
1784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1785
1786 fi
1787 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1788 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1789 GCC=`test $ac_compiler_gnu = yes && echo yes`
1790 ac_test_CFLAGS=${CFLAGS+set}
1791 ac_save_CFLAGS=$CFLAGS
1792 CFLAGS="-g"
1793 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1795 if test "${ac_cv_prog_cc_g+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798 cat >conftest.$ac_ext <<_ACEOF
1799 #line $LINENO "configure"
1800 #include "confdefs.h"
1801
1802 #ifdef F77_DUMMY_MAIN
1803 # ifdef __cplusplus
1804 extern "C"
1805 # endif
1806 int F77_DUMMY_MAIN() { return 1; }
1807 #endif
1808 int
1809 main ()
1810 {
1811
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 rm -f conftest.$ac_objext
1817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1818 (eval $ac_compile) 2>&5
1819 ac_status=$?
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); } &&
1822 { ac_try='test -s conftest.$ac_objext'
1823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1824 (eval $ac_try) 2>&5
1825 ac_status=$?
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; }; then
1828 ac_cv_prog_cc_g=yes
1829 else
1830 echo "$as_me: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1832 ac_cv_prog_cc_g=no
1833 fi
1834 rm -f conftest.$ac_objext conftest.$ac_ext
1835 fi
1836 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1837 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1838 if test "$ac_test_CFLAGS" = set; then
1839 CFLAGS=$ac_save_CFLAGS
1840 elif test $ac_cv_prog_cc_g = yes; then
1841 if test "$GCC" = yes; then
1842 CFLAGS="-g -O2"
1843 else
1844 CFLAGS="-g"
1845 fi
1846 else
1847 if test "$GCC" = yes; then
1848 CFLAGS="-O2"
1849 else
1850 CFLAGS=
1851 fi
1852 fi
1853 # Some people use a C++ compiler to compile C. Since we use `exit',
1854 # in C++ we need to declare it. In case someone uses the same compiler
1855 # for both compiling C and C++ we need to have the C++ compiler decide
1856 # the declaration of exit, since it's the most demanding environment.
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #ifndef __cplusplus
1859 choke me
1860 #endif
1861 _ACEOF
1862 rm -f conftest.$ac_objext
1863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>&5
1865 ac_status=$?
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); } &&
1868 { ac_try='test -s conftest.$ac_objext'
1869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1870 (eval $ac_try) 2>&5
1871 ac_status=$?
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; }; then
1874 for ac_declaration in \
1875 ''\
1876 '#include <stdlib.h>' \
1877 'extern "C" void std::exit (int) throw (); using std::exit;' \
1878 'extern "C" void std::exit (int); using std::exit;' \
1879 'extern "C" void exit (int) throw ();' \
1880 'extern "C" void exit (int);' \
1881 'void exit (int);'
1882 do
1883 cat >conftest.$ac_ext <<_ACEOF
1884 #line $LINENO "configure"
1885 #include "confdefs.h"
1886 #include <stdlib.h>
1887 $ac_declaration
1888 #ifdef F77_DUMMY_MAIN
1889 # ifdef __cplusplus
1890 extern "C"
1891 # endif
1892 int F77_DUMMY_MAIN() { return 1; }
1893 #endif
1894 int
1895 main ()
1896 {
1897 exit (42);
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 rm -f conftest.$ac_objext
1903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1904 (eval $ac_compile) 2>&5
1905 ac_status=$?
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); } &&
1908 { ac_try='test -s conftest.$ac_objext'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 (eval $ac_try) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1914 :
1915 else
1916 echo "$as_me: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1918 continue
1919 fi
1920 rm -f conftest.$ac_objext conftest.$ac_ext
1921 cat >conftest.$ac_ext <<_ACEOF
1922 #line $LINENO "configure"
1923 #include "confdefs.h"
1924 $ac_declaration
1925 #ifdef F77_DUMMY_MAIN
1926 # ifdef __cplusplus
1927 extern "C"
1928 # endif
1929 int F77_DUMMY_MAIN() { return 1; }
1930 #endif
1931 int
1932 main ()
1933 {
1934 exit (42);
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1951 break
1952 else
1953 echo "$as_me: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1955 fi
1956 rm -f conftest.$ac_objext conftest.$ac_ext
1957 done
1958 rm -f conftest*
1959 if test -n "$ac_declaration"; then
1960 echo '#ifdef __cplusplus' >>confdefs.h
1961 echo $ac_declaration >>confdefs.h
1962 echo '#endif' >>confdefs.h
1963 fi
1964
1965 else
1966 echo "$as_me: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1968 fi
1969 rm -f conftest.$ac_objext conftest.$ac_ext
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975
1976 if test "$ac_cv_c_compiler_gnu" = "yes"; then
1977 CFLAGS="$CFLAGS -funsigned-char"
1978 echo "$as_me:$LINENO: checking if gcc has a working -pipe" >&5
1979 echo $ECHO_N "checking if gcc has a working -pipe... $ECHO_C" >&6
1980 if test "${ac_cv_pipe+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983
1984 save_cflags="$CFLAGS"
1985 CFLAGS="$CFLAGS -pipe"
1986
1987 cat >conftest.$ac_ext <<_ACEOF
1988 #line $LINENO "configure"
1989 #include "confdefs.h"
1990
1991 #ifdef F77_DUMMY_MAIN
1992 # ifdef __cplusplus
1993 extern "C"
1994 # endif
1995 int F77_DUMMY_MAIN() { return 1; }
1996 #endif
1997 int
1998 main ()
1999 {
2000
2001 ;
2002 return 0;
2003 }
2004 _ACEOF
2005 rm -f conftest.$ac_objext
2006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2007 (eval $ac_compile) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 ac_cv_pipe="yes"
2018 else
2019 echo "$as_me: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 ac_cv_pipe="no"
2022 fi
2023 rm -f conftest.$ac_objext conftest.$ac_ext
2024 CFLAGS="$save_cflags"
2025
2026 fi
2027 echo "$as_me:$LINENO: result: $ac_cv_pipe" >&5
2028 echo "${ECHO_T}$ac_cv_pipe" >&6
2029 if test "$ac_cv_pipe" = "yes"; then
2030 CFLAGS="-pipe $CFLAGS"
2031 fi
2032 fi
2033
2034 # Extract the first word of "rm", so it can be a program name with args.
2035 set dummy rm; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_path_RM+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 case $RM in
2042 [\\/]* | ?:[\\/]*)
2043 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2044 ;;
2045 *)
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057 done
2058 done
2059
2060 ;;
2061 esac
2062 fi
2063 RM=$ac_cv_path_RM
2064
2065 if test -n "$RM"; then
2066 echo "$as_me:$LINENO: result: $RM" >&5
2067 echo "${ECHO_T}$RM" >&6
2068 else
2069 echo "$as_me:$LINENO: result: no" >&5
2070 echo "${ECHO_T}no" >&6
2071 fi
2072
2073 # Extract the first word of "cp", so it can be a program name with args.
2074 set dummy cp; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_path_CP+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 case $CP in
2081 [\\/]* | ?:[\\/]*)
2082 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2083 ;;
2084 *)
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096 done
2097 done
2098
2099 ;;
2100 esac
2101 fi
2102 CP=$ac_cv_path_CP
2103
2104 if test -n "$CP"; then
2105 echo "$as_me:$LINENO: result: $CP" >&5
2106 echo "${ECHO_T}$CP" >&6
2107 else
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2110 fi
2111
2112 # Extract the first word of "touch", so it can be a program name with args.
2113 set dummy touch; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_path_TOUCH+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119 case $TOUCH in
2120 [\\/]* | ?:[\\/]*)
2121 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
2122 ;;
2123 *)
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2134 fi
2135 done
2136 done
2137
2138 ;;
2139 esac
2140 fi
2141 TOUCH=$ac_cv_path_TOUCH
2142
2143 if test -n "$TOUCH"; then
2144 echo "$as_me:$LINENO: result: $TOUCH" >&5
2145 echo "${ECHO_T}$TOUCH" >&6
2146 else
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151 # Extract the first word of "openssl", so it can be a program name with args.
2152 set dummy openssl; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_path_OPENSSLPATH+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 case $OPENSSLPATH in
2159 [\\/]* | ?:[\\/]*)
2160 ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path.
2161 ;;
2162 *)
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_path_OPENSSLPATH="$as_dir/$ac_word$ac_exec_ext"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2173 fi
2174 done
2175 done
2176
2177 ;;
2178 esac
2179 fi
2180 OPENSSLPATH=$ac_cv_path_OPENSSLPATH
2181
2182 if test -n "$OPENSSLPATH"; then
2183 echo "$as_me:$LINENO: result: $OPENSSLPATH" >&5
2184 echo "${ECHO_T}$OPENSSLPATH" >&6
2185 else
2186 echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2188 fi
2189
2190 # Extract the first word of "install", so it can be a program name with args.
2191 set dummy install; ac_word=$2
2192 echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194 if test "${ac_cv_path_INSTALL+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197 case $INSTALL in
2198 [\\/]* | ?:[\\/]*)
2199 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
2200 ;;
2201 *)
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_path_INSTALL="$as_dir/$ac_word$ac_exec_ext"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213 done
2214 done
2215
2216 ;;
2217 esac
2218 fi
2219 INSTALL=$ac_cv_path_INSTALL
2220
2221 if test -n "$INSTALL"; then
2222 echo "$as_me:$LINENO: result: $INSTALL" >&5
2223 echo "${ECHO_T}$INSTALL" >&6
2224 else
2225 echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229 # Extract the first word of "gmake", so it can be a program name with args.
2230 set dummy gmake; ac_word=$2
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233 if test "${ac_cv_prog_MAKER+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 if test -n "$MAKER"; then
2237 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246 ac_cv_prog_MAKER="gmake"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2249 fi
2250 done
2251 done
2252
2253 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
2254 fi
2255 fi
2256 MAKER=$ac_cv_prog_MAKER
2257 if test -n "$MAKER"; then
2258 echo "$as_me:$LINENO: result: $MAKER" >&5
2259 echo "${ECHO_T}$MAKER" >&6
2260 else
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2264
2265 # Extract the first word of "gmake", so it can be a program name with args.
2266 set dummy gmake; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_path_GMAKE+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 case $GMAKE in
2273 [\\/]* | ?:[\\/]*)
2274 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2275 ;;
2276 *)
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288 done
2289 done
2290
2291 ;;
2292 esac
2293 fi
2294 GMAKE=$ac_cv_path_GMAKE
2295
2296 if test -n "$GMAKE"; then
2297 echo "$as_me:$LINENO: result: $GMAKE" >&5
2298 echo "${ECHO_T}$GMAKE" >&6
2299 else
2300 echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2302 fi
2303
2304 # Extract the first word of "gunzip", so it can be a program name with args.
2305 set dummy gunzip; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_path_GUNZIP+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 case $GUNZIP in
2312 [\\/]* | ?:[\\/]*)
2313 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
2314 ;;
2315 *)
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2326 fi
2327 done
2328 done
2329
2330 ;;
2331 esac
2332 fi
2333 GUNZIP=$ac_cv_path_GUNZIP
2334
2335 if test -n "$GUNZIP"; then
2336 echo "$as_me:$LINENO: result: $GUNZIP" >&5
2337 echo "${ECHO_T}$GUNZIP" >&6
2338 else
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341 fi
2342
2343 # Extract the first word of "pkg-config", so it can be a program name with args.
2344 set dummy pkg-config; ac_word=$2
2345 echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 case $PKGCONFIG in
2351 [\\/]* | ?:[\\/]*)
2352 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
2353 ;;
2354 *)
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368
2369 ;;
2370 esac
2371 fi
2372 PKGCONFIG=$ac_cv_path_PKGCONFIG
2373
2374 if test -n "$PKGCONFIG"; then
2375 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
2376 echo "${ECHO_T}$PKGCONFIG" >&6
2377 else
2378 echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2380 fi
2381
2382
2383 echo "$as_me:$LINENO: checking for crypt in -ldescrypt" >&5
2384 echo $ECHO_N "checking for crypt in -ldescrypt... $ECHO_C" >&6
2385 if test "${ac_cv_lib_descrypt_crypt+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 ac_check_lib_save_LIBS=$LIBS
2389 LIBS="-ldescrypt $LIBS"
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2393
2394 /* Override any gcc2 internal prototype to avoid an error. */
2395 #ifdef __cplusplus
2396 extern "C"
2397 #endif
2398 /* We use char because int might match the return type of a gcc2
2399 builtin and then its argument prototype would still apply. */
2400 char crypt ();
2401 #ifdef F77_DUMMY_MAIN
2402 # ifdef __cplusplus
2403 extern "C"
2404 # endif
2405 int F77_DUMMY_MAIN() { return 1; }
2406 #endif
2407 int
2408 main ()
2409 {
2410 crypt ();
2411 ;
2412 return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext conftest$ac_exeext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2417 (eval $ac_link) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -s conftest$ac_exeext'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2427 ac_cv_lib_descrypt_crypt=yes
2428 else
2429 echo "$as_me: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 ac_cv_lib_descrypt_crypt=no
2432 fi
2433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2434 LIBS=$ac_check_lib_save_LIBS
2435 fi
2436 echo "$as_me:$LINENO: result: $ac_cv_lib_descrypt_crypt" >&5
2437 echo "${ECHO_T}$ac_cv_lib_descrypt_crypt" >&6
2438 if test $ac_cv_lib_descrypt_crypt = yes; then
2439 cat >>confdefs.h <<\_ACEOF
2440 #define HAVE_CRYPT 1
2441 _ACEOF
2442 IRCDLIBS="$IRCDLIBS-ldescrypt " MKPASSWDLIBS="-ldescrypt"
2443 else
2444 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
2445 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
2446 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 ac_check_lib_save_LIBS=$LIBS
2450 LIBS="-lcrypt $LIBS"
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 #include "confdefs.h"
2454
2455 /* Override any gcc2 internal prototype to avoid an error. */
2456 #ifdef __cplusplus
2457 extern "C"
2458 #endif
2459 /* We use char because int might match the return type of a gcc2
2460 builtin and then its argument prototype would still apply. */
2461 char crypt ();
2462 #ifdef F77_DUMMY_MAIN
2463 # ifdef __cplusplus
2464 extern "C"
2465 # endif
2466 int F77_DUMMY_MAIN() { return 1; }
2467 #endif
2468 int
2469 main ()
2470 {
2471 crypt ();
2472 ;
2473 return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext conftest$ac_exeext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2478 (eval $ac_link) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest$ac_exeext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_lib_crypt_crypt=yes
2489 else
2490 echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 ac_cv_lib_crypt_crypt=no
2493 fi
2494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2495 LIBS=$ac_check_lib_save_LIBS
2496 fi
2497 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
2498 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
2499 if test $ac_cv_lib_crypt_crypt = yes; then
2500 cat >>confdefs.h <<\_ACEOF
2501 #define HAVE_CRYPT 1
2502 _ACEOF
2503 IRCDLIBS="$IRCDLIBS-lcrypt " MKPASSWDLIBS="-lcrypt"
2504 fi
2505
2506 fi
2507
2508 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2509 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2510 if test "${ac_cv_lib_socket_socket+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 ac_check_lib_save_LIBS=$LIBS
2514 LIBS="-lsocket $LIBS"
2515 cat >conftest.$ac_ext <<_ACEOF
2516 #line $LINENO "configure"
2517 #include "confdefs.h"
2518
2519 /* Override any gcc2 internal prototype to avoid an error. */
2520 #ifdef __cplusplus
2521 extern "C"
2522 #endif
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2525 char socket ();
2526 #ifdef F77_DUMMY_MAIN
2527 # ifdef __cplusplus
2528 extern "C"
2529 # endif
2530 int F77_DUMMY_MAIN() { return 1; }
2531 #endif
2532 int
2533 main ()
2534 {
2535 socket ();
2536 ;
2537 return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext conftest$ac_exeext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2542 (eval $ac_link) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -s conftest$ac_exeext'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2552 ac_cv_lib_socket_socket=yes
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 ac_cv_lib_socket_socket=no
2557 fi
2558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2559 LIBS=$ac_check_lib_save_LIBS
2560 fi
2561 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2562 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2563 if test $ac_cv_lib_socket_socket = yes; then
2564 IRCDLIBS="$IRCDLIBS-lsocket " SOCKLIB="-lsocket"
2565 fi
2566
2567 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
2568 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
2569 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 ac_check_lib_save_LIBS=$LIBS
2573 LIBS="-lnsl $LIBS"
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 #include "confdefs.h"
2577
2578 /* Override any gcc2 internal prototype to avoid an error. */
2579 #ifdef __cplusplus
2580 extern "C"
2581 #endif
2582 /* We use char because int might match the return type of a gcc2
2583 builtin and then its argument prototype would still apply. */
2584 char inet_ntoa ();
2585 #ifdef F77_DUMMY_MAIN
2586 # ifdef __cplusplus
2587 extern "C"
2588 # endif
2589 int F77_DUMMY_MAIN() { return 1; }
2590 #endif
2591 int
2592 main ()
2593 {
2594 inet_ntoa ();
2595 ;
2596 return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext conftest$ac_exeext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601 (eval $ac_link) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest$ac_exeext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 ac_cv_lib_nsl_inet_ntoa=yes
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 ac_cv_lib_nsl_inet_ntoa=no
2616 fi
2617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2618 LIBS=$ac_check_lib_save_LIBS
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
2621 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
2622 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
2623 IRCDLIBS="$IRCDLIBS-lnsl " INETLIB="-lnsl"
2624 fi
2625
2626
2627
2628
2629
2630
2631
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2638 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2639 # On Suns, sometimes $CPP names a directory.
2640 if test -n "$CPP" && test -d "$CPP"; then
2641 CPP=
2642 fi
2643 if test -z "$CPP"; then
2644 if test "${ac_cv_prog_CPP+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 # Double quotes because CPP needs to be expanded
2648 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2649 do
2650 ac_preproc_ok=false
2651 for ac_c_preproc_warn_flag in '' yes
2652 do
2653 # Use a header file that comes with gcc, so configuring glibc
2654 # with a fresh cross-compiler works.
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp. "Syntax error" is here to catch this case.
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 #include "confdefs.h"
2660 #include <assert.h>
2661 Syntax error
2662 _ACEOF
2663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665 ac_status=$?
2666 egrep -v '^ *\+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } >/dev/null; then
2671 if test -s conftest.err; then
2672 ac_cpp_err=$ac_c_preproc_warn_flag
2673 else
2674 ac_cpp_err=
2675 fi
2676 else
2677 ac_cpp_err=yes
2678 fi
2679 if test -z "$ac_cpp_err"; then
2680 :
2681 else
2682 echo "$as_me: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 # Broken: fails on valid input.
2685 continue
2686 fi
2687 rm -f conftest.err conftest.$ac_ext
2688
2689 # OK, works on sane cases. Now check whether non-existent headers
2690 # can be detected and how.
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 #include "confdefs.h"
2694 #include <ac_nonexistent.h>
2695 _ACEOF
2696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2698 ac_status=$?
2699 egrep -v '^ *\+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } >/dev/null; then
2704 if test -s conftest.err; then
2705 ac_cpp_err=$ac_c_preproc_warn_flag
2706 else
2707 ac_cpp_err=
2708 fi
2709 else
2710 ac_cpp_err=yes
2711 fi
2712 if test -z "$ac_cpp_err"; then
2713 # Broken: success on invalid input.
2714 continue
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 # Passes both tests.
2719 ac_preproc_ok=:
2720 break
2721 fi
2722 rm -f conftest.err conftest.$ac_ext
2723
2724 done
2725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2726 rm -f conftest.err conftest.$ac_ext
2727 if $ac_preproc_ok; then
2728 break
2729 fi
2730
2731 done
2732 ac_cv_prog_CPP=$CPP
2733
2734 fi
2735 CPP=$ac_cv_prog_CPP
2736 else
2737 ac_cv_prog_CPP=$CPP
2738 fi
2739 echo "$as_me:$LINENO: result: $CPP" >&5
2740 echo "${ECHO_T}$CPP" >&6
2741 ac_preproc_ok=false
2742 for ac_c_preproc_warn_flag in '' yes
2743 do
2744 # Use a header file that comes with gcc, so configuring glibc
2745 # with a fresh cross-compiler works.
2746 # On the NeXT, cc -E runs the code through the compiler's parser,
2747 # not just through cpp. "Syntax error" is here to catch this case.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 #line $LINENO "configure"
2750 #include "confdefs.h"
2751 #include <assert.h>
2752 Syntax error
2753 _ACEOF
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756 ac_status=$?
2757 egrep -v '^ *\+' conftest.er1 >conftest.err
2758 rm -f conftest.er1
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } >/dev/null; then
2762 if test -s conftest.err; then
2763 ac_cpp_err=$ac_c_preproc_warn_flag
2764 else
2765 ac_cpp_err=
2766 fi
2767 else
2768 ac_cpp_err=yes
2769 fi
2770 if test -z "$ac_cpp_err"; then
2771 :
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 # Broken: fails on valid input.
2776 continue
2777 fi
2778 rm -f conftest.err conftest.$ac_ext
2779
2780 # OK, works on sane cases. Now check whether non-existent headers
2781 # can be detected and how.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2784 #include "confdefs.h"
2785 #include <ac_nonexistent.h>
2786 _ACEOF
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2789 ac_status=$?
2790 egrep -v '^ *\+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev/null; then
2795 if test -s conftest.err; then
2796 ac_cpp_err=$ac_c_preproc_warn_flag
2797 else
2798 ac_cpp_err=
2799 fi
2800 else
2801 ac_cpp_err=yes
2802 fi
2803 if test -z "$ac_cpp_err"; then
2804 # Broken: success on invalid input.
2805 continue
2806 else
2807 echo "$as_me: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 # Passes both tests.
2810 ac_preproc_ok=:
2811 break
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815 done
2816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2817 rm -f conftest.err conftest.$ac_ext
2818 if $ac_preproc_ok; then
2819 :
2820 else
2821 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2822 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2823 { (exit 1); exit 1; }; }
2824 fi
2825
2826 ac_ext=c
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
2832
2833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2835 if test "${ac_cv_header_stdc+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 cat >conftest.$ac_ext <<_ACEOF
2839 #line $LINENO "configure"
2840 #include "confdefs.h"
2841 #include <stdlib.h>
2842 #include <stdarg.h>
2843 #include <string.h>
2844 #include <float.h>
2845
2846 _ACEOF
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2849 ac_status=$?
2850 egrep -v '^ *\+' conftest.er1 >conftest.err
2851 rm -f conftest.er1
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev/null; then
2855 if test -s conftest.err; then
2856 ac_cpp_err=$ac_c_preproc_warn_flag
2857 else
2858 ac_cpp_err=
2859 fi
2860 else
2861 ac_cpp_err=yes
2862 fi
2863 if test -z "$ac_cpp_err"; then
2864 ac_cv_header_stdc=yes
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 ac_cv_header_stdc=no
2869 fi
2870 rm -f conftest.err conftest.$ac_ext
2871
2872 if test $ac_cv_header_stdc = yes; then
2873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2874 cat >conftest.$ac_ext <<_ACEOF
2875 #line $LINENO "configure"
2876 #include "confdefs.h"
2877 #include <string.h>
2878
2879 _ACEOF
2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881 egrep "memchr" >/dev/null 2>&1; then
2882 :
2883 else
2884 ac_cv_header_stdc=no
2885 fi
2886 rm -f conftest*
2887
2888 fi
2889
2890 if test $ac_cv_header_stdc = yes; then
2891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 #include "confdefs.h"
2895 #include <stdlib.h>
2896
2897 _ACEOF
2898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2899 egrep "free" >/dev/null 2>&1; then
2900 :
2901 else
2902 ac_cv_header_stdc=no
2903 fi
2904 rm -f conftest*
2905
2906 fi
2907
2908 if test $ac_cv_header_stdc = yes; then
2909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2910 if test "$cross_compiling" = yes; then
2911 :
2912 else
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #line $LINENO "configure"
2915 #include "confdefs.h"
2916 #include <ctype.h>
2917 #if ((' ' & 0x0FF) == 0x020)
2918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2920 #else
2921 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2922 || ('j' <= (c) && (c) <= 'r') \
2923 || ('s' <= (c) && (c) <= 'z'))
2924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2925 #endif
2926
2927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2928 int
2929 main ()
2930 {
2931 int i;
2932 for (i = 0; i < 256; i++)
2933 if (XOR (islower (i), ISLOWER (i))
2934 || toupper (i) != TOUPPER (i))
2935 exit(2);
2936 exit (0);
2937 }
2938 _ACEOF
2939 rm -f conftest$ac_exeext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2941 (eval $ac_link) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 :
2951 else
2952 echo "$as_me: program exited with status $ac_status" >&5
2953 echo "$as_me: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2955 ( exit $ac_status )
2956 ac_cv_header_stdc=no
2957 fi
2958 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2959 fi
2960 fi
2961 fi
2962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2964 if test $ac_cv_header_stdc = yes; then
2965
2966 cat >>confdefs.h <<\_ACEOF
2967 #define STDC_HEADERS 1
2968 _ACEOF
2969
2970 fi
2971
2972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2983 inttypes.h stdint.h unistd.h
2984 do
2985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2986 echo "$as_me:$LINENO: checking for $ac_header" >&5
2987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 cat >conftest.$ac_ext <<_ACEOF
2992 #line $LINENO "configure"
2993 #include "confdefs.h"
2994 $ac_includes_default
2995
2996 #include <$ac_header>
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000 (eval $ac_compile) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -s conftest.$ac_objext'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3010 eval "$as_ac_Header=yes"
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3014 eval "$as_ac_Header=no"
3015 fi
3016 rm -f conftest.$ac_objext conftest.$ac_ext
3017 fi
3018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3021 cat >>confdefs.h <<_ACEOF
3022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3023 _ACEOF
3024
3025 fi
3026
3027 done
3028
3029
3030 if test "${ac_cv_header_sys_param_h+set}" = set; then
3031 echo "$as_me:$LINENO: checking for sys/param.h" >&5
3032 echo $ECHO_N "checking for sys/param.h... $ECHO_C" >&6
3033 if test "${ac_cv_header_sys_param_h+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_header_sys_param_h" >&5
3037 echo "${ECHO_T}$ac_cv_header_sys_param_h" >&6
3038 else
3039 # Is the header compilable?
3040 echo "$as_me:$LINENO: checking sys/param.h usability" >&5
3041 echo $ECHO_N "checking sys/param.h usability... $ECHO_C" >&6
3042 cat >conftest.$ac_ext <<_ACEOF
3043 #line $LINENO "configure"
3044 #include "confdefs.h"
3045 $ac_includes_default
3046 #include <sys/param.h>
3047 _ACEOF
3048 rm -f conftest.$ac_objext
3049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3050 (eval $ac_compile) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 ac_header_compiler=yes
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3064 ac_header_compiler=no
3065 fi
3066 rm -f conftest.$ac_objext conftest.$ac_ext
3067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3068 echo "${ECHO_T}$ac_header_compiler" >&6
3069
3070 # Is the header present?
3071 echo "$as_me:$LINENO: checking sys/param.h presence" >&5
3072 echo $ECHO_N "checking sys/param.h presence... $ECHO_C" >&6
3073 cat >conftest.$ac_ext <<_ACEOF
3074 #line $LINENO "configure"
3075 #include "confdefs.h"
3076 #include <sys/param.h>
3077 _ACEOF
3078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3080 ac_status=$?
3081 egrep -v '^ *\+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } >/dev/null; then
3086 if test -s conftest.err; then
3087 ac_cpp_err=$ac_c_preproc_warn_flag
3088 else
3089 ac_cpp_err=
3090 fi
3091 else
3092 ac_cpp_err=yes
3093 fi
3094 if test -z "$ac_cpp_err"; then
3095 ac_header_preproc=yes
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 ac_header_preproc=no
3100 fi
3101 rm -f conftest.err conftest.$ac_ext
3102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3103 echo "${ECHO_T}$ac_header_preproc" >&6
3104
3105 # So? What about this header?
3106 case $ac_header_compiler:$ac_header_preproc in
3107 yes:no )
3108 { echo "$as_me:$LINENO: WARNING: sys/param.h: accepted by the compiler, rejected by the preprocessor!" >&5
3109 echo "$as_me: WARNING: sys/param.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3110 { echo "$as_me:$LINENO: WARNING: sys/param.h: proceeding with the preprocessor's result" >&5
3111 echo "$as_me: WARNING: sys/param.h: proceeding with the preprocessor's result" >&2;};;
3112 no:yes )
3113 { echo "$as_me:$LINENO: WARNING: sys/param.h: present but cannot be compiled" >&5
3114 echo "$as_me: WARNING: sys/param.h: present but cannot be compiled" >&2;}
3115 { echo "$as_me:$LINENO: WARNING: sys/param.h: check for missing prerequisite headers?" >&5
3116 echo "$as_me: WARNING: sys/param.h: check for missing prerequisite headers?" >&2;}
3117 { echo "$as_me:$LINENO: WARNING: sys/param.h: proceeding with the preprocessor's result" >&5
3118 echo "$as_me: WARNING: sys/param.h: proceeding with the preprocessor's result" >&2;};;
3119 esac
3120 echo "$as_me:$LINENO: checking for sys/param.h" >&5
3121 echo $ECHO_N "checking for sys/param.h... $ECHO_C" >&6
3122 if test "${ac_cv_header_sys_param_h+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 ac_cv_header_sys_param_h=$ac_header_preproc
3126 fi
3127 echo "$as_me:$LINENO: result: $ac_cv_header_sys_param_h" >&5
3128 echo "${ECHO_T}$ac_cv_header_sys_param_h" >&6
3129
3130 fi
3131 if test $ac_cv_header_sys_param_h = yes; then
3132 cat >>confdefs.h <<\_ACEOF
3133 #define PARAMH 1
3134 _ACEOF
3135
3136 fi
3137
3138
3139 if test "${ac_cv_header_stdlib_h+set}" = set; then
3140 echo "$as_me:$LINENO: checking for stdlib.h" >&5
3141 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3142 if test "${ac_cv_header_stdlib_h+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 fi
3145 echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3146 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
3147 else
3148 # Is the header compilable?
3149 echo "$as_me:$LINENO: checking stdlib.h usability" >&5
3150 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
3151 cat >conftest.$ac_ext <<_ACEOF
3152 #line $LINENO "configure"
3153 #include "confdefs.h"
3154 $ac_includes_default
3155 #include <stdlib.h>
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -s conftest.$ac_objext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_header_compiler=yes
3170 else
3171 echo "$as_me: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3173 ac_header_compiler=no
3174 fi
3175 rm -f conftest.$ac_objext conftest.$ac_ext
3176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3177 echo "${ECHO_T}$ac_header_compiler" >&6
3178
3179 # Is the header present?
3180 echo "$as_me:$LINENO: checking stdlib.h presence" >&5
3181 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
3182 cat >conftest.$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3184 #include "confdefs.h"
3185 #include <stdlib.h>
3186 _ACEOF
3187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3189 ac_status=$?
3190 egrep -v '^ *\+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } >/dev/null; then
3195 if test -s conftest.err; then
3196 ac_cpp_err=$ac_c_preproc_warn_flag
3197 else
3198 ac_cpp_err=
3199 fi
3200 else
3201 ac_cpp_err=yes
3202 fi
3203 if test -z "$ac_cpp_err"; then
3204 ac_header_preproc=yes
3205 else
3206 echo "$as_me: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3208 ac_header_preproc=no
3209 fi
3210 rm -f conftest.err conftest.$ac_ext
3211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3212 echo "${ECHO_T}$ac_header_preproc" >&6
3213
3214 # So? What about this header?
3215 case $ac_header_compiler:$ac_header_preproc in
3216 yes:no )
3217 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3218 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3219 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
3220 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;};;
3221 no:yes )
3222 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
3223 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
3224 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
3225 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
3226 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
3227 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;};;
3228 esac
3229 echo "$as_me:$LINENO: checking for stdlib.h" >&5
3230 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3231 if test "${ac_cv_header_stdlib_h+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 ac_cv_header_stdlib_h=$ac_header_preproc
3235 fi
3236 echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3237 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
3238
3239 fi
3240 if test $ac_cv_header_stdlib_h = yes; then
3241 cat >>confdefs.h <<\_ACEOF
3242 #define STDLIBH 1
3243 _ACEOF
3244
3245 fi
3246
3247
3248 if test "${ac_cv_header_stddef_h+set}" = set; then
3249 echo "$as_me:$LINENO: checking for stddef.h" >&5
3250 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
3251 if test "${ac_cv_header_stddef_h+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
3255 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
3256 else
3257 # Is the header compilable?
3258 echo "$as_me:$LINENO: checking stddef.h usability" >&5
3259 echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
3260 cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3262 #include "confdefs.h"
3263 $ac_includes_default
3264 #include <stddef.h>
3265 _ACEOF
3266 rm -f conftest.$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_header_compiler=yes
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3282 ac_header_compiler=no
3283 fi
3284 rm -f conftest.$ac_objext conftest.$ac_ext
3285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3286 echo "${ECHO_T}$ac_header_compiler" >&6
3287
3288 # Is the header present?
3289 echo "$as_me:$LINENO: checking stddef.h presence" >&5
3290 echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
3291 cat >conftest.$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3293 #include "confdefs.h"
3294 #include <stddef.h>
3295 _ACEOF
3296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3298 ac_status=$?
3299 egrep -v '^ *\+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 else
3307 ac_cpp_err=
3308 fi
3309 else
3310 ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313 ac_header_preproc=yes
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3317 ac_header_preproc=no
3318 fi
3319 rm -f conftest.err conftest.$ac_ext
3320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3321 echo "${ECHO_T}$ac_header_preproc" >&6
3322
3323 # So? What about this header?
3324 case $ac_header_compiler:$ac_header_preproc in
3325 yes:no )
3326 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
3327 echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3328 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
3329 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;};;
3330 no:yes )
3331 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
3332 echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
3333 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
3334 echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
3335 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
3336 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;};;
3337 esac
3338 echo "$as_me:$LINENO: checking for stddef.h" >&5
3339 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
3340 if test "${ac_cv_header_stddef_h+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343 ac_cv_header_stddef_h=$ac_header_preproc
3344 fi
3345 echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
3346 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
3347
3348 fi
3349 if test $ac_cv_header_stddef_h = yes; then
3350 cat >>confdefs.h <<\_ACEOF
3351 #define STDDEFH 1
3352 _ACEOF
3353
3354 fi
3355
3356
3357 if test "${ac_cv_header_sys_syslog_h+set}" = set; then
3358 echo "$as_me:$LINENO: checking for sys/syslog.h" >&5
3359 echo $ECHO_N "checking for sys/syslog.h... $ECHO_C" >&6
3360 if test "${ac_cv_header_sys_syslog_h+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_cv_header_sys_syslog_h" >&5
3364 echo "${ECHO_T}$ac_cv_header_sys_syslog_h" >&6
3365 else
3366 # Is the header compilable?
3367 echo "$as_me:$LINENO: checking sys/syslog.h usability" >&5
3368 echo $ECHO_N "checking sys/syslog.h usability... $ECHO_C" >&6
3369 cat >conftest.$ac_ext <<_ACEOF
3370 #line $LINENO "configure"
3371 #include "confdefs.h"
3372 $ac_includes_default
3373 #include <sys/syslog.h>
3374 _ACEOF
3375 rm -f conftest.$ac_objext
3376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3377 (eval $ac_compile) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 ac_header_compiler=yes
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3391 ac_header_compiler=no
3392 fi
3393 rm -f conftest.$ac_objext conftest.$ac_ext
3394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3395 echo "${ECHO_T}$ac_header_compiler" >&6
3396
3397 # Is the header present?
3398 echo "$as_me:$LINENO: checking sys/syslog.h presence" >&5
3399 echo $ECHO_N "checking sys/syslog.h presence... $ECHO_C" >&6
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3402 #include "confdefs.h"
3403 #include <sys/syslog.h>
3404 _ACEOF
3405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3407 ac_status=$?
3408 egrep -v '^ *\+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 else
3416 ac_cpp_err=
3417 fi
3418 else
3419 ac_cpp_err=yes
3420 fi
3421 if test -z "$ac_cpp_err"; then
3422 ac_header_preproc=yes
3423 else
3424 echo "$as_me: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3426 ac_header_preproc=no
3427 fi
3428 rm -f conftest.err conftest.$ac_ext
3429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3430 echo "${ECHO_T}$ac_header_preproc" >&6
3431
3432 # So? What about this header?
3433 case $ac_header_compiler:$ac_header_preproc in
3434 yes:no )
3435 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
3436 echo "$as_me: WARNING: sys/syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3437 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&5
3438 echo "$as_me: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&2;};;
3439 no:yes )
3440 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: present but cannot be compiled" >&5
3441 echo "$as_me: WARNING: sys/syslog.h: present but cannot be compiled" >&2;}
3442 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: check for missing prerequisite headers?" >&5
3443 echo "$as_me: WARNING: sys/syslog.h: check for missing prerequisite headers?" >&2;}
3444 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&5
3445 echo "$as_me: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&2;};;
3446 esac
3447 echo "$as_me:$LINENO: checking for sys/syslog.h" >&5
3448 echo $ECHO_N "checking for sys/syslog.h... $ECHO_C" >&6
3449 if test "${ac_cv_header_sys_syslog_h+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 ac_cv_header_sys_syslog_h=$ac_header_preproc
3453 fi
3454 echo "$as_me:$LINENO: result: $ac_cv_header_sys_syslog_h" >&5
3455 echo "${ECHO_T}$ac_cv_header_sys_syslog_h" >&6
3456
3457 fi
3458 if test $ac_cv_header_sys_syslog_h = yes; then
3459 cat >>confdefs.h <<\_ACEOF
3460 #define SYSSYSLOGH 1
3461 _ACEOF
3462
3463 fi
3464
3465
3466 if test "${ac_cv_header_unistd_h+set}" = set; then
3467 echo "$as_me:$LINENO: checking for unistd.h" >&5
3468 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3469 if test "${ac_cv_header_unistd_h+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 fi
3472 echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3473 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3474 else
3475 # Is the header compilable?
3476 echo "$as_me:$LINENO: checking unistd.h usability" >&5
3477 echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3479 #line $LINENO "configure"
3480 #include "confdefs.h"
3481 $ac_includes_default
3482 #include <unistd.h>
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_header_compiler=yes
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 ac_header_compiler=no
3501 fi
3502 rm -f conftest.$ac_objext conftest.$ac_ext
3503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3504 echo "${ECHO_T}$ac_header_compiler" >&6
3505
3506 # Is the header present?
3507 echo "$as_me:$LINENO: checking unistd.h presence" >&5
3508 echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
3509 cat >conftest.$ac_ext <<_ACEOF
3510 #line $LINENO "configure"
3511 #include "confdefs.h"
3512 #include <unistd.h>
3513 _ACEOF
3514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3516 ac_status=$?
3517 egrep -v '^ *\+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } >/dev/null; then
3522 if test -s conftest.err; then
3523 ac_cpp_err=$ac_c_preproc_warn_flag
3524 else
3525 ac_cpp_err=
3526 fi
3527 else
3528 ac_cpp_err=yes
3529 fi
3530 if test -z "$ac_cpp_err"; then
3531 ac_header_preproc=yes
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 ac_header_preproc=no
3536 fi
3537 rm -f conftest.err conftest.$ac_ext
3538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3539 echo "${ECHO_T}$ac_header_preproc" >&6
3540
3541 # So? What about this header?
3542 case $ac_header_compiler:$ac_header_preproc in
3543 yes:no )
3544 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3545 echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3546 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
3547 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;};;
3548 no:yes )
3549 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
3550 echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
3552 echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
3553 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
3554 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;};;
3555 esac
3556 echo "$as_me:$LINENO: checking for unistd.h" >&5
3557 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3558 if test "${ac_cv_header_unistd_h+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 ac_cv_header_unistd_h=$ac_header_preproc
3562 fi
3563 echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3564 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3565
3566 fi
3567 if test $ac_cv_header_unistd_h = yes; then
3568 cat >>confdefs.h <<\_ACEOF
3569 #define UNISTDH 1
3570 _ACEOF
3571
3572 fi
3573
3574
3575 if test "${ac_cv_header_string_h+set}" = set; then
3576 echo "$as_me:$LINENO: checking for string.h" >&5
3577 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3578 if test "${ac_cv_header_string_h+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 fi
3581 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
3582 echo "${ECHO_T}$ac_cv_header_string_h" >&6
3583 else
3584 # Is the header compilable?
3585 echo "$as_me:$LINENO: checking string.h usability" >&5
3586 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
3587 cat >conftest.$ac_ext <<_ACEOF
3588 #line $LINENO "configure"
3589 #include "confdefs.h"
3590 $ac_includes_default
3591 #include <string.h>
3592 _ACEOF
3593 rm -f conftest.$ac_objext
3594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595 (eval $ac_compile) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -s conftest.$ac_objext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_header_compiler=yes
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3609 ac_header_compiler=no
3610 fi
3611 rm -f conftest.$ac_objext conftest.$ac_ext
3612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3613 echo "${ECHO_T}$ac_header_compiler" >&6
3614
3615 # Is the header present?
3616 echo "$as_me:$LINENO: checking string.h presence" >&5
3617 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
3618 cat >conftest.$ac_ext <<_ACEOF
3619 #line $LINENO "configure"
3620 #include "confdefs.h"
3621 #include <string.h>
3622 _ACEOF
3623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3625 ac_status=$?
3626 egrep -v '^ *\+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } >/dev/null; then
3631 if test -s conftest.err; then
3632 ac_cpp_err=$ac_c_preproc_warn_flag
3633 else
3634 ac_cpp_err=
3635 fi
3636 else
3637 ac_cpp_err=yes
3638 fi
3639 if test -z "$ac_cpp_err"; then
3640 ac_header_preproc=yes
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3644 ac_header_preproc=no
3645 fi
3646 rm -f conftest.err conftest.$ac_ext
3647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3648 echo "${ECHO_T}$ac_header_preproc" >&6
3649
3650 # So? What about this header?
3651 case $ac_header_compiler:$ac_header_preproc in
3652 yes:no )
3653 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
3654 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3655 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
3656 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;};;
3657 no:yes )
3658 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
3659 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
3660 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
3661 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
3662 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
3663 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;};;
3664 esac
3665 echo "$as_me:$LINENO: checking for string.h" >&5
3666 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3667 if test "${ac_cv_header_string_h+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 ac_cv_header_string_h=$ac_header_preproc
3671 fi
3672 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
3673 echo "${ECHO_T}$ac_cv_header_string_h" >&6
3674
3675 fi
3676 if test $ac_cv_header_string_h = yes; then
3677 cat >>confdefs.h <<\_ACEOF
3678 #define STRINGH 1
3679 _ACEOF
3680
3681 fi
3682
3683
3684 if test "${ac_cv_header_strings_h+set}" = set; then
3685 echo "$as_me:$LINENO: checking for strings.h" >&5
3686 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
3687 if test "${ac_cv_header_strings_h+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 fi
3690 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
3691 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
3692 else
3693 # Is the header compilable?
3694 echo "$as_me:$LINENO: checking strings.h usability" >&5
3695 echo $ECHO_N "checking strings.h usability... $ECHO_C" >&6
3696 cat >conftest.$ac_ext <<_ACEOF
3697 #line $LINENO "configure"
3698 #include "confdefs.h"
3699 $ac_includes_default
3700 #include <strings.h>
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try='test -s conftest.$ac_objext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_header_compiler=yes
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 ac_header_compiler=no
3719 fi
3720 rm -f conftest.$ac_objext conftest.$ac_ext
3721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3722 echo "${ECHO_T}$ac_header_compiler" >&6
3723
3724 # Is the header present?
3725 echo "$as_me:$LINENO: checking strings.h presence" >&5
3726 echo $ECHO_N "checking strings.h presence... $ECHO_C" >&6
3727 cat >conftest.$ac_ext <<_ACEOF
3728 #line $LINENO "configure"
3729 #include "confdefs.h"
3730 #include <strings.h>
3731 _ACEOF
3732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3734 ac_status=$?
3735 egrep -v '^ *\+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } >/dev/null; then
3740 if test -s conftest.err; then
3741 ac_cpp_err=$ac_c_preproc_warn_flag
3742 else
3743 ac_cpp_err=
3744 fi
3745 else
3746 ac_cpp_err=yes
3747 fi
3748 if test -z "$ac_cpp_err"; then
3749 ac_header_preproc=yes
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 ac_header_preproc=no
3754 fi
3755 rm -f conftest.err conftest.$ac_ext
3756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3757 echo "${ECHO_T}$ac_header_preproc" >&6
3758
3759 # So? What about this header?
3760 case $ac_header_compiler:$ac_header_preproc in
3761 yes:no )
3762 { echo "$as_me:$LINENO: WARNING: strings.h: accepted by the compiler, rejected by the preprocessor!" >&5
3763 echo "$as_me: WARNING: strings.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3764 { echo "$as_me:$LINENO: WARNING: strings.h: proceeding with the preprocessor's result" >&5
3765 echo "$as_me: WARNING: strings.h: proceeding with the preprocessor's result" >&2;};;
3766 no:yes )
3767 { echo "$as_me:$LINENO: WARNING: strings.h: present but cannot be compiled" >&5
3768 echo "$as_me: WARNING: strings.h: present but cannot be compiled" >&2;}
3769 { echo "$as_me:$LINENO: WARNING: strings.h: check for missing prerequisite headers?" >&5
3770 echo "$as_me: WARNING: strings.h: check for missing prerequisite headers?" >&2;}
3771 { echo "$as_me:$LINENO: WARNING: strings.h: proceeding with the preprocessor's result" >&5
3772 echo "$as_me: WARNING: strings.h: proceeding with the preprocessor's result" >&2;};;
3773 esac
3774 echo "$as_me:$LINENO: checking for strings.h" >&5
3775 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
3776 if test "${ac_cv_header_strings_h+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 ac_cv_header_strings_h=$ac_header_preproc
3780 fi
3781 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
3782 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
3783
3784 fi
3785 if test $ac_cv_header_strings_h = yes; then
3786 cat >>confdefs.h <<\_ACEOF
3787 #define STRINGSH 1
3788 _ACEOF
3789
3790 fi
3791
3792
3793 if test "${ac_cv_header_malloc_h+set}" = set; then
3794 echo "$as_me:$LINENO: checking for malloc.h" >&5
3795 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
3796 if test "${ac_cv_header_malloc_h+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 fi
3799 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
3800 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
3801 else
3802 # Is the header compilable?
3803 echo "$as_me:$LINENO: checking malloc.h usability" >&5
3804 echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3806 #line $LINENO "configure"
3807 #include "confdefs.h"
3808 $ac_includes_default
3809 #include <malloc.h>
3810 _ACEOF
3811 rm -f conftest.$ac_objext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3813 (eval $ac_compile) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_header_compiler=yes
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 ac_header_compiler=no
3828 fi
3829 rm -f conftest.$ac_objext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3831 echo "${ECHO_T}$ac_header_compiler" >&6
3832
3833 # Is the header present?
3834 echo "$as_me:$LINENO: checking malloc.h presence" >&5
3835 echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3837 #line $LINENO "configure"
3838 #include "confdefs.h"
3839 #include <malloc.h>
3840 _ACEOF
3841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3843 ac_status=$?
3844 egrep -v '^ *\+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev/null; then
3849 if test -s conftest.err; then
3850 ac_cpp_err=$ac_c_preproc_warn_flag
3851 else
3852 ac_cpp_err=
3853 fi
3854 else
3855 ac_cpp_err=yes
3856 fi
3857 if test -z "$ac_cpp_err"; then
3858 ac_header_preproc=yes
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3862 ac_header_preproc=no
3863 fi
3864 rm -f conftest.err conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3866 echo "${ECHO_T}$ac_header_preproc" >&6
3867
3868 # So? What about this header?
3869 case $ac_header_compiler:$ac_header_preproc in
3870 yes:no )
3871 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
3872 echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
3874 echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;};;
3875 no:yes )
3876 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
3877 echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
3878 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
3879 echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
3880 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
3881 echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;};;
3882 esac
3883 echo "$as_me:$LINENO: checking for malloc.h" >&5
3884 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
3885 if test "${ac_cv_header_malloc_h+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 ac_cv_header_malloc_h=$ac_header_preproc
3889 fi
3890 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
3891 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
3892
3893 fi
3894 if test $ac_cv_header_malloc_h = yes; then
3895 cat >>confdefs.h <<\_ACEOF
3896 #define MALLOCH <malloc.h>
3897 _ACEOF
3898
3899 fi
3900
3901
3902 if test "${ac_cv_header_sys_rusage_h+set}" = set; then
3903 echo "$as_me:$LINENO: checking for sys/rusage.h" >&5
3904 echo $ECHO_N "checking for sys/rusage.h... $ECHO_C" >&6
3905 if test "${ac_cv_header_sys_rusage_h+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 fi
3908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_rusage_h" >&5
3909 echo "${ECHO_T}$ac_cv_header_sys_rusage_h" >&6
3910 else
3911 # Is the header compilable?
3912 echo "$as_me:$LINENO: checking sys/rusage.h usability" >&5
3913 echo $ECHO_N "checking sys/rusage.h usability... $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line $LINENO "configure"
3916 #include "confdefs.h"
3917 $ac_includes_default
3918 #include <sys/rusage.h>
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -s conftest.$ac_objext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 ac_header_compiler=yes
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 ac_header_compiler=no
3937 fi
3938 rm -f conftest.$ac_objext conftest.$ac_ext
3939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3940 echo "${ECHO_T}$ac_header_compiler" >&6
3941
3942 # Is the header present?
3943 echo "$as_me:$LINENO: checking sys/rusage.h presence" >&5
3944 echo $ECHO_N "checking sys/rusage.h presence... $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3946 #line $LINENO "configure"
3947 #include "confdefs.h"
3948 #include <sys/rusage.h>
3949 _ACEOF
3950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952 ac_status=$?
3953 egrep -v '^ *\+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null; then
3958 if test -s conftest.err; then
3959 ac_cpp_err=$ac_c_preproc_warn_flag
3960 else
3961 ac_cpp_err=
3962 fi
3963 else
3964 ac_cpp_err=yes
3965 fi
3966 if test -z "$ac_cpp_err"; then
3967 ac_header_preproc=yes
3968 else
3969 echo "$as_me: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 ac_header_preproc=no
3972 fi
3973 rm -f conftest.err conftest.$ac_ext
3974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3975 echo "${ECHO_T}$ac_header_preproc" >&6
3976
3977 # So? What about this header?
3978 case $ac_header_compiler:$ac_header_preproc in
3979 yes:no )
3980 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: accepted by the compiler, rejected by the preprocessor!" >&5
3981 echo "$as_me: WARNING: sys/rusage.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3982 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&5
3983 echo "$as_me: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&2;};;
3984 no:yes )
3985 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: present but cannot be compiled" >&5
3986 echo "$as_me: WARNING: sys/rusage.h: present but cannot be compiled" >&2;}
3987 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: check for missing prerequisite headers?" >&5
3988 echo "$as_me: WARNING: sys/rusage.h: check for missing prerequisite headers?" >&2;}
3989 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&5
3990 echo "$as_me: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&2;};;
3991 esac
3992 echo "$as_me:$LINENO: checking for sys/rusage.h" >&5
3993 echo $ECHO_N "checking for sys/rusage.h... $ECHO_C" >&6
3994 if test "${ac_cv_header_sys_rusage_h+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 ac_cv_header_sys_rusage_h=$ac_header_preproc
3998 fi
3999 echo "$as_me:$LINENO: result: $ac_cv_header_sys_rusage_h" >&5
4000 echo "${ECHO_T}$ac_cv_header_sys_rusage_h" >&6
4001
4002 fi
4003 if test $ac_cv_header_sys_rusage_h = yes; then
4004 cat >>confdefs.h <<\_ACEOF
4005 #define RUSAGEH 1
4006 _ACEOF
4007
4008 fi
4009
4010
4011 if test "${ac_cv_header_glob_h+set}" = set; then
4012 echo "$as_me:$LINENO: checking for glob.h" >&5
4013 echo $ECHO_N "checking for glob.h... $ECHO_C" >&6
4014 if test "${ac_cv_header_glob_h+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 fi
4017 echo "$as_me:$LINENO: result: $ac_cv_header_glob_h" >&5
4018 echo "${ECHO_T}$ac_cv_header_glob_h" >&6
4019 else
4020 # Is the header compilable?
4021 echo "$as_me:$LINENO: checking glob.h usability" >&5
4022 echo $ECHO_N "checking glob.h usability... $ECHO_C" >&6
4023 cat >conftest.$ac_ext <<_ACEOF
4024 #line $LINENO "configure"
4025 #include "confdefs.h"
4026 $ac_includes_default
4027 #include <glob.h>
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_header_compiler=yes
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4045 ac_header_compiler=no
4046 fi
4047 rm -f conftest.$ac_objext conftest.$ac_ext
4048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4049 echo "${ECHO_T}$ac_header_compiler" >&6
4050
4051 # Is the header present?
4052 echo "$as_me:$LINENO: checking glob.h presence" >&5
4053 echo $ECHO_N "checking glob.h presence... $ECHO_C" >&6
4054 cat >conftest.$ac_ext <<_ACEOF
4055 #line $LINENO "configure"
4056 #include "confdefs.h"
4057 #include <glob.h>
4058 _ACEOF
4059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4061 ac_status=$?
4062 egrep -v '^ *\+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null; then
4067 if test -s conftest.err; then
4068 ac_cpp_err=$ac_c_preproc_warn_flag
4069 else
4070 ac_cpp_err=
4071 fi
4072 else
4073 ac_cpp_err=yes
4074 fi
4075 if test -z "$ac_cpp_err"; then
4076 ac_header_preproc=yes
4077 else
4078 echo "$as_me: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4080 ac_header_preproc=no
4081 fi
4082 rm -f conftest.err conftest.$ac_ext
4083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4084 echo "${ECHO_T}$ac_header_preproc" >&6
4085
4086 # So? What about this header?
4087 case $ac_header_compiler:$ac_header_preproc in
4088 yes:no )
4089 { echo "$as_me:$LINENO: WARNING: glob.h: accepted by the compiler, rejected by the preprocessor!" >&5
4090 echo "$as_me: WARNING: glob.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4091 { echo "$as_me:$LINENO: WARNING: glob.h: proceeding with the preprocessor's result" >&5
4092 echo "$as_me: WARNING: glob.h: proceeding with the preprocessor's result" >&2;};;
4093 no:yes )
4094 { echo "$as_me:$LINENO: WARNING: glob.h: present but cannot be compiled" >&5
4095 echo "$as_me: WARNING: glob.h: present but cannot be compiled" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: glob.h: check for missing prerequisite headers?" >&5
4097 echo "$as_me: WARNING: glob.h: check for missing prerequisite headers?" >&2;}
4098 { echo "$as_me:$LINENO: WARNING: glob.h: proceeding with the preprocessor's result" >&5
4099 echo "$as_me: WARNING: glob.h: proceeding with the preprocessor's result" >&2;};;
4100 esac
4101 echo "$as_me:$LINENO: checking for glob.h" >&5
4102 echo $ECHO_N "checking for glob.h... $ECHO_C" >&6
4103 if test "${ac_cv_header_glob_h+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 ac_cv_header_glob_h=$ac_header_preproc
4107 fi
4108 echo "$as_me:$LINENO: result: $ac_cv_header_glob_h" >&5
4109 echo "${ECHO_T}$ac_cv_header_glob_h" >&6
4110
4111 fi
4112 if test $ac_cv_header_glob_h = yes; then
4113 cat >>confdefs.h <<\_ACEOF
4114 #define GLOBH 1
4115 _ACEOF
4116
4117 fi
4118
4119
4120 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4121 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4122 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 ac_cv_prog_cc_stdc=no
4126 ac_save_CC=$CC
4127 cat >conftest.$ac_ext <<_ACEOF
4128 #line $LINENO "configure"
4129 #include "confdefs.h"
4130 #include <stdarg.h>
4131 #include <stdio.h>
4132 #include <sys/types.h>
4133 #include <sys/stat.h>
4134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4135 struct buf { int x; };
4136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137 static char *e (p, i)
4138 char **p;
4139 int i;
4140 {
4141 return p[i];
4142 }
4143 static char *f (char * (*g) (char **, int), char **p, ...)
4144 {
4145 char *s;
4146 va_list v;
4147 va_start (v,p);
4148 s = g (p, va_arg (v,int));
4149 va_end (v);
4150 return s;
4151 }
4152 int test (int i, double x);
4153 struct s1 {int (*f) (int a);};
4154 struct s2 {int (*f) (double a);};
4155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4156 int argc;
4157 char **argv;
4158 #ifdef F77_DUMMY_MAIN
4159 # ifdef __cplusplus
4160 extern "C"
4161 # endif
4162 int F77_DUMMY_MAIN() { return 1; }
4163 #endif
4164 int
4165 main ()
4166 {
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 # Don't try gcc -ansi; that turns off useful extensions and
4173 # breaks some systems' header files.
4174 # AIX -qlanglvl=ansi
4175 # Ultrix and OSF/1 -std1
4176 # HP-UX 10.20 and later -Ae
4177 # HP-UX older versions -Aa -D_HPUX_SOURCE
4178 # SVR4 -Xc -D__EXTENSIONS__
4179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4180 do
4181 CC="$ac_save_CC $ac_arg"
4182 rm -f conftest.$ac_objext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4184 (eval $ac_compile) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -s conftest.$ac_objext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_prog_cc_stdc=$ac_arg
4195 break
4196 else
4197 echo "$as_me: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4199 fi
4200 rm -f conftest.$ac_objext
4201 done
4202 rm -f conftest.$ac_ext conftest.$ac_objext
4203 CC=$ac_save_CC
4204
4205 fi
4206
4207 case "x$ac_cv_prog_cc_stdc" in
4208 x|xno)
4209 echo "$as_me:$LINENO: result: none needed" >&5
4210 echo "${ECHO_T}none needed" >&6 ;;
4211 *)
4212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4214 CC="$CC $ac_cv_prog_cc_stdc" ;;
4215 esac
4216
4217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4219 if test "${ac_cv_c_const+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 cat >conftest.$ac_ext <<_ACEOF
4223 #line $LINENO "configure"
4224 #include "confdefs.h"
4225
4226 #ifdef F77_DUMMY_MAIN
4227 # ifdef __cplusplus
4228 extern "C"
4229 # endif
4230 int F77_DUMMY_MAIN() { return 1; }
4231 #endif
4232 int
4233 main ()
4234 {
4235 /* FIXME: Include the comments suggested by Paul. */
4236 #ifndef __cplusplus
4237 /* Ultrix mips cc rejects this. */
4238 typedef int charset[2];
4239 const charset x;
4240 /* SunOS 4.1.1 cc rejects this. */
4241 char const *const *ccp;
4242 char **p;
4243 /* NEC SVR4.0.2 mips cc rejects this. */
4244 struct point {int x, y;};
4245 static struct point const zero = {0,0};
4246 /* AIX XL C 1.02.0.0 rejects this.
4247 It does not let you subtract one const X* pointer from another in
4248 an arm of an if-expression whose if-part is not a constant
4249 expression */
4250 const char *g = "string";
4251 ccp = &g + (g ? g-g : 0);
4252 /* HPUX 7.0 cc rejects these. */
4253 ++ccp;
4254 p = (char**) ccp;
4255 ccp = (char const *const *) p;
4256 { /* SCO 3.2v4 cc rejects this. */
4257 char *t;
4258 char const *s = 0 ? (char *) 0 : (char const *) 0;
4259
4260 *t++ = 0;
4261 }
4262 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4263 int x[] = {25, 17};
4264 const int *foo = &x[0];
4265 ++foo;
4266 }
4267 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4268 typedef const int *iptr;
4269 iptr p = 0;
4270 ++p;
4271 }
4272 { /* AIX XL C 1.02.0.0 rejects this saying
4273 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4274 struct s { int j; const int *ap[3]; };
4275 struct s *b; b->j = 5;
4276 }
4277 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4278 const int foo = 10;
4279 }
4280 #endif
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_c_const=yes
4299 else
4300 echo "$as_me: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 ac_cv_c_const=no
4303 fi
4304 rm -f conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4307 echo "${ECHO_T}$ac_cv_c_const" >&6
4308 if test $ac_cv_c_const = no; then
4309
4310 cat >>confdefs.h <<\_ACEOF
4311 #define const
4312 _ACEOF
4313
4314 fi
4315
4316 echo "$as_me:$LINENO: checking for inline" >&5
4317 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4318 if test "${ac_cv_c_inline+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 ac_cv_c_inline=no
4322 for ac_kw in inline __inline__ __inline; do
4323 cat >conftest.$ac_ext <<_ACEOF
4324 #line $LINENO "configure"
4325 #include "confdefs.h"
4326 #ifndef __cplusplus
4327 static $ac_kw int static_foo () {return 0; }
4328 $ac_kw int foo () {return 0; }
4329 #endif
4330
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_c_inline=$ac_kw; break
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4348 fi
4349 rm -f conftest.$ac_objext conftest.$ac_ext
4350 done
4351
4352 fi
4353 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4354 echo "${ECHO_T}$ac_cv_c_inline" >&6
4355 case $ac_cv_c_inline in
4356 inline | yes) ;;
4357 no)
4358 cat >>confdefs.h <<\_ACEOF
4359 #define inline
4360 _ACEOF
4361 ;;
4362 *) cat >>confdefs.h <<_ACEOF
4363 #define inline $ac_cv_c_inline
4364 _ACEOF
4365 ;;
4366 esac
4367
4368 echo "$as_me:$LINENO: checking for size_t" >&5
4369 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4370 if test "${ac_cv_type_size_t+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 cat >conftest.$ac_ext <<_ACEOF
4374 #line $LINENO "configure"
4375 #include "confdefs.h"
4376 $ac_includes_default
4377 #ifdef F77_DUMMY_MAIN
4378 # ifdef __cplusplus
4379 extern "C"
4380 # endif
4381 int F77_DUMMY_MAIN() { return 1; }
4382 #endif
4383 int
4384 main ()
4385 {
4386 if ((size_t *) 0)
4387 return 0;
4388 if (sizeof (size_t))
4389 return 0;
4390 ;
4391 return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_type_size_t=yes
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 ac_cv_type_size_t=no
4411 fi
4412 rm -f conftest.$ac_objext conftest.$ac_ext
4413 fi
4414 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4415 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4416 if test $ac_cv_type_size_t = yes; then
4417 :
4418 else
4419
4420 cat >>confdefs.h <<_ACEOF
4421 #define size_t unsigned
4422 _ACEOF
4423
4424 fi
4425
4426 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4427 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4428 if test "${ac_cv_header_time+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4433 #include "confdefs.h"
4434 #include <sys/types.h>
4435 #include <sys/time.h>
4436 #include <time.h>
4437
4438 #ifdef F77_DUMMY_MAIN
4439 # ifdef __cplusplus
4440 extern "C"
4441 # endif
4442 int F77_DUMMY_MAIN() { return 1; }
4443 #endif
4444 int
4445 main ()
4446 {
4447 if ((struct tm *) 0)
4448 return 0;
4449 ;
4450 return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_cv_header_time=yes
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4469 ac_cv_header_time=no
4470 fi
4471 rm -f conftest.$ac_objext conftest.$ac_ext
4472 fi
4473 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4474 echo "${ECHO_T}$ac_cv_header_time" >&6
4475 if test $ac_cv_header_time = yes; then
4476
4477 cat >>confdefs.h <<\_ACEOF
4478 #define TIME_WITH_SYS_TIME 1
4479 _ACEOF
4480
4481 fi
4482
4483 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4484 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4485 if test "${ac_cv_struct_tm+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 cat >conftest.$ac_ext <<_ACEOF
4489 #line $LINENO "configure"
4490 #include "confdefs.h"
4491 #include <sys/types.h>
4492 #include <time.h>
4493
4494 #ifdef F77_DUMMY_MAIN
4495 # ifdef __cplusplus
4496 extern "C"
4497 # endif
4498 int F77_DUMMY_MAIN() { return 1; }
4499 #endif
4500 int
4501 main ()
4502 {
4503 struct tm *tp; tp->tm_sec;
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 ac_cv_struct_tm=time.h
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 ac_cv_struct_tm=sys/time.h
4525 fi
4526 rm -f conftest.$ac_objext conftest.$ac_ext
4527 fi
4528 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4529 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4530 if test $ac_cv_struct_tm = sys/time.h; then
4531
4532 cat >>confdefs.h <<\_ACEOF
4533 #define TM_IN_SYS_TIME 1
4534 _ACEOF
4535
4536 fi
4537
4538 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4539 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4540 if test "${ac_cv_type_uid_t+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4545 #include "confdefs.h"
4546 #include <sys/types.h>
4547
4548 _ACEOF
4549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550 egrep "uid_t" >/dev/null 2>&1; then
4551 ac_cv_type_uid_t=yes
4552 else
4553 ac_cv_type_uid_t=no
4554 fi
4555 rm -f conftest*
4556
4557 fi
4558 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4559 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4560 if test $ac_cv_type_uid_t = no; then
4561
4562 cat >>confdefs.h <<\_ACEOF
4563 #define uid_t int
4564 _ACEOF
4565
4566
4567 cat >>confdefs.h <<\_ACEOF
4568 #define gid_t int
4569 _ACEOF
4570
4571 fi
4572
4573 echo "$as_me:$LINENO: checking for short" >&5
4574 echo $ECHO_N "checking for short... $ECHO_C" >&6
4575 if test "${ac_cv_type_short+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 cat >conftest.$ac_ext <<_ACEOF
4579 #line $LINENO "configure"
4580 #include "confdefs.h"
4581 $ac_includes_default
4582 #ifdef F77_DUMMY_MAIN
4583 # ifdef __cplusplus
4584 extern "C"
4585 # endif
4586 int F77_DUMMY_MAIN() { return 1; }
4587 #endif
4588 int
4589 main ()
4590 {
4591 if ((short *) 0)
4592 return 0;
4593 if (sizeof (short))
4594 return 0;
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_type_short=yes
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 ac_cv_type_short=no
4616 fi
4617 rm -f conftest.$ac_objext conftest.$ac_ext
4618 fi
4619 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4620 echo "${ECHO_T}$ac_cv_type_short" >&6
4621
4622 echo "$as_me:$LINENO: checking size of short" >&5
4623 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4624 if test "${ac_cv_sizeof_short+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 if test "$ac_cv_type_short" = yes; then
4628 # The cast to unsigned long works around a bug in the HP C Compiler
4629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4631 # This bug is HP SR number 8606223364.
4632 if test "$cross_compiling" = yes; then
4633 # Depending upon the size, compute the lo and hi bounds.
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 #include "confdefs.h"
4637 $ac_includes_default
4638 #ifdef F77_DUMMY_MAIN
4639 # ifdef __cplusplus
4640 extern "C"
4641 # endif
4642 int F77_DUMMY_MAIN() { return 1; }
4643 #endif
4644 int
4645 main ()
4646 {
4647 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4648 test_array [0] = 0
4649
4650 ;
4651 return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 ac_lo=0 ac_mid=0
4667 while :; do
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #line $LINENO "configure"
4670 #include "confdefs.h"
4671 $ac_includes_default
4672 #ifdef F77_DUMMY_MAIN
4673 # ifdef __cplusplus
4674 extern "C"
4675 # endif
4676 int F77_DUMMY_MAIN() { return 1; }
4677 #endif
4678 int
4679 main ()
4680 {
4681 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4682 test_array [0] = 0
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 ac_hi=$ac_mid; break
4701 else
4702 echo "$as_me: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4704 ac_lo=`expr $ac_mid + 1`
4705 if test $ac_lo -le $ac_mid; then
4706 ac_lo= ac_hi=
4707 break
4708 fi
4709 ac_mid=`expr 2 '*' $ac_mid + 1`
4710 fi
4711 rm -f conftest.$ac_objext conftest.$ac_ext
4712 done
4713 else
4714 echo "$as_me: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4716 cat >conftest.$ac_ext <<_ACEOF
4717 #line $LINENO "configure"
4718 #include "confdefs.h"
4719 $ac_includes_default
4720 #ifdef F77_DUMMY_MAIN
4721 # ifdef __cplusplus
4722 extern "C"
4723 # endif
4724 int F77_DUMMY_MAIN() { return 1; }
4725 #endif
4726 int
4727 main ()
4728 {
4729 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4730 test_array [0] = 0
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_hi=-1 ac_mid=-1
4749 while :; do
4750 cat >conftest.$ac_ext <<_ACEOF
4751 #line $LINENO "configure"
4752 #include "confdefs.h"
4753 $ac_includes_default
4754 #ifdef F77_DUMMY_MAIN
4755 # ifdef __cplusplus
4756 extern "C"
4757 # endif
4758 int F77_DUMMY_MAIN() { return 1; }
4759 #endif
4760 int
4761 main ()
4762 {
4763 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4764 test_array [0] = 0
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772 (eval $ac_compile) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_lo=$ac_mid; break
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4786 ac_hi=`expr '(' $ac_mid ')' - 1`
4787 if test $ac_mid -le $ac_hi; then
4788 ac_lo= ac_hi=
4789 break
4790 fi
4791 ac_mid=`expr 2 '*' $ac_mid`
4792 fi
4793 rm -f conftest.$ac_objext conftest.$ac_ext
4794 done
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_lo= ac_hi=
4799 fi
4800 rm -f conftest.$ac_objext conftest.$ac_ext
4801 fi
4802 rm -f conftest.$ac_objext conftest.$ac_ext
4803 # Binary search between lo and hi bounds.
4804 while test "x$ac_lo" != "x$ac_hi"; do
4805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4806 cat >conftest.$ac_ext <<_ACEOF
4807 #line $LINENO "configure"
4808 #include "confdefs.h"
4809 $ac_includes_default
4810 #ifdef F77_DUMMY_MAIN
4811 # ifdef __cplusplus
4812 extern "C"
4813 # endif
4814 int F77_DUMMY_MAIN() { return 1; }
4815 #endif
4816 int
4817 main ()
4818 {
4819 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4820 test_array [0] = 0
4821
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_hi=$ac_mid
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 ac_lo=`expr '(' $ac_mid ')' + 1`
4843 fi
4844 rm -f conftest.$ac_objext conftest.$ac_ext
4845 done
4846 case $ac_lo in
4847 ?*) ac_cv_sizeof_short=$ac_lo;;
4848 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4849 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4851 esac
4852 else
4853 if test "$cross_compiling" = yes; then
4854 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4855 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4856 { (exit 1); exit 1; }; }
4857 else
4858 cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4860 #include "confdefs.h"
4861 $ac_includes_default
4862 long longval () { return (long) (sizeof (short)); }
4863 unsigned long ulongval () { return (long) (sizeof (short)); }
4864 #include <stdio.h>
4865 #include <stdlib.h>
4866 #ifdef F77_DUMMY_MAIN
4867 # ifdef __cplusplus
4868 extern "C"
4869 # endif
4870 int F77_DUMMY_MAIN() { return 1; }
4871 #endif
4872 int
4873 main ()
4874 {
4875
4876 FILE *f = fopen ("conftest.val", "w");
4877 if (! f)
4878 exit (1);
4879 if (((long) (sizeof (short))) < 0)
4880 {
4881 long i = longval ();
4882 if (i != ((long) (sizeof (short))))
4883 exit (1);
4884 fprintf (f, "%ld\n", i);
4885 }
4886 else
4887 {
4888 unsigned long i = ulongval ();
4889 if (i != ((long) (sizeof (short))))
4890 exit (1);
4891 fprintf (f, "%lu\n", i);
4892 }
4893 exit (ferror (f) || fclose (f) != 0);
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest$ac_exeext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901 (eval $ac_link) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_sizeof_short=`cat conftest.val`
4911 else
4912 echo "$as_me: program exited with status $ac_status" >&5
4913 echo "$as_me: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 ( exit $ac_status )
4916 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4917 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4918 { (exit 1); exit 1; }; }
4919 fi
4920 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4921 fi
4922 fi
4923 rm -f conftest.val
4924 else
4925 ac_cv_sizeof_short=0
4926 fi
4927 fi
4928 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4929 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4930 cat >>confdefs.h <<_ACEOF
4931 #define SIZEOF_SHORT $ac_cv_sizeof_short
4932 _ACEOF
4933
4934
4935 echo "$as_me:$LINENO: checking for int" >&5
4936 echo $ECHO_N "checking for int... $ECHO_C" >&6
4937 if test "${ac_cv_type_int+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 #include "confdefs.h"
4943 $ac_includes_default
4944 #ifdef F77_DUMMY_MAIN
4945 # ifdef __cplusplus
4946 extern "C"
4947 # endif
4948 int F77_DUMMY_MAIN() { return 1; }
4949 #endif
4950 int
4951 main ()
4952 {
4953 if ((int *) 0)
4954 return 0;
4955 if (sizeof (int))
4956 return 0;
4957 ;
4958 return 0;
4959 }
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_cv_type_int=yes
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 ac_cv_type_int=no
4978 fi
4979 rm -f conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4982 echo "${ECHO_T}$ac_cv_type_int" >&6
4983
4984 echo "$as_me:$LINENO: checking size of int" >&5
4985 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4986 if test "${ac_cv_sizeof_int+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test "$ac_cv_type_int" = yes; then
4990 # The cast to unsigned long works around a bug in the HP C Compiler
4991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4993 # This bug is HP SR number 8606223364.
4994 if test "$cross_compiling" = yes; then
4995 # Depending upon the size, compute the lo and hi bounds.
4996 cat >conftest.$ac_ext <<_ACEOF
4997 #line $LINENO "configure"
4998 #include "confdefs.h"
4999 $ac_includes_default
5000 #ifdef F77_DUMMY_MAIN
5001 # ifdef __cplusplus
5002 extern "C"
5003 # endif
5004 int F77_DUMMY_MAIN() { return 1; }
5005 #endif
5006 int
5007 main ()
5008 {
5009 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5010 test_array [0] = 0
5011
5012 ;
5013 return 0;
5014 }
5015 _ACEOF
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 ac_lo=0 ac_mid=0
5029 while :; do
5030 cat >conftest.$ac_ext <<_ACEOF
5031 #line $LINENO "configure"
5032 #include "confdefs.h"
5033 $ac_includes_default
5034 #ifdef F77_DUMMY_MAIN
5035 # ifdef __cplusplus
5036 extern "C"
5037 # endif
5038 int F77_DUMMY_MAIN() { return 1; }
5039 #endif
5040 int
5041 main ()
5042 {
5043 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5044 test_array [0] = 0
5045
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_hi=$ac_mid; break
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 ac_lo=`expr $ac_mid + 1`
5067 if test $ac_lo -le $ac_mid; then
5068 ac_lo= ac_hi=
5069 break
5070 fi
5071 ac_mid=`expr 2 '*' $ac_mid + 1`
5072 fi
5073 rm -f conftest.$ac_objext conftest.$ac_ext
5074 done
5075 else
5076 echo "$as_me: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5078 cat >conftest.$ac_ext <<_ACEOF
5079 #line $LINENO "configure"
5080 #include "confdefs.h"
5081 $ac_includes_default
5082 #ifdef F77_DUMMY_MAIN
5083 # ifdef __cplusplus
5084 extern "C"
5085 # endif
5086 int F77_DUMMY_MAIN() { return 1; }
5087 #endif
5088 int
5089 main ()
5090 {
5091 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5092 test_array [0] = 0
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_hi=-1 ac_mid=-1
5111 while :; do
5112 cat >conftest.$ac_ext <<_ACEOF
5113 #line $LINENO "configure"
5114 #include "confdefs.h"
5115 $ac_includes_default
5116 #ifdef F77_DUMMY_MAIN
5117 # ifdef __cplusplus
5118 extern "C"
5119 # endif
5120 int F77_DUMMY_MAIN() { return 1; }
5121 #endif
5122 int
5123 main ()
5124 {
5125 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5126 test_array [0] = 0
5127
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -s conftest.$ac_objext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 ac_lo=$ac_mid; break
5145 else
5146 echo "$as_me: failed program was:" >&5
5147 cat conftest.$ac_ext >&5
5148 ac_hi=`expr '(' $ac_mid ')' - 1`
5149 if test $ac_mid -le $ac_hi; then
5150 ac_lo= ac_hi=
5151 break
5152 fi
5153 ac_mid=`expr 2 '*' $ac_mid`
5154 fi
5155 rm -f conftest.$ac_objext conftest.$ac_ext
5156 done
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5160 ac_lo= ac_hi=
5161 fi
5162 rm -f conftest.$ac_objext conftest.$ac_ext
5163 fi
5164 rm -f conftest.$ac_objext conftest.$ac_ext
5165 # Binary search between lo and hi bounds.
5166 while test "x$ac_lo" != "x$ac_hi"; do
5167 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5168 cat >conftest.$ac_ext <<_ACEOF
5169 #line $LINENO "configure"
5170 #include "confdefs.h"
5171 $ac_includes_default
5172 #ifdef F77_DUMMY_MAIN
5173 # ifdef __cplusplus
5174 extern "C"
5175 # endif
5176 int F77_DUMMY_MAIN() { return 1; }
5177 #endif
5178 int
5179 main ()
5180 {
5181 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5182 test_array [0] = 0
5183
5184 ;
5185 return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext
5189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190 (eval $ac_compile) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try='test -s conftest.$ac_objext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 ac_hi=$ac_mid
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5204 ac_lo=`expr '(' $ac_mid ')' + 1`
5205 fi
5206 rm -f conftest.$ac_objext conftest.$ac_ext
5207 done
5208 case $ac_lo in
5209 ?*) ac_cv_sizeof_int=$ac_lo;;
5210 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5211 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5213 esac
5214 else
5215 if test "$cross_compiling" = yes; then
5216 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5217 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5218 { (exit 1); exit 1; }; }
5219 else
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line $LINENO "configure"
5222 #include "confdefs.h"
5223 $ac_includes_default
5224 long longval () { return (long) (sizeof (int)); }
5225 unsigned long ulongval () { return (long) (sizeof (int)); }
5226 #include <stdio.h>
5227 #include <stdlib.h>
5228 #ifdef F77_DUMMY_MAIN
5229 # ifdef __cplusplus
5230 extern "C"
5231 # endif
5232 int F77_DUMMY_MAIN() { return 1; }
5233 #endif
5234 int
5235 main ()
5236 {
5237
5238 FILE *f = fopen ("conftest.val", "w");
5239 if (! f)
5240 exit (1);
5241 if (((long) (sizeof (int))) < 0)
5242 {
5243 long i = longval ();
5244 if (i != ((long) (sizeof (int))))
5245 exit (1);
5246 fprintf (f, "%ld\n", i);
5247 }
5248 else
5249 {
5250 unsigned long i = ulongval ();
5251 if (i != ((long) (sizeof (int))))
5252 exit (1);
5253 fprintf (f, "%lu\n", i);
5254 }
5255 exit (ferror (f) || fclose (f) != 0);
5256
5257 ;
5258 return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 ac_cv_sizeof_int=`cat conftest.val`
5273 else
5274 echo "$as_me: program exited with status $ac_status" >&5
5275 echo "$as_me: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5277 ( exit $ac_status )
5278 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5279 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5280 { (exit 1); exit 1; }; }
5281 fi
5282 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 fi
5285 rm -f conftest.val
5286 else
5287 ac_cv_sizeof_int=0
5288 fi
5289 fi
5290 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5291 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5292 cat >>confdefs.h <<_ACEOF
5293 #define SIZEOF_INT $ac_cv_sizeof_int
5294 _ACEOF
5295
5296
5297 echo "$as_me:$LINENO: checking for long" >&5
5298 echo $ECHO_N "checking for long... $ECHO_C" >&6
5299 if test "${ac_cv_type_long+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 cat >conftest.$ac_ext <<_ACEOF
5303 #line $LINENO "configure"
5304 #include "confdefs.h"
5305 $ac_includes_default
5306 #ifdef F77_DUMMY_MAIN
5307 # ifdef __cplusplus
5308 extern "C"
5309 # endif
5310 int F77_DUMMY_MAIN() { return 1; }
5311 #endif
5312 int
5313 main ()
5314 {
5315 if ((long *) 0)
5316 return 0;
5317 if (sizeof (long))
5318 return 0;
5319 ;
5320 return 0;
5321 }
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -s conftest.$ac_objext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_type_long=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5339 ac_cv_type_long=no
5340 fi
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5342 fi
5343 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5344 echo "${ECHO_T}$ac_cv_type_long" >&6
5345
5346 echo "$as_me:$LINENO: checking size of long" >&5
5347 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5348 if test "${ac_cv_sizeof_long+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 if test "$ac_cv_type_long" = yes; then
5352 # The cast to unsigned long works around a bug in the HP C Compiler
5353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5355 # This bug is HP SR number 8606223364.
5356 if test "$cross_compiling" = yes; then
5357 # Depending upon the size, compute the lo and hi bounds.
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 #include "confdefs.h"
5361 $ac_includes_default
5362 #ifdef F77_DUMMY_MAIN
5363 # ifdef __cplusplus
5364 extern "C"
5365 # endif
5366 int F77_DUMMY_MAIN() { return 1; }
5367 #endif
5368 int
5369 main ()
5370 {
5371 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5372 test_array [0] = 0
5373
5374 ;
5375 return 0;
5376 }
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_lo=0 ac_mid=0
5391 while :; do
5392 cat >conftest.$ac_ext <<_ACEOF
5393 #line $LINENO "configure"
5394 #include "confdefs.h"
5395 $ac_includes_default
5396 #ifdef F77_DUMMY_MAIN
5397 # ifdef __cplusplus
5398 extern "C"
5399 # endif
5400 int F77_DUMMY_MAIN() { return 1; }
5401 #endif
5402 int
5403 main ()
5404 {
5405 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5406 test_array [0] = 0
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414 (eval $ac_compile) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_hi=$ac_mid; break
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 ac_lo=`expr $ac_mid + 1`
5429 if test $ac_lo -le $ac_mid; then
5430 ac_lo= ac_hi=
5431 break
5432 fi
5433 ac_mid=`expr 2 '*' $ac_mid + 1`
5434 fi
5435 rm -f conftest.$ac_objext conftest.$ac_ext
5436 done
5437 else
5438 echo "$as_me: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 cat >conftest.$ac_ext <<_ACEOF
5441 #line $LINENO "configure"
5442 #include "confdefs.h"
5443 $ac_includes_default
5444 #ifdef F77_DUMMY_MAIN
5445 # ifdef __cplusplus
5446 extern "C"
5447 # endif
5448 int F77_DUMMY_MAIN() { return 1; }
5449 #endif
5450 int
5451 main ()
5452 {
5453 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5454 test_array [0] = 0
5455
5456 ;
5457 return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_hi=-1 ac_mid=-1
5473 while :; do
5474 cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5476 #include "confdefs.h"
5477 $ac_includes_default
5478 #ifdef F77_DUMMY_MAIN
5479 # ifdef __cplusplus
5480 extern "C"
5481 # endif
5482 int F77_DUMMY_MAIN() { return 1; }
5483 #endif
5484 int
5485 main ()
5486 {
5487 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5488 test_array [0] = 0
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_lo=$ac_mid; break
5507 else
5508 echo "$as_me: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5510 ac_hi=`expr '(' $ac_mid ')' - 1`
5511 if test $ac_mid -le $ac_hi; then
5512 ac_lo= ac_hi=
5513 break
5514 fi
5515 ac_mid=`expr 2 '*' $ac_mid`
5516 fi
5517 rm -f conftest.$ac_objext conftest.$ac_ext
5518 done
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5522 ac_lo= ac_hi=
5523 fi
5524 rm -f conftest.$ac_objext conftest.$ac_ext
5525 fi
5526 rm -f conftest.$ac_objext conftest.$ac_ext
5527 # Binary search between lo and hi bounds.
5528 while test "x$ac_lo" != "x$ac_hi"; do
5529 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5530 cat >conftest.$ac_ext <<_ACEOF
5531 #line $LINENO "configure"
5532 #include "confdefs.h"
5533 $ac_includes_default
5534 #ifdef F77_DUMMY_MAIN
5535 # ifdef __cplusplus
5536 extern "C"
5537 # endif
5538 int F77_DUMMY_MAIN() { return 1; }
5539 #endif
5540 int
5541 main ()
5542 {
5543 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5544 test_array [0] = 0
5545
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -s conftest.$ac_objext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_hi=$ac_mid
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5566 ac_lo=`expr '(' $ac_mid ')' + 1`
5567 fi
5568 rm -f conftest.$ac_objext conftest.$ac_ext
5569 done
5570 case $ac_lo in
5571 ?*) ac_cv_sizeof_long=$ac_lo;;
5572 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5573 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5574 { (exit 1); exit 1; }; } ;;
5575 esac
5576 else
5577 if test "$cross_compiling" = yes; then
5578 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5579 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5580 { (exit 1); exit 1; }; }
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 #include "confdefs.h"
5585 $ac_includes_default
5586 long longval () { return (long) (sizeof (long)); }
5587 unsigned long ulongval () { return (long) (sizeof (long)); }
5588 #include <stdio.h>
5589 #include <stdlib.h>
5590 #ifdef F77_DUMMY_MAIN
5591 # ifdef __cplusplus
5592 extern "C"
5593 # endif
5594 int F77_DUMMY_MAIN() { return 1; }
5595 #endif
5596 int
5597 main ()
5598 {
5599
5600 FILE *f = fopen ("conftest.val", "w");
5601 if (! f)
5602 exit (1);
5603 if (((long) (sizeof (long))) < 0)
5604 {
5605 long i = longval ();
5606 if (i != ((long) (sizeof (long))))
5607 exit (1);
5608 fprintf (f, "%ld\n", i);
5609 }
5610 else
5611 {
5612 unsigned long i = ulongval ();
5613 if (i != ((long) (sizeof (long))))
5614 exit (1);
5615 fprintf (f, "%lu\n", i);
5616 }
5617 exit (ferror (f) || fclose (f) != 0);
5618
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest$ac_exeext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5625 (eval $ac_link) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_sizeof_long=`cat conftest.val`
5635 else
5636 echo "$as_me: program exited with status $ac_status" >&5
5637 echo "$as_me: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 ( exit $ac_status )
5640 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5641 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5642 { (exit 1); exit 1; }; }
5643 fi
5644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5645 fi
5646 fi
5647 rm -f conftest.val
5648 else
5649 ac_cv_sizeof_long=0
5650 fi
5651 fi
5652 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5653 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5654 cat >>confdefs.h <<_ACEOF
5655 #define SIZEOF_LONG $ac_cv_sizeof_long
5656 _ACEOF
5657
5658
5659 if test "$ac_cv_sizeof_int" = 2 ; then
5660 echo "$as_me:$LINENO: checking for int16_t" >&5
5661 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5662 if test "${ac_cv_type_int16_t+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 #include "confdefs.h"
5668 $ac_includes_default
5669 #ifdef F77_DUMMY_MAIN
5670 # ifdef __cplusplus
5671 extern "C"
5672 # endif
5673 int F77_DUMMY_MAIN() { return 1; }
5674 #endif
5675 int
5676 main ()
5677 {
5678 if ((int16_t *) 0)
5679 return 0;
5680 if (sizeof (int16_t))
5681 return 0;
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_type_int16_t=yes
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5702 ac_cv_type_int16_t=no
5703 fi
5704 rm -f conftest.$ac_objext conftest.$ac_ext
5705 fi
5706 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5707 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5708 if test $ac_cv_type_int16_t = yes; then
5709 :
5710 else
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define int16_t int
5714 _ACEOF
5715
5716 fi
5717
5718 echo "$as_me:$LINENO: checking for u_int16_t" >&5
5719 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5720 if test "${ac_cv_type_u_int16_t+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723 cat >conftest.$ac_ext <<_ACEOF
5724 #line $LINENO "configure"
5725 #include "confdefs.h"
5726 $ac_includes_default
5727 #ifdef F77_DUMMY_MAIN
5728 # ifdef __cplusplus
5729 extern "C"
5730 # endif
5731 int F77_DUMMY_MAIN() { return 1; }
5732 #endif
5733 int
5734 main ()
5735 {
5736 if ((u_int16_t *) 0)
5737 return 0;
5738 if (sizeof (u_int16_t))
5739 return 0;
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -s conftest.$ac_objext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 (eval $ac_try) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_cv_type_u_int16_t=yes
5757 else
5758 echo "$as_me: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5760 ac_cv_type_u_int16_t=no
5761 fi
5762 rm -f conftest.$ac_objext conftest.$ac_ext
5763 fi
5764 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5765 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5766 if test $ac_cv_type_u_int16_t = yes; then
5767 :
5768 else
5769
5770 cat >>confdefs.h <<_ACEOF
5771 #define u_int16_t unsigned int
5772 _ACEOF
5773
5774 fi
5775
5776 elif test "$ac_cv_sizeof_short" = 2 ; then
5777 echo "$as_me:$LINENO: checking for int16_t" >&5
5778 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5779 if test "${ac_cv_type_int16_t+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 cat >conftest.$ac_ext <<_ACEOF
5783 #line $LINENO "configure"
5784 #include "confdefs.h"
5785 $ac_includes_default
5786 #ifdef F77_DUMMY_MAIN
5787 # ifdef __cplusplus
5788 extern "C"
5789 # endif
5790 int F77_DUMMY_MAIN() { return 1; }
5791 #endif
5792 int
5793 main ()
5794 {
5795 if ((int16_t *) 0)
5796 return 0;
5797 if (sizeof (int16_t))
5798 return 0;
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_cv_type_int16_t=yes
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 ac_cv_type_int16_t=no
5820 fi
5821 rm -f conftest.$ac_objext conftest.$ac_ext
5822 fi
5823 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5824 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5825 if test $ac_cv_type_int16_t = yes; then
5826 :
5827 else
5828
5829 cat >>confdefs.h <<_ACEOF
5830 #define int16_t short
5831 _ACEOF
5832
5833 fi
5834
5835 echo "$as_me:$LINENO: checking for u_int16_t" >&5
5836 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5837 if test "${ac_cv_type_u_int16_t+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 #line $LINENO "configure"
5842 #include "confdefs.h"
5843 $ac_includes_default
5844 #ifdef F77_DUMMY_MAIN
5845 # ifdef __cplusplus
5846 extern "C"
5847 # endif
5848 int F77_DUMMY_MAIN() { return 1; }
5849 #endif
5850 int
5851 main ()
5852 {
5853 if ((u_int16_t *) 0)
5854 return 0;
5855 if (sizeof (u_int16_t))
5856 return 0;
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863 (eval $ac_compile) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_cv_type_u_int16_t=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5877 ac_cv_type_u_int16_t=no
5878 fi
5879 rm -f conftest.$ac_objext conftest.$ac_ext
5880 fi
5881 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5882 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5883 if test $ac_cv_type_u_int16_t = yes; then
5884 :
5885 else
5886
5887 cat >>confdefs.h <<_ACEOF
5888 #define u_int16_t unsigned short
5889 _ACEOF
5890
5891 fi
5892
5893 else
5894 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
5895 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
5896 { (exit 1); exit 1; }; }
5897 fi
5898 if test "$ac_cv_sizeof_int" = 4 ; then
5899 echo "$as_me:$LINENO: checking for int32_t" >&5
5900 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5901 if test "${ac_cv_type_int32_t+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 cat >conftest.$ac_ext <<_ACEOF
5905 #line $LINENO "configure"
5906 #include "confdefs.h"
5907 $ac_includes_default
5908 #ifdef F77_DUMMY_MAIN
5909 # ifdef __cplusplus
5910 extern "C"
5911 # endif
5912 int F77_DUMMY_MAIN() { return 1; }
5913 #endif
5914 int
5915 main ()
5916 {
5917 if ((int32_t *) 0)
5918 return 0;
5919 if (sizeof (int32_t))
5920 return 0;
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927 (eval $ac_compile) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_type_int32_t=yes
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5941 ac_cv_type_int32_t=no
5942 fi
5943 rm -f conftest.$ac_objext conftest.$ac_ext
5944 fi
5945 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5946 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5947 if test $ac_cv_type_int32_t = yes; then
5948 :
5949 else
5950
5951 cat >>confdefs.h <<_ACEOF
5952 #define int32_t int
5953 _ACEOF
5954
5955 fi
5956
5957 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5958 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5959 if test "${ac_cv_type_u_int32_t+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5964 #include "confdefs.h"
5965 $ac_includes_default
5966 #ifdef F77_DUMMY_MAIN
5967 # ifdef __cplusplus
5968 extern "C"
5969 # endif
5970 int F77_DUMMY_MAIN() { return 1; }
5971 #endif
5972 int
5973 main ()
5974 {
5975 if ((u_int32_t *) 0)
5976 return 0;
5977 if (sizeof (u_int32_t))
5978 return 0;
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_type_u_int32_t=yes
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 ac_cv_type_u_int32_t=no
6000 fi
6001 rm -f conftest.$ac_objext conftest.$ac_ext
6002 fi
6003 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6004 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6005 if test $ac_cv_type_u_int32_t = yes; then
6006 :
6007 else
6008
6009 cat >>confdefs.h <<_ACEOF
6010 #define u_int32_t unsigned int
6011 _ACEOF
6012
6013 fi
6014
6015 elif test "$ac_cv_sizeof_short" = 4 ; then
6016 echo "$as_me:$LINENO: checking for int32_t" >&5
6017 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6018 if test "${ac_cv_type_int32_t+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 #include "confdefs.h"
6024 $ac_includes_default
6025 #ifdef F77_DUMMY_MAIN
6026 # ifdef __cplusplus
6027 extern "C"
6028 # endif
6029 int F77_DUMMY_MAIN() { return 1; }
6030 #endif
6031 int
6032 main ()
6033 {
6034 if ((int32_t *) 0)
6035 return 0;
6036 if (sizeof (int32_t))
6037 return 0;
6038 ;
6039 return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_cv_type_int32_t=yes
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6058 ac_cv_type_int32_t=no
6059 fi
6060 rm -f conftest.$ac_objext conftest.$ac_ext
6061 fi
6062 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6063 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6064 if test $ac_cv_type_int32_t = yes; then
6065 :
6066 else
6067
6068 cat >>confdefs.h <<_ACEOF
6069 #define int32_t short
6070 _ACEOF
6071
6072 fi
6073
6074 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6075 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6076 if test "${ac_cv_type_u_int32_t+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 #include "confdefs.h"
6082 $ac_includes_default
6083 #ifdef F77_DUMMY_MAIN
6084 # ifdef __cplusplus
6085 extern "C"
6086 # endif
6087 int F77_DUMMY_MAIN() { return 1; }
6088 #endif
6089 int
6090 main ()
6091 {
6092 if ((u_int32_t *) 0)
6093 return 0;
6094 if (sizeof (u_int32_t))
6095 return 0;
6096 ;
6097 return 0;
6098 }
6099 _ACEOF
6100 rm -f conftest.$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_type_u_int32_t=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116 ac_cv_type_u_int32_t=no
6117 fi
6118 rm -f conftest.$ac_objext conftest.$ac_ext
6119 fi
6120 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6121 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6122 if test $ac_cv_type_u_int32_t = yes; then
6123 :
6124 else
6125
6126 cat >>confdefs.h <<_ACEOF
6127 #define u_int32_t unsigned short
6128 _ACEOF
6129
6130 fi
6131
6132 elif test "$ac_cv_sizeof_long" = 4 ; then
6133 echo "$as_me:$LINENO: checking for int32_t" >&5
6134 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6135 if test "${ac_cv_type_int32_t+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6140 #include "confdefs.h"
6141 $ac_includes_default
6142 #ifdef F77_DUMMY_MAIN
6143 # ifdef __cplusplus
6144 extern "C"
6145 # endif
6146 int F77_DUMMY_MAIN() { return 1; }
6147 #endif
6148 int
6149 main ()
6150 {
6151 if ((int32_t *) 0)
6152 return 0;
6153 if (sizeof (int32_t))
6154 return 0;
6155 ;
6156 return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest.$ac_objext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161 (eval $ac_compile) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -s conftest.$ac_objext'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_type_int32_t=yes
6172 else
6173 echo "$as_me: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 ac_cv_type_int32_t=no
6176 fi
6177 rm -f conftest.$ac_objext conftest.$ac_ext
6178 fi
6179 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6180 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6181 if test $ac_cv_type_int32_t = yes; then
6182 :
6183 else
6184
6185 cat >>confdefs.h <<_ACEOF
6186 #define int32_t long
6187 _ACEOF
6188
6189 fi
6190
6191 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6192 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6193 if test "${ac_cv_type_u_int32_t+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 cat >conftest.$ac_ext <<_ACEOF
6197 #line $LINENO "configure"
6198 #include "confdefs.h"
6199 $ac_includes_default
6200 #ifdef F77_DUMMY_MAIN
6201 # ifdef __cplusplus
6202 extern "C"
6203 # endif
6204 int F77_DUMMY_MAIN() { return 1; }
6205 #endif
6206 int
6207 main ()
6208 {
6209 if ((u_int32_t *) 0)
6210 return 0;
6211 if (sizeof (u_int32_t))
6212 return 0;
6213 ;
6214 return 0;
6215 }
6216 _ACEOF
6217 rm -f conftest.$ac_objext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_cv_type_u_int32_t=yes
6230 else
6231 echo "$as_me: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6233 ac_cv_type_u_int32_t=no
6234 fi
6235 rm -f conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6238 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6239 if test $ac_cv_type_u_int32_t = yes; then
6240 :
6241 else
6242
6243 cat >>confdefs.h <<_ACEOF
6244 #define u_int32_t unsigned long
6245 _ACEOF
6246
6247 fi
6248
6249 else
6250 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6251 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6252 { (exit 1); exit 1; }; }
6253 fi
6254 echo "$as_me:$LINENO: checking for rlim_t" >&5
6255 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
6256 if test "${ac_cv_type_rlim_t+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259 cat >conftest.$ac_ext <<_ACEOF
6260 #line $LINENO "configure"
6261 #include "confdefs.h"
6262 $ac_includes_default
6263 #ifdef F77_DUMMY_MAIN
6264 # ifdef __cplusplus
6265 extern "C"
6266 # endif
6267 int F77_DUMMY_MAIN() { return 1; }
6268 #endif
6269 int
6270 main ()
6271 {
6272 if ((rlim_t *) 0)
6273 return 0;
6274 if (sizeof (rlim_t))
6275 return 0;
6276 ;
6277 return 0;
6278 }
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282 (eval $ac_compile) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_cv_type_rlim_t=yes
6293 else
6294 echo "$as_me: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6296 ac_cv_type_rlim_t=no
6297 fi
6298 rm -f conftest.$ac_objext conftest.$ac_ext
6299 fi
6300 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
6301 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
6302
6303 echo "$as_me:$LINENO: checking size of rlim_t" >&5
6304 echo $ECHO_N "checking size of rlim_t... $ECHO_C" >&6
6305 if test "${ac_cv_sizeof_rlim_t+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308 if test "$ac_cv_type_rlim_t" = yes; then
6309 # The cast to unsigned long works around a bug in the HP C Compiler
6310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6311 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6312 # This bug is HP SR number 8606223364.
6313 if test "$cross_compiling" = yes; then
6314 # Depending upon the size, compute the lo and hi bounds.
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6317 #include "confdefs.h"
6318 $ac_includes_default
6319 #ifdef F77_DUMMY_MAIN
6320 # ifdef __cplusplus
6321 extern "C"
6322 # endif
6323 int F77_DUMMY_MAIN() { return 1; }
6324 #endif
6325 int
6326 main ()
6327 {
6328 static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) >= 0)];
6329 test_array [0] = 0
6330
6331 ;
6332 return 0;
6333 }
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_lo=0 ac_mid=0
6348 while :; do
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6352 $ac_includes_default
6353 #ifdef F77_DUMMY_MAIN
6354 # ifdef __cplusplus
6355 extern "C"
6356 # endif
6357 int F77_DUMMY_MAIN() { return 1; }
6358 #endif
6359 int
6360 main ()
6361 {
6362 static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) <= $ac_mid)];
6363 test_array [0] = 0
6364
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_hi=$ac_mid; break
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6385 ac_lo=`expr $ac_mid + 1`
6386 if test $ac_lo -le $ac_mid; then
6387 ac_lo= ac_hi=
6388 break
6389 fi
6390 ac_mid=`expr 2 '*' $ac_mid + 1`
6391 fi
6392 rm -f conftest.$ac_objext conftest.$ac_ext
6393 done
6394 else
6395 echo "$as_me: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6397 cat >conftest.$ac_ext <<_ACEOF
6398 #line $LINENO "configure"
6399 #include "confdefs.h"
6400 $ac_includes_default
6401 #ifdef F77_DUMMY_MAIN
6402 # ifdef __cplusplus
6403 extern "C"
6404 # endif
6405 int F77_DUMMY_MAIN() { return 1; }
6406 #endif
6407 int
6408 main ()
6409 {
6410 static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) < 0)];
6411 test_array [0] = 0
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_hi=-1 ac_mid=-1
6430 while :; do
6431 cat >conftest.$ac_ext <<_ACEOF
6432 #line $LINENO "configure"
6433 #include "confdefs.h"
6434 $ac_includes_default
6435 #ifdef F77_DUMMY_MAIN
6436 # ifdef __cplusplus
6437 extern "C"
6438 # endif
6439 int F77_DUMMY_MAIN() { return 1; }
6440 #endif
6441 int
6442 main ()
6443 {
6444 static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) >= $ac_mid)];
6445 test_array [0] = 0
6446
6447 ;
6448 return 0;
6449 }
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6453 (eval $ac_compile) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_lo=$ac_mid; break
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6467 ac_hi=`expr '(' $ac_mid ')' - 1`
6468 if test $ac_mid -le $ac_hi; then
6469 ac_lo= ac_hi=
6470 break
6471 fi
6472 ac_mid=`expr 2 '*' $ac_mid`
6473 fi
6474 rm -f conftest.$ac_objext conftest.$ac_ext
6475 done
6476 else
6477 echo "$as_me: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6479 ac_lo= ac_hi=
6480 fi
6481 rm -f conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 rm -f conftest.$ac_objext conftest.$ac_ext
6484 # Binary search between lo and hi bounds.
6485 while test "x$ac_lo" != "x$ac_hi"; do
6486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6489 #include "confdefs.h"
6490 $ac_includes_default
6491 #ifdef F77_DUMMY_MAIN
6492 # ifdef __cplusplus
6493 extern "C"
6494 # endif
6495 int F77_DUMMY_MAIN() { return 1; }
6496 #endif
6497 int
6498 main ()
6499 {
6500 static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) <= $ac_mid)];
6501 test_array [0] = 0
6502
6503 ;
6504 return 0;
6505 }
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
6513 { ac_try='test -s conftest.$ac_objext'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_hi=$ac_mid
6520 else
6521 echo "$as_me: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6523 ac_lo=`expr '(' $ac_mid ')' + 1`
6524 fi
6525 rm -f conftest.$ac_objext conftest.$ac_ext
6526 done
6527 case $ac_lo in
6528 ?*) ac_cv_sizeof_rlim_t=$ac_lo;;
6529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t), 77" >&5
6530 echo "$as_me: error: cannot compute sizeof (rlim_t), 77" >&2;}
6531 { (exit 1); exit 1; }; } ;;
6532 esac
6533 else
6534 if test "$cross_compiling" = yes; then
6535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6536 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6537 { (exit 1); exit 1; }; }
6538 else
6539 cat >conftest.$ac_ext <<_ACEOF
6540 #line $LINENO "configure"
6541 #include "confdefs.h"
6542 $ac_includes_default
6543 long longval () { return (long) (sizeof (rlim_t)); }
6544 unsigned long ulongval () { return (long) (sizeof (rlim_t)); }
6545 #include <stdio.h>
6546 #include <stdlib.h>
6547 #ifdef F77_DUMMY_MAIN
6548 # ifdef __cplusplus
6549 extern "C"
6550 # endif
6551 int F77_DUMMY_MAIN() { return 1; }
6552 #endif
6553 int
6554 main ()
6555 {
6556
6557 FILE *f = fopen ("conftest.val", "w");
6558 if (! f)
6559 exit (1);
6560 if (((long) (sizeof (rlim_t))) < 0)
6561 {
6562 long i = longval ();
6563 if (i != ((long) (sizeof (rlim_t))))
6564 exit (1);
6565 fprintf (f, "%ld\n", i);
6566 }
6567 else
6568 {
6569 unsigned long i = ulongval ();
6570 if (i != ((long) (sizeof (rlim_t))))
6571 exit (1);
6572 fprintf (f, "%lu\n", i);
6573 }
6574 exit (ferror (f) || fclose (f) != 0);
6575
6576 ;
6577 return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest$ac_exeext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_sizeof_rlim_t=`cat conftest.val`
6592 else
6593 echo "$as_me: program exited with status $ac_status" >&5
6594 echo "$as_me: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 ( exit $ac_status )
6597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t), 77" >&5
6598 echo "$as_me: error: cannot compute sizeof (rlim_t), 77" >&2;}
6599 { (exit 1); exit 1; }; }
6600 fi
6601 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 fi
6604 rm -f conftest.val
6605 else
6606 ac_cv_sizeof_rlim_t=0
6607 fi
6608 fi
6609 echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5
6610 echo "${ECHO_T}$ac_cv_sizeof_rlim_t" >&6
6611 cat >>confdefs.h <<_ACEOF
6612 #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
6613 _ACEOF
6614
6615
6616 if test "$ac_cv_sizeof_rlim_t" = 8 ; then
6617 cat >>confdefs.h <<\_ACEOF
6618 #define LONG_LONG_RLIM_T 1
6619 _ACEOF
6620
6621 fi
6622
6623
6624 echo "$as_me:$LINENO: checking what kind of nonblocking sockets you have" >&5
6625 echo $ECHO_N "checking what kind of nonblocking sockets you have... $ECHO_C" >&6
6626 if test "${ac_cv_nonblocking+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629
6630 save_libs="$LIBS"
6631 LIBS="$LIBS $SOCKLIB"
6632 if test "$cross_compiling" = yes; then
6633 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6634 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6635 { (exit 1); exit 1; }; }
6636 else
6637 cat >conftest.$ac_ext <<_ACEOF
6638 #line $LINENO "configure"
6639 #include "confdefs.h"
6640
6641 #include <sys/types.h>
6642 #include <sys/socket.h>
6643 #include <fcntl.h>
6644 #include <sys/ioctl.h>
6645 #include <sys/file.h>
6646 #include <signal.h>
6647 alarmed() {
6648 exit(1);
6649 }
6650 int main() {
6651 #ifdef O_NONBLOCK
6652 char b[12], x[32];
6653 int f, l = sizeof(x);
6654 f = socket(AF_INET, SOCK_DGRAM, 0);
6655 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) {
6656 signal(SIGALRM, alarmed);
6657 alarm(3);
6658 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6659 alarm(0);
6660 exit(0);
6661 }
6662 #endif
6663 exit(1);
6664 }
6665
6666 _ACEOF
6667 rm -f conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 (eval $ac_try) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; }; then
6678 ac_cv_nonblocking=O_NONBLOCK
6679 else
6680 echo "$as_me: program exited with status $ac_status" >&5
6681 echo "$as_me: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6683 ( exit $ac_status )
6684
6685 if test "$cross_compiling" = yes; then
6686 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6687 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6688 { (exit 1); exit 1; }; }
6689 else
6690 cat >conftest.$ac_ext <<_ACEOF
6691 #line $LINENO "configure"
6692 #include "confdefs.h"
6693
6694 #include <sys/types.h>
6695 #include <sys/socket.h>
6696 #include <fcntl.h>
6697 #include <sys/ioctl.h>
6698 #include <sys/file.h>
6699 #include <signal.h>
6700 alarmed() {
6701 exit(0);
6702 }
6703 int main() {
6704 #ifdef O_NDELAY
6705 char b[12], x[32];
6706 int f, l = sizeof(x);
6707 f = socket(AF_INET, SOCK_DGRAM, 0);
6708 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) {
6709 signal(SIGALRM, alarmed);
6710 alarm(3);
6711 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6712 alarm(0);
6713 exit(0);
6714 }
6715 #endif
6716 exit(1);
6717 }
6718 _ACEOF
6719 rm -f conftest$ac_exeext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6721 (eval $ac_link) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_cv_nonblocking=O_NDELAY
6731 else
6732 echo "$as_me: program exited with status $ac_status" >&5
6733 echo "$as_me: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6735 ( exit $ac_status )
6736
6737 if test "$cross_compiling" = yes; then
6738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6739 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6740 { (exit 1); exit 1; }; }
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 #line $LINENO "configure"
6744 #include "confdefs.h"
6745
6746 #include <sys/types.h>
6747 #include <sys/socket.h>
6748 #include <fcntl.h>
6749 #include <sys/ioctl.h>
6750 #include <sys/file.h>
6751 #include <signal.h>
6752 alarmed() {
6753 exit(1);
6754 }
6755 int main() {
6756 #ifdef FIONBIO
6757 char b[12], x[32];
6758 int f, l = sizeof(x);
6759 f = socket(AF_INET, SOCK_DGRAM, 0);
6760 if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) {
6761 signal(SIGALRM, alarmed);
6762 alarm(3);
6763 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6764 alarm(0);
6765 exit(0);
6766 }
6767 #endif
6768 exit(1);
6769
6770 _ACEOF
6771 rm -f conftest$ac_exeext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773 (eval $ac_link) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_nonblocking=FIONBIO
6783 else
6784 echo "$as_me: program exited with status $ac_status" >&5
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 ( exit $ac_status )
6788 ac_cv_nonblocking=none
6789 fi
6790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6791 fi
6792 fi
6793 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6794 fi
6795 fi
6796 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 fi
6799 echo "$as_me:$LINENO: result: $ac_cv_nonblocking" >&5
6800 echo "${ECHO_T}$ac_cv_nonblocking" >&6
6801 if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then
6802 cat >>confdefs.h <<\_ACEOF
6803 #define NBLOCK_POSIX 1
6804 _ACEOF
6805
6806 elif test "$ac_cv_nonblocking" = "O_NDELAY"; then
6807 cat >>confdefs.h <<\_ACEOF
6808 #define NBLOCK_BSD 1
6809 _ACEOF
6810
6811 elif test "$ac_cv_nonblocking" = "FIONBIO"; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define NBLOCK_SYSV 1
6814 _ACEOF
6815
6816 fi
6817 LIBS="$save_libs"
6818 if test $ac_cv_c_compiler_gnu = yes; then
6819 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6820 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6821 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 ac_pattern="Autoconf.*'x'"
6825 cat >conftest.$ac_ext <<_ACEOF
6826 #line $LINENO "configure"
6827 #include "confdefs.h"
6828 #include <sgtty.h>
6829 Autoconf TIOCGETP
6830 _ACEOF
6831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832 egrep "$ac_pattern" >/dev/null 2>&1; then
6833 ac_cv_prog_gcc_traditional=yes
6834 else
6835 ac_cv_prog_gcc_traditional=no
6836 fi
6837 rm -f conftest*
6838
6839
6840 if test $ac_cv_prog_gcc_traditional = no; then
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 #include "confdefs.h"
6844 #include <termio.h>
6845 Autoconf TCGETA
6846 _ACEOF
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 egrep "$ac_pattern" >/dev/null 2>&1; then
6849 ac_cv_prog_gcc_traditional=yes
6850 fi
6851 rm -f conftest*
6852
6853 fi
6854 fi
6855 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6856 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6857 if test $ac_cv_prog_gcc_traditional = yes; then
6858 CC="$CC -traditional"
6859 fi
6860 fi
6861
6862 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
6863 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
6864 if test "${ac_cv_func_setpgrp_void+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 if test "$cross_compiling" = yes; then
6868 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
6869 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
6870 { (exit 1); exit 1; }; }
6871 else
6872 cat >conftest.$ac_ext <<_ACEOF
6873 #line $LINENO "configure"
6874 #include "confdefs.h"
6875 #if HAVE_UNISTD_H
6876 # include <unistd.h>
6877 #endif
6878
6879 #ifdef F77_DUMMY_MAIN
6880 # ifdef __cplusplus
6881 extern "C"
6882 # endif
6883 int F77_DUMMY_MAIN() { return 1; }
6884 #endif
6885 int
6886 main ()
6887 {
6888 /* If this system has a BSD-style setpgrp which takes arguments,
6889 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6890 exit successfully. */
6891 exit (setpgrp (1,1) == -1 ? 0 : 1);
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest$ac_exeext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
6907 ac_cv_func_setpgrp_void=no
6908 else
6909 echo "$as_me: program exited with status $ac_status" >&5
6910 echo "$as_me: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6912 ( exit $ac_status )
6913 ac_cv_func_setpgrp_void=yes
6914 fi
6915 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6916 fi
6917 fi
6918 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
6919 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
6920 if test $ac_cv_func_setpgrp_void = yes; then
6921
6922 cat >>confdefs.h <<\_ACEOF
6923 #define SETPGRP_VOID 1
6924 _ACEOF
6925
6926 fi
6927
6928 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
6929 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
6930 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 if test "$cross_compiling" = yes; then
6934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6935 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6936 { (exit 1); exit 1; }; }
6937 else
6938 cat >conftest.$ac_ext <<_ACEOF
6939 #line $LINENO "configure"
6940 #include "confdefs.h"
6941 #include <stdio.h>
6942 /* If setvbuf has the reversed format, exit 0. */
6943 int
6944 main ()
6945 {
6946 /* This call has the arguments reversed.
6947 A reversed system may check and see that the address of main
6948 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
6949 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
6950 exit(1);
6951 putc('\r', stdout);
6952 exit(0); /* Non-reversed systems segv here. */
6953 }
6954 _ACEOF
6955 rm -f conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_cv_func_setvbuf_reversed=yes
6967 else
6968 echo "$as_me: program exited with status $ac_status" >&5
6969 echo "$as_me: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6971 ( exit $ac_status )
6972 ac_cv_func_setvbuf_reversed=no
6973 fi
6974 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6975 fi
6976 rm -f core core.* *.core
6977 fi
6978 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
6979 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
6980 if test $ac_cv_func_setvbuf_reversed = yes; then
6981
6982 cat >>confdefs.h <<\_ACEOF
6983 #define SETVBUF_REVERSED 1
6984 _ACEOF
6985
6986 fi
6987
6988
6989 for ac_func in snprintf
6990 do
6991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6992 echo "$as_me:$LINENO: checking for $ac_func" >&5
6993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6994 if eval "test \"\${$as_ac_var+set}\" = set"; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 #line $LINENO "configure"
6999 #include "confdefs.h"
7000 /* System header to define __stub macros and hopefully few prototypes,
7001 which can conflict with char $ac_func (); below. */
7002 #include <assert.h>
7003 /* Override any gcc2 internal prototype to avoid an error. */
7004 #ifdef __cplusplus
7005 extern "C"
7006 #endif
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7009 char $ac_func ();
7010 char (*f) ();
7011
7012 #ifdef F77_DUMMY_MAIN
7013 # ifdef __cplusplus
7014 extern "C"
7015 # endif
7016 int F77_DUMMY_MAIN() { return 1; }
7017 #endif
7018 int
7019 main ()
7020 {
7021 /* The GNU C library defines this for functions which it implements
7022 to always fail with ENOSYS. Some functions are actually named
7023 something starting with __ and the normal name is an alias. */
7024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7025 choke me
7026 #else
7027 f = $ac_func;
7028 #endif
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 rm -f conftest.$ac_objext conftest$ac_exeext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036 (eval $ac_link) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } &&
7040 { ac_try='test -s conftest$ac_exeext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7046 eval "$as_ac_var=yes"
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 cat conftest.$ac_ext >&5
7050 eval "$as_ac_var=no"
7051 fi
7052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7053 fi
7054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7056 if test `eval echo '${'$as_ac_var'}'` = yes; then
7057 cat >>confdefs.h <<_ACEOF
7058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7059 _ACEOF
7060 cat >>confdefs.h <<\_ACEOF
7061 #define HAVE_SNPRINTF 1
7062 _ACEOF
7063
7064 fi
7065 done
7066
7067
7068 for ac_func in vsnprintf
7069 do
7070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7071 echo "$as_me:$LINENO: checking for $ac_func" >&5
7072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7073 if eval "test \"\${$as_ac_var+set}\" = set"; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 cat >conftest.$ac_ext <<_ACEOF
7077 #line $LINENO "configure"
7078 #include "confdefs.h"
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func (); below. */
7081 #include <assert.h>
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 #ifdef __cplusplus
7084 extern "C"
7085 #endif
7086 /* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7088 char $ac_func ();
7089 char (*f) ();
7090
7091 #ifdef F77_DUMMY_MAIN
7092 # ifdef __cplusplus
7093 extern "C"
7094 # endif
7095 int F77_DUMMY_MAIN() { return 1; }
7096 #endif
7097 int
7098 main ()
7099 {
7100 /* The GNU C library defines this for functions which it implements
7101 to always fail with ENOSYS. Some functions are actually named
7102 something starting with __ and the normal name is an alias. */
7103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7104 choke me
7105 #else
7106 f = $ac_func;
7107 #endif
7108
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -s conftest$ac_exeext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 eval "$as_ac_var=yes"
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7129 eval "$as_ac_var=no"
7130 fi
7131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7132 fi
7133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7135 if test `eval echo '${'$as_ac_var'}'` = yes; then
7136 cat >>confdefs.h <<_ACEOF
7137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7138 _ACEOF
7139 cat >>confdefs.h <<\_ACEOF
7140 #define HAVE_VSNPRINTF 1
7141 _ACEOF
7142
7143 fi
7144 done
7145
7146
7147 for ac_func in strlcpy
7148 do
7149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7150 echo "$as_me:$LINENO: checking for $ac_func" >&5
7151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7152 if eval "test \"\${$as_ac_var+set}\" = set"; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7157 #include "confdefs.h"
7158 /* System header to define __stub macros and hopefully few prototypes,
7159 which can conflict with char $ac_func (); below. */
7160 #include <assert.h>
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 #ifdef __cplusplus
7163 extern "C"
7164 #endif
7165 /* We use char because int might match the return type of a gcc2
7166 builtin and then its argument prototype would still apply. */
7167 char $ac_func ();
7168 char (*f) ();
7169
7170 #ifdef F77_DUMMY_MAIN
7171 # ifdef __cplusplus
7172 extern "C"
7173 # endif
7174 int F77_DUMMY_MAIN() { return 1; }
7175 #endif
7176 int
7177 main ()
7178 {
7179 /* The GNU C library defines this for functions which it implements
7180 to always fail with ENOSYS. Some functions are actually named
7181 something starting with __ and the normal name is an alias. */
7182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7183 choke me
7184 #else
7185 f = $ac_func;
7186 #endif
7187
7188 ;
7189 return 0;
7190 }
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194 (eval $ac_link) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -s conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 eval "$as_ac_var=yes"
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 eval "$as_ac_var=no"
7209 fi
7210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7211 fi
7212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7214 if test `eval echo '${'$as_ac_var'}'` = yes; then
7215 cat >>confdefs.h <<_ACEOF
7216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7217 _ACEOF
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_STRLCPY 1
7220 _ACEOF
7221
7222 fi
7223 done
7224
7225
7226 for ac_func in strlcat
7227 do
7228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7229 echo "$as_me:$LINENO: checking for $ac_func" >&5
7230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7231 if eval "test \"\${$as_ac_var+set}\" = set"; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 #line $LINENO "configure"
7236 #include "confdefs.h"
7237 /* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char $ac_func (); below. */
7239 #include <assert.h>
7240 /* Override any gcc2 internal prototype to avoid an error. */
7241 #ifdef __cplusplus
7242 extern "C"
7243 #endif
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7246 char $ac_func ();
7247 char (*f) ();
7248
7249 #ifdef F77_DUMMY_MAIN
7250 # ifdef __cplusplus
7251 extern "C"
7252 # endif
7253 int F77_DUMMY_MAIN() { return 1; }
7254 #endif
7255 int
7256 main ()
7257 {
7258 /* The GNU C library defines this for functions which it implements
7259 to always fail with ENOSYS. Some functions are actually named
7260 something starting with __ and the normal name is an alias. */
7261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 choke me
7263 #else
7264 f = $ac_func;
7265 #endif
7266
7267 ;
7268 return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -s conftest$ac_exeext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 eval "$as_ac_var=yes"
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7287 eval "$as_ac_var=no"
7288 fi
7289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290 fi
7291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7293 if test `eval echo '${'$as_ac_var'}'` = yes; then
7294 cat >>confdefs.h <<_ACEOF
7295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7296 _ACEOF
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_STRLCAT 1
7299 _ACEOF
7300
7301 fi
7302 done
7303
7304
7305 for ac_func in strlncat
7306 do
7307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7308 echo "$as_me:$LINENO: checking for $ac_func" >&5
7309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7310 if eval "test \"\${$as_ac_var+set}\" = set"; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7315 #include "confdefs.h"
7316 /* System header to define __stub macros and hopefully few prototypes,
7317 which can conflict with char $ac_func (); below. */
7318 #include <assert.h>
7319 /* Override any gcc2 internal prototype to avoid an error. */
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7325 char $ac_func ();
7326 char (*f) ();
7327
7328 #ifdef F77_DUMMY_MAIN
7329 # ifdef __cplusplus
7330 extern "C"
7331 # endif
7332 int F77_DUMMY_MAIN() { return 1; }
7333 #endif
7334 int
7335 main ()
7336 {
7337 /* The GNU C library defines this for functions which it implements
7338 to always fail with ENOSYS. Some functions are actually named
7339 something starting with __ and the normal name is an alias. */
7340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7341 choke me
7342 #else
7343 f = $ac_func;
7344 #endif
7345
7346 ;
7347 return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352 (eval $ac_link) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } &&
7356 { ac_try='test -s conftest$ac_exeext'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 (eval $ac_try) 2>&5
7359 ac_status=$?
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; }; then
7362 eval "$as_ac_var=yes"
7363 else
7364 echo "$as_me: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7366 eval "$as_ac_var=no"
7367 fi
7368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7369 fi
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7372 if test `eval echo '${'$as_ac_var'}'` = yes; then
7373 cat >>confdefs.h <<_ACEOF
7374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7375 _ACEOF
7376 cat >>confdefs.h <<\_ACEOF
7377 #define HAVE_STRLNCAT 1
7378 _ACEOF
7379
7380 fi
7381 done
7382
7383
7384 echo "$as_me:$LINENO: checking if we can set the core size to unlimited" >&5
7385 echo $ECHO_N "checking if we can set the core size to unlimited... $ECHO_C" >&6
7386 if test "${ac_cv_force_core+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389
7390 if test "$cross_compiling" = yes; then
7391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7392 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7393 { (exit 1); exit 1; }; }
7394 else
7395 cat >conftest.$ac_ext <<_ACEOF
7396 #line $LINENO "configure"
7397 #include "confdefs.h"
7398
7399 #include <sys/time.h>
7400 #include <sys/resource.h>
7401 #include <unistd.h>
7402 int main() {
7403 struct rlimit corelim;
7404 corelim.rlim_cur = corelim.rlim_max = RLIM_INFINITY;
7405 if (setrlimit(RLIMIT_CORE, &corelim))
7406 exit(1);
7407 exit(0);
7408 }
7409
7410 _ACEOF
7411 rm -f conftest$ac_exeext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413 (eval $ac_link) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 ac_cv_force_core=yes
7423 else
7424 echo "$as_me: program exited with status $ac_status" >&5
7425 echo "$as_me: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7427 ( exit $ac_status )
7428 ac_cv_force_core=no
7429 fi
7430 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7431 fi
7432
7433 fi
7434 echo "$as_me:$LINENO: result: $ac_cv_force_core" >&5
7435 echo "${ECHO_T}$ac_cv_force_core" >&6
7436 if test "$ac_cv_force_core" = "yes"; then
7437 cat >>confdefs.h <<\_ACEOF
7438 #define FORCE_CORE 1
7439 _ACEOF
7440
7441 fi
7442
7443 for ac_func in vprintf
7444 do
7445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7446 echo "$as_me:$LINENO: checking for $ac_func" >&5
7447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7448 if eval "test \"\${$as_ac_var+set}\" = set"; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 cat >conftest.$ac_ext <<_ACEOF
7452 #line $LINENO "configure"
7453 #include "confdefs.h"
7454 /* System header to define __stub macros and hopefully few prototypes,
7455 which can conflict with char $ac_func (); below. */
7456 #include <assert.h>
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 #ifdef __cplusplus
7459 extern "C"
7460 #endif
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7463 char $ac_func ();
7464 char (*f) ();
7465
7466 #ifdef F77_DUMMY_MAIN
7467 # ifdef __cplusplus
7468 extern "C"
7469 # endif
7470 int F77_DUMMY_MAIN() { return 1; }
7471 #endif
7472 int
7473 main ()
7474 {
7475 /* The GNU C library defines this for functions which it implements
7476 to always fail with ENOSYS. Some functions are actually named
7477 something starting with __ and the normal name is an alias. */
7478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7479 choke me
7480 #else
7481 f = $ac_func;
7482 #endif
7483
7484 ;
7485 return 0;
7486 }
7487 _ACEOF
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490 (eval $ac_link) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try='test -s conftest$ac_exeext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 eval "$as_ac_var=yes"
7501 else
7502 echo "$as_me: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7504 eval "$as_ac_var=no"
7505 fi
7506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7507 fi
7508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7510 if test `eval echo '${'$as_ac_var'}'` = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7513 _ACEOF
7514
7515 echo "$as_me:$LINENO: checking for _doprnt" >&5
7516 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7517 if test "${ac_cv_func__doprnt+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 cat >conftest.$ac_ext <<_ACEOF
7521 #line $LINENO "configure"
7522 #include "confdefs.h"
7523 /* System header to define __stub macros and hopefully few prototypes,
7524 which can conflict with char _doprnt (); below. */
7525 #include <assert.h>
7526 /* Override any gcc2 internal prototype to avoid an error. */
7527 #ifdef __cplusplus
7528 extern "C"
7529 #endif
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7532 char _doprnt ();
7533 char (*f) ();
7534
7535 #ifdef F77_DUMMY_MAIN
7536 # ifdef __cplusplus
7537 extern "C"
7538 # endif
7539 int F77_DUMMY_MAIN() { return 1; }
7540 #endif
7541 int
7542 main ()
7543 {
7544 /* The GNU C library defines this for functions which it implements
7545 to always fail with ENOSYS. Some functions are actually named
7546 something starting with __ and the normal name is an alias. */
7547 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7548 choke me
7549 #else
7550 f = _doprnt;
7551 #endif
7552
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 rm -f conftest.$ac_objext conftest$ac_exeext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559 (eval $ac_link) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -s conftest$ac_exeext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7569 ac_cv_func__doprnt=yes
7570 else
7571 echo "$as_me: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7573 ac_cv_func__doprnt=no
7574 fi
7575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7576 fi
7577 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7578 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7579 if test $ac_cv_func__doprnt = yes; then
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_DOPRNT 1
7583 _ACEOF
7584
7585 fi
7586
7587 fi
7588 done
7589
7590
7591
7592 for ac_func in gettimeofday
7593 do
7594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7595 echo "$as_me:$LINENO: checking for $ac_func" >&5
7596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7597 if eval "test \"\${$as_ac_var+set}\" = set"; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 #include "confdefs.h"
7603 /* System header to define __stub macros and hopefully few prototypes,
7604 which can conflict with char $ac_func (); below. */
7605 #include <assert.h>
7606 /* Override any gcc2 internal prototype to avoid an error. */
7607 #ifdef __cplusplus
7608 extern "C"
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7612 char $ac_func ();
7613 char (*f) ();
7614
7615 #ifdef F77_DUMMY_MAIN
7616 # ifdef __cplusplus
7617 extern "C"
7618 # endif
7619 int F77_DUMMY_MAIN() { return 1; }
7620 #endif
7621 int
7622 main ()
7623 {
7624 /* The GNU C library defines this for functions which it implements
7625 to always fail with ENOSYS. Some functions are actually named
7626 something starting with __ and the normal name is an alias. */
7627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7628 choke me
7629 #else
7630 f = $ac_func;
7631 #endif
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639 (eval $ac_link) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -s conftest$ac_exeext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7649 eval "$as_ac_var=yes"
7650 else
7651 echo "$as_me: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7653 eval "$as_ac_var=no"
7654 fi
7655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7656 fi
7657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7659 if test `eval echo '${'$as_ac_var'}'` = yes; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7662 _ACEOF
7663 cat >>confdefs.h <<\_ACEOF
7664 #define GETTIMEOFDAY 1
7665 _ACEOF
7666
7667 else
7668
7669 for ac_func in lrand48
7670 do
7671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7672 echo "$as_me:$LINENO: checking for $ac_func" >&5
7673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7674 if eval "test \"\${$as_ac_var+set}\" = set"; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 #line $LINENO "configure"
7679 #include "confdefs.h"
7680 /* System header to define __stub macros and hopefully few prototypes,
7681 which can conflict with char $ac_func (); below. */
7682 #include <assert.h>
7683 /* Override any gcc2 internal prototype to avoid an error. */
7684 #ifdef __cplusplus
7685 extern "C"
7686 #endif
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7689 char $ac_func ();
7690 char (*f) ();
7691
7692 #ifdef F77_DUMMY_MAIN
7693 # ifdef __cplusplus
7694 extern "C"
7695 # endif
7696 int F77_DUMMY_MAIN() { return 1; }
7697 #endif
7698 int
7699 main ()
7700 {
7701 /* The GNU C library defines this for functions which it implements
7702 to always fail with ENOSYS. Some functions are actually named
7703 something starting with __ and the normal name is an alias. */
7704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7705 choke me
7706 #else
7707 f = $ac_func;
7708 #endif
7709
7710 ;
7711 return 0;
7712 }
7713 _ACEOF
7714 rm -f conftest.$ac_objext conftest$ac_exeext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 eval "$as_ac_var=yes"
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 eval "$as_ac_var=no"
7731 fi
7732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7733 fi
7734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7736 if test `eval echo '${'$as_ac_var'}'` = yes; then
7737 cat >>confdefs.h <<_ACEOF
7738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7739 _ACEOF
7740 cat >>confdefs.h <<\_ACEOF
7741 #define LRADN48 1
7742 _ACEOF
7743
7744 fi
7745 done
7746
7747 fi
7748 done
7749
7750
7751 for ac_func in getrusage
7752 do
7753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7754 echo "$as_me:$LINENO: checking for $ac_func" >&5
7755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7756 if eval "test \"\${$as_ac_var+set}\" = set"; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759 cat >conftest.$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7761 #include "confdefs.h"
7762 /* System header to define __stub macros and hopefully few prototypes,
7763 which can conflict with char $ac_func (); below. */
7764 #include <assert.h>
7765 /* Override any gcc2 internal prototype to avoid an error. */
7766 #ifdef __cplusplus
7767 extern "C"
7768 #endif
7769 /* We use char because int might match the return type of a gcc2
7770 builtin and then its argument prototype would still apply. */
7771 char $ac_func ();
7772 char (*f) ();
7773
7774 #ifdef F77_DUMMY_MAIN
7775 # ifdef __cplusplus
7776 extern "C"
7777 # endif
7778 int F77_DUMMY_MAIN() { return 1; }
7779 #endif
7780 int
7781 main ()
7782 {
7783 /* The GNU C library defines this for functions which it implements
7784 to always fail with ENOSYS. Some functions are actually named
7785 something starting with __ and the normal name is an alias. */
7786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7787 choke me
7788 #else
7789 f = $ac_func;
7790 #endif
7791
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 eval "$as_ac_var=yes"
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7812 eval "$as_ac_var=no"
7813 fi
7814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7815 fi
7816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7818 if test `eval echo '${'$as_ac_var'}'` = yes; then
7819 cat >>confdefs.h <<_ACEOF
7820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7821 _ACEOF
7822 cat >>confdefs.h <<\_ACEOF
7823 #define GETRUSAGE_2 1
7824 _ACEOF
7825
7826 else
7827
7828 for ac_func in times
7829 do
7830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7831 echo "$as_me:$LINENO: checking for $ac_func" >&5
7832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7833 if eval "test \"\${$as_ac_var+set}\" = set"; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 #include "confdefs.h"
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char $ac_func (); below. */
7841 #include <assert.h>
7842 /* Override any gcc2 internal prototype to avoid an error. */
7843 #ifdef __cplusplus
7844 extern "C"
7845 #endif
7846 /* We use char because int might match the return type of a gcc2
7847 builtin and then its argument prototype would still apply. */
7848 char $ac_func ();
7849 char (*f) ();
7850
7851 #ifdef F77_DUMMY_MAIN
7852 # ifdef __cplusplus
7853 extern "C"
7854 # endif
7855 int F77_DUMMY_MAIN() { return 1; }
7856 #endif
7857 int
7858 main ()
7859 {
7860 /* The GNU C library defines this for functions which it implements
7861 to always fail with ENOSYS. Some functions are actually named
7862 something starting with __ and the normal name is an alias. */
7863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7864 choke me
7865 #else
7866 f = $ac_func;
7867 #endif
7868
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 eval "$as_ac_var=yes"
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 eval "$as_ac_var=no"
7890 fi
7891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7892 fi
7893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7895 if test `eval echo '${'$as_ac_var'}'` = yes; then
7896 cat >>confdefs.h <<_ACEOF
7897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7898 _ACEOF
7899 cat >>confdefs.h <<\_ACEOF
7900 #define TIMES_2 1
7901 _ACEOF
7902
7903 fi
7904 done
7905
7906 fi
7907 done
7908
7909
7910 for ac_func in setproctitle
7911 do
7912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7913 echo "$as_me:$LINENO: checking for $ac_func" >&5
7914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7915 if eval "test \"\${$as_ac_var+set}\" = set"; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 #include "confdefs.h"
7921 /* System header to define __stub macros and hopefully few prototypes,
7922 which can conflict with char $ac_func (); below. */
7923 #include <assert.h>
7924 /* Override any gcc2 internal prototype to avoid an error. */
7925 #ifdef __cplusplus
7926 extern "C"
7927 #endif
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930 char $ac_func ();
7931 char (*f) ();
7932
7933 #ifdef F77_DUMMY_MAIN
7934 # ifdef __cplusplus
7935 extern "C"
7936 # endif
7937 int F77_DUMMY_MAIN() { return 1; }
7938 #endif
7939 int
7940 main ()
7941 {
7942 /* The GNU C library defines this for functions which it implements
7943 to always fail with ENOSYS. Some functions are actually named
7944 something starting with __ and the normal name is an alias. */
7945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7946 choke me
7947 #else
7948 f = $ac_func;
7949 #endif
7950
7951 ;
7952 return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957 (eval $ac_link) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -s conftest$ac_exeext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 eval "$as_ac_var=yes"
7968 else
7969 echo "$as_me: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7971 eval "$as_ac_var=no"
7972 fi
7973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7974 fi
7975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7977 if test `eval echo '${'$as_ac_var'}'` = yes; then
7978 cat >>confdefs.h <<_ACEOF
7979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7980 _ACEOF
7981 cat >>confdefs.h <<\_ACEOF
7982 #define HAVE_SETPROCTITLE 1
7983 _ACEOF
7984
7985 else
7986
7987 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
7988 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
7989 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992 ac_check_lib_save_LIBS=$LIBS
7993 LIBS="-lutil $LIBS"
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line $LINENO "configure"
7996 #include "confdefs.h"
7997
7998 /* Override any gcc2 internal prototype to avoid an error. */
7999 #ifdef __cplusplus
8000 extern "C"
8001 #endif
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8004 char setproctitle ();
8005 #ifdef F77_DUMMY_MAIN
8006 # ifdef __cplusplus
8007 extern "C"
8008 # endif
8009 int F77_DUMMY_MAIN() { return 1; }
8010 #endif
8011 int
8012 main ()
8013 {
8014 setproctitle ();
8015 ;
8016 return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try='test -s conftest$ac_exeext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 ac_cv_lib_util_setproctitle=yes
8032 else
8033 echo "$as_me: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8035 ac_cv_lib_util_setproctitle=no
8036 fi
8037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8038 LIBS=$ac_check_lib_save_LIBS
8039 fi
8040 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
8041 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
8042 if test $ac_cv_lib_util_setproctitle = yes; then
8043 cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_SETPROCTITLE 1
8045 _ACEOF
8046 IRCDLIBS="$IRCDLIBS-lutil"
8047 else
8048
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8051 #include "confdefs.h"
8052 #include <sys/exec.h>
8053
8054 _ACEOF
8055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8056 egrep "#define.*PS_STRINGS.*" >/dev/null 2>&1; then
8057 cat >>confdefs.h <<\_ACEOF
8058 #define HAVE_PSSTRINGS 1
8059 _ACEOF
8060
8061 else
8062
8063
8064 for ac_func in pstat
8065 do
8066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8067 echo "$as_me:$LINENO: checking for $ac_func" >&5
8068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8069 if eval "test \"\${$as_ac_var+set}\" = set"; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 cat >conftest.$ac_ext <<_ACEOF
8073 #line $LINENO "configure"
8074 #include "confdefs.h"
8075 /* System header to define __stub macros and hopefully few prototypes,
8076 which can conflict with char $ac_func (); below. */
8077 #include <assert.h>
8078 /* Override any gcc2 internal prototype to avoid an error. */
8079 #ifdef __cplusplus
8080 extern "C"
8081 #endif
8082 /* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8084 char $ac_func ();
8085 char (*f) ();
8086
8087 #ifdef F77_DUMMY_MAIN
8088 # ifdef __cplusplus
8089 extern "C"
8090 # endif
8091 int F77_DUMMY_MAIN() { return 1; }
8092 #endif
8093 int
8094 main ()
8095 {
8096 /* The GNU C library defines this for functions which it implements
8097 to always fail with ENOSYS. Some functions are actually named
8098 something starting with __ and the normal name is an alias. */
8099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8100 choke me
8101 #else
8102 f = $ac_func;
8103 #endif
8104
8105 ;
8106 return 0;
8107 }
8108 _ACEOF
8109 rm -f conftest.$ac_objext conftest$ac_exeext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111 (eval $ac_link) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -s conftest$ac_exeext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 eval "$as_ac_var=yes"
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8125 eval "$as_ac_var=no"
8126 fi
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128 fi
8129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8131 if test `eval echo '${'$as_ac_var'}'` = yes; then
8132 cat >>confdefs.h <<_ACEOF
8133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8134 _ACEOF
8135 cat >>confdefs.h <<\_ACEOF
8136 #define HAVE_PSTAT 1
8137 _ACEOF
8138
8139 fi
8140 done
8141
8142
8143 fi
8144 rm -f conftest*
8145
8146
8147 fi
8148
8149
8150 fi
8151 done
8152
8153 echo "$as_me:$LINENO: checking what type of signals you have" >&5
8154 echo $ECHO_N "checking what type of signals you have... $ECHO_C" >&6
8155 if test "${ac_cv_sigtype+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158
8159 if test "$cross_compiling" = yes; then
8160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8161 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8162 { (exit 1); exit 1; }; }
8163 else
8164 cat >conftest.$ac_ext <<_ACEOF
8165 #line $LINENO "configure"
8166 #include "confdefs.h"
8167
8168 #include <signal.h>
8169 int main() {
8170 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L);
8171 }
8172
8173 _ACEOF
8174 rm -f conftest$ac_exeext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 ac_cv_sigtype=POSIX
8186 else
8187 echo "$as_me: program exited with status $ac_status" >&5
8188 echo "$as_me: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8190 ( exit $ac_status )
8191
8192 if test "$cross_compiling" = yes; then
8193 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8194 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8195 { (exit 1); exit 1; }; }
8196 else
8197 cat >conftest.$ac_ext <<_ACEOF
8198 #line $LINENO "configure"
8199 #include "confdefs.h"
8200
8201 #include <signal.h>
8202 int calls = 0;
8203 void handler()
8204 {
8205 if (calls)
8206 return;
8207 calls++;
8208 kill(getpid(), SIGTERM);
8209 sleep(1);
8210 }
8211
8212 int main() {
8213 signal(SIGTERM, handler);
8214 kill(getpid(), SIGTERM);
8215 exit(0);
8216 }
8217
8218 _ACEOF
8219 rm -f conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221 (eval $ac_link) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_sigtype=BSD
8231 else
8232 echo "$as_me: program exited with status $ac_status" >&5
8233 echo "$as_me: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 ( exit $ac_status )
8236 ac_cv_sigtype=SYSV
8237 fi
8238 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8239 fi
8240 fi
8241 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8242 fi
8243 fi
8244 echo "$as_me:$LINENO: result: $ac_cv_sigtype" >&5
8245 echo "${ECHO_T}$ac_cv_sigtype" >&6
8246
8247 if test "$ac_cv_sigtype" = "POSIX"; then
8248 cat >>confdefs.h <<\_ACEOF
8249 #define POSIX_SIGNALS 1
8250 _ACEOF
8251
8252 elif test "$ac_cv_sigtype" = "BSD"; then
8253 cat >>confdefs.h <<\_ACEOF
8254 #define BSD_RELIABLE_SIGNALS 1
8255 _ACEOF
8256
8257 else
8258 cat >>confdefs.h <<\_ACEOF
8259 #define SYSV_UNRELIABLE_SIGNALS 1
8260 _ACEOF
8261
8262 fi
8263
8264 for ac_func in strtoken
8265 do
8266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8267 echo "$as_me:$LINENO: checking for $ac_func" >&5
8268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8269 if eval "test \"\${$as_ac_var+set}\" = set"; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272 cat >conftest.$ac_ext <<_ACEOF
8273 #line $LINENO "configure"
8274 #include "confdefs.h"
8275 /* System header to define __stub macros and hopefully few prototypes,
8276 which can conflict with char $ac_func (); below. */
8277 #include <assert.h>
8278 /* Override any gcc2 internal prototype to avoid an error. */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284 char $ac_func ();
8285 char (*f) ();
8286
8287 #ifdef F77_DUMMY_MAIN
8288 # ifdef __cplusplus
8289 extern "C"
8290 # endif
8291 int F77_DUMMY_MAIN() { return 1; }
8292 #endif
8293 int
8294 main ()
8295 {
8296 /* The GNU C library defines this for functions which it implements
8297 to always fail with ENOSYS. Some functions are actually named
8298 something starting with __ and the normal name is an alias. */
8299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8300 choke me
8301 #else
8302 f = $ac_func;
8303 #endif
8304
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 (eval $ac_try) 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 eval "$as_ac_var=yes"
8322 else
8323 echo "$as_me: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8325 eval "$as_ac_var=no"
8326 fi
8327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8328 fi
8329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8331 if test `eval echo '${'$as_ac_var'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 else
8337 cat >>confdefs.h <<\_ACEOF
8338 #define NEED_STRTOKEN 1
8339 _ACEOF
8340
8341 fi
8342 done
8343
8344
8345 for ac_func in strtok
8346 do
8347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8348 echo "$as_me:$LINENO: checking for $ac_func" >&5
8349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8350 if eval "test \"\${$as_ac_var+set}\" = set"; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 cat >conftest.$ac_ext <<_ACEOF
8354 #line $LINENO "configure"
8355 #include "confdefs.h"
8356 /* System header to define __stub macros and hopefully few prototypes,
8357 which can conflict with char $ac_func (); below. */
8358 #include <assert.h>
8359 /* Override any gcc2 internal prototype to avoid an error. */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 /* We use char because int might match the return type of a gcc2
8364 builtin and then its argument prototype would still apply. */
8365 char $ac_func ();
8366 char (*f) ();
8367
8368 #ifdef F77_DUMMY_MAIN
8369 # ifdef __cplusplus
8370 extern "C"
8371 # endif
8372 int F77_DUMMY_MAIN() { return 1; }
8373 #endif
8374 int
8375 main ()
8376 {
8377 /* The GNU C library defines this for functions which it implements
8378 to always fail with ENOSYS. Some functions are actually named
8379 something starting with __ and the normal name is an alias. */
8380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8381 choke me
8382 #else
8383 f = $ac_func;
8384 #endif
8385
8386 ;
8387 return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392 (eval $ac_link) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -s conftest$ac_exeext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 eval "$as_ac_var=yes"
8403 else
8404 echo "$as_me: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 eval "$as_ac_var=no"
8407 fi
8408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8409 fi
8410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8412 if test `eval echo '${'$as_ac_var'}'` = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8415 _ACEOF
8416
8417 else
8418 cat >>confdefs.h <<\_ACEOF
8419 #define NEED_STRTOK 1
8420 _ACEOF
8421
8422 fi
8423 done
8424
8425
8426 for ac_func in strerror
8427 do
8428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8429 echo "$as_me:$LINENO: checking for $ac_func" >&5
8430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8431 if eval "test \"\${$as_ac_var+set}\" = set"; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 cat >conftest.$ac_ext <<_ACEOF
8435 #line $LINENO "configure"
8436 #include "confdefs.h"
8437 /* System header to define __stub macros and hopefully few prototypes,
8438 which can conflict with char $ac_func (); below. */
8439 #include <assert.h>
8440 /* Override any gcc2 internal prototype to avoid an error. */
8441 #ifdef __cplusplus
8442 extern "C"
8443 #endif
8444 /* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446 char $ac_func ();
8447 char (*f) ();
8448
8449 #ifdef F77_DUMMY_MAIN
8450 # ifdef __cplusplus
8451 extern "C"
8452 # endif
8453 int F77_DUMMY_MAIN() { return 1; }
8454 #endif
8455 int
8456 main ()
8457 {
8458 /* The GNU C library defines this for functions which it implements
8459 to always fail with ENOSYS. Some functions are actually named
8460 something starting with __ and the normal name is an alias. */
8461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8462 choke me
8463 #else
8464 f = $ac_func;
8465 #endif
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 eval "$as_ac_var=yes"
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 eval "$as_ac_var=no"
8488 fi
8489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8490 fi
8491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8493 if test `eval echo '${'$as_ac_var'}'` = yes; then
8494 cat >>confdefs.h <<_ACEOF
8495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8496 _ACEOF
8497
8498 else
8499 cat >>confdefs.h <<\_ACEOF
8500 #define NEED_STRERROR 1
8501 _ACEOF
8502
8503 fi
8504 done
8505
8506
8507 for ac_func in index
8508 do
8509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8510 echo "$as_me:$LINENO: checking for $ac_func" >&5
8511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8512 if eval "test \"\${$as_ac_var+set}\" = set"; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line $LINENO "configure"
8517 #include "confdefs.h"
8518 /* System header to define __stub macros and hopefully few prototypes,
8519 which can conflict with char $ac_func (); below. */
8520 #include <assert.h>
8521 /* Override any gcc2 internal prototype to avoid an error. */
8522 #ifdef __cplusplus
8523 extern "C"
8524 #endif
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527 char $ac_func ();
8528 char (*f) ();
8529
8530 #ifdef F77_DUMMY_MAIN
8531 # ifdef __cplusplus
8532 extern "C"
8533 # endif
8534 int F77_DUMMY_MAIN() { return 1; }
8535 #endif
8536 int
8537 main ()
8538 {
8539 /* The GNU C library defines this for functions which it implements
8540 to always fail with ENOSYS. Some functions are actually named
8541 something starting with __ and the normal name is an alias. */
8542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8543 choke me
8544 #else
8545 f = $ac_func;
8546 #endif
8547
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 eval "$as_ac_var=yes"
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 eval "$as_ac_var=no"
8569 fi
8570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8571 fi
8572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8574 if test `eval echo '${'$as_ac_var'}'` = yes; then
8575 cat >>confdefs.h <<_ACEOF
8576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8577 _ACEOF
8578
8579 else
8580 cat >>confdefs.h <<\_ACEOF
8581 #define NOINDEX 1
8582 _ACEOF
8583
8584 fi
8585 done
8586
8587
8588 for ac_func in strtoul
8589 do
8590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8591 echo "$as_me:$LINENO: checking for $ac_func" >&5
8592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_var+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596 cat >conftest.$ac_ext <<_ACEOF
8597 #line $LINENO "configure"
8598 #include "confdefs.h"
8599 /* System header to define __stub macros and hopefully few prototypes,
8600 which can conflict with char $ac_func (); below. */
8601 #include <assert.h>
8602 /* Override any gcc2 internal prototype to avoid an error. */
8603 #ifdef __cplusplus
8604 extern "C"
8605 #endif
8606 /* We use char because int might match the return type of a gcc2
8607 builtin and then its argument prototype would still apply. */
8608 char $ac_func ();
8609 char (*f) ();
8610
8611 #ifdef F77_DUMMY_MAIN
8612 # ifdef __cplusplus
8613 extern "C"
8614 # endif
8615 int F77_DUMMY_MAIN() { return 1; }
8616 #endif
8617 int
8618 main ()
8619 {
8620 /* The GNU C library defines this for functions which it implements
8621 to always fail with ENOSYS. Some functions are actually named
8622 something starting with __ and the normal name is an alias. */
8623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8624 choke me
8625 #else
8626 f = $ac_func;
8627 #endif
8628
8629 ;
8630 return 0;
8631 }
8632 _ACEOF
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635 (eval $ac_link) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -s conftest$ac_exeext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 eval "$as_ac_var=yes"
8646 else
8647 echo "$as_me: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 eval "$as_ac_var=no"
8650 fi
8651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8652 fi
8653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8655 if test `eval echo '${'$as_ac_var'}'` = yes; then
8656 cat >>confdefs.h <<_ACEOF
8657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8658 _ACEOF
8659
8660 else
8661 STRTOUL="strtoul.o"
8662 fi
8663 done
8664
8665
8666 for ac_func in bcopy
8667 do
8668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8669 echo "$as_me:$LINENO: checking for $ac_func" >&5
8670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8671 if eval "test \"\${$as_ac_var+set}\" = set"; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674 cat >conftest.$ac_ext <<_ACEOF
8675 #line $LINENO "configure"
8676 #include "confdefs.h"
8677 /* System header to define __stub macros and hopefully few prototypes,
8678 which can conflict with char $ac_func (); below. */
8679 #include <assert.h>
8680 /* Override any gcc2 internal prototype to avoid an error. */
8681 #ifdef __cplusplus
8682 extern "C"
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8686 char $ac_func ();
8687 char (*f) ();
8688
8689 #ifdef F77_DUMMY_MAIN
8690 # ifdef __cplusplus
8691 extern "C"
8692 # endif
8693 int F77_DUMMY_MAIN() { return 1; }
8694 #endif
8695 int
8696 main ()
8697 {
8698 /* The GNU C library defines this for functions which it implements
8699 to always fail with ENOSYS. Some functions are actually named
8700 something starting with __ and the normal name is an alias. */
8701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8702 choke me
8703 #else
8704 f = $ac_func;
8705 #endif
8706
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 eval "$as_ac_var=yes"
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 eval "$as_ac_var=no"
8728 fi
8729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8730 fi
8731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8733 if test `eval echo '${'$as_ac_var'}'` = yes; then
8734 cat >>confdefs.h <<_ACEOF
8735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8736 _ACEOF
8737
8738 else
8739 cat >>confdefs.h <<\_ACEOF
8740 #define NEED_BCOPY 1
8741 _ACEOF
8742
8743 fi
8744 done
8745
8746
8747 for ac_func in bcmp
8748 do
8749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8750 echo "$as_me:$LINENO: checking for $ac_func" >&5
8751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8752 if eval "test \"\${$as_ac_var+set}\" = set"; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 #line $LINENO "configure"
8757 #include "confdefs.h"
8758 /* System header to define __stub macros and hopefully few prototypes,
8759 which can conflict with char $ac_func (); below. */
8760 #include <assert.h>
8761 /* Override any gcc2 internal prototype to avoid an error. */
8762 #ifdef __cplusplus
8763 extern "C"
8764 #endif
8765 /* We use char because int might match the return type of a gcc2
8766 builtin and then its argument prototype would still apply. */
8767 char $ac_func ();
8768 char (*f) ();
8769
8770 #ifdef F77_DUMMY_MAIN
8771 # ifdef __cplusplus
8772 extern "C"
8773 # endif
8774 int F77_DUMMY_MAIN() { return 1; }
8775 #endif
8776 int
8777 main ()
8778 {
8779 /* The GNU C library defines this for functions which it implements
8780 to always fail with ENOSYS. Some functions are actually named
8781 something starting with __ and the normal name is an alias. */
8782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8783 choke me
8784 #else
8785 f = $ac_func;
8786 #endif
8787
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 eval "$as_ac_var=yes"
8805 else
8806 echo "$as_me: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8808 eval "$as_ac_var=no"
8809 fi
8810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8811 fi
8812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8814 if test `eval echo '${'$as_ac_var'}'` = yes; then
8815 cat >>confdefs.h <<_ACEOF
8816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8817 _ACEOF
8818
8819 else
8820 cat >>confdefs.h <<\_ACEOF
8821 #define NEED_BCMP 1
8822 _ACEOF
8823
8824 fi
8825 done
8826
8827
8828 for ac_func in bzero
8829 do
8830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8831 echo "$as_me:$LINENO: checking for $ac_func" >&5
8832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8833 if eval "test \"\${$as_ac_var+set}\" = set"; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 /* System header to define __stub macros and hopefully few prototypes,
8840 which can conflict with char $ac_func (); below. */
8841 #include <assert.h>
8842 /* Override any gcc2 internal prototype to avoid an error. */
8843 #ifdef __cplusplus
8844 extern "C"
8845 #endif
8846 /* We use char because int might match the return type of a gcc2
8847 builtin and then its argument prototype would still apply. */
8848 char $ac_func ();
8849 char (*f) ();
8850
8851 #ifdef F77_DUMMY_MAIN
8852 # ifdef __cplusplus
8853 extern "C"
8854 # endif
8855 int F77_DUMMY_MAIN() { return 1; }
8856 #endif
8857 int
8858 main ()
8859 {
8860 /* The GNU C library defines this for functions which it implements
8861 to always fail with ENOSYS. Some functions are actually named
8862 something starting with __ and the normal name is an alias. */
8863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8864 choke me
8865 #else
8866 f = $ac_func;
8867 #endif
8868
8869 ;
8870 return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -s conftest$ac_exeext'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 eval "$as_ac_var=yes"
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 cat conftest.$ac_ext >&5
8889 eval "$as_ac_var=no"
8890 fi
8891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8892 fi
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8895 if test `eval echo '${'$as_ac_var'}'` = yes; then
8896 cat >>confdefs.h <<_ACEOF
8897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8898 _ACEOF
8899
8900 else
8901 cat >>confdefs.h <<\_ACEOF
8902 #define NEED_BZERO 1
8903 _ACEOF
8904
8905 fi
8906 done
8907
8908
8909 for ac_func in strcasecmp
8910 do
8911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8912 echo "$as_me:$LINENO: checking for $ac_func" >&5
8913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8914 if eval "test \"\${$as_ac_var+set}\" = set"; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917 cat >conftest.$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 #include "confdefs.h"
8920 /* System header to define __stub macros and hopefully few prototypes,
8921 which can conflict with char $ac_func (); below. */
8922 #include <assert.h>
8923 /* Override any gcc2 internal prototype to avoid an error. */
8924 #ifdef __cplusplus
8925 extern "C"
8926 #endif
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8929 char $ac_func ();
8930 char (*f) ();
8931
8932 #ifdef F77_DUMMY_MAIN
8933 # ifdef __cplusplus
8934 extern "C"
8935 # endif
8936 int F77_DUMMY_MAIN() { return 1; }
8937 #endif
8938 int
8939 main ()
8940 {
8941 /* The GNU C library defines this for functions which it implements
8942 to always fail with ENOSYS. Some functions are actually named
8943 something starting with __ and the normal name is an alias. */
8944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8945 choke me
8946 #else
8947 f = $ac_func;
8948 #endif
8949
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 eval "$as_ac_var=yes"
8967 else
8968 echo "$as_me: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8970 eval "$as_ac_var=no"
8971 fi
8972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8973 fi
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976 if test `eval echo '${'$as_ac_var'}'` = yes; then
8977 cat >>confdefs.h <<_ACEOF
8978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8979 _ACEOF
8980 cat >>confdefs.h <<\_ACEOF
8981 #define GOT_STRCASECMP 1
8982 _ACEOF
8983
8984 fi
8985 done
8986
8987 save_libs="$LIBS"
8988 LIBS="$LIBS $SOCKLIB $INETLIB"
8989
8990 for ac_func in inet_addr
8991 do
8992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8993 echo "$as_me:$LINENO: checking for $ac_func" >&5
8994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8995 if eval "test \"\${$as_ac_var+set}\" = set"; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998 cat >conftest.$ac_ext <<_ACEOF
8999 #line $LINENO "configure"
9000 #include "confdefs.h"
9001 /* System header to define __stub macros and hopefully few prototypes,
9002 which can conflict with char $ac_func (); below. */
9003 #include <assert.h>
9004 /* Override any gcc2 internal prototype to avoid an error. */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9010 char $ac_func ();
9011 char (*f) ();
9012
9013 #ifdef F77_DUMMY_MAIN
9014 # ifdef __cplusplus
9015 extern "C"
9016 # endif
9017 int F77_DUMMY_MAIN() { return 1; }
9018 #endif
9019 int
9020 main ()
9021 {
9022 /* The GNU C library defines this for functions which it implements
9023 to always fail with ENOSYS. Some functions are actually named
9024 something starting with __ and the normal name is an alias. */
9025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9026 choke me
9027 #else
9028 f = $ac_func;
9029 #endif
9030
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext conftest$ac_exeext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 eval "$as_ac_var=yes"
9048 else
9049 echo "$as_me: failed program was:" >&5
9050 cat conftest.$ac_ext >&5
9051 eval "$as_ac_var=no"
9052 fi
9053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9054 fi
9055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9057 if test `eval echo '${'$as_ac_var'}'` = yes; then
9058 cat >>confdefs.h <<_ACEOF
9059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9060 _ACEOF
9061
9062 else
9063 cat >>confdefs.h <<\_ACEOF
9064 #define NEED_INET_ADDR 1
9065 _ACEOF
9066
9067 fi
9068 done
9069
9070
9071 for ac_func in inet_ntoa
9072 do
9073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9074 echo "$as_me:$LINENO: checking for $ac_func" >&5
9075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9076 if eval "test \"\${$as_ac_var+set}\" = set"; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 cat >conftest.$ac_ext <<_ACEOF
9080 #line $LINENO "configure"
9081 #include "confdefs.h"
9082 /* System header to define __stub macros and hopefully few prototypes,
9083 which can conflict with char $ac_func (); below. */
9084 #include <assert.h>
9085 /* Override any gcc2 internal prototype to avoid an error. */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 /* We use char because int might match the return type of a gcc2
9090 builtin and then its argument prototype would still apply. */
9091 char $ac_func ();
9092 char (*f) ();
9093
9094 #ifdef F77_DUMMY_MAIN
9095 # ifdef __cplusplus
9096 extern "C"
9097 # endif
9098 int F77_DUMMY_MAIN() { return 1; }
9099 #endif
9100 int
9101 main ()
9102 {
9103 /* The GNU C library defines this for functions which it implements
9104 to always fail with ENOSYS. Some functions are actually named
9105 something starting with __ and the normal name is an alias. */
9106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9107 choke me
9108 #else
9109 f = $ac_func;
9110 #endif
9111
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -s conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 eval "$as_ac_var=yes"
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 cat conftest.$ac_ext >&5
9132 eval "$as_ac_var=no"
9133 fi
9134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9135 fi
9136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9138 if test `eval echo '${'$as_ac_var'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9141 _ACEOF
9142
9143 else
9144 cat >>confdefs.h <<\_ACEOF
9145 #define NEED_INET_NTOA 1
9146 _ACEOF
9147
9148 fi
9149 done
9150
9151
9152 for ac_func in inet_netof
9153 do
9154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9155 echo "$as_me:$LINENO: checking for $ac_func" >&5
9156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9157 if eval "test \"\${$as_ac_var+set}\" = set"; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160 cat >conftest.$ac_ext <<_ACEOF
9161 #line $LINENO "configure"
9162 #include "confdefs.h"
9163 /* System header to define __stub macros and hopefully few prototypes,
9164 which can conflict with char $ac_func (); below. */
9165 #include <assert.h>
9166 /* Override any gcc2 internal prototype to avoid an error. */
9167 #ifdef __cplusplus
9168 extern "C"
9169 #endif
9170 /* We use char because int might match the return type of a gcc2
9171 builtin and then its argument prototype would still apply. */
9172 char $ac_func ();
9173 char (*f) ();
9174
9175 #ifdef F77_DUMMY_MAIN
9176 # ifdef __cplusplus
9177 extern "C"
9178 # endif
9179 int F77_DUMMY_MAIN() { return 1; }
9180 #endif
9181 int
9182 main ()
9183 {
9184 /* The GNU C library defines this for functions which it implements
9185 to always fail with ENOSYS. Some functions are actually named
9186 something starting with __ and the normal name is an alias. */
9187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9188 choke me
9189 #else
9190 f = $ac_func;
9191 #endif
9192
9193 ;
9194 return 0;
9195 }
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199 (eval $ac_link) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -s conftest$ac_exeext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 eval "$as_ac_var=yes"
9210 else
9211 echo "$as_me: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9213 eval "$as_ac_var=no"
9214 fi
9215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9216 fi
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9219 if test `eval echo '${'$as_ac_var'}'` = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9222 _ACEOF
9223
9224 else
9225 cat >>confdefs.h <<\_ACEOF
9226 #define NEED_INET_NETOF 1
9227 _ACEOF
9228
9229 fi
9230 done
9231
9232 LIBS="$save_libs"
9233
9234 for ac_func in syslog
9235 do
9236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9237 echo "$as_me:$LINENO: checking for $ac_func" >&5
9238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9239 if eval "test \"\${$as_ac_var+set}\" = set"; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242 cat >conftest.$ac_ext <<_ACEOF
9243 #line $LINENO "configure"
9244 #include "confdefs.h"
9245 /* System header to define __stub macros and hopefully few prototypes,
9246 which can conflict with char $ac_func (); below. */
9247 #include <assert.h>
9248 /* Override any gcc2 internal prototype to avoid an error. */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 /* We use char because int might match the return type of a gcc2
9253 builtin and then its argument prototype would still apply. */
9254 char $ac_func ();
9255 char (*f) ();
9256
9257 #ifdef F77_DUMMY_MAIN
9258 # ifdef __cplusplus
9259 extern "C"
9260 # endif
9261 int F77_DUMMY_MAIN() { return 1; }
9262 #endif
9263 int
9264 main ()
9265 {
9266 /* The GNU C library defines this for functions which it implements
9267 to always fail with ENOSYS. Some functions are actually named
9268 something starting with __ and the normal name is an alias. */
9269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9270 choke me
9271 #else
9272 f = $ac_func;
9273 #endif
9274
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -s conftest$ac_exeext'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 eval "$as_ac_var=yes"
9292 else
9293 echo "$as_me: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 eval "$as_ac_var=no"
9296 fi
9297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9298 fi
9299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9301 if test `eval echo '${'$as_ac_var'}'` = yes; then
9302 cat >>confdefs.h <<_ACEOF
9303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9304 _ACEOF
9305 cat >>confdefs.h <<\_ACEOF
9306 #define HAVE_SYSLOG 1
9307 _ACEOF
9308
9309 fi
9310 done
9311
9312
9313 for ac_func in vsyslog
9314 do
9315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9316 echo "$as_me:$LINENO: checking for $ac_func" >&5
9317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9318 if eval "test \"\${$as_ac_var+set}\" = set"; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 cat >conftest.$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9323 #include "confdefs.h"
9324 /* System header to define __stub macros and hopefully few prototypes,
9325 which can conflict with char $ac_func (); below. */
9326 #include <assert.h>
9327 /* Override any gcc2 internal prototype to avoid an error. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9333 char $ac_func ();
9334 char (*f) ();
9335
9336 #ifdef F77_DUMMY_MAIN
9337 # ifdef __cplusplus
9338 extern "C"
9339 # endif
9340 int F77_DUMMY_MAIN() { return 1; }
9341 #endif
9342 int
9343 main ()
9344 {
9345 /* The GNU C library defines this for functions which it implements
9346 to always fail with ENOSYS. Some functions are actually named
9347 something starting with __ and the normal name is an alias. */
9348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9349 choke me
9350 #else
9351 f = $ac_func;
9352 #endif
9353
9354 ;
9355 return 0;
9356 }
9357 _ACEOF
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 eval "$as_ac_var=yes"
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 cat conftest.$ac_ext >&5
9374 eval "$as_ac_var=no"
9375 fi
9376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9377 fi
9378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9380 if test `eval echo '${'$as_ac_var'}'` = yes; then
9381 cat >>confdefs.h <<_ACEOF
9382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9383 _ACEOF
9384 cat >>confdefs.h <<\_ACEOF
9385 #define HAVE_VSYSLOG 1
9386 _ACEOF
9387
9388 fi
9389 done
9390
9391
9392
9393
9394
9395 # Check whether --with-listen or --without-listen was given.
9396 if test "${with_listen+set}" = set; then
9397 withval="$with_listen"
9398 cat >>confdefs.h <<_ACEOF
9399 #define LISTEN_SIZE $withval
9400 _ACEOF
9401
9402 else
9403 cat >>confdefs.h <<\_ACEOF
9404 #define LISTEN_SIZE 5
9405 _ACEOF
9406
9407 fi;
9408
9409 # Check whether --with-nick-history or --without-nick-history was given.
9410 if test "${with_nick_history+set}" = set; then
9411 withval="$with_nick_history"
9412 cat >>confdefs.h <<_ACEOF
9413 #define NICKNAMEHISTORYLENGTH $withval
9414 _ACEOF
9415
9416 else
9417 cat >>confdefs.h <<\_ACEOF
9418 #define NICKNAMEHISTORYLENGTH 2000
9419 _ACEOF
9420
9421 fi;
9422
9423 # Check whether --with-sendq or --without-sendq was given.
9424 if test "${with_sendq+set}" = set; then
9425 withval="$with_sendq"
9426 cat >>confdefs.h <<_ACEOF
9427 #define MAXSENDQLENGTH $withval
9428 _ACEOF
9429
9430 else
9431 cat >>confdefs.h <<\_ACEOF
9432 #define MAXSENDQLENGTH 3000000
9433 _ACEOF
9434
9435 fi;
9436
9437 # Check whether --with-bufferpool or --without-bufferpool was given.
9438 if test "${with_bufferpool+set}" = set; then
9439 withval="$with_bufferpool"
9440 cat >>confdefs.h <<_ACEOF
9441 #define BUFFERPOOL ($withval * MAXSENDQLENGTH)
9442 _ACEOF
9443
9444 else
9445 cat >>confdefs.h <<\_ACEOF
9446 #define BUFFERPOOL (18 * MAXSENDQLENGTH)
9447 _ACEOF
9448
9449 fi;
9450
9451 # Check whether --with-hostname or --without-hostname was given.
9452 if test "${with_hostname+set}" = set; then
9453 withval="$with_hostname"
9454 cat >>confdefs.h <<_ACEOF
9455 #define DOMAINNAME "$withval"
9456 _ACEOF
9457
9458 else
9459 cat >>confdefs.h <<_ACEOF
9460 #define DOMAINNAME "`hostname`"
9461 _ACEOF
9462
9463 fi;
9464 cat >>confdefs.h <<_ACEOF
9465 #define MYOSNAME "`uname -a`"
9466 _ACEOF
9467
9468
9469 # Check whether --with-permissions or --without-permissions was given.
9470 if test "${with_permissions+set}" = set; then
9471 withval="$with_permissions"
9472 cat >>confdefs.h <<_ACEOF
9473 #define DEFAULT_PERMISSIONS $withval
9474 _ACEOF
9475
9476 else
9477 cat >>confdefs.h <<\_ACEOF
9478 #define DEFAULT_PERMISSIONS 0600
9479 _ACEOF
9480
9481 fi;
9482
9483 # Check whether --with-dpath or --without-dpath was given.
9484 if test "${with_dpath+set}" = set; then
9485 withval="$with_dpath"
9486 cat >>confdefs.h <<_ACEOF
9487 #define DPATH "$withval"
9488 _ACEOF
9489 IRCDDIR="$withval"; mkdir $withval/tmp
9490 else
9491 cat >>confdefs.h <<_ACEOF
9492 #define DPATH "`pwd`"
9493 _ACEOF
9494 IRCDDIR="`pwd`" mkdir `pwd`/tmp
9495 fi;
9496
9497 # Check whether --with-fd-setsize or --without-fd-setsize was given.
9498 if test "${with_fd_setsize+set}" = set; then
9499 withval="$with_fd_setsize"
9500 ac_fd=$withval
9501 else
9502 ac_fd=1024
9503 fi;
9504 cat >>confdefs.h <<_ACEOF
9505 #define MAXCONNECTIONS $ac_fd
9506 _ACEOF
9507
9508
9509 # Check whether --with-spath or --without-spath was given.
9510 if test "${with_spath+set}" = set; then
9511 withval="$with_spath"
9512 cat >>confdefs.h <<_ACEOF
9513 #define SPATH "$withval"
9514 _ACEOF
9515 BINDIR="$withval"
9516 else
9517 cat >>confdefs.h <<_ACEOF
9518 #define SPATH "`pwd`/src/ircd"
9519 _ACEOF
9520 BINDIR="`pwd`/src/ircd"
9521 fi;
9522 # Check whether --enable-nospoof or --disable-nospoof was given.
9523 if test "${enable_nospoof+set}" = set; then
9524 enableval="$enable_nospoof"
9525 cat >>confdefs.h <<\_ACEOF
9526 #define NOSPOOF 1
9527 _ACEOF
9528
9529 fi;
9530 # Check whether --enable-prefixaq or --disable-prefixaq was given.
9531 if test "${enable_prefixaq+set}" = set; then
9532 enableval="$enable_prefixaq"
9533 cat >>confdefs.h <<\_ACEOF
9534 #define PREFIX_AQ 1
9535 _ACEOF
9536
9537 fi;
9538 # Check whether --enable-hub or --disable-hub was given.
9539 if test "${enable_hub+set}" = set; then
9540 enableval="$enable_hub"
9541 cat >>confdefs.h <<\_ACEOF
9542 #define HUB 1
9543 _ACEOF
9544
9545 fi;
9546
9547 # Check whether --enable-ssl or --disable-ssl was given.
9548 if test "${enable_ssl+set}" = set; then
9549 enableval="$enable_ssl"
9550
9551 echo "$as_me:$LINENO: checking for openssl" >&5
9552 echo $ECHO_N "checking for openssl... $ECHO_C" >&6
9553 for dir in $enableval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
9554 ssldir="$dir"
9555 if test -f "$dir/include/openssl/ssl.h"; then
9556 echo "$as_me:$LINENO: result: found in $ssldir/include/openssl" >&5
9557 echo "${ECHO_T}found in $ssldir/include/openssl" >&6
9558 found_ssl="yes";
9559 if test ! "$ssldir" = "/usr" ; then
9560 CFLAGS="$CFLAGS -I$ssldir/include";
9561 fi
9562 break;
9563 fi
9564 if test -f "$dir/include/ssl.h"; then
9565 echo "$as_me:$LINENO: result: found in $ssldir/include" >&5
9566 echo "${ECHO_T}found in $ssldir/include" >&6
9567 found_ssl="yes";
9568 if test ! "$ssldir" = "/usr" ; then
9569 CFLAGS="$CFLAGS -I$ssldir/include";
9570 fi
9571 break
9572 fi
9573 done
9574 if test x_$found_ssl != x_yes; then
9575 echo "$as_me:$LINENO: result: not found" >&5
9576 echo "${ECHO_T}not found" >&6
9577 { echo "$as_me:$LINENO: WARNING: disabling ssl support" >&5
9578 echo "$as_me: WARNING: disabling ssl support" >&2;}
9579 else
9580 CRYPTOLIB="-lssl -lcrypto";
9581 if test ! "$ssldir" = "/usr" ; then
9582 LDFLAGS="$LDFLAGS -L$ssldir/lib";
9583 fi
9584 cat >>confdefs.h <<\_ACEOF
9585 #define USE_SSL 1
9586 _ACEOF
9587
9588 fi
9589
9590 fi;
9591
9592
9593 # Check whether --enable-ziplinks or --disable-ziplinks was given.
9594 if test "${enable_ziplinks+set}" = set; then
9595 enableval="$enable_ziplinks"
9596
9597 echo "$as_me:$LINENO: checking for zlib" >&5
9598 echo $ECHO_N "checking for zlib... $ECHO_C" >&6
9599 for dir in $enableval /usr/local /usr /usr/pkg; do
9600 zlibdir="$dir"
9601 if test -f "$dir/include/zlib.h"; then
9602 echo "$as_me:$LINENO: result: found in $zlibdir" >&5
9603 echo "${ECHO_T}found in $zlibdir" >&6
9604 found_zlib="yes";
9605 if test "$zlibdir" = "/usr" ; then
9606 CFLAGS="$CFLAGS -DZIP_LINKS";
9607 else
9608 CFLAGS="$CFLAGS -I$zlibdir/include -DZIP_LINKS";
9609 fi
9610 break;
9611 fi
9612 done
9613 if test x_$found_zlib != x_yes; then
9614 echo "$as_me:$LINENO: result: not found" >&5
9615 echo "${ECHO_T}not found" >&6
9616 { echo "$as_me:$LINENO: WARNING: disabling ziplink support" >&5
9617 echo "$as_me: WARNING: disabling ziplink support" >&2;}
9618 else
9619 IRCDLIBS="$IRCDLIBS -lz";
9620 if test "$zlibdir" != "/usr" ; then
9621 LDFLAGS="$LDFLAGS -L$zlibdir/lib";
9622 fi
9623 HAVE_ZLIB=yes
9624 fi
9625
9626
9627 fi;
9628
9629
9630 # Check whether --enable-libcurl or --disable-libcurl was given.
9631 if test "${enable_libcurl+set}" = set; then
9632 enableval="$enable_libcurl"
9633
9634 CURLCFLAG=`$enableval/bin/curl-config --cflags`
9635 CFLAGS="$CFLAGS $CURLCFLAG -DUSE_LIBCURL"
9636 CURLLIBS=`$enableval/bin/curl-config --libs`
9637
9638 if test "x`echo $CURLLIBS |grep .*ares.*`" = x ; then
9639 CURLLIBS="$CURLLIBS -lares"
9640 fi
9641 IRCDLIBS="$IRCDLIBS $CURLLIBS"
9642 URL="url.o"
9643
9644
9645 fi;
9646
9647 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
9648 if test "${enable_dynamic_linking+set}" = set; then
9649 enableval="$enable_dynamic_linking"
9650
9651 echo "$as_me:$LINENO: checking for dlopen" >&5
9652 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9653 if test "${ac_cv_func_dlopen+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 #include "confdefs.h"
9659 /* System header to define __stub macros and hopefully few prototypes
9660 else
9661 which can conflict with char dlopen (); below. */
9662 #include <assert.h>
9663 /* Override any gcc2 internal prototype to avoid an error. */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 /* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9669 char dlopen ();
9670 char (*f) ();
9671
9672 #ifdef F77_DUMMY_MAIN
9673 # ifdef __cplusplus
9674 extern "C"
9675 # endif
9676 int F77_DUMMY_MAIN() { return 1; }
9677 #endif
9678 int
9679 main ()
9680 {
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9685 choke me
9686 #else
9687 f = dlopen;
9688 #endif
9689
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9696 (eval $ac_link) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -s conftest$ac_exeext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_func_dlopen=yes
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 ac_cv_func_dlopen=no
9711 fi
9712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9713 fi
9714 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9715 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9716 if test $ac_cv_func_dlopen = yes; then
9717 :
9718 else
9719 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9720 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9721 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 ac_check_lib_save_LIBS=$LIBS
9725 LIBS="-ldl $LIBS"
9726 cat >conftest.$ac_ext <<_ACEOF
9727 #line $LINENO "configure"
9728 #include "confdefs.h"
9729
9730 /* Override any gcc2 internal prototype to avoid an error. */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736 char dlopen ();
9737 #ifdef F77_DUMMY_MAIN
9738 # ifdef __cplusplus
9739 extern "C"
9740 # endif
9741 int F77_DUMMY_MAIN() { return 1; }
9742 #endif
9743 int
9744 main ()
9745 {
9746 dlopen ();
9747 ;
9748 return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_lib_dl_dlopen=yes
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9767 ac_cv_lib_dl_dlopen=no
9768 fi
9769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9770 LIBS=$ac_check_lib_save_LIBS
9771 fi
9772 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9773 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9774 if test $ac_cv_lib_dl_dlopen = yes; then
9775 IRCDLIBS="$IRCDLIBS -ldl"
9776 else
9777
9778 { echo "$as_me:$LINENO: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
9779 echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
9780 cat >>confdefs.h <<\_ACEOF
9781 #define STATIC_LINKING 1
9782 _ACEOF
9783
9784
9785 fi
9786
9787 fi
9788
9789
9790 hold_cflags=$CFLAGS
9791 CFLAGS="$CFLAGS -export-dynamic"
9792 echo "$as_me:$LINENO: checking if we need the -export-dynamic flag" >&5
9793 echo $ECHO_N "checking if we need the -export-dynamic flag... $ECHO_C" >&6
9794 if test "${ac_cv_export_dynamic+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797
9798 cat >conftest.$ac_ext <<_ACEOF
9799 #line $LINENO "configure"
9800 #include "confdefs.h"
9801
9802 #ifdef F77_DUMMY_MAIN
9803 # ifdef __cplusplus
9804 extern "C"
9805 # endif
9806 int F77_DUMMY_MAIN() { return 1; }
9807 #endif
9808 int
9809 main ()
9810 {
9811 int i;
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -s conftest$ac_exeext'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9828 ac_cv_export_dynamic=yes
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9832 ac_cv_export_dynamic=no
9833 fi
9834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9835 fi
9836 echo "$as_me:$LINENO: result: $ac_cv_export_dynamic" >&5
9837 echo "${ECHO_T}$ac_cv_export_dynamic" >&6
9838 if test "$ac_cv_export_dynamic" = "no"; then
9839 CFLAGS=$hold_cflags
9840 fi
9841
9842 echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
9843 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
9844 if test "${ac_cv_pic+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847
9848 if test "$ac_cv_c_compiler_gnu" = "yes"; then
9849 ac_cv_pic="-fPIC -DPIC -shared"
9850 case `uname -s` in
9851 Darwin*)
9852 ac_cv_pic="-bundle -flat_namespace -undefined suppress"
9853 ;;
9854 esac
9855 else
9856 case `uname -s` in
9857 SunOS*)
9858 ac_cv_pic="-KPIC -DPIC -G"
9859 ;;
9860 esac
9861 fi
9862
9863 fi
9864 echo "$as_me:$LINENO: result: $ac_cv_pic" >&5
9865 echo "${ECHO_T}$ac_cv_pic" >&6
9866 echo "$as_me:$LINENO: checking if your system prepends an underscore on symbols" >&5
9867 echo $ECHO_N "checking if your system prepends an underscore on symbols... $ECHO_C" >&6
9868 if test "${ac_cv_underscore+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871
9872 cat >uscore.c << __EOF__
9873 int main() {
9874 return 0;
9875 }
9876 __EOF__
9877 $CC -o uscore $CFLAGS uscore.c 1>&5
9878 if test -z "`strings -a uscore |grep '^_main$'`"; then
9879 ac_cv_underscore=no
9880 else
9881 ac_cv_underscore=yes
9882 fi
9883 rm -f uscore uscore.c
9884
9885 fi
9886 echo "$as_me:$LINENO: result: $ac_cv_underscore" >&5
9887 echo "${ECHO_T}$ac_cv_underscore" >&6
9888 if test "$ac_cv_underscore" = "yes"; then
9889 cat >>confdefs.h <<\_ACEOF
9890 #define UNDERSCORE 1
9891 _ACEOF
9892
9893 fi
9894
9895 MODULEFLAGS=$ac_cv_pic
9896 cat >>confdefs.h <<\_ACEOF
9897 #define DYNAMIC_LINKING 1
9898 _ACEOF
9899
9900
9901 fi;
9902 # Check whether --enable-inet6 or --disable-inet6 was given.
9903 if test "${enable_inet6+set}" = set; then
9904 enableval="$enable_inet6"
9905
9906 echo "$as_me:$LINENO: checking if your system has IPv6 support" >&5
9907 echo $ECHO_N "checking if your system has IPv6 support... $ECHO_C" >&6
9908 if test "${ac_cv_ip6+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911
9912 save_libs="$LIBS"
9913 LIBS="$LIBS $SOCKLIB"
9914 if test "$cross_compiling" = yes; then
9915 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9916 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9917 { (exit 1); exit 1; }; }
9918 else
9919 cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 #include "confdefs.h"
9922
9923 #include <sys/types.h>
9924 #include <sys/socket.h>
9925 int main() {
9926 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
9927 exit(1);
9928 exit(0);
9929 }
9930
9931 _ACEOF
9932 rm -f conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_ip6=yes
9944 else
9945 echo "$as_me: program exited with status $ac_status" >&5
9946 echo "$as_me: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 ( exit $ac_status )
9949 ac_cv_ip6=no
9950 fi
9951 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9952 fi
9953
9954 fi
9955 echo "$as_me:$LINENO: result: $ac_cv_ip6" >&5
9956 echo "${ECHO_T}$ac_cv_ip6" >&6
9957 if test "$ac_cv_ip6" = "no"; then
9958 { echo "$as_me:$LINENO: WARNING: Your system does not support IPv6 so it will not be enabled" >&5
9959 echo "$as_me: WARNING: Your system does not support IPv6 so it will not be enabled" >&2;}
9960 else
9961 cat >>confdefs.h <<\_ACEOF
9962 #define INET6 1
9963 _ACEOF
9964
9965 fi
9966 LIBS="$save_libs"
9967
9968 fi;
9969
9970
9971 echo "$as_me:$LINENO: checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors" >&5
9972 echo $ECHO_N "checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors... $ECHO_C" >&6
9973 if test "$cross_compiling" = yes; then
9974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9975 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9976 { (exit 1); exit 1; }; }
9977 else
9978 cat >conftest.$ac_ext <<_ACEOF
9979 #line $LINENO "configure"
9980 #include "confdefs.h"
9981
9982 #include <sys/types.h>
9983 #include <sys/time.h>
9984 int main() {
9985 if (FD_SETSIZE >= $ac_fd)
9986 exit(0);
9987 exit(1);
9988 }
9989
9990 _ACEOF
9991 rm -f conftest$ac_exeext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993 (eval $ac_link) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 echo "$as_me:$LINENO: result: yes" >&5
10003 echo "${ECHO_T}yes" >&6
10004 else
10005 echo "$as_me: program exited with status $ac_status" >&5
10006 echo "$as_me: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 ( exit $ac_status )
10009
10010 FD_SETSIZE="-DFD_SETSIZE=$ac_fd"
10011 echo "$as_me:$LINENO: result: no" >&5
10012 echo "${ECHO_T}no" >&6
10013
10014 fi
10015 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10016 fi
10017
10018 case `uname -s` in
10019 *SunOS*)
10020 CFLAGS="$CFLAGS -D_SOLARIS"
10021 IRCDLIBS="$IRCDLIBS -lresolv "
10022 ;;
10023 *solaris*)
10024 CFLAGS="$CFLAGS -D_SOLARIS"
10025 IRCDLIBS="$IRCDLIBS -lresolv "
10026 ;;
10027 esac
10028
10029 tre_version="0.6.6"
10030 echo "$as_me:$LINENO: result: extracting TRE regex library" >&5
10031 echo "${ECHO_T}extracting TRE regex library" >&6
10032 cur_dir=`pwd`
10033 cd extras
10034 rm -rf tre-$tre_version
10035 if test "x$ac_cv_path_GUNZIP" = "x" ; then
10036 tar xfz tre.tar.gz
10037 else
10038 cp tre.tar.gz tre.tar.gz.bak
10039 gunzip -f tre.tar.gz
10040 cp tre.tar.gz.bak tre.tar.gz
10041 tar xf tre.tar
10042 fi
10043 echo "$as_me:$LINENO: result: configuring TRE regex library" >&5
10044 echo "${ECHO_T}configuring TRE regex library" >&6
10045 cd tre-$tre_version
10046 ./configure --disable-agrep --disable-shared --disable-system-abi --disable-wchar --disable-multibyte --prefix=$cur_dir/extras/regexp
10047 echo "$as_me:$LINENO: result: compiling TRE regex library" >&5
10048 echo "${ECHO_T}compiling TRE regex library" >&6
10049 $ac_cv_prog_MAKER
10050 echo "$as_me:$LINENO: result: installing TRE regex library" >&5
10051 echo "${ECHO_T}installing TRE regex library" >&6
10052 $ac_cv_prog_MAKER install
10053 TREINCDIR="$cur_dir/extras/regexp/include"
10054
10055 if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
10056 TRELIBS="-L../extras/regexp/lib -ltre"
10057 else
10058 TRELIBS=`$ac_cv_path_PKGCONFIG --libs tre.pc`
10059 fi
10060
10061 cd $cur_dir
10062 ac_config_files="$ac_config_files Makefile src/modules/Makefile unreal ircdcron/ircdchk"
10063 cat >confcache <<\_ACEOF
10064 # This file is a shell script that caches the results of configure
10065 # tests run on this system so they can be shared between configure
10066 # scripts and configure runs, see configure's option --config-cache.
10067 # It is not useful on other systems. If it contains results you don't
10068 # want to keep, you may remove or edit it.
10069 #
10070 # config.status only pays attention to the cache file if you give it
10071 # the --recheck option to rerun configure.
10072 #
10073 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10075 # following values.
10076
10077 _ACEOF
10078
10079 # The following way of writing the cache mishandles newlines in values,
10080 # but we know of no workaround that is simple, portable, and efficient.
10081 # So, don't put newlines in cache variables' values.
10082 # Ultrix sh set writes to stderr and can't be redirected directly,
10083 # and sets the high bit in the cache file unless we assign to the vars.
10084 {
10085 (set) 2>&1 |
10086 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10087 *ac_space=\ *)
10088 # `set' does not quote correctly, so add quotes (double-quote
10089 # substitution turns \\\\ into \\, and sed turns \\ into \).
10090 sed -n \
10091 "s/'/'\\\\''/g;
10092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10093 ;;
10094 *)
10095 # `set' quotes correctly as required by POSIX, so do not add quotes.
10096 sed -n \
10097 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10098 ;;
10099 esac;
10100 } |
10101 sed '
10102 t clear
10103 : clear
10104 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10105 t end
10106 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10107 : end' >>confcache
10108 if cmp -s $cache_file confcache; then :; else
10109 if test -w $cache_file; then
10110 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10111 cat confcache >$cache_file
10112 else
10113 echo "not updating unwritable cache $cache_file"
10114 fi
10115 fi
10116 rm -f confcache
10117
10118 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10119 # Let make expand exec_prefix.
10120 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10121
10122 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10123 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10124 # trailing colons and then remove the whole line if VPATH becomes empty
10125 # (actually we leave an empty line to preserve line numbers).
10126 if test "x$srcdir" = x.; then
10127 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10128 s/:*\$(srcdir):*/:/;
10129 s/:*\${srcdir}:*/:/;
10130 s/:*@srcdir@:*/:/;
10131 s/^\([^=]*=[ ]*\):*/\1/;
10132 s/:*$//;
10133 s/^[^=]*=[ ]*$//;
10134 }'
10135 fi
10136
10137 DEFS=-DHAVE_CONFIG_H
10138
10139
10140 : ${CONFIG_STATUS=./config.status}
10141 ac_clean_files_save=$ac_clean_files
10142 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10143 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10144 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10145 cat >$CONFIG_STATUS <<_ACEOF
10146 #! $SHELL
10147 # Generated by $as_me.
10148 # Run this file to recreate the current configuration.
10149 # Compiler output produced by configure, useful for debugging
10150 # configure, is in config.log if it exists.
10151
10152 debug=false
10153 SHELL=\${CONFIG_SHELL-$SHELL}
10154 _ACEOF
10155
10156 cat >>$CONFIG_STATUS <<\_ACEOF
10157
10158 ## --------------------- ##
10159 ## M4sh Initialization. ##
10160 ## --------------------- ##
10161
10162 # Be Bourne compatible
10163 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10164 emulate sh
10165 NULLCMD=:
10166 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10167 set -o posix
10168 fi
10169
10170 # NLS nuisances.
10171 # Support unset when possible.
10172 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10173 as_unset=unset
10174 else
10175 as_unset=false
10176 fi
10177
10178 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
10179 { $as_unset LANG || test "${LANG+set}" != set; } ||
10180 { LANG=C; export LANG; }
10181 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
10182 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
10183 { LC_ALL=C; export LC_ALL; }
10184 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
10185 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
10186 { LC_TIME=C; export LC_TIME; }
10187 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
10188 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
10189 { LC_CTYPE=C; export LC_CTYPE; }
10190 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
10191 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
10192 { LANGUAGE=C; export LANGUAGE; }
10193 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
10194 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
10195 { LC_COLLATE=C; export LC_COLLATE; }
10196 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
10197 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
10198 { LC_NUMERIC=C; export LC_NUMERIC; }
10199 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
10200 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
10201 { LC_MESSAGES=C; export LC_MESSAGES; }
10202
10203
10204 # Name of the executable.
10205 as_me=`(basename "$0") 2>/dev/null ||
10206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10207 X"$0" : 'X\(//\)$' \| \
10208 X"$0" : 'X\(/\)$' \| \
10209 . : '\(.\)' 2>/dev/null ||
10210 echo X/"$0" |
10211 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10212 /^X\/\(\/\/\)$/{ s//\1/; q; }
10213 /^X\/\(\/\).*/{ s//\1/; q; }
10214 s/.*/./; q'`
10215
10216 # PATH needs CR, and LINENO needs CR and PATH.
10217 # Avoid depending upon Character Ranges.
10218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10221 as_cr_digits='0123456789'
10222 as_cr_alnum=$as_cr_Letters$as_cr_digits
10223
10224 # The user is always right.
10225 if test "${PATH_SEPARATOR+set}" != set; then
10226 echo "#! /bin/sh" >conftest.sh
10227 echo "exit 0" >>conftest.sh
10228 chmod +x conftest.sh
10229 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
10230 PATH_SEPARATOR=';'
10231 else
10232 PATH_SEPARATOR=:
10233 fi
10234 rm -f conftest.sh
10235 fi
10236
10237
10238 as_lineno_1=$LINENO
10239 as_lineno_2=$LINENO
10240 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10241 test "x$as_lineno_1" != "x$as_lineno_2" &&
10242 test "x$as_lineno_3" = "x$as_lineno_2" || {
10243 # Find who we are. Look in the path if we contain no path at all
10244 # relative or not.
10245 case $0 in
10246 *[\\/]* ) as_myself=$0 ;;
10247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10249 do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10253 done
10254
10255 ;;
10256 esac
10257 # We did not find ourselves, most probably we were run as `sh COMMAND'
10258 # in which case we are not to be found in the path.
10259 if test "x$as_myself" = x; then
10260 as_myself=$0
10261 fi
10262 if test ! -f "$as_myself"; then
10263 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10264 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10265 { (exit 1); exit 1; }; }
10266 fi
10267 case $CONFIG_SHELL in
10268 '')
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10271 do
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for as_base in sh bash ksh sh5; do
10275 case $as_dir in
10276 /*)
10277 if ("$as_dir/$as_base" -c '
10278 as_lineno_1=$LINENO
10279 as_lineno_2=$LINENO
10280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10281 test "x$as_lineno_1" != "x$as_lineno_2" &&
10282 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10283 CONFIG_SHELL=$as_dir/$as_base
10284 export CONFIG_SHELL
10285 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10286 fi;;
10287 esac
10288 done
10289 done
10290 ;;
10291 esac
10292
10293 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10294 # uniformly replaced by the line number. The first 'sed' inserts a
10295 # line-number line before each line; the second 'sed' does the real
10296 # work. The second script uses 'N' to pair each line-number line
10297 # with the numbered line, and appends trailing '-' during
10298 # substitution so that $LINENO is not a special case at line end.
10299 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10300 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10301 sed '=' <$as_myself |
10302 sed '
10303 N
10304 s,$,-,
10305 : loop
10306 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10307 t loop
10308 s,-$,,
10309 s,^['$as_cr_digits']*\n,,
10310 ' >$as_me.lineno &&
10311 chmod +x $as_me.lineno ||
10312 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10313 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10314 { (exit 1); exit 1; }; }
10315
10316 # Don't try to exec as it changes $[0], causing all sort of problems
10317 # (the dirname of $[0] is not the place where we might find the
10318 # original and so on. Autoconf is especially sensible to this).
10319 . ./$as_me.lineno
10320 # Exit status is that of the last command.
10321 exit
10322 }
10323
10324
10325 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10326 *c*,-n*) ECHO_N= ECHO_C='
10327 ' ECHO_T=' ' ;;
10328 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10329 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10330 esac
10331
10332 if expr a : '\(a\)' >/dev/null 2>&1; then
10333 as_expr=expr
10334 else
10335 as_expr=false
10336 fi
10337
10338 rm -f conf$$ conf$$.exe conf$$.file
10339 echo >conf$$.file
10340 if ln -s conf$$.file conf$$ 2>/dev/null; then
10341 # We could just check for DJGPP; but this test a) works b) is more generic
10342 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10343 if test -f conf$$.exe; then
10344 # Don't use ln at all; we don't have any links
10345 as_ln_s='cp -p'
10346 else
10347 as_ln_s='ln -s'
10348 fi
10349 elif ln conf$$.file conf$$ 2>/dev/null; then
10350 as_ln_s=ln
10351 else
10352 as_ln_s='cp -p'
10353 fi
10354 rm -f conf$$ conf$$.exe conf$$.file
10355
10356 as_executable_p="test -f"
10357
10358 # Sed expression to map a string onto a valid CPP name.
10359 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10360
10361 # Sed expression to map a string onto a valid variable name.
10362 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10363
10364
10365 # IFS
10366 # We need space, tab and new line, in precisely that order.
10367 as_nl='
10368 '
10369 IFS=" $as_nl"
10370
10371 # CDPATH.
10372 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10373
10374 exec 6>&1
10375
10376 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10377 # report actual input values of CONFIG_FILES etc. instead of their
10378 # values after options handling. Logging --version etc. is OK.
10379 exec 5>>config.log
10380 {
10381 echo
10382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10383 ## Running $as_me. ##
10384 _ASBOX
10385 } >&5
10386 cat >&5 <<_CSEOF
10387
10388 This file was extended by $as_me, which was
10389 generated by GNU Autoconf 2.53. Invocation command line was
10390
10391 CONFIG_FILES = $CONFIG_FILES
10392 CONFIG_HEADERS = $CONFIG_HEADERS
10393 CONFIG_LINKS = $CONFIG_LINKS
10394 CONFIG_COMMANDS = $CONFIG_COMMANDS
10395 $ $0 $@
10396
10397 _CSEOF
10398 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10399 echo >&5
10400 _ACEOF
10401
10402 # Files that config.status was made for.
10403 if test -n "$ac_config_files"; then
10404 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10405 fi
10406
10407 if test -n "$ac_config_headers"; then
10408 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10409 fi
10410
10411 if test -n "$ac_config_links"; then
10412 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10413 fi
10414
10415 if test -n "$ac_config_commands"; then
10416 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10417 fi
10418
10419 cat >>$CONFIG_STATUS <<\_ACEOF
10420
10421 ac_cs_usage="\
10422 \`$as_me' instantiates files from templates according to the
10423 current configuration.
10424
10425 Usage: $0 [OPTIONS] [FILE]...
10426
10427 -h, --help print this help, then exit
10428 -V, --version print version number, then exit
10429 -d, --debug don't remove temporary files
10430 --recheck update $as_me by reconfiguring in the same conditions
10431 --file=FILE[:TEMPLATE]
10432 instantiate the configuration file FILE
10433 --header=FILE[:TEMPLATE]
10434 instantiate the configuration header FILE
10435
10436 Configuration files:
10437 $config_files
10438
10439 Configuration headers:
10440 $config_headers
10441
10442 Report bugs to <bug-autoconf@gnu.org>."
10443 _ACEOF
10444
10445 cat >>$CONFIG_STATUS <<_ACEOF
10446 ac_cs_version="\\
10447 config.status
10448 configured by $0, generated by GNU Autoconf 2.53,
10449 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10450
10451 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10452 Free Software Foundation, Inc.
10453 This config.status script is free software; the Free Software Foundation
10454 gives unlimited permission to copy, distribute and modify it."
10455 srcdir=$srcdir
10456 _ACEOF
10457
10458 cat >>$CONFIG_STATUS <<\_ACEOF
10459 # If no file are specified by the user, then we need to provide default
10460 # value. By we need to know if files were specified by the user.
10461 ac_need_defaults=:
10462 while test $# != 0
10463 do
10464 case $1 in
10465 --*=*)
10466 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10467 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10468 shift
10469 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10470 shift
10471 ;;
10472 -*);;
10473 *) # This is not an option, so the user has probably given explicit
10474 # arguments.
10475 ac_need_defaults=false;;
10476 esac
10477
10478 case $1 in
10479 # Handling of the options.
10480 _ACEOF
10481 cat >>$CONFIG_STATUS <<_ACEOF
10482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10483 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10484 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10485 _ACEOF
10486 cat >>$CONFIG_STATUS <<\_ACEOF
10487 --version | --vers* | -V )
10488 echo "$ac_cs_version"; exit 0 ;;
10489 --he | --h)
10490 # Conflict between --help and --header
10491 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10492 Try \`$0 --help' for more information." >&5
10493 echo "$as_me: error: ambiguous option: $1
10494 Try \`$0 --help' for more information." >&2;}
10495 { (exit 1); exit 1; }; };;
10496 --help | --hel | -h )
10497 echo "$ac_cs_usage"; exit 0 ;;
10498 --debug | --d* | -d )
10499 debug=: ;;
10500 --file | --fil | --fi | --f )
10501 shift
10502 CONFIG_FILES="$CONFIG_FILES $1"
10503 ac_need_defaults=false;;
10504 --header | --heade | --head | --hea )
10505 shift
10506 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10507 ac_need_defaults=false;;
10508
10509 # This is an error.
10510 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10511 Try \`$0 --help' for more information." >&5
10512 echo "$as_me: error: unrecognized option: $1
10513 Try \`$0 --help' for more information." >&2;}
10514 { (exit 1); exit 1; }; } ;;
10515
10516 *) ac_config_targets="$ac_config_targets $1" ;;
10517
10518 esac
10519 shift
10520 done
10521
10522 _ACEOF
10523
10524
10525
10526
10527
10528 cat >>$CONFIG_STATUS <<\_ACEOF
10529 for ac_config_target in $ac_config_targets
10530 do
10531 case "$ac_config_target" in
10532 # Handling of arguments.
10533 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10534 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
10535 "unreal" ) CONFIG_FILES="$CONFIG_FILES unreal" ;;
10536 "ircdcron/ircdchk" ) CONFIG_FILES="$CONFIG_FILES ircdcron/ircdchk" ;;
10537 "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10538 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10539 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10540 { (exit 1); exit 1; }; };;
10541 esac
10542 done
10543
10544 # If the user did not use the arguments to specify the items to instantiate,
10545 # then the envvar interface is used. Set only those that are not.
10546 # We use the long form for the default assignment because of an extremely
10547 # bizarre bug on SunOS 4.1.3.
10548 if $ac_need_defaults; then
10549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10551 fi
10552
10553 # Create a temporary directory, and hook for its removal unless debugging.
10554 $debug ||
10555 {
10556 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10557 trap '{ (exit 1); exit 1; }' 1 2 13 15
10558 }
10559
10560 # Create a (secure) tmp directory for tmp files.
10561 : ${TMPDIR=/tmp}
10562 {
10563 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10564 test -n "$tmp" && test -d "$tmp"
10565 } ||
10566 {
10567 tmp=$TMPDIR/cs$$-$RANDOM
10568 (umask 077 && mkdir $tmp)
10569 } ||
10570 {
10571 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10572 { (exit 1); exit 1; }
10573 }
10574
10575 _ACEOF
10576
10577 cat >>$CONFIG_STATUS <<_ACEOF
10578
10579 #
10580 # CONFIG_FILES section.
10581 #
10582
10583 # No need to generate the scripts if there are no CONFIG_FILES.
10584 # This happens for instance when ./config.status config.h
10585 if test -n "\$CONFIG_FILES"; then
10586 # Protect against being on the right side of a sed subst in config.status.
10587 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10588 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10589 s,@SHELL@,$SHELL,;t t
10590 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10591 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10592 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10593 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10594 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10595 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10596 s,@exec_prefix@,$exec_prefix,;t t
10597 s,@prefix@,$prefix,;t t
10598 s,@program_transform_name@,$program_transform_name,;t t
10599 s,@bindir@,$bindir,;t t
10600 s,@sbindir@,$sbindir,;t t
10601 s,@libexecdir@,$libexecdir,;t t
10602 s,@datadir@,$datadir,;t t
10603 s,@sysconfdir@,$sysconfdir,;t t
10604 s,@sharedstatedir@,$sharedstatedir,;t t
10605 s,@localstatedir@,$localstatedir,;t t
10606 s,@libdir@,$libdir,;t t
10607 s,@includedir@,$includedir,;t t
10608 s,@oldincludedir@,$oldincludedir,;t t
10609 s,@infodir@,$infodir,;t t
10610 s,@mandir@,$mandir,;t t
10611 s,@build_alias@,$build_alias,;t t
10612 s,@host_alias@,$host_alias,;t t
10613 s,@target_alias@,$target_alias,;t t
10614 s,@DEFS@,$DEFS,;t t
10615 s,@ECHO_C@,$ECHO_C,;t t
10616 s,@ECHO_N@,$ECHO_N,;t t
10617 s,@ECHO_T@,$ECHO_T,;t t
10618 s,@LIBS@,$LIBS,;t t
10619 s,@CC@,$CC,;t t
10620 s,@CFLAGS@,$CFLAGS,;t t
10621 s,@LDFLAGS@,$LDFLAGS,;t t
10622 s,@CPPFLAGS@,$CPPFLAGS,;t t
10623 s,@ac_ct_CC@,$ac_ct_CC,;t t
10624 s,@EXEEXT@,$EXEEXT,;t t
10625 s,@OBJEXT@,$OBJEXT,;t t
10626 s,@RM@,$RM,;t t
10627 s,@CP@,$CP,;t t
10628 s,@TOUCH@,$TOUCH,;t t
10629 s,@OPENSSLPATH@,$OPENSSLPATH,;t t
10630 s,@INSTALL@,$INSTALL,;t t
10631 s,@MAKER@,$MAKER,;t t
10632 s,@GMAKE@,$GMAKE,;t t
10633 s,@GUNZIP@,$GUNZIP,;t t
10634 s,@PKGCONFIG@,$PKGCONFIG,;t t
10635 s,@IRCDLIBS@,$IRCDLIBS,;t t
10636 s,@MKPASSWDLIBS@,$MKPASSWDLIBS,;t t
10637 s,@CPP@,$CPP,;t t
10638 s,@STRTOUL@,$STRTOUL,;t t
10639 s,@CRYPTOLIB@,$CRYPTOLIB,;t t
10640 s,@MODULEFLAGS@,$MODULEFLAGS,;t t
10641 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
10642 s,@URL@,$URL,;t t
10643 s,@IRCDDIR@,$IRCDDIR,;t t
10644 s,@BINDIR@,$BINDIR,;t t
10645 s,@FD_SETSIZE@,$FD_SETSIZE,;t t
10646 s,@TREINCDIR@,$TREINCDIR,;t t
10647 s,@TRELIBS@,$TRELIBS,;t t
10648 CEOF
10649
10650 _ACEOF
10651
10652 cat >>$CONFIG_STATUS <<\_ACEOF
10653 # Split the substitutions into bite-sized pieces for seds with
10654 # small command number limits, like on Digital OSF/1 and HP-UX.
10655 ac_max_sed_lines=48
10656 ac_sed_frag=1 # Number of current file.
10657 ac_beg=1 # First line for current file.
10658 ac_end=$ac_max_sed_lines # Line after last line for current file.
10659 ac_more_lines=:
10660 ac_sed_cmds=
10661 while $ac_more_lines; do
10662 if test $ac_beg -gt 1; then
10663 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10664 else
10665 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10666 fi
10667 if test ! -s $tmp/subs.frag; then
10668 ac_more_lines=false
10669 else
10670 # The purpose of the label and of the branching condition is to
10671 # speed up the sed processing (if there are no `@' at all, there
10672 # is no need to browse any of the substitutions).
10673 # These are the two extra sed commands mentioned above.
10674 (echo ':t
10675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10676 if test -z "$ac_sed_cmds"; then
10677 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10678 else
10679 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10680 fi
10681 ac_sed_frag=`expr $ac_sed_frag + 1`
10682 ac_beg=$ac_end
10683 ac_end=`expr $ac_end + $ac_max_sed_lines`
10684 fi
10685 done
10686 if test -z "$ac_sed_cmds"; then
10687 ac_sed_cmds=cat
10688 fi
10689 fi # test -n "$CONFIG_FILES"
10690
10691 _ACEOF
10692 cat >>$CONFIG_STATUS <<\_ACEOF
10693 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10695 case $ac_file in
10696 - | *:- | *:-:* ) # input from stdin
10697 cat >$tmp/stdin
10698 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10700 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10701 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10702 * ) ac_file_in=$ac_file.in ;;
10703 esac
10704
10705 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10706 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10708 X"$ac_file" : 'X\(//\)[^/]' \| \
10709 X"$ac_file" : 'X\(//\)$' \| \
10710 X"$ac_file" : 'X\(/\)' \| \
10711 . : '\(.\)' 2>/dev/null ||
10712 echo X"$ac_file" |
10713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10715 /^X\(\/\/\)$/{ s//\1/; q; }
10716 /^X\(\/\).*/{ s//\1/; q; }
10717 s/.*/./; q'`
10718 { case "$ac_dir" in
10719 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10720 *) as_incr_dir=.;;
10721 esac
10722 as_dummy="$ac_dir"
10723 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10724 case $as_mkdir_dir in
10725 # Skip DOS drivespec
10726 ?:) as_incr_dir=$as_mkdir_dir ;;
10727 *)
10728 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10729 test -d "$as_incr_dir" ||
10730 mkdir "$as_incr_dir" ||
10731 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10732 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10733 { (exit 1); exit 1; }; }
10734 ;;
10735 esac
10736 done; }
10737
10738 ac_builddir=.
10739
10740 if test "$ac_dir" != .; then
10741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10742 # A "../" for each directory in $ac_dir_suffix.
10743 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10744 else
10745 ac_dir_suffix= ac_top_builddir=
10746 fi
10747
10748 case $srcdir in
10749 .) # No --srcdir option. We are building in place.
10750 ac_srcdir=.
10751 if test -z "$ac_top_builddir"; then
10752 ac_top_srcdir=.
10753 else
10754 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10755 fi ;;
10756 [\\/]* | ?:[\\/]* ) # Absolute path.
10757 ac_srcdir=$srcdir$ac_dir_suffix;
10758 ac_top_srcdir=$srcdir ;;
10759 *) # Relative path.
10760 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10761 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10762 esac
10763 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10764 # absolute.
10765 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10766 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10767 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10768 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10769
10770
10771
10772 if test x"$ac_file" != x-; then
10773 { echo "$as_me:$LINENO: creating $ac_file" >&5
10774 echo "$as_me: creating $ac_file" >&6;}
10775 rm -f "$ac_file"
10776 fi
10777 # Let's still pretend it is `configure' which instantiates (i.e., don't
10778 # use $as_me), people would be surprised to read:
10779 # /* config.h. Generated by config.status. */
10780 if test x"$ac_file" = x-; then
10781 configure_input=
10782 else
10783 configure_input="$ac_file. "
10784 fi
10785 configure_input=$configure_input"Generated from `echo $ac_file_in |
10786 sed 's,.*/,,'` by configure."
10787
10788 # First look for the input files in the build tree, otherwise in the
10789 # src tree.
10790 ac_file_inputs=`IFS=:
10791 for f in $ac_file_in; do
10792 case $f in
10793 -) echo $tmp/stdin ;;
10794 [\\/$]*)
10795 # Absolute (can't be DOS-style, as IFS=:)
10796 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10797 echo "$as_me: error: cannot find input file: $f" >&2;}
10798 { (exit 1); exit 1; }; }
10799 echo $f;;
10800 *) # Relative
10801 if test -f "$f"; then
10802 # Build tree
10803 echo $f
10804 elif test -f "$srcdir/$f"; then
10805 # Source tree
10806 echo $srcdir/$f
10807 else
10808 # /dev/null tree
10809 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10810 echo "$as_me: error: cannot find input file: $f" >&2;}
10811 { (exit 1); exit 1; }; }
10812 fi;;
10813 esac
10814 done` || { (exit 1); exit 1; }
10815 _ACEOF
10816 cat >>$CONFIG_STATUS <<_ACEOF
10817 sed "$ac_vpsub
10818 $extrasub
10819 _ACEOF
10820 cat >>$CONFIG_STATUS <<\_ACEOF
10821 :t
10822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10823 s,@configure_input@,$configure_input,;t t
10824 s,@srcdir@,$ac_srcdir,;t t
10825 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10826 s,@top_srcdir@,$ac_top_srcdir,;t t
10827 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10828 s,@builddir@,$ac_builddir,;t t
10829 s,@abs_builddir@,$ac_abs_builddir,;t t
10830 s,@top_builddir@,$ac_top_builddir,;t t
10831 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10832 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10833 rm -f $tmp/stdin
10834 if test x"$ac_file" != x-; then
10835 mv $tmp/out $ac_file
10836 else
10837 cat $tmp/out
10838 rm -f $tmp/out
10839 fi
10840
10841 done
10842 _ACEOF
10843 cat >>$CONFIG_STATUS <<\_ACEOF
10844
10845 #
10846 # CONFIG_HEADER section.
10847 #
10848
10849 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10850 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10851 #
10852 # ac_d sets the value in "#define NAME VALUE" lines.
10853 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10854 ac_dB='[ ].*$,\1#\2'
10855 ac_dC=' '
10856 ac_dD=',;t'
10857 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10858 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10859 ac_uB='$,\1#\2define\3'
10860 ac_uC=' '
10861 ac_uD=',;t'
10862
10863 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10865 case $ac_file in
10866 - | *:- | *:-:* ) # input from stdin
10867 cat >$tmp/stdin
10868 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10869 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10870 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10871 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10872 * ) ac_file_in=$ac_file.in ;;
10873 esac
10874
10875 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10876 echo "$as_me: creating $ac_file" >&6;}
10877
10878 # First look for the input files in the build tree, otherwise in the
10879 # src tree.
10880 ac_file_inputs=`IFS=:
10881 for f in $ac_file_in; do
10882 case $f in
10883 -) echo $tmp/stdin ;;
10884 [\\/$]*)
10885 # Absolute (can't be DOS-style, as IFS=:)
10886 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10887 echo "$as_me: error: cannot find input file: $f" >&2;}
10888 { (exit 1); exit 1; }; }
10889 echo $f;;
10890 *) # Relative
10891 if test -f "$f"; then
10892 # Build tree
10893 echo $f
10894 elif test -f "$srcdir/$f"; then
10895 # Source tree
10896 echo $srcdir/$f
10897 else
10898 # /dev/null tree
10899 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10900 echo "$as_me: error: cannot find input file: $f" >&2;}
10901 { (exit 1); exit 1; }; }
10902 fi;;
10903 esac
10904 done` || { (exit 1); exit 1; }
10905 # Remove the trailing spaces.
10906 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10907
10908 _ACEOF
10909
10910 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10911 # `conftest.undefs', that substitutes the proper values into
10912 # config.h.in to produce config.h. The first handles `#define'
10913 # templates, and the second `#undef' templates.
10914 # And first: Protect against being on the right side of a sed subst in
10915 # config.status. Protect against being in an unquoted here document
10916 # in config.status.
10917 rm -f conftest.defines conftest.undefs
10918 # Using a here document instead of a string reduces the quoting nightmare.
10919 # Putting comments in sed scripts is not portable.
10920 #
10921 # `end' is used to avoid that the second main sed command (meant for
10922 # 0-ary CPP macros) applies to n-ary macro definitions.
10923 # See the Autoconf documentation for `clear'.
10924 cat >confdef2sed.sed <<\_ACEOF
10925 s/[\\&,]/\\&/g
10926 s,[\\$`],\\&,g
10927 t clear
10928 : clear
10929 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10930 t end
10931 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10932 : end
10933 _ACEOF
10934 # If some macros were called several times there might be several times
10935 # the same #defines, which is useless. Nevertheless, we may not want to
10936 # sort them, since we want the *last* AC-DEFINE to be honored.
10937 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10938 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10939 rm -f confdef2sed.sed
10940
10941 # This sed command replaces #undef with comments. This is necessary, for
10942 # example, in the case of _POSIX_SOURCE, which is predefined and required
10943 # on some systems where configure will not decide to define it.
10944 cat >>conftest.undefs <<\_ACEOF
10945 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10946 _ACEOF
10947
10948 # Break up conftest.defines because some shells have a limit on the size
10949 # of here documents, and old seds have small limits too (100 cmds).
10950 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10951 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10952 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10953 echo ' :' >>$CONFIG_STATUS
10954 rm -f conftest.tail
10955 while grep . conftest.defines >/dev/null
10956 do
10957 # Write a limited-size here document to $tmp/defines.sed.
10958 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10959 # Speed up: don't consider the non `#define' lines.
10960 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10961 # Work around the forget-to-reset-the-flag bug.
10962 echo 't clr' >>$CONFIG_STATUS
10963 echo ': clr' >>$CONFIG_STATUS
10964 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10965 echo 'CEOF
10966 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10967 rm -f $tmp/in
10968 mv $tmp/out $tmp/in
10969 ' >>$CONFIG_STATUS
10970 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10971 rm -f conftest.defines
10972 mv conftest.tail conftest.defines
10973 done
10974 rm -f conftest.defines
10975 echo ' fi # egrep' >>$CONFIG_STATUS
10976 echo >>$CONFIG_STATUS
10977
10978 # Break up conftest.undefs because some shells have a limit on the size
10979 # of here documents, and old seds have small limits too (100 cmds).
10980 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10981 rm -f conftest.tail
10982 while grep . conftest.undefs >/dev/null
10983 do
10984 # Write a limited-size here document to $tmp/undefs.sed.
10985 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10986 # Speed up: don't consider the non `#undef'
10987 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10988 # Work around the forget-to-reset-the-flag bug.
10989 echo 't clr' >>$CONFIG_STATUS
10990 echo ': clr' >>$CONFIG_STATUS
10991 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10992 echo 'CEOF
10993 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10994 rm -f $tmp/in
10995 mv $tmp/out $tmp/in
10996 ' >>$CONFIG_STATUS
10997 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10998 rm -f conftest.undefs
10999 mv conftest.tail conftest.undefs
11000 done
11001 rm -f conftest.undefs
11002
11003 cat >>$CONFIG_STATUS <<\_ACEOF
11004 # Let's still pretend it is `configure' which instantiates (i.e., don't
11005 # use $as_me), people would be surprised to read:
11006 # /* config.h. Generated by config.status. */
11007 if test x"$ac_file" = x-; then
11008 echo "/* Generated by configure. */" >$tmp/config.h
11009 else
11010 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11011 fi
11012 cat $tmp/in >>$tmp/config.h
11013 rm -f $tmp/in
11014 if test x"$ac_file" != x-; then
11015 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11016 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11017 echo "$as_me: $ac_file is unchanged" >&6;}
11018 else
11019 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11021 X"$ac_file" : 'X\(//\)[^/]' \| \
11022 X"$ac_file" : 'X\(//\)$' \| \
11023 X"$ac_file" : 'X\(/\)' \| \
11024 . : '\(.\)' 2>/dev/null ||
11025 echo X"$ac_file" |
11026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11028 /^X\(\/\/\)$/{ s//\1/; q; }
11029 /^X\(\/\).*/{ s//\1/; q; }
11030 s/.*/./; q'`
11031 { case "$ac_dir" in
11032 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11033 *) as_incr_dir=.;;
11034 esac
11035 as_dummy="$ac_dir"
11036 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11037 case $as_mkdir_dir in
11038 # Skip DOS drivespec
11039 ?:) as_incr_dir=$as_mkdir_dir ;;
11040 *)
11041 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11042 test -d "$as_incr_dir" ||
11043 mkdir "$as_incr_dir" ||
11044 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11045 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11046 { (exit 1); exit 1; }; }
11047 ;;
11048 esac
11049 done; }
11050
11051 rm -f $ac_file
11052 mv $tmp/config.h $ac_file
11053 fi
11054 else
11055 cat $tmp/config.h
11056 rm -f $tmp/config.h
11057 fi
11058 done
11059 _ACEOF
11060
11061 cat >>$CONFIG_STATUS <<\_ACEOF
11062
11063 { (exit 0); exit 0; }
11064 _ACEOF
11065 chmod +x $CONFIG_STATUS
11066 ac_clean_files=$ac_clean_files_save
11067
11068
11069 # configure is writing to config.log, and then calls config.status.
11070 # config.status does its own redirection, appending to config.log.
11071 # Unfortunately, on DOS this fails, as config.log is still kept open
11072 # by configure, so config.status won't be able to write to it; its
11073 # output is simply discarded. So we exec the FD to /dev/null,
11074 # effectively closing config.log, so it can be properly (re)opened and
11075 # appended to by config.status. When coming back to configure, we
11076 # need to make the FD available again.
11077 if test "$no_create" != yes; then
11078 ac_cs_success=:
11079 exec 5>/dev/null
11080 $SHELL $CONFIG_STATUS || ac_cs_success=false
11081 exec 5>>config.log
11082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11083 # would make configure fail if this is the last instruction.
11084 $ac_cs_success || { (exit 1); exit 1; }
11085 fi
11086
11087 chmod 0700 unreal
11088 chmod 0700 ircdcron/ircdchk