]> jfr.im git - irc/unrealircd/unrealircd.git/blame - configure
3.2 with -d -P, just to be sure.
[irc/unrealircd/unrealircd.git] / configure
CommitLineData
a3641d1f 1#! /bin/sh
a3641d1f 2# Guess values for system-dependent variables and create Makefiles.
19d3ff1a 3# Generated by GNU Autoconf 2.53.
a3641d1f 4#
19d3ff1a 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
a3641d1f 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
19d3ff1a 10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
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.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo 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.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if 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
94fi
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
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
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
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
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
147done
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
182case `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= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if 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
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_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.
219as_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.
224as_nl='
225'
226IFS=" $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.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
a3641d1f 242ac_default_prefix=/usr/local
19d3ff1a 243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${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.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="src/ircd.c"
262# Factoring default headers for most tests.
263ac_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
a3641d1f 299
300# Initialize some variables set by options.
19d3ff1a 301ac_init_help=
302ac_init_version=false
a3641d1f 303# The variables have the same names as the options, with
304# dashes changed to underlines.
19d3ff1a 305cache_file=/dev/null
a3641d1f 306exec_prefix=NONE
a3641d1f 307no_create=
a3641d1f 308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
a3641d1f 316verbose=
317x_includes=NONE
318x_libraries=NONE
19d3ff1a 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.
a3641d1f 325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
a3641d1f 338ac_prev=
339for ac_option
340do
a3641d1f 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
19d3ff1a 348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a3641d1f 349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
19d3ff1a 352 case $ac_option in
a3641d1f 353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
19d3ff1a 357 bindir=$ac_optarg ;;
a3641d1f 358
359 -build | --build | --buil | --bui | --bu)
19d3ff1a 360 ac_prev=build_alias ;;
a3641d1f 361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
19d3ff1a 362 build_alias=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
a3641d1f 373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
19d3ff1a 378 datadir=$ac_optarg ;;
a3641d1f 379
380 -disable-* | --disable-*)
19d3ff1a 381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a3641d1f 382 # Reject names that are not valid shell variable names.
19d3ff1a 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" ;;
a3641d1f 388
389 -enable-* | --enable-*)
19d3ff1a 390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a3641d1f 391 # Reject names that are not valid shell variable names.
19d3ff1a 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"`;;
a3641d1f 398 *) ac_optarg=yes ;;
399 esac
19d3ff1a 400 eval "enable_$ac_feature='$ac_optarg'" ;;
a3641d1f 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=*)
19d3ff1a 409 exec_prefix=$ac_optarg ;;
a3641d1f 410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
19d3ff1a 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 ;;
a3641d1f 421
422 -host | --host | --hos | --ho)
19d3ff1a 423 ac_prev=host_alias ;;
a3641d1f 424 -host=* | --host=* | --hos=* | --ho=*)
19d3ff1a 425 host_alias=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 432 includedir=$ac_optarg ;;
a3641d1f 433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
19d3ff1a 437 infodir=$ac_optarg ;;
a3641d1f 438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
19d3ff1a 442 libdir=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 449 libexecdir=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 458 localstatedir=$ac_optarg ;;
a3641d1f 459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
19d3ff1a 463 mandir=$ac_optarg ;;
a3641d1f 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 \
19d3ff1a 470 | --no-cr | --no-c | -n)
a3641d1f 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=*)
19d3ff1a 484 oldincludedir=$ac_optarg ;;
a3641d1f 485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19d3ff1a 489 prefix=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 496 program_prefix=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 503 program_suffix=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 520 program_transform_name=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 530 sbindir=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 541 sharedstatedir=$ac_optarg ;;
a3641d1f 542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
19d3ff1a 546 site=$ac_optarg ;;
a3641d1f 547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19d3ff1a 551 srcdir=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 558 sysconfdir=$ac_optarg ;;
a3641d1f 559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
19d3ff1a 561 ac_prev=target_alias ;;
a3641d1f 562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
19d3ff1a 563 target_alias=$ac_optarg ;;
a3641d1f 564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
19d3ff1a 568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
a3641d1f 570
571 -with-* | --with-*)
19d3ff1a 572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a3641d1f 573 # Reject names that are not valid shell variable names.
19d3ff1a 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; }; }
a3641d1f 577 ac_package=`echo $ac_package| sed 's/-/_/g'`
19d3ff1a 578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a3641d1f 580 *) ac_optarg=yes ;;
581 esac
19d3ff1a 582 eval "with_$ac_package='$ac_optarg'" ;;
a3641d1f 583
584 -without-* | --without-*)
19d3ff1a 585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a3641d1f 586 # Reject names that are not valid shell variable names.
19d3ff1a 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" ;;
a3641d1f 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=*)
19d3ff1a 602 x_includes=$ac_optarg ;;
a3641d1f 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=*)
19d3ff1a 609 x_libraries=$ac_optarg ;;
a3641d1f 610
19d3ff1a 611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
a3641d1f 614 ;;
615
19d3ff1a 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
a3641d1f 626 *)
19d3ff1a 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}
a3641d1f 632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
19d3ff1a 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; }; }
a3641d1f 641fi
a3641d1f 642
19d3ff1a 643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
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
652done
a3641d1f 653
19d3ff1a 654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
a3641d1f 657do
19d3ff1a 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; }; };;
a3641d1f 663 esac
664done
665
19d3ff1a 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.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if 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
682fi
a3641d1f 683
19d3ff1a 684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
a3641d1f 688
a3641d1f 689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
19d3ff1a 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 ||
700echo 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'`
a3641d1f 706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
19d3ff1a 715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
a3641d1f 717 else
19d3ff1a 718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
a3641d1f 720 fi
721fi
19d3ff1a 722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if 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
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
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
786Installation 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
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine 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
19d3ff1a 815_ACEOF
816fi
817
818if test -n "$ac_init_help"; then
819
820 cat <<\_ACEOF
821
822Optional Features:
823 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
824 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ea0ac5f
BM
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
19d3ff1a 836
837Optional Packages:
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8ea0ac5f
BM
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
19d3ff1a 853
854Some 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
863Use these variables to override the choices made by `configure' or to help
864it to find libraries and programs with nonstandard names/locations.
865
866_ACEOF
867fi
868
869if 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
876if 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'`
880else
881 ac_dir_suffix= ac_top_builddir=
882fi
883
884case $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 ;;
898esac
899# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
900# absolute.
901ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
902ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
903ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
904ac_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
923fi
924
925test -n "$ac_init_help" && exit 0
926if $ac_init_version; then
927 cat <<\_ACEOF
928
929Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
930Free Software Foundation, Inc.
931This configure script is free software; the Free Software Foundation
932gives unlimited permission to copy, distribute and modify it.
933_ACEOF
934 exit 0
935fi
936exec 5>config.log
937cat >&5 <<_ACEOF
938This file contains any messages produced by compilers while
939running configure, to aid debugging if configure makes a mistake.
940
941It was created by $as_me, which was
942generated by GNU Autoconf 2.53. Invocation command line was
943
944 $ $0 $@
945
946_ACEOF
947{
948cat <<_ASUNAME
949## --------- ##
950## Platform. ##
951## --------- ##
952
953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
954uname -m = `(uname -m) 2>/dev/null || echo unknown`
955uname -r = `(uname -r) 2>/dev/null || echo unknown`
956uname -s = `(uname -s) 2>/dev/null || echo unknown`
957uname -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`
965hostinfo = `(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
972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
973for as_dir in $PATH
974do
975 IFS=$as_save_IFS
976 test -z "$as_dir" && as_dir=.
977 echo "PATH: $as_dir"
978done
979
980} >&5
981
982cat >&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.
995ac_configure_args=
996ac_sep=
997for ac_arg
998do
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.
1014done
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.
1021trap '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
1065for ac_signal in 1 2 13 15; do
1066 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1067done
1068ac_signal=0
1069
1070# confdefs.h avoids OS command line length limits that DEFS can exceed.
1071rm -rf conftest* confdefs.h
1072# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1073echo >confdefs.h
1074
1075# Predefined preprocessor variables.
1076
1077cat >>confdefs.h <<_ACEOF
1078#define PACKAGE_NAME "$PACKAGE_NAME"
1079_ACEOF
1080
1081
1082cat >>confdefs.h <<_ACEOF
1083#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1084_ACEOF
1085
1086
1087cat >>confdefs.h <<_ACEOF
1088#define PACKAGE_VERSION "$PACKAGE_VERSION"
1089_ACEOF
1090
1091
1092cat >>confdefs.h <<_ACEOF
1093#define PACKAGE_STRING "$PACKAGE_STRING"
1094_ACEOF
1095
1096
1097cat >>confdefs.h <<_ACEOF
1098#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1099_ACEOF
a3641d1f 1100
19d3ff1a 1101
1102# Let the site file select an alternate cache file if it wants to.
a3641d1f 1103# Prefer explicitly selected file to automatically selected ones.
1104if 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
1110fi
1111for ac_site_file in $CONFIG_SITE; do
1112 if test -r "$ac_site_file"; then
19d3ff1a 1113 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1114echo "$as_me: loading site script $ac_site_file" >&6;}
1115 sed 's/^/| /' "$ac_site_file" >&5
a3641d1f 1116 . "$ac_site_file"
1117 fi
1118done
1119
1120if test -r "$cache_file"; then
19d3ff1a 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
1125echo "$as_me: loading cache $cache_file" >&6;}
1126 case $cache_file in
1127 [\\/]* | ?:[\\/]* ) . $cache_file;;
1128 *) . ./$cache_file;;
1129 esac
1130 fi
a3641d1f 1131else
19d3ff1a 1132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1133echo "$as_me: creating cache $cache_file" >&6;}
1134 >$cache_file
1135fi
1136
1137# Check that the precious variables saved in the cache have kept the same
1138# value.
1139ac_cache_corrupted=false
1140for 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
1149echo "$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
1153echo "$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
1159echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1160 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1161echo "$as_me: former value: $ac_old_val" >&2;}
1162 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1163echo "$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
1179done
1180if $ac_cache_corrupted; then
1181 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1182echo "$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
1184echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1185 { (exit 1); exit 1; }; }
a3641d1f 1186fi
1187
1188ac_ext=c
a3641d1f 1189ac_cpp='$CPP $CPPFLAGS'
19d3ff1a 1190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1192ac_compiler_gnu=$ac_cv_c_compiler_gnu
a3641d1f 1193
1194
1195
19d3ff1a 1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211if 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
1215fi
1216ac_config_headers="$ac_config_headers include/setup.h"
1217
1218ac_ext=c
1219ac_cpp='$CPP $CPPFLAGS'
1220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1222ac_compiler_gnu=$ac_cv_c_compiler_gnu
1223if 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.
1225set dummy ${ac_tool_prefix}gcc; ac_word=$2
1226echo "$as_me:$LINENO: checking for $ac_word" >&5
1227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1228if test "${ac_cv_prog_CC+set}" = set; then
1229 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 1230else
1231 if test -n "$CC"; then
1232 ac_cv_prog_CC="$CC" # Let the user override the test.
1233else
19d3ff1a 1234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235for as_dir in $PATH
1236do
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
1245done
1246done
1247
a3641d1f 1248fi
1249fi
19d3ff1a 1250CC=$ac_cv_prog_CC
a3641d1f 1251if test -n "$CC"; then
19d3ff1a 1252 echo "$as_me:$LINENO: result: $CC" >&5
1253echo "${ECHO_T}$CC" >&6
a3641d1f 1254else
19d3ff1a 1255 echo "$as_me:$LINENO: result: no" >&5
1256echo "${ECHO_T}no" >&6
a3641d1f 1257fi
1258
19d3ff1a 1259fi
1260if 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.
1263set dummy gcc; ac_word=$2
1264echo "$as_me:$LINENO: checking for $ac_word" >&5
1265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 1268else
19d3ff1a 1269 if test -n "$ac_ct_CC"; then
1270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a3641d1f 1271else
19d3ff1a 1272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273for as_dir in $PATH
1274do
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
a3641d1f 1282 fi
19d3ff1a 1283done
1284done
1285
a3641d1f 1286fi
1287fi
19d3ff1a 1288ac_ct_CC=$ac_cv_prog_ac_ct_CC
1289if test -n "$ac_ct_CC"; then
1290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1291echo "${ECHO_T}$ac_ct_CC" >&6
1292else
1293 echo "$as_me:$LINENO: result: no" >&5
1294echo "${ECHO_T}no" >&6
a3641d1f 1295fi
19d3ff1a 1296
1297 CC=$ac_ct_CC
a3641d1f 1298else
19d3ff1a 1299 CC="$ac_cv_prog_CC"
a3641d1f 1300fi
1301
19d3ff1a 1302if 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.
1305set dummy ${ac_tool_prefix}cc; ac_word=$2
1306echo "$as_me:$LINENO: checking for $ac_word" >&5
1307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1308if test "${ac_cv_prog_CC+set}" = set; then
1309 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 1310else
1311 if test -n "$CC"; then
1312 ac_cv_prog_CC="$CC" # Let the user override the test.
1313else
19d3ff1a 1314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1315for as_dir in $PATH
1316do
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
1325done
1326done
1327
a3641d1f 1328fi
1329fi
19d3ff1a 1330CC=$ac_cv_prog_CC
a3641d1f 1331if test -n "$CC"; then
19d3ff1a 1332 echo "$as_me:$LINENO: result: $CC" >&5
1333echo "${ECHO_T}$CC" >&6
a3641d1f 1334else
19d3ff1a 1335 echo "$as_me:$LINENO: result: no" >&5
1336echo "${ECHO_T}no" >&6
a3641d1f 1337fi
19d3ff1a 1338
a3641d1f 1339fi
19d3ff1a 1340if 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.
1343set dummy cc; ac_word=$2
1344echo "$as_me:$LINENO: checking for $ac_word" >&5
1345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1346if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348else
1349 if test -n "$ac_ct_CC"; then
1350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1351else
1352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1353for as_dir in $PATH
1354do
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
1363done
1364done
a3641d1f 1365
19d3ff1a 1366fi
1367fi
1368ac_ct_CC=$ac_cv_prog_ac_ct_CC
1369if test -n "$ac_ct_CC"; then
1370 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1371echo "${ECHO_T}$ac_ct_CC" >&6
1372else
1373 echo "$as_me:$LINENO: result: no" >&5
1374echo "${ECHO_T}no" >&6
1375fi
a3641d1f 1376
19d3ff1a 1377 CC=$ac_ct_CC
1378else
1379 CC="$ac_cv_prog_CC"
1380fi
a3641d1f 1381
19d3ff1a 1382fi
1383if test -z "$CC"; then
1384 # Extract the first word of "cc", so it can be a program name with args.
1385set dummy cc; ac_word=$2
1386echo "$as_me:$LINENO: checking for $ac_word" >&5
1387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388if test "${ac_cv_prog_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391 if test -n "$CC"; then
1392 ac_cv_prog_CC="$CC" # Let the user override the test.
1393else
1394 ac_prog_rejected=no
1395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1396for as_dir in $PATH
1397do
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
1410done
1411done
a3641d1f 1412
19d3ff1a 1413if 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
1426fi
1427fi
1428fi
1429CC=$ac_cv_prog_CC
1430if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432echo "${ECHO_T}$CC" >&6
1433else
1434 echo "$as_me:$LINENO: result: no" >&5
1435echo "${ECHO_T}no" >&6
1436fi
a3641d1f 1437
19d3ff1a 1438fi
1439if 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.
1444set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1445echo "$as_me:$LINENO: checking for $ac_word" >&5
1446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447if test "${ac_cv_prog_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449else
1450 if test -n "$CC"; then
1451 ac_cv_prog_CC="$CC" # Let the user override the test.
1452else
1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454for as_dir in $PATH
1455do
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
a3641d1f 1463 fi
19d3ff1a 1464done
1465done
1466
1467fi
1468fi
1469CC=$ac_cv_prog_CC
1470if test -n "$CC"; then
1471 echo "$as_me:$LINENO: result: $CC" >&5
1472echo "${ECHO_T}$CC" >&6
a3641d1f 1473else
19d3ff1a 1474 echo "$as_me:$LINENO: result: no" >&5
1475echo "${ECHO_T}no" >&6
a3641d1f 1476fi
a3641d1f 1477
19d3ff1a 1478 test -n "$CC" && break
1479 done
a3641d1f 1480fi
19d3ff1a 1481if test -z "$CC"; then
1482 ac_ct_CC=$CC
1483 for ac_prog in cl
1484do
1485 # Extract the first word of "$ac_prog", so it can be a program name with args.
1486set dummy $ac_prog; ac_word=$2
1487echo "$as_me:$LINENO: checking for $ac_word" >&5
1488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491else
1492 if test -n "$ac_ct_CC"; then
1493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494else
1495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496for as_dir in $PATH
1497do
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
1506done
1507done
a3641d1f 1508
19d3ff1a 1509fi
1510fi
1511ac_ct_CC=$ac_cv_prog_ac_ct_CC
1512if test -n "$ac_ct_CC"; then
1513 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1514echo "${ECHO_T}$ac_ct_CC" >&6
a3641d1f 1515else
19d3ff1a 1516 echo "$as_me:$LINENO: result: no" >&5
1517echo "${ECHO_T}no" >&6
1518fi
1519
1520 test -n "$ac_ct_CC" && break
1521done
1522
1523 CC=$ac_ct_CC
1524fi
1525
1526fi
1527
1528
1529test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1530echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533# Provide some information about the compiler.
1534echo "$as_me:$LINENO:" \
1535 "checking for C compiler version" >&5
1536ac_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
1553cat >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; }
a3641d1f 1562#endif
19d3ff1a 1563int
1564main ()
1565{
1566
1567 ;
1568 return 0;
1569}
1570_ACEOF
1571ac_clean_files_save=$ac_clean_files
1572ac_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.
1576echo "$as_me:$LINENO: checking for C compiler default output" >&5
1577echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1578ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1579if { (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.
1590ac_cv_exeext=
1591for 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
1605done
a3641d1f 1606else
19d3ff1a 1607 echo "$as_me: failed program was:" >&5
1608cat conftest.$ac_ext >&5
1609{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1610echo "$as_me: error: C compiler cannot create executables" >&2;}
1611 { (exit 77); exit 77; }; }
1612fi
1613
1614ac_exeext=$ac_cv_exeext
1615echo "$as_me:$LINENO: result: $ac_file" >&5
1616echo "${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.
1620echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1621echo $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.
1624if 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.
1637If you meant to cross compile, use \`--host'." >&5
1638echo "$as_me: error: cannot run C compiled programs.
1639If you meant to cross compile, use \`--host'." >&2;}
1640 { (exit 1); exit 1; }; }
1641 fi
1642 fi
a3641d1f 1643fi
19d3ff1a 1644echo "$as_me:$LINENO: result: yes" >&5
1645echo "${ECHO_T}yes" >&6
1646
1647rm -f a.out a.exe conftest$ac_cv_exeext
1648ac_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.
1651echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1652echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1653echo "$as_me:$LINENO: result: $cross_compiling" >&5
1654echo "${ECHO_T}$cross_compiling" >&6
1655
1656echo "$as_me:$LINENO: checking for suffix of executables" >&5
1657echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1658if { (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'.
1667for 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
1675done
1676else
1677 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1678echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1679 { (exit 1); exit 1; }; }
a3641d1f 1680fi
1681
19d3ff1a 1682rm -f conftest$ac_cv_exeext
1683echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1684echo "${ECHO_T}$ac_cv_exeext" >&6
1685
1686rm -f conftest.$ac_ext
1687EXEEXT=$ac_cv_exeext
1688ac_exeext=$EXEEXT
1689echo "$as_me:$LINENO: checking for suffix of object files" >&5
1690echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1691if test "${ac_cv_objext+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
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
1704int
1705main ()
1706{
a3641d1f 1707
19d3ff1a 1708 ;
1709 return 0;
1710}
1711_ACEOF
1712rm -f conftest.o conftest.obj
1713if { (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
1724done
a3641d1f 1725else
19d3ff1a 1726 echo "$as_me: failed program was:" >&5
1727cat conftest.$ac_ext >&5
1728{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1729echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1730 { (exit 1); exit 1; }; }
a3641d1f 1731fi
1732
19d3ff1a 1733rm -f conftest.$ac_cv_objext conftest.$ac_ext
1734fi
1735echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1736echo "${ECHO_T}$ac_cv_objext" >&6
1737OBJEXT=$ac_cv_objext
1738ac_objext=$OBJEXT
1739echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1740echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1741if test "${ac_cv_c_compiler_gnu+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 1743else
19d3ff1a 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
1754int
1755main ()
1756{
1757#ifndef __GNUC__
1758 choke me
1759#endif
1760
1761 ;
1762 return 0;
1763}
1764_ACEOF
1765rm -f conftest.$ac_objext
1766if { (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
1778else
1779 echo "$as_me: failed program was:" >&5
1780cat conftest.$ac_ext >&5
1781ac_compiler_gnu=no
1782fi
1783rm -f conftest.$ac_objext conftest.$ac_ext
1784ac_cv_c_compiler_gnu=$ac_compiler_gnu
1785
1786fi
1787echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1788echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1789GCC=`test $ac_compiler_gnu = yes && echo yes`
1790ac_test_CFLAGS=${CFLAGS+set}
1791ac_save_CFLAGS=$CFLAGS
1792CFLAGS="-g"
1793echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1794echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1795if test "${ac_cv_prog_cc_g+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
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
1808int
1809main ()
1810{
1811
1812 ;
1813 return 0;
1814}
1815_ACEOF
1816rm -f conftest.$ac_objext
1817if { (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
a3641d1f 1828 ac_cv_prog_cc_g=yes
1829else
19d3ff1a 1830 echo "$as_me: failed program was:" >&5
1831cat conftest.$ac_ext >&5
1832ac_cv_prog_cc_g=no
a3641d1f 1833fi
19d3ff1a 1834rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 1835fi
19d3ff1a 1836echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1837echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
a3641d1f 1838if test "$ac_test_CFLAGS" = set; then
19d3ff1a 1839 CFLAGS=$ac_save_CFLAGS
a3641d1f 1840elif 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
1846else
1847 if test "$GCC" = yes; then
1848 CFLAGS="-O2"
1849 else
1850 CFLAGS=
1851 fi
1852fi
19d3ff1a 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.
1857cat >conftest.$ac_ext <<_ACEOF
1858#ifndef __cplusplus
1859 choke me
1860#endif
1861_ACEOF
1862rm -f conftest.$ac_objext
1863if { (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);'
1882do
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
1894int
1895main ()
1896{
1897exit (42);
1898 ;
1899 return 0;
1900}
1901_ACEOF
1902rm -f conftest.$ac_objext
1903if { (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 :
1915else
1916 echo "$as_me: failed program was:" >&5
1917cat conftest.$ac_ext >&5
1918continue
1919fi
1920rm -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
1931int
1932main ()
1933{
1934exit (42);
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939rm -f conftest.$ac_objext
1940if { (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
1952else
1953 echo "$as_me: failed program was:" >&5
1954cat conftest.$ac_ext >&5
1955fi
1956rm -f conftest.$ac_objext conftest.$ac_ext
1957done
1958rm -f conftest*
1959if test -n "$ac_declaration"; then
1960 echo '#ifdef __cplusplus' >>confdefs.h
1961 echo $ac_declaration >>confdefs.h
1962 echo '#endif' >>confdefs.h
1963fi
1964
1965else
1966 echo "$as_me: failed program was:" >&5
1967cat conftest.$ac_ext >&5
1968fi
1969rm -f conftest.$ac_objext conftest.$ac_ext
1970ac_ext=c
1971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
a3641d1f 1975
19d3ff1a 1976if test "$ac_cv_c_compiler_gnu" = "yes"; then
b6cef352 1977CFLAGS="$CFLAGS -funsigned-char"
19d3ff1a 1978echo "$as_me:$LINENO: checking if gcc has a working -pipe" >&5
1979echo $ECHO_N "checking if gcc has a working -pipe... $ECHO_C" >&6
1980if test "${ac_cv_pipe+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
c39013f1 1982else
19d3ff1a 1983
c39013f1 1984 save_cflags="$CFLAGS"
1985 CFLAGS="$CFLAGS -pipe"
19d3ff1a 1986
1987cat >conftest.$ac_ext <<_ACEOF
1988#line $LINENO "configure"
c39013f1 1989#include "confdefs.h"
1990
19d3ff1a 1991#ifdef F77_DUMMY_MAIN
1992# ifdef __cplusplus
1993 extern "C"
1994# endif
1995 int F77_DUMMY_MAIN() { return 1; }
1996#endif
1997int
1998main ()
1999{
c39013f1 2000
19d3ff1a 2001 ;
2002 return 0;
2003}
2004_ACEOF
2005rm -f conftest.$ac_objext
2006if { (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
c39013f1 2017 ac_cv_pipe="yes"
2018else
19d3ff1a 2019 echo "$as_me: failed program was:" >&5
2020cat conftest.$ac_ext >&5
2021ac_cv_pipe="no"
c39013f1 2022fi
19d3ff1a 2023rm -f conftest.$ac_objext conftest.$ac_ext
c39013f1 2024 CFLAGS="$save_cflags"
2025
2026fi
19d3ff1a 2027echo "$as_me:$LINENO: result: $ac_cv_pipe" >&5
2028echo "${ECHO_T}$ac_cv_pipe" >&6
c39013f1 2029if test "$ac_cv_pipe" = "yes"; then
2030CFLAGS="-pipe $CFLAGS"
2031fi
c2946892 2032fi
2033
a3641d1f 2034# Extract the first word of "rm", so it can be a program name with args.
2035set dummy rm; ac_word=$2
19d3ff1a 2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038if test "${ac_cv_path_RM+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 2040else
19d3ff1a 2041 case $RM in
2042 [\\/]* | ?:[\\/]*)
a3641d1f 2043 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2044 ;;
a3641d1f 2045 *)
19d3ff1a 2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
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
2057done
2058done
2059
a3641d1f 2060 ;;
2061esac
2062fi
19d3ff1a 2063RM=$ac_cv_path_RM
2064
a3641d1f 2065if test -n "$RM"; then
19d3ff1a 2066 echo "$as_me:$LINENO: result: $RM" >&5
2067echo "${ECHO_T}$RM" >&6
a3641d1f 2068else
19d3ff1a 2069 echo "$as_me:$LINENO: result: no" >&5
2070echo "${ECHO_T}no" >&6
a3641d1f 2071fi
2072
2073# Extract the first word of "cp", so it can be a program name with args.
2074set dummy cp; ac_word=$2
19d3ff1a 2075echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077if test "${ac_cv_path_CP+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 2079else
19d3ff1a 2080 case $CP in
2081 [\\/]* | ?:[\\/]*)
a3641d1f 2082 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2083 ;;
a3641d1f 2084 *)
19d3ff1a 2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
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
2096done
2097done
2098
a3641d1f 2099 ;;
2100esac
2101fi
19d3ff1a 2102CP=$ac_cv_path_CP
2103
a3641d1f 2104if test -n "$CP"; then
19d3ff1a 2105 echo "$as_me:$LINENO: result: $CP" >&5
2106echo "${ECHO_T}$CP" >&6
a3641d1f 2107else
19d3ff1a 2108 echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6
a3641d1f 2110fi
2111
2112# Extract the first word of "touch", so it can be a program name with args.
2113set dummy touch; ac_word=$2
19d3ff1a 2114echo "$as_me:$LINENO: checking for $ac_word" >&5
2115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116if test "${ac_cv_path_TOUCH+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 2118else
19d3ff1a 2119 case $TOUCH in
2120 [\\/]* | ?:[\\/]*)
a3641d1f 2121 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
2122 ;;
a3641d1f 2123 *)
19d3ff1a 2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
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
2135done
2136done
2137
a3641d1f 2138 ;;
2139esac
2140fi
19d3ff1a 2141TOUCH=$ac_cv_path_TOUCH
2142
a3641d1f 2143if test -n "$TOUCH"; then
19d3ff1a 2144 echo "$as_me:$LINENO: result: $TOUCH" >&5
2145echo "${ECHO_T}$TOUCH" >&6
a3641d1f 2146else
19d3ff1a 2147 echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
a3641d1f 2149fi
2150
2151# Extract the first word of "openssl", so it can be a program name with args.
2152set dummy openssl; ac_word=$2
19d3ff1a 2153echo "$as_me:$LINENO: checking for $ac_word" >&5
2154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155if test "${ac_cv_path_OPENSSLPATH+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 2157else
19d3ff1a 2158 case $OPENSSLPATH in
2159 [\\/]* | ?:[\\/]*)
a3641d1f 2160 ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path.
2161 ;;
a3641d1f 2162 *)
19d3ff1a 2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
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
2174done
2175done
2176
a3641d1f 2177 ;;
2178esac
2179fi
19d3ff1a 2180OPENSSLPATH=$ac_cv_path_OPENSSLPATH
2181
a3641d1f 2182if test -n "$OPENSSLPATH"; then
19d3ff1a 2183 echo "$as_me:$LINENO: result: $OPENSSLPATH" >&5
2184echo "${ECHO_T}$OPENSSLPATH" >&6
a3641d1f 2185else
19d3ff1a 2186 echo "$as_me:$LINENO: result: no" >&5
2187echo "${ECHO_T}no" >&6
a3641d1f 2188fi
2189
769b98a8 2190# Extract the first word of "install", so it can be a program name with args.
2191set dummy install; ac_word=$2
19d3ff1a 2192echo "$as_me:$LINENO: checking for $ac_word" >&5
2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194if test "${ac_cv_path_INSTALL+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
769b98a8 2196else
19d3ff1a 2197 case $INSTALL in
2198 [\\/]* | ?:[\\/]*)
769b98a8 2199 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
2200 ;;
769b98a8 2201 *)
19d3ff1a 2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203for as_dir in $PATH
2204do
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
2213done
2214done
2215
769b98a8 2216 ;;
2217esac
2218fi
19d3ff1a 2219INSTALL=$ac_cv_path_INSTALL
2220
769b98a8 2221if test -n "$INSTALL"; then
19d3ff1a 2222 echo "$as_me:$LINENO: result: $INSTALL" >&5
2223echo "${ECHO_T}$INSTALL" >&6
769b98a8 2224else
19d3ff1a 2225 echo "$as_me:$LINENO: result: no" >&5
2226echo "${ECHO_T}no" >&6
769b98a8 2227fi
2228
8ea0ac5f
BM
2229# Extract the first word of "gmake", so it can be a program name with args.
2230set dummy gmake; ac_word=$2
2231echo "$as_me:$LINENO: checking for $ac_word" >&5
2232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233if test "${ac_cv_prog_MAKER+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
2236 if test -n "$MAKER"; then
2237 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
2238else
2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
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
2250done
2251done
2252
2253 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
2254fi
2255fi
2256MAKER=$ac_cv_prog_MAKER
2257if test -n "$MAKER"; then
2258 echo "$as_me:$LINENO: result: $MAKER" >&5
2259echo "${ECHO_T}$MAKER" >&6
2260else
2261 echo "$as_me:$LINENO: result: no" >&5
2262echo "${ECHO_T}no" >&6
2263fi
2264
2265# Extract the first word of "gmake", so it can be a program name with args.
2266set dummy gmake; ac_word=$2
2267echo "$as_me:$LINENO: checking for $ac_word" >&5
2268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269if test "${ac_cv_path_GMAKE+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271else
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
2278for as_dir in $PATH
2279do
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
2288done
2289done
2290
2291 ;;
2292esac
2293fi
2294GMAKE=$ac_cv_path_GMAKE
2295
2296if test -n "$GMAKE"; then
2297 echo "$as_me:$LINENO: result: $GMAKE" >&5
2298echo "${ECHO_T}$GMAKE" >&6
2299else
2300 echo "$as_me:$LINENO: result: no" >&5
2301echo "${ECHO_T}no" >&6
2302fi
2303
c7dcad79
BM
2304# Extract the first word of "gunzip", so it can be a program name with args.
2305set dummy gunzip; ac_word=$2
2306echo "$as_me:$LINENO: checking for $ac_word" >&5
2307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308if test "${ac_cv_path_GUNZIP+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
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
2317for as_dir in $PATH
2318do
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
2327done
2328done
2329
2330 ;;
2331esac
2332fi
2333GUNZIP=$ac_cv_path_GUNZIP
2334
2335if test -n "$GUNZIP"; then
2336 echo "$as_me:$LINENO: result: $GUNZIP" >&5
2337echo "${ECHO_T}$GUNZIP" >&6
2338else
2339 echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6
2341fi
2342
00bd34ad
BM
2343# Extract the first word of "pkg-config", so it can be a program name with args.
2344set dummy pkg-config; ac_word=$2
2345echo "$as_me:$LINENO: checking for $ac_word" >&5
2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347if test "${ac_cv_path_PKGCONFIG+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
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
2356for as_dir in $PATH
2357do
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
2366done
2367done
2368
2369 ;;
2370esac
2371fi
2372PKGCONFIG=$ac_cv_path_PKGCONFIG
2373
2374if test -n "$PKGCONFIG"; then
2375 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
2376echo "${ECHO_T}$PKGCONFIG" >&6
2377else
2378 echo "$as_me:$LINENO: result: no" >&5
2379echo "${ECHO_T}no" >&6
2380fi
2381
2382
19d3ff1a 2383echo "$as_me:$LINENO: checking for crypt in -ldescrypt" >&5
2384echo $ECHO_N "checking for crypt in -ldescrypt... $ECHO_C" >&6
2385if test "${ac_cv_lib_descrypt_crypt+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 2387else
19d3ff1a 2388 ac_check_lib_save_LIBS=$LIBS
a3641d1f 2389LIBS="-ldescrypt $LIBS"
19d3ff1a 2390cat >conftest.$ac_ext <<_ACEOF
2391#line $LINENO "configure"
a3641d1f 2392#include "confdefs.h"
19d3ff1a 2393
a3641d1f 2394/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 2395#ifdef __cplusplus
2396extern "C"
2397#endif
a3641d1f 2398/* We use char because int might match the return type of a gcc2
19d3ff1a 2399 builtin and then its argument prototype would still apply. */
2400char crypt ();
2401#ifdef F77_DUMMY_MAIN
2402# ifdef __cplusplus
2403 extern "C"
2404# endif
2405 int F77_DUMMY_MAIN() { return 1; }
2406#endif
2407int
2408main ()
2409{
2410crypt ();
2411 ;
2412 return 0;
2413}
2414_ACEOF
2415rm -f conftest.$ac_objext conftest$ac_exeext
2416if { (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
2428else
2429 echo "$as_me: failed program was:" >&5
2430cat conftest.$ac_ext >&5
2431ac_cv_lib_descrypt_crypt=no
2432fi
2433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2434LIBS=$ac_check_lib_save_LIBS
2435fi
2436echo "$as_me:$LINENO: result: $ac_cv_lib_descrypt_crypt" >&5
2437echo "${ECHO_T}$ac_cv_lib_descrypt_crypt" >&6
2438if test $ac_cv_lib_descrypt_crypt = yes; then
2439 cat >>confdefs.h <<\_ACEOF
769b98a8 2440#define HAVE_CRYPT 1
19d3ff1a 2441_ACEOF
769b98a8 2442 IRCDLIBS="$IRCDLIBS-ldescrypt " MKPASSWDLIBS="-ldescrypt"
a3641d1f 2443else
19d3ff1a 2444 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
2445echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
2446if test "${ac_cv_lib_crypt_crypt+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 2448else
19d3ff1a 2449 ac_check_lib_save_LIBS=$LIBS
a3641d1f 2450LIBS="-lcrypt $LIBS"
19d3ff1a 2451cat >conftest.$ac_ext <<_ACEOF
2452#line $LINENO "configure"
a3641d1f 2453#include "confdefs.h"
19d3ff1a 2454
a3641d1f 2455/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 2456#ifdef __cplusplus
2457extern "C"
2458#endif
a3641d1f 2459/* We use char because int might match the return type of a gcc2
19d3ff1a 2460 builtin and then its argument prototype would still apply. */
2461char crypt ();
2462#ifdef F77_DUMMY_MAIN
2463# ifdef __cplusplus
2464 extern "C"
2465# endif
2466 int F77_DUMMY_MAIN() { return 1; }
2467#endif
2468int
2469main ()
2470{
2471crypt ();
2472 ;
2473 return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext conftest$ac_exeext
2477if { (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
2489else
2490 echo "$as_me: failed program was:" >&5
2491cat conftest.$ac_ext >&5
2492ac_cv_lib_crypt_crypt=no
2493fi
2494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2495LIBS=$ac_check_lib_save_LIBS
2496fi
2497echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
2498echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
2499if test $ac_cv_lib_crypt_crypt = yes; then
2500 cat >>confdefs.h <<\_ACEOF
769b98a8 2501#define HAVE_CRYPT 1
19d3ff1a 2502_ACEOF
769b98a8 2503 IRCDLIBS="$IRCDLIBS-lcrypt " MKPASSWDLIBS="-lcrypt"
a3641d1f 2504fi
2505
2506fi
2507
19d3ff1a 2508echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2509echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2510if test "${ac_cv_lib_socket_socket+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 2512else
19d3ff1a 2513 ac_check_lib_save_LIBS=$LIBS
a3641d1f 2514LIBS="-lsocket $LIBS"
19d3ff1a 2515cat >conftest.$ac_ext <<_ACEOF
2516#line $LINENO "configure"
a3641d1f 2517#include "confdefs.h"
19d3ff1a 2518
a3641d1f 2519/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 2520#ifdef __cplusplus
2521extern "C"
2522#endif
a3641d1f 2523/* We use char because int might match the return type of a gcc2
19d3ff1a 2524 builtin and then its argument prototype would still apply. */
2525char socket ();
2526#ifdef F77_DUMMY_MAIN
2527# ifdef __cplusplus
2528 extern "C"
2529# endif
2530 int F77_DUMMY_MAIN() { return 1; }
2531#endif
2532int
2533main ()
2534{
2535socket ();
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540rm -f conftest.$ac_objext conftest$ac_exeext
2541if { (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
2553else
2554 echo "$as_me: failed program was:" >&5
2555cat conftest.$ac_ext >&5
2556ac_cv_lib_socket_socket=no
2557fi
2558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2559LIBS=$ac_check_lib_save_LIBS
2560fi
2561echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2562echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2563if test $ac_cv_lib_socket_socket = yes; then
33f23cef 2564 IRCDLIBS="$IRCDLIBS-lsocket " SOCKLIB="-lsocket"
a3641d1f 2565fi
2566
19d3ff1a 2567echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
2568echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
2569if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 2571else
19d3ff1a 2572 ac_check_lib_save_LIBS=$LIBS
a3641d1f 2573LIBS="-lnsl $LIBS"
19d3ff1a 2574cat >conftest.$ac_ext <<_ACEOF
2575#line $LINENO "configure"
a3641d1f 2576#include "confdefs.h"
19d3ff1a 2577
a3641d1f 2578/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 2579#ifdef __cplusplus
2580extern "C"
2581#endif
a3641d1f 2582/* We use char because int might match the return type of a gcc2
19d3ff1a 2583 builtin and then its argument prototype would still apply. */
2584char inet_ntoa ();
2585#ifdef F77_DUMMY_MAIN
2586# ifdef __cplusplus
2587 extern "C"
2588# endif
2589 int F77_DUMMY_MAIN() { return 1; }
2590#endif
2591int
2592main ()
2593{
2594inet_ntoa ();
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext conftest$ac_exeext
2600if { (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
2612else
2613 echo "$as_me: failed program was:" >&5
2614cat conftest.$ac_ext >&5
2615ac_cv_lib_nsl_inet_ntoa=no
2616fi
2617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2618LIBS=$ac_check_lib_save_LIBS
2619fi
2620echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
2621echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
2622if test $ac_cv_lib_nsl_inet_ntoa = yes; then
33f23cef 2623 IRCDLIBS="$IRCDLIBS-lnsl " INETLIB="-lnsl"
a3641d1f 2624fi
2625
2626
2627
2628
2629
2630
a3641d1f 2631
19d3ff1a 2632ac_ext=c
2633ac_cpp='$CPP $CPPFLAGS'
2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2638echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
a3641d1f 2639# On Suns, sometimes $CPP names a directory.
2640if test -n "$CPP" && test -d "$CPP"; then
2641 CPP=
2642fi
2643if test -z "$CPP"; then
19d3ff1a 2644 if test "${ac_cv_prog_CPP+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
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
2651for ac_c_preproc_warn_flag in '' yes
2652do
2653 # Use a header file that comes with gcc, so configuring glibc
2654 # with a fresh cross-compiler works.
a3641d1f 2655 # On the NeXT, cc -E runs the code through the compiler's parser,
19d3ff1a 2656 # not just through cpp. "Syntax error" is here to catch this case.
2657 cat >conftest.$ac_ext <<_ACEOF
2658#line $LINENO "configure"
a3641d1f 2659#include "confdefs.h"
2660#include <assert.h>
19d3ff1a 2661 Syntax error
2662_ACEOF
2663if { (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
2676else
2677 ac_cpp_err=yes
2678fi
2679if test -z "$ac_cpp_err"; then
a3641d1f 2680 :
2681else
19d3ff1a 2682 echo "$as_me: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 # Broken: fails on valid input.
2685continue
2686fi
2687rm -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
2696if { (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
2709else
2710 ac_cpp_err=yes
2711fi
2712if test -z "$ac_cpp_err"; then
2713 # Broken: success on invalid input.
2714continue
2715else
2716 echo "$as_me: failed program was:" >&5
a3641d1f 2717 cat conftest.$ac_ext >&5
19d3ff1a 2718 # Passes both tests.
2719ac_preproc_ok=:
2720break
2721fi
2722rm -f conftest.err conftest.$ac_ext
2723
2724done
2725# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2726rm -f conftest.err conftest.$ac_ext
2727if $ac_preproc_ok; then
2728 break
2729fi
2730
2731 done
2732 ac_cv_prog_CPP=$CPP
2733
2734fi
2735 CPP=$ac_cv_prog_CPP
2736else
2737 ac_cv_prog_CPP=$CPP
2738fi
2739echo "$as_me:$LINENO: result: $CPP" >&5
2740echo "${ECHO_T}$CPP" >&6
2741ac_preproc_ok=false
2742for ac_c_preproc_warn_flag in '' yes
2743do
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"
a3641d1f 2750#include "confdefs.h"
2751#include <assert.h>
19d3ff1a 2752 Syntax error
2753_ACEOF
2754if { (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
2767else
2768 ac_cpp_err=yes
2769fi
2770if test -z "$ac_cpp_err"; then
a3641d1f 2771 :
2772else
19d3ff1a 2773 echo "$as_me: failed program was:" >&5
a3641d1f 2774 cat conftest.$ac_ext >&5
19d3ff1a 2775 # Broken: fails on valid input.
2776continue
2777fi
2778rm -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"
a3641d1f 2784#include "confdefs.h"
19d3ff1a 2785#include <ac_nonexistent.h>
2786_ACEOF
2787if { (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
2800else
2801 ac_cpp_err=yes
2802fi
2803if test -z "$ac_cpp_err"; then
2804 # Broken: success on invalid input.
2805continue
2806else
2807 echo "$as_me: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 # Passes both tests.
2810ac_preproc_ok=:
2811break
2812fi
2813rm -f conftest.err conftest.$ac_ext
2814
2815done
2816# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2817rm -f conftest.err conftest.$ac_ext
2818if $ac_preproc_ok; then
a3641d1f 2819 :
2820else
19d3ff1a 2821 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2822echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2823 { (exit 1); exit 1; }; }
2824fi
2825
2826ac_ext=c
2827ac_cpp='$CPP $CPPFLAGS'
2828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
2832
2833echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2834echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2835if test "${ac_cv_header_stdc+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
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
2847if { (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
2860else
2861 ac_cpp_err=yes
2862fi
2863if test -z "$ac_cpp_err"; then
2864 ac_cv_header_stdc=yes
2865else
2866 echo "$as_me: failed program was:" >&5
a3641d1f 2867 cat conftest.$ac_ext >&5
19d3ff1a 2868 ac_cv_header_stdc=no
a3641d1f 2869fi
19d3ff1a 2870rm -f conftest.err conftest.$ac_ext
2871
2872if 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
2880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881 egrep "memchr" >/dev/null 2>&1; then
2882 :
2883else
2884 ac_cv_header_stdc=no
a3641d1f 2885fi
2886rm -f conftest*
19d3ff1a 2887
2888fi
2889
2890if 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
2898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2899 egrep "free" >/dev/null 2>&1; then
2900 :
2901else
2902 ac_cv_header_stdc=no
a3641d1f 2903fi
2904rm -f conftest*
19d3ff1a 2905
a3641d1f 2906fi
19d3ff1a 2907
2908if 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 :
2912else
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)))
2928int
2929main ()
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
2939rm -f conftest$ac_exeext
2940if { (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 :
a3641d1f 2951else
19d3ff1a 2952 echo "$as_me: program exited with status $ac_status" >&5
2953echo "$as_me: failed program was:" >&5
2954cat conftest.$ac_ext >&5
2955( exit $ac_status )
2956ac_cv_header_stdc=no
2957fi
2958rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2959fi
2960fi
2961fi
2962echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2963echo "${ECHO_T}$ac_cv_header_stdc" >&6
2964if test $ac_cv_header_stdc = yes; then
2965
2966cat >>confdefs.h <<\_ACEOF
2967#define STDC_HEADERS 1
2968_ACEOF
2969
2970fi
2971
2972# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2983 inttypes.h stdint.h unistd.h
2984do
2985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2986echo "$as_me:$LINENO: checking for $ac_header" >&5
2987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2988if eval "test \"\${$as_ac_Header+set}\" = set"; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
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
2998rm -f conftest.$ac_objext
2999if { (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"
3011else
3012 echo "$as_me: failed program was:" >&5
3013cat conftest.$ac_ext >&5
3014eval "$as_ac_Header=no"
3015fi
3016rm -f conftest.$ac_objext conftest.$ac_ext
3017fi
3018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3020if 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
a3641d1f 3025fi
a3641d1f 3026
19d3ff1a 3027done
3028
3029
3030if test "${ac_cv_header_sys_param_h+set}" = set; then
3031 echo "$as_me:$LINENO: checking for sys/param.h" >&5
3032echo $ECHO_N "checking for sys/param.h... $ECHO_C" >&6
3033if test "${ac_cv_header_sys_param_h+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_header_sys_param_h" >&5
3037echo "${ECHO_T}$ac_cv_header_sys_param_h" >&6
a3641d1f 3038else
19d3ff1a 3039 # Is the header compilable?
3040echo "$as_me:$LINENO: checking sys/param.h usability" >&5
3041echo $ECHO_N "checking sys/param.h usability... $ECHO_C" >&6
3042cat >conftest.$ac_ext <<_ACEOF
3043#line $LINENO "configure"
3044#include "confdefs.h"
3045$ac_includes_default
3046#include <sys/param.h>
3047_ACEOF
3048rm -f conftest.$ac_objext
3049if { (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
3061else
3062 echo "$as_me: failed program was:" >&5
3063cat conftest.$ac_ext >&5
3064ac_header_compiler=no
3065fi
3066rm -f conftest.$ac_objext conftest.$ac_ext
3067echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3068echo "${ECHO_T}$ac_header_compiler" >&6
3069
3070# Is the header present?
3071echo "$as_me:$LINENO: checking sys/param.h presence" >&5
3072echo $ECHO_N "checking sys/param.h presence... $ECHO_C" >&6
3073cat >conftest.$ac_ext <<_ACEOF
3074#line $LINENO "configure"
a3641d1f 3075#include "confdefs.h"
3076#include <sys/param.h>
19d3ff1a 3077_ACEOF
3078if { (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
3091else
3092 ac_cpp_err=yes
3093fi
3094if test -z "$ac_cpp_err"; then
3095 ac_header_preproc=yes
3096else
3097 echo "$as_me: failed program was:" >&5
a3641d1f 3098 cat conftest.$ac_ext >&5
19d3ff1a 3099 ac_header_preproc=no
3100fi
3101rm -f conftest.err conftest.$ac_ext
3102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3103echo "${ECHO_T}$ac_header_preproc" >&6
3104
3105# So? What about this header?
3106case $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
3109echo "$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
3111echo "$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
3114echo "$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
3116echo "$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
3118echo "$as_me: WARNING: sys/param.h: proceeding with the preprocessor's result" >&2;};;
3119esac
3120echo "$as_me:$LINENO: checking for sys/param.h" >&5
3121echo $ECHO_N "checking for sys/param.h... $ECHO_C" >&6
3122if test "${ac_cv_header_sys_param_h+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 ac_cv_header_sys_param_h=$ac_header_preproc
a3641d1f 3126fi
19d3ff1a 3127echo "$as_me:$LINENO: result: $ac_cv_header_sys_param_h" >&5
3128echo "${ECHO_T}$ac_cv_header_sys_param_h" >&6
3129
a3641d1f 3130fi
19d3ff1a 3131if test $ac_cv_header_sys_param_h = yes; then
3132 cat >>confdefs.h <<\_ACEOF
a3641d1f 3133#define PARAMH 1
19d3ff1a 3134_ACEOF
a3641d1f 3135
a3641d1f 3136fi
3137
19d3ff1a 3138
3139if test "${ac_cv_header_stdlib_h+set}" = set; then
3140 echo "$as_me:$LINENO: checking for stdlib.h" >&5
3141echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3142if test "${ac_cv_header_stdlib_h+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144fi
3145echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3146echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
a3641d1f 3147else
19d3ff1a 3148 # Is the header compilable?
3149echo "$as_me:$LINENO: checking stdlib.h usability" >&5
3150echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
3151cat >conftest.$ac_ext <<_ACEOF
3152#line $LINENO "configure"
3153#include "confdefs.h"
3154$ac_includes_default
3155#include <stdlib.h>
3156_ACEOF
3157rm -f conftest.$ac_objext
3158if { (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
3170else
3171 echo "$as_me: failed program was:" >&5
3172cat conftest.$ac_ext >&5
3173ac_header_compiler=no
3174fi
3175rm -f conftest.$ac_objext conftest.$ac_ext
3176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3177echo "${ECHO_T}$ac_header_compiler" >&6
3178
3179# Is the header present?
3180echo "$as_me:$LINENO: checking stdlib.h presence" >&5
3181echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
3182cat >conftest.$ac_ext <<_ACEOF
3183#line $LINENO "configure"
a3641d1f 3184#include "confdefs.h"
3185#include <stdlib.h>
19d3ff1a 3186_ACEOF
3187if { (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
3200else
3201 ac_cpp_err=yes
3202fi
3203if test -z "$ac_cpp_err"; then
3204 ac_header_preproc=yes
3205else
3206 echo "$as_me: failed program was:" >&5
a3641d1f 3207 cat conftest.$ac_ext >&5
19d3ff1a 3208 ac_header_preproc=no
3209fi
3210rm -f conftest.err conftest.$ac_ext
3211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3212echo "${ECHO_T}$ac_header_preproc" >&6
3213
3214# So? What about this header?
3215case $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
3218echo "$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
3220echo "$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
3223echo "$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
3225echo "$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
3227echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;};;
3228esac
3229echo "$as_me:$LINENO: checking for stdlib.h" >&5
3230echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3231if test "${ac_cv_header_stdlib_h+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234 ac_cv_header_stdlib_h=$ac_header_preproc
a3641d1f 3235fi
19d3ff1a 3236echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3237echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
3238
a3641d1f 3239fi
19d3ff1a 3240if test $ac_cv_header_stdlib_h = yes; then
3241 cat >>confdefs.h <<\_ACEOF
a3641d1f 3242#define STDLIBH 1
19d3ff1a 3243_ACEOF
a3641d1f 3244
a3641d1f 3245fi
3246
19d3ff1a 3247
3248if test "${ac_cv_header_stddef_h+set}" = set; then
3249 echo "$as_me:$LINENO: checking for stddef.h" >&5
3250echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
3251if test "${ac_cv_header_stddef_h+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253fi
3254echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
3255echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
a3641d1f 3256else
19d3ff1a 3257 # Is the header compilable?
3258echo "$as_me:$LINENO: checking stddef.h usability" >&5
3259echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
3260cat >conftest.$ac_ext <<_ACEOF
3261#line $LINENO "configure"
3262#include "confdefs.h"
3263$ac_includes_default
3264#include <stddef.h>
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (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
3279else
3280 echo "$as_me: failed program was:" >&5
3281cat conftest.$ac_ext >&5
3282ac_header_compiler=no
3283fi
3284rm -f conftest.$ac_objext conftest.$ac_ext
3285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3286echo "${ECHO_T}$ac_header_compiler" >&6
3287
3288# Is the header present?
3289echo "$as_me:$LINENO: checking stddef.h presence" >&5
3290echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
3291cat >conftest.$ac_ext <<_ACEOF
3292#line $LINENO "configure"
a3641d1f 3293#include "confdefs.h"
3294#include <stddef.h>
19d3ff1a 3295_ACEOF
3296if { (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
3309else
3310 ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
3313 ac_header_preproc=yes
3314else
3315 echo "$as_me: failed program was:" >&5
a3641d1f 3316 cat conftest.$ac_ext >&5
19d3ff1a 3317 ac_header_preproc=no
3318fi
3319rm -f conftest.err conftest.$ac_ext
3320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3321echo "${ECHO_T}$ac_header_preproc" >&6
3322
3323# So? What about this header?
3324case $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
3327echo "$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
3329echo "$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
3332echo "$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
3334echo "$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
3336echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;};;
3337esac
3338echo "$as_me:$LINENO: checking for stddef.h" >&5
3339echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
3340if test "${ac_cv_header_stddef_h+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343 ac_cv_header_stddef_h=$ac_header_preproc
a3641d1f 3344fi
19d3ff1a 3345echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
3346echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
3347
a3641d1f 3348fi
19d3ff1a 3349if test $ac_cv_header_stddef_h = yes; then
3350 cat >>confdefs.h <<\_ACEOF
a3641d1f 3351#define STDDEFH 1
19d3ff1a 3352_ACEOF
a3641d1f 3353
a3641d1f 3354fi
3355
19d3ff1a 3356
3357if test "${ac_cv_header_sys_syslog_h+set}" = set; then
3358 echo "$as_me:$LINENO: checking for sys/syslog.h" >&5
3359echo $ECHO_N "checking for sys/syslog.h... $ECHO_C" >&6
3360if test "${ac_cv_header_sys_syslog_h+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362fi
3363echo "$as_me:$LINENO: result: $ac_cv_header_sys_syslog_h" >&5
3364echo "${ECHO_T}$ac_cv_header_sys_syslog_h" >&6
a3641d1f 3365else
19d3ff1a 3366 # Is the header compilable?
3367echo "$as_me:$LINENO: checking sys/syslog.h usability" >&5
3368echo $ECHO_N "checking sys/syslog.h usability... $ECHO_C" >&6
3369cat >conftest.$ac_ext <<_ACEOF
3370#line $LINENO "configure"
3371#include "confdefs.h"
3372$ac_includes_default
3373#include <sys/syslog.h>
3374_ACEOF
3375rm -f conftest.$ac_objext
3376if { (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
3388else
3389 echo "$as_me: failed program was:" >&5
3390cat conftest.$ac_ext >&5
3391ac_header_compiler=no
3392fi
3393rm -f conftest.$ac_objext conftest.$ac_ext
3394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3395echo "${ECHO_T}$ac_header_compiler" >&6
3396
3397# Is the header present?
3398echo "$as_me:$LINENO: checking sys/syslog.h presence" >&5
3399echo $ECHO_N "checking sys/syslog.h presence... $ECHO_C" >&6
3400cat >conftest.$ac_ext <<_ACEOF
3401#line $LINENO "configure"
a3641d1f 3402#include "confdefs.h"
3403#include <sys/syslog.h>
19d3ff1a 3404_ACEOF
3405if { (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
3418else
3419 ac_cpp_err=yes
3420fi
3421if test -z "$ac_cpp_err"; then
3422 ac_header_preproc=yes
3423else
3424 echo "$as_me: failed program was:" >&5
a3641d1f 3425 cat conftest.$ac_ext >&5
19d3ff1a 3426 ac_header_preproc=no
3427fi
3428rm -f conftest.err conftest.$ac_ext
3429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3430echo "${ECHO_T}$ac_header_preproc" >&6
3431
3432# So? What about this header?
3433case $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
3436echo "$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
3438echo "$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
3441echo "$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
3443echo "$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
3445echo "$as_me: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&2;};;
3446esac
3447echo "$as_me:$LINENO: checking for sys/syslog.h" >&5
3448echo $ECHO_N "checking for sys/syslog.h... $ECHO_C" >&6
3449if test "${ac_cv_header_sys_syslog_h+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 ac_cv_header_sys_syslog_h=$ac_header_preproc
a3641d1f 3453fi
19d3ff1a 3454echo "$as_me:$LINENO: result: $ac_cv_header_sys_syslog_h" >&5
3455echo "${ECHO_T}$ac_cv_header_sys_syslog_h" >&6
3456
a3641d1f 3457fi
19d3ff1a 3458if test $ac_cv_header_sys_syslog_h = yes; then
3459 cat >>confdefs.h <<\_ACEOF
a3641d1f 3460#define SYSSYSLOGH 1
19d3ff1a 3461_ACEOF
a3641d1f 3462
a3641d1f 3463fi
3464
19d3ff1a 3465
3466if test "${ac_cv_header_unistd_h+set}" = set; then
3467 echo "$as_me:$LINENO: checking for unistd.h" >&5
3468echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3469if test "${ac_cv_header_unistd_h+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471fi
3472echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3473echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
a3641d1f 3474else
19d3ff1a 3475 # Is the header compilable?
3476echo "$as_me:$LINENO: checking unistd.h usability" >&5
3477echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
3478cat >conftest.$ac_ext <<_ACEOF
3479#line $LINENO "configure"
3480#include "confdefs.h"
3481$ac_includes_default
3482#include <unistd.h>
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (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
3497else
3498 echo "$as_me: failed program was:" >&5
3499cat conftest.$ac_ext >&5
3500ac_header_compiler=no
3501fi
3502rm -f conftest.$ac_objext conftest.$ac_ext
3503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3504echo "${ECHO_T}$ac_header_compiler" >&6
3505
3506# Is the header present?
3507echo "$as_me:$LINENO: checking unistd.h presence" >&5
3508echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
3509cat >conftest.$ac_ext <<_ACEOF
3510#line $LINENO "configure"
a3641d1f 3511#include "confdefs.h"
3512#include <unistd.h>
19d3ff1a 3513_ACEOF
3514if { (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
3527else
3528 ac_cpp_err=yes
3529fi
3530if test -z "$ac_cpp_err"; then
3531 ac_header_preproc=yes
3532else
3533 echo "$as_me: failed program was:" >&5
a3641d1f 3534 cat conftest.$ac_ext >&5
19d3ff1a 3535 ac_header_preproc=no
3536fi
3537rm -f conftest.err conftest.$ac_ext
3538echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3539echo "${ECHO_T}$ac_header_preproc" >&6
3540
3541# So? What about this header?
3542case $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
3545echo "$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
3547echo "$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
3550echo "$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
3552echo "$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
3554echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;};;
3555esac
3556echo "$as_me:$LINENO: checking for unistd.h" >&5
3557echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3558if test "${ac_cv_header_unistd_h+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560else
3561 ac_cv_header_unistd_h=$ac_header_preproc
a3641d1f 3562fi
19d3ff1a 3563echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3564echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3565
a3641d1f 3566fi
19d3ff1a 3567if test $ac_cv_header_unistd_h = yes; then
3568 cat >>confdefs.h <<\_ACEOF
a3641d1f 3569#define UNISTDH 1
19d3ff1a 3570_ACEOF
a3641d1f 3571
a3641d1f 3572fi
3573
19d3ff1a 3574
3575if test "${ac_cv_header_string_h+set}" = set; then
3576 echo "$as_me:$LINENO: checking for string.h" >&5
3577echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3578if test "${ac_cv_header_string_h+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580fi
3581echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
3582echo "${ECHO_T}$ac_cv_header_string_h" >&6
a3641d1f 3583else
19d3ff1a 3584 # Is the header compilable?
3585echo "$as_me:$LINENO: checking string.h usability" >&5
3586echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
3587cat >conftest.$ac_ext <<_ACEOF
3588#line $LINENO "configure"
3589#include "confdefs.h"
3590$ac_includes_default
3591#include <string.h>
3592_ACEOF
3593rm -f conftest.$ac_objext
3594if { (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
3606else
3607 echo "$as_me: failed program was:" >&5
3608cat conftest.$ac_ext >&5
3609ac_header_compiler=no
3610fi
3611rm -f conftest.$ac_objext conftest.$ac_ext
3612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3613echo "${ECHO_T}$ac_header_compiler" >&6
3614
3615# Is the header present?
3616echo "$as_me:$LINENO: checking string.h presence" >&5
3617echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
3618cat >conftest.$ac_ext <<_ACEOF
3619#line $LINENO "configure"
a3641d1f 3620#include "confdefs.h"
3621#include <string.h>
19d3ff1a 3622_ACEOF
3623if { (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
3636else
3637 ac_cpp_err=yes
3638fi
3639if test -z "$ac_cpp_err"; then
3640 ac_header_preproc=yes
3641else
3642 echo "$as_me: failed program was:" >&5
a3641d1f 3643 cat conftest.$ac_ext >&5
19d3ff1a 3644 ac_header_preproc=no
3645fi
3646rm -f conftest.err conftest.$ac_ext
3647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3648echo "${ECHO_T}$ac_header_preproc" >&6
3649
3650# So? What about this header?
3651case $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
3654echo "$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
3656echo "$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
3659echo "$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
3661echo "$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
3663echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;};;
3664esac
3665echo "$as_me:$LINENO: checking for string.h" >&5
3666echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3667if test "${ac_cv_header_string_h+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 ac_cv_header_string_h=$ac_header_preproc
a3641d1f 3671fi
19d3ff1a 3672echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
3673echo "${ECHO_T}$ac_cv_header_string_h" >&6
3674
a3641d1f 3675fi
19d3ff1a 3676if test $ac_cv_header_string_h = yes; then
3677 cat >>confdefs.h <<\_ACEOF
a3641d1f 3678#define STRINGH 1
19d3ff1a 3679_ACEOF
a3641d1f 3680
a3641d1f 3681fi
3682
19d3ff1a 3683
3684if test "${ac_cv_header_strings_h+set}" = set; then
3685 echo "$as_me:$LINENO: checking for strings.h" >&5
3686echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
3687if test "${ac_cv_header_strings_h+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689fi
3690echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
3691echo "${ECHO_T}$ac_cv_header_strings_h" >&6
a3641d1f 3692else
19d3ff1a 3693 # Is the header compilable?
3694echo "$as_me:$LINENO: checking strings.h usability" >&5
3695echo $ECHO_N "checking strings.h usability... $ECHO_C" >&6
3696cat >conftest.$ac_ext <<_ACEOF
3697#line $LINENO "configure"
3698#include "confdefs.h"
3699$ac_includes_default
3700#include <strings.h>
3701_ACEOF
3702rm -f conftest.$ac_objext
3703if { (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
3715else
3716 echo "$as_me: failed program was:" >&5
3717cat conftest.$ac_ext >&5
3718ac_header_compiler=no
3719fi
3720rm -f conftest.$ac_objext conftest.$ac_ext
3721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3722echo "${ECHO_T}$ac_header_compiler" >&6
3723
3724# Is the header present?
3725echo "$as_me:$LINENO: checking strings.h presence" >&5
3726echo $ECHO_N "checking strings.h presence... $ECHO_C" >&6
3727cat >conftest.$ac_ext <<_ACEOF
3728#line $LINENO "configure"
a3641d1f 3729#include "confdefs.h"
3730#include <strings.h>
19d3ff1a 3731_ACEOF
3732if { (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
3745else
3746 ac_cpp_err=yes
3747fi
3748if test -z "$ac_cpp_err"; then
3749 ac_header_preproc=yes
3750else
3751 echo "$as_me: failed program was:" >&5
a3641d1f 3752 cat conftest.$ac_ext >&5
19d3ff1a 3753 ac_header_preproc=no
3754fi
3755rm -f conftest.err conftest.$ac_ext
3756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3757echo "${ECHO_T}$ac_header_preproc" >&6
3758
3759# So? What about this header?
3760case $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
3763echo "$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
3765echo "$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
3768echo "$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
3770echo "$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
3772echo "$as_me: WARNING: strings.h: proceeding with the preprocessor's result" >&2;};;
3773esac
3774echo "$as_me:$LINENO: checking for strings.h" >&5
3775echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
3776if test "${ac_cv_header_strings_h+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 ac_cv_header_strings_h=$ac_header_preproc
a3641d1f 3780fi
19d3ff1a 3781echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
3782echo "${ECHO_T}$ac_cv_header_strings_h" >&6
3783
a3641d1f 3784fi
19d3ff1a 3785if test $ac_cv_header_strings_h = yes; then
3786 cat >>confdefs.h <<\_ACEOF
a3641d1f 3787#define STRINGSH 1
19d3ff1a 3788_ACEOF
a3641d1f 3789
a3641d1f 3790fi
3791
19d3ff1a 3792
19d3ff1a 3793if test "${ac_cv_header_malloc_h+set}" = set; then
3794 echo "$as_me:$LINENO: checking for malloc.h" >&5
3795echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
3796if test "${ac_cv_header_malloc_h+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798fi
3799echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
3800echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
a3641d1f 3801else
19d3ff1a 3802 # Is the header compilable?
3803echo "$as_me:$LINENO: checking malloc.h usability" >&5
3804echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
3805cat >conftest.$ac_ext <<_ACEOF
3806#line $LINENO "configure"
3807#include "confdefs.h"
3808$ac_includes_default
3809#include <malloc.h>
3810_ACEOF
3811rm -f conftest.$ac_objext
3812if { (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
3824else
3825 echo "$as_me: failed program was:" >&5
3826cat conftest.$ac_ext >&5
3827ac_header_compiler=no
3828fi
3829rm -f conftest.$ac_objext conftest.$ac_ext
3830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3831echo "${ECHO_T}$ac_header_compiler" >&6
3832
3833# Is the header present?
3834echo "$as_me:$LINENO: checking malloc.h presence" >&5
3835echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
3836cat >conftest.$ac_ext <<_ACEOF
3837#line $LINENO "configure"
a3641d1f 3838#include "confdefs.h"
3839#include <malloc.h>
19d3ff1a 3840_ACEOF
3841if { (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
3854else
3855 ac_cpp_err=yes
3856fi
3857if test -z "$ac_cpp_err"; then
3858 ac_header_preproc=yes
3859else
3860 echo "$as_me: failed program was:" >&5
a3641d1f 3861 cat conftest.$ac_ext >&5
19d3ff1a 3862 ac_header_preproc=no
3863fi
3864rm -f conftest.err conftest.$ac_ext
3865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3866echo "${ECHO_T}$ac_header_preproc" >&6
3867
3868# So? What about this header?
3869case $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
3872echo "$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
3874echo "$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
3877echo "$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
3879echo "$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
3881echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;};;
3882esac
3883echo "$as_me:$LINENO: checking for malloc.h" >&5
3884echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
3885if test "${ac_cv_header_malloc_h+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 ac_cv_header_malloc_h=$ac_header_preproc
a3641d1f 3889fi
19d3ff1a 3890echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
3891echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
3892
a3641d1f 3893fi
19d3ff1a 3894if test $ac_cv_header_malloc_h = yes; then
3895 cat >>confdefs.h <<\_ACEOF
a3641d1f 3896#define MALLOCH <malloc.h>
19d3ff1a 3897_ACEOF
a3641d1f 3898
a3641d1f 3899fi
3900
19d3ff1a 3901
3902if test "${ac_cv_header_sys_rusage_h+set}" = set; then
3903 echo "$as_me:$LINENO: checking for sys/rusage.h" >&5
3904echo $ECHO_N "checking for sys/rusage.h... $ECHO_C" >&6
3905if test "${ac_cv_header_sys_rusage_h+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907fi
3908echo "$as_me:$LINENO: result: $ac_cv_header_sys_rusage_h" >&5
3909echo "${ECHO_T}$ac_cv_header_sys_rusage_h" >&6
a3641d1f 3910else
19d3ff1a 3911 # Is the header compilable?
3912echo "$as_me:$LINENO: checking sys/rusage.h usability" >&5
3913echo $ECHO_N "checking sys/rusage.h usability... $ECHO_C" >&6
3914cat >conftest.$ac_ext <<_ACEOF
3915#line $LINENO "configure"
a3641d1f 3916#include "confdefs.h"
19d3ff1a 3917$ac_includes_default
a3641d1f 3918#include <sys/rusage.h>
19d3ff1a 3919_ACEOF
3920rm -f conftest.$ac_objext
3921if { (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
3933else
3934 echo "$as_me: failed program was:" >&5
3935cat conftest.$ac_ext >&5
3936ac_header_compiler=no
3937fi
3938rm -f conftest.$ac_objext conftest.$ac_ext
3939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3940echo "${ECHO_T}$ac_header_compiler" >&6
3941
3942# Is the header present?
3943echo "$as_me:$LINENO: checking sys/rusage.h presence" >&5
3944echo $ECHO_N "checking sys/rusage.h presence... $ECHO_C" >&6
3945cat >conftest.$ac_ext <<_ACEOF
3946#line $LINENO "configure"
3947#include "confdefs.h"
3948#include <sys/rusage.h>
3949_ACEOF
3950if { (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
3963else
3964 ac_cpp_err=yes
3965fi
3966if test -z "$ac_cpp_err"; then
3967 ac_header_preproc=yes
3968else
3969 echo "$as_me: failed program was:" >&5
a3641d1f 3970 cat conftest.$ac_ext >&5
19d3ff1a 3971 ac_header_preproc=no
3972fi
3973rm -f conftest.err conftest.$ac_ext
3974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3975echo "${ECHO_T}$ac_header_preproc" >&6
3976
3977# So? What about this header?
3978case $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
3981echo "$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
3983echo "$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
3986echo "$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
3988echo "$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
3990echo "$as_me: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&2;};;
3991esac
3992echo "$as_me:$LINENO: checking for sys/rusage.h" >&5
3993echo $ECHO_N "checking for sys/rusage.h... $ECHO_C" >&6
3994if test "${ac_cv_header_sys_rusage_h+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997 ac_cv_header_sys_rusage_h=$ac_header_preproc
a3641d1f 3998fi
19d3ff1a 3999echo "$as_me:$LINENO: result: $ac_cv_header_sys_rusage_h" >&5
4000echo "${ECHO_T}$ac_cv_header_sys_rusage_h" >&6
4001
a3641d1f 4002fi
19d3ff1a 4003if test $ac_cv_header_sys_rusage_h = yes; then
4004 cat >>confdefs.h <<\_ACEOF
a3641d1f 4005#define RUSAGEH 1
19d3ff1a 4006_ACEOF
a3641d1f 4007
a3641d1f 4008fi
4009
19d3ff1a 4010
4011if test "${ac_cv_header_glob_h+set}" = set; then
4012 echo "$as_me:$LINENO: checking for glob.h" >&5
4013echo $ECHO_N "checking for glob.h... $ECHO_C" >&6
4014if test "${ac_cv_header_glob_h+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016fi
4017echo "$as_me:$LINENO: result: $ac_cv_header_glob_h" >&5
4018echo "${ECHO_T}$ac_cv_header_glob_h" >&6
a3641d1f 4019else
19d3ff1a 4020 # Is the header compilable?
4021echo "$as_me:$LINENO: checking glob.h usability" >&5
4022echo $ECHO_N "checking glob.h usability... $ECHO_C" >&6
4023cat >conftest.$ac_ext <<_ACEOF
4024#line $LINENO "configure"
a3641d1f 4025#include "confdefs.h"
19d3ff1a 4026$ac_includes_default
a3641d1f 4027#include <glob.h>
19d3ff1a 4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (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
4042else
4043 echo "$as_me: failed program was:" >&5
4044cat conftest.$ac_ext >&5
4045ac_header_compiler=no
4046fi
4047rm -f conftest.$ac_objext conftest.$ac_ext
4048echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4049echo "${ECHO_T}$ac_header_compiler" >&6
4050
4051# Is the header present?
4052echo "$as_me:$LINENO: checking glob.h presence" >&5
4053echo $ECHO_N "checking glob.h presence... $ECHO_C" >&6
4054cat >conftest.$ac_ext <<_ACEOF
4055#line $LINENO "configure"
4056#include "confdefs.h"
4057#include <glob.h>
4058_ACEOF
4059if { (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
4072else
4073 ac_cpp_err=yes
4074fi
4075if test -z "$ac_cpp_err"; then
4076 ac_header_preproc=yes
4077else
4078 echo "$as_me: failed program was:" >&5
a3641d1f 4079 cat conftest.$ac_ext >&5
19d3ff1a 4080 ac_header_preproc=no
4081fi
4082rm -f conftest.err conftest.$ac_ext
4083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4084echo "${ECHO_T}$ac_header_preproc" >&6
4085
4086# So? What about this header?
4087case $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
4090echo "$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
4092echo "$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
4095echo "$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
4097echo "$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
4099echo "$as_me: WARNING: glob.h: proceeding with the preprocessor's result" >&2;};;
4100esac
4101echo "$as_me:$LINENO: checking for glob.h" >&5
4102echo $ECHO_N "checking for glob.h... $ECHO_C" >&6
4103if test "${ac_cv_header_glob_h+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106 ac_cv_header_glob_h=$ac_header_preproc
a3641d1f 4107fi
19d3ff1a 4108echo "$as_me:$LINENO: result: $ac_cv_header_glob_h" >&5
4109echo "${ECHO_T}$ac_cv_header_glob_h" >&6
4110
a3641d1f 4111fi
19d3ff1a 4112if test $ac_cv_header_glob_h = yes; then
4113 cat >>confdefs.h <<\_ACEOF
a3641d1f 4114#define GLOBH 1
19d3ff1a 4115_ACEOF
a3641d1f 4116
a3641d1f 4117fi
4118
19d3ff1a 4119
4120echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4121echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4122if test "${ac_cv_prog_cc_stdc+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 4124else
19d3ff1a 4125 ac_cv_prog_cc_stdc=no
4126ac_save_CC=$CC
4127cat >conftest.$ac_ext <<_ACEOF
4128#line $LINENO "configure"
a3641d1f 4129#include "confdefs.h"
19d3ff1a 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. */
4135struct buf { int x; };
4136FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137static char *e (p, i)
4138 char **p;
4139 int i;
4140{
4141 return p[i];
a3641d1f 4142}
19d3ff1a 4143static 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;
a3641d1f 4151}
19d3ff1a 4152int test (int i, double x);
4153struct s1 {int (*f) (int a);};
4154struct s2 {int (*f) (double a);};
4155int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4156int argc;
4157char **argv;
4158#ifdef F77_DUMMY_MAIN
4159# ifdef __cplusplus
4160 extern "C"
4161# endif
4162 int F77_DUMMY_MAIN() { return 1; }
4163#endif
4164int
4165main ()
4166{
4167return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4168 ;
4169 return 0;
a3641d1f 4170}
19d3ff1a 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__
4179for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4180do
4181 CC="$ac_save_CC $ac_arg"
4182 rm -f conftest.$ac_objext
4183if { (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
4195break
4196else
4197 echo "$as_me: failed program was:" >&5
4198cat conftest.$ac_ext >&5
4199fi
4200rm -f conftest.$ac_objext
4201done
4202rm -f conftest.$ac_ext conftest.$ac_objext
4203CC=$ac_save_CC
4204
4205fi
4206
4207case "x$ac_cv_prog_cc_stdc" in
4208 x|xno)
4209 echo "$as_me:$LINENO: result: none needed" >&5
4210echo "${ECHO_T}none needed" >&6 ;;
4211 *)
4212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4213echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4214 CC="$CC $ac_cv_prog_cc_stdc" ;;
4215esac
4216
4217echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4218echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4219if test "${ac_cv_c_const+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221else
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
4232int
4233main ()
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
a3641d1f 4281
19d3ff1a 4282 ;
4283 return 0;
4284}
4285_ACEOF
4286rm -f conftest.$ac_objext
4287if { (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
a3641d1f 4298 ac_cv_c_const=yes
4299else
19d3ff1a 4300 echo "$as_me: failed program was:" >&5
4301cat conftest.$ac_ext >&5
4302ac_cv_c_const=no
a3641d1f 4303fi
19d3ff1a 4304rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 4305fi
19d3ff1a 4306echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4307echo "${ECHO_T}$ac_cv_c_const" >&6
a3641d1f 4308if test $ac_cv_c_const = no; then
19d3ff1a 4309
4310cat >>confdefs.h <<\_ACEOF
4311#define const
4312_ACEOF
a3641d1f 4313
4314fi
4315
19d3ff1a 4316echo "$as_me:$LINENO: checking for inline" >&5
4317echo $ECHO_N "checking for inline... $ECHO_C" >&6
4318if test "${ac_cv_c_inline+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 4320else
4321 ac_cv_c_inline=no
4322for ac_kw in inline __inline__ __inline; do
19d3ff1a 4323 cat >conftest.$ac_ext <<_ACEOF
4324#line $LINENO "configure"
a3641d1f 4325#include "confdefs.h"
19d3ff1a 4326#ifndef __cplusplus
4327static $ac_kw int static_foo () {return 0; }
4328$ac_kw int foo () {return 0; }
4329#endif
a3641d1f 4330
19d3ff1a 4331_ACEOF
4332rm -f conftest.$ac_objext
4333if { (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
a3641d1f 4344 ac_cv_c_inline=$ac_kw; break
4345else
19d3ff1a 4346 echo "$as_me: failed program was:" >&5
4347cat conftest.$ac_ext >&5
a3641d1f 4348fi
19d3ff1a 4349rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 4350done
4351
4352fi
19d3ff1a 4353echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4354echo "${ECHO_T}$ac_cv_c_inline" >&6
4355case $ac_cv_c_inline in
a3641d1f 4356 inline | yes) ;;
19d3ff1a 4357 no)
4358cat >>confdefs.h <<\_ACEOF
4359#define inline
4360_ACEOF
a3641d1f 4361 ;;
19d3ff1a 4362 *) cat >>confdefs.h <<_ACEOF
a3641d1f 4363#define inline $ac_cv_c_inline
19d3ff1a 4364_ACEOF
a3641d1f 4365 ;;
4366esac
4367
19d3ff1a 4368echo "$as_me:$LINENO: checking for size_t" >&5
4369echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4370if test "${ac_cv_type_size_t+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 4372else
19d3ff1a 4373 cat >conftest.$ac_ext <<_ACEOF
4374#line $LINENO "configure"
a3641d1f 4375#include "confdefs.h"
19d3ff1a 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
4383int
4384main ()
4385{
4386if ((size_t *) 0)
4387 return 0;
4388if (sizeof (size_t))
4389 return 0;
4390 ;
4391 return 0;
4392}
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (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
a3641d1f 4407else
19d3ff1a 4408 echo "$as_me: failed program was:" >&5
4409cat conftest.$ac_ext >&5
4410ac_cv_type_size_t=no
a3641d1f 4411fi
19d3ff1a 4412rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 4413fi
19d3ff1a 4414echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4415echo "${ECHO_T}$ac_cv_type_size_t" >&6
4416if test $ac_cv_type_size_t = yes; then
a3641d1f 4417 :
4418else
a3641d1f 4419
19d3ff1a 4420cat >>confdefs.h <<_ACEOF
a3641d1f 4421#define size_t unsigned
19d3ff1a 4422_ACEOF
a3641d1f 4423
4424fi
4425
19d3ff1a 4426echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4427echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4428if test "${ac_cv_header_time+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 4430else
19d3ff1a 4431 cat >conftest.$ac_ext <<_ACEOF
4432#line $LINENO "configure"
a3641d1f 4433#include "confdefs.h"
4434#include <sys/types.h>
4435#include <sys/time.h>
4436#include <time.h>
19d3ff1a 4437
4438#ifdef F77_DUMMY_MAIN
4439# ifdef __cplusplus
4440 extern "C"
4441# endif
4442 int F77_DUMMY_MAIN() { return 1; }
4443#endif
4444int
4445main ()
4446{
4447if ((struct tm *) 0)
4448return 0;
4449 ;
4450 return 0;
4451}
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (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
a3641d1f 4465 ac_cv_header_time=yes
4466else
19d3ff1a 4467 echo "$as_me: failed program was:" >&5
4468cat conftest.$ac_ext >&5
4469ac_cv_header_time=no
a3641d1f 4470fi
19d3ff1a 4471rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 4472fi
19d3ff1a 4473echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4474echo "${ECHO_T}$ac_cv_header_time" >&6
a3641d1f 4475if test $ac_cv_header_time = yes; then
19d3ff1a 4476
4477cat >>confdefs.h <<\_ACEOF
a3641d1f 4478#define TIME_WITH_SYS_TIME 1
19d3ff1a 4479_ACEOF
a3641d1f 4480
4481fi
4482
19d3ff1a 4483echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4484echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4485if test "${ac_cv_struct_tm+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 4487else
19d3ff1a 4488 cat >conftest.$ac_ext <<_ACEOF
4489#line $LINENO "configure"
a3641d1f 4490#include "confdefs.h"
4491#include <sys/types.h>
4492#include <time.h>
19d3ff1a 4493
4494#ifdef F77_DUMMY_MAIN
4495# ifdef __cplusplus
4496 extern "C"
4497# endif
4498 int F77_DUMMY_MAIN() { return 1; }
4499#endif
4500int
4501main ()
4502{
a3641d1f 4503struct tm *tp; tp->tm_sec;
19d3ff1a 4504 ;
4505 return 0;
4506}
4507_ACEOF
4508rm -f conftest.$ac_objext
4509if { (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
a3641d1f 4520 ac_cv_struct_tm=time.h
4521else
19d3ff1a 4522 echo "$as_me: failed program was:" >&5
4523cat conftest.$ac_ext >&5
4524ac_cv_struct_tm=sys/time.h
a3641d1f 4525fi
19d3ff1a 4526rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 4527fi
19d3ff1a 4528echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4529echo "${ECHO_T}$ac_cv_struct_tm" >&6
a3641d1f 4530if test $ac_cv_struct_tm = sys/time.h; then
19d3ff1a 4531
4532cat >>confdefs.h <<\_ACEOF
a3641d1f 4533#define TM_IN_SYS_TIME 1
19d3ff1a 4534_ACEOF
a3641d1f 4535
4536fi
4537
19d3ff1a 4538echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4539echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4540if test "${ac_cv_type_uid_t+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 4542else
19d3ff1a 4543 cat >conftest.$ac_ext <<_ACEOF
4544#line $LINENO "configure"
a3641d1f 4545#include "confdefs.h"
4546#include <sys/types.h>
19d3ff1a 4547
4548_ACEOF
a3641d1f 4549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550 egrep "uid_t" >/dev/null 2>&1; then
a3641d1f 4551 ac_cv_type_uid_t=yes
4552else
a3641d1f 4553 ac_cv_type_uid_t=no
4554fi
4555rm -f conftest*
4556
4557fi
19d3ff1a 4558echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4559echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a3641d1f 4560if test $ac_cv_type_uid_t = no; then
19d3ff1a 4561
4562cat >>confdefs.h <<\_ACEOF
a3641d1f 4563#define uid_t int
19d3ff1a 4564_ACEOF
a3641d1f 4565
19d3ff1a 4566
4567cat >>confdefs.h <<\_ACEOF
a3641d1f 4568#define gid_t int
19d3ff1a 4569_ACEOF
4570
4571fi
4572
4573echo "$as_me:$LINENO: checking for short" >&5
4574echo $ECHO_N "checking for short... $ECHO_C" >&6
4575if test "${ac_cv_type_short+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
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
4588int
4589main ()
4590{
4591if ((short *) 0)
4592 return 0;
4593if (sizeof (short))
4594 return 0;
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599rm -f conftest.$ac_objext
4600if { (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
4612else
4613 echo "$as_me: failed program was:" >&5
4614cat conftest.$ac_ext >&5
4615ac_cv_type_short=no
4616fi
4617rm -f conftest.$ac_objext conftest.$ac_ext
4618fi
4619echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4620echo "${ECHO_T}$ac_cv_type_short" >&6
4621
4622echo "$as_me:$LINENO: checking size of short" >&5
4623echo $ECHO_N "checking size of short... $ECHO_C" >&6
4624if test "${ac_cv_sizeof_short+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
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.
4634cat >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
4644int
4645main ()
4646{
4647static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4648test_array [0] = 0
4649
4650 ;
4651 return 0;
4652}
4653_ACEOF
4654rm -f conftest.$ac_objext
4655if { (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
4678int
4679main ()
4680{
4681static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4682test_array [0] = 0
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688rm -f conftest.$ac_objext
4689if { (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
4701else
4702 echo "$as_me: failed program was:" >&5
4703cat conftest.$ac_ext >&5
4704ac_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`
4710fi
4711rm -f conftest.$ac_objext conftest.$ac_ext
4712 done
4713else
4714 echo "$as_me: failed program was:" >&5
4715cat conftest.$ac_ext >&5
4716cat >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
4726int
4727main ()
4728{
4729static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4730test_array [0] = 0
4731
4732 ;
4733 return 0;
4734}
4735_ACEOF
4736rm -f conftest.$ac_objext
4737if { (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
4760int
4761main ()
4762{
4763static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4764test_array [0] = 0
4765
4766 ;
4767 return 0;
4768}
4769_ACEOF
4770rm -f conftest.$ac_objext
4771if { (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
4783else
4784 echo "$as_me: failed program was:" >&5
4785cat conftest.$ac_ext >&5
4786ac_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`
4792fi
4793rm -f conftest.$ac_objext conftest.$ac_ext
4794 done
4795else
4796 echo "$as_me: failed program was:" >&5
4797cat conftest.$ac_ext >&5
4798ac_lo= ac_hi=
4799fi
4800rm -f conftest.$ac_objext conftest.$ac_ext
4801fi
4802rm -f conftest.$ac_objext conftest.$ac_ext
4803# Binary search between lo and hi bounds.
4804while 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
4816int
4817main ()
4818{
4819static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4820test_array [0] = 0
4821
4822 ;
4823 return 0;
4824}
4825_ACEOF
4826rm -f conftest.$ac_objext
4827if { (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
4839else
4840 echo "$as_me: failed program was:" >&5
4841cat conftest.$ac_ext >&5
4842ac_lo=`expr '(' $ac_mid ')' + 1`
4843fi
4844rm -f conftest.$ac_objext conftest.$ac_ext
4845done
4846case $ac_lo in
4847?*) ac_cv_sizeof_short=$ac_lo;;
4848'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4849echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4851esac
4852else
4853 if test "$cross_compiling" = yes; then
4854 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4855echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4856 { (exit 1); exit 1; }; }
4857else
4858 cat >conftest.$ac_ext <<_ACEOF
4859#line $LINENO "configure"
4860#include "confdefs.h"
4861$ac_includes_default
4862long longval () { return (long) (sizeof (short)); }
4863unsigned 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
4872int
4873main ()
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
4899rm -f conftest$ac_exeext
4900if { (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`
4911else
4912 echo "$as_me: program exited with status $ac_status" >&5
4913echo "$as_me: failed program was:" >&5
4914cat conftest.$ac_ext >&5
4915( exit $ac_status )
4916{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4917echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4918 { (exit 1); exit 1; }; }
4919fi
4920rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4921fi
4922fi
4923rm -f conftest.val
4924else
4925 ac_cv_sizeof_short=0
4926fi
4927fi
4928echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4929echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4930cat >>confdefs.h <<_ACEOF
4931#define SIZEOF_SHORT $ac_cv_sizeof_short
4932_ACEOF
4933
4934
4935echo "$as_me:$LINENO: checking for int" >&5
4936echo $ECHO_N "checking for int... $ECHO_C" >&6
4937if test "${ac_cv_type_int+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
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
4950int
4951main ()
4952{
4953if ((int *) 0)
4954 return 0;
4955if (sizeof (int))
4956 return 0;
4957 ;
4958 return 0;
4959}
4960_ACEOF
4961rm -f conftest.$ac_objext
4962if { (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
4974else
4975 echo "$as_me: failed program was:" >&5
4976cat conftest.$ac_ext >&5
4977ac_cv_type_int=no
4978fi
4979rm -f conftest.$ac_objext conftest.$ac_ext
4980fi
4981echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4982echo "${ECHO_T}$ac_cv_type_int" >&6
4983
4984echo "$as_me:$LINENO: checking size of int" >&5
4985echo $ECHO_N "checking size of int... $ECHO_C" >&6
4986if test "${ac_cv_sizeof_int+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
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.
4996cat >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
5006int
5007main ()
5008{
5009static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5010test_array [0] = 0
5011
5012 ;
5013 return 0;
5014}
5015_ACEOF
5016rm -f conftest.$ac_objext
5017if { (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
5040int
5041main ()
5042{
5043static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5044test_array [0] = 0
5045
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050rm -f conftest.$ac_objext
5051if { (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
5063else
5064 echo "$as_me: failed program was:" >&5
5065cat conftest.$ac_ext >&5
5066ac_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`
5072fi
5073rm -f conftest.$ac_objext conftest.$ac_ext
5074 done
5075else
5076 echo "$as_me: failed program was:" >&5
5077cat conftest.$ac_ext >&5
5078cat >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
5088int
5089main ()
5090{
5091static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5092test_array [0] = 0
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (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
5122int
5123main ()
5124{
5125static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5126test_array [0] = 0
a3641d1f 5127
19d3ff1a 5128 ;
5129 return 0;
5130}
5131_ACEOF
5132rm -f conftest.$ac_objext
5133if { (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
5145else
5146 echo "$as_me: failed program was:" >&5
5147cat conftest.$ac_ext >&5
5148ac_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`
5154fi
5155rm -f conftest.$ac_objext conftest.$ac_ext
5156 done
5157else
5158 echo "$as_me: failed program was:" >&5
5159cat conftest.$ac_ext >&5
5160ac_lo= ac_hi=
5161fi
5162rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 5163fi
19d3ff1a 5164rm -f conftest.$ac_objext conftest.$ac_ext
5165# Binary search between lo and hi bounds.
5166while 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
5178int
5179main ()
5180{
5181static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5182test_array [0] = 0
a3641d1f 5183
19d3ff1a 5184 ;
5185 return 0;
5186}
5187_ACEOF
5188rm -f conftest.$ac_objext
5189if { (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
5201else
5202 echo "$as_me: failed program was:" >&5
5203cat conftest.$ac_ext >&5
5204ac_lo=`expr '(' $ac_mid ')' + 1`
5205fi
5206rm -f conftest.$ac_objext conftest.$ac_ext
5207done
5208case $ac_lo in
5209?*) ac_cv_sizeof_int=$ac_lo;;
5210'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5211echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5213esac
a3641d1f 5214else
5215 if test "$cross_compiling" = yes; then
19d3ff1a 5216 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5217echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5218 { (exit 1); exit 1; }; }
a3641d1f 5219else
19d3ff1a 5220 cat >conftest.$ac_ext <<_ACEOF
5221#line $LINENO "configure"
a3641d1f 5222#include "confdefs.h"
19d3ff1a 5223$ac_includes_default
5224long longval () { return (long) (sizeof (int)); }
5225unsigned long ulongval () { return (long) (sizeof (int)); }
a3641d1f 5226#include <stdio.h>
19d3ff1a 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
5234int
5235main ()
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
5261rm -f conftest$ac_exeext
5262if { (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`
5273else
5274 echo "$as_me: program exited with status $ac_status" >&5
5275echo "$as_me: failed program was:" >&5
5276cat conftest.$ac_ext >&5
5277( exit $ac_status )
5278{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5279echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5280 { (exit 1); exit 1; }; }
5281fi
5282rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5283fi
5284fi
5285rm -f conftest.val
5286else
5287 ac_cv_sizeof_int=0
5288fi
5289fi
5290echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5291echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5292cat >>confdefs.h <<_ACEOF
5293#define SIZEOF_INT $ac_cv_sizeof_int
5294_ACEOF
5295
5296
5297echo "$as_me:$LINENO: checking for long" >&5
5298echo $ECHO_N "checking for long... $ECHO_C" >&6
5299if test "${ac_cv_type_long+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
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
5312int
5313main ()
5314{
5315if ((long *) 0)
5316 return 0;
5317if (sizeof (long))
5318 return 0;
5319 ;
5320 return 0;
5321}
5322_ACEOF
5323rm -f conftest.$ac_objext
5324if { (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
5336else
5337 echo "$as_me: failed program was:" >&5
5338cat conftest.$ac_ext >&5
5339ac_cv_type_long=no
5340fi
5341rm -f conftest.$ac_objext conftest.$ac_ext
5342fi
5343echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5344echo "${ECHO_T}$ac_cv_type_long" >&6
5345
5346echo "$as_me:$LINENO: checking size of long" >&5
5347echo $ECHO_N "checking size of long... $ECHO_C" >&6
5348if test "${ac_cv_sizeof_long+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
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.
5358cat >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
5368int
5369main ()
5370{
5371static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5372test_array [0] = 0
5373
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext
5379if { (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
5402int
5403main ()
a3641d1f 5404{
19d3ff1a 5405static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5406test_array [0] = 0
5407
5408 ;
5409 return 0;
a3641d1f 5410}
19d3ff1a 5411_ACEOF
5412rm -f conftest.$ac_objext
5413if { (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
5425else
5426 echo "$as_me: failed program was:" >&5
5427cat conftest.$ac_ext >&5
5428ac_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`
5434fi
5435rm -f conftest.$ac_objext conftest.$ac_ext
5436 done
a3641d1f 5437else
19d3ff1a 5438 echo "$as_me: failed program was:" >&5
5439cat conftest.$ac_ext >&5
5440cat >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
5450int
5451main ()
5452{
5453static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5454test_array [0] = 0
a3641d1f 5455
19d3ff1a 5456 ;
5457 return 0;
5458}
5459_ACEOF
5460rm -f conftest.$ac_objext
5461if { (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"
a3641d1f 5476#include "confdefs.h"
19d3ff1a 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
5484int
5485main ()
a3641d1f 5486{
19d3ff1a 5487static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5488test_array [0] = 0
5489
5490 ;
5491 return 0;
a3641d1f 5492}
19d3ff1a 5493_ACEOF
5494rm -f conftest.$ac_objext
5495if { (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
5507else
5508 echo "$as_me: failed program was:" >&5
5509cat conftest.$ac_ext >&5
5510ac_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`
5516fi
5517rm -f conftest.$ac_objext conftest.$ac_ext
5518 done
a3641d1f 5519else
19d3ff1a 5520 echo "$as_me: failed program was:" >&5
5521cat conftest.$ac_ext >&5
5522ac_lo= ac_hi=
a3641d1f 5523fi
19d3ff1a 5524rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 5525fi
19d3ff1a 5526rm -f conftest.$ac_objext conftest.$ac_ext
5527# Binary search between lo and hi bounds.
5528while 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
5540int
5541main ()
5542{
5543static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5544test_array [0] = 0
a3641d1f 5545
19d3ff1a 5546 ;
5547 return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext
5551if { (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
5563else
5564 echo "$as_me: failed program was:" >&5
5565cat conftest.$ac_ext >&5
5566ac_lo=`expr '(' $ac_mid ')' + 1`
5567fi
5568rm -f conftest.$ac_objext conftest.$ac_ext
5569done
5570case $ac_lo in
5571?*) ac_cv_sizeof_long=$ac_lo;;
5572'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5573echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5574 { (exit 1); exit 1; }; } ;;
5575esac
a3641d1f 5576else
5577 if test "$cross_compiling" = yes; then
19d3ff1a 5578 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5579echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5580 { (exit 1); exit 1; }; }
a3641d1f 5581else
19d3ff1a 5582 cat >conftest.$ac_ext <<_ACEOF
5583#line $LINENO "configure"
a3641d1f 5584#include "confdefs.h"
19d3ff1a 5585$ac_includes_default
5586long longval () { return (long) (sizeof (long)); }
5587unsigned long ulongval () { return (long) (sizeof (long)); }
a3641d1f 5588#include <stdio.h>
19d3ff1a 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
5596int
5597main ()
a3641d1f 5598{
19d3ff1a 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;
a3641d1f 5621}
19d3ff1a 5622_ACEOF
5623rm -f conftest$ac_exeext
5624if { (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`
5635else
5636 echo "$as_me: program exited with status $ac_status" >&5
5637echo "$as_me: failed program was:" >&5
5638cat conftest.$ac_ext >&5
5639( exit $ac_status )
5640{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5641echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5642 { (exit 1); exit 1; }; }
5643fi
5644rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5645fi
5646fi
5647rm -f conftest.val
a3641d1f 5648else
a3641d1f 5649 ac_cv_sizeof_long=0
5650fi
a3641d1f 5651fi
19d3ff1a 5652echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5653echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5654cat >>confdefs.h <<_ACEOF
a3641d1f 5655#define SIZEOF_LONG $ac_cv_sizeof_long
19d3ff1a 5656_ACEOF
a3641d1f 5657
5658
5659if test "$ac_cv_sizeof_int" = 2 ; then
19d3ff1a 5660 echo "$as_me:$LINENO: checking for int16_t" >&5
5661echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5662if test "${ac_cv_type_int16_t+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 5664else
19d3ff1a 5665 cat >conftest.$ac_ext <<_ACEOF
5666#line $LINENO "configure"
a3641d1f 5667#include "confdefs.h"
19d3ff1a 5668$ac_includes_default
5669#ifdef F77_DUMMY_MAIN
5670# ifdef __cplusplus
5671 extern "C"
5672# endif
5673 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 5674#endif
19d3ff1a 5675int
5676main ()
5677{
5678if ((int16_t *) 0)
5679 return 0;
5680if (sizeof (int16_t))
5681 return 0;
5682 ;
5683 return 0;
5684}
5685_ACEOF
5686rm -f conftest.$ac_objext
5687if { (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
a3641d1f 5698 ac_cv_type_int16_t=yes
5699else
19d3ff1a 5700 echo "$as_me: failed program was:" >&5
5701cat conftest.$ac_ext >&5
5702ac_cv_type_int16_t=no
a3641d1f 5703fi
19d3ff1a 5704rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 5705fi
19d3ff1a 5706echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5707echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5708if test $ac_cv_type_int16_t = yes; then
5709 :
5710else
5711
5712cat >>confdefs.h <<_ACEOF
a3641d1f 5713#define int16_t int
19d3ff1a 5714_ACEOF
a3641d1f 5715
5716fi
5717
19d3ff1a 5718 echo "$as_me:$LINENO: checking for u_int16_t" >&5
5719echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5720if test "${ac_cv_type_u_int16_t+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 5722else
19d3ff1a 5723 cat >conftest.$ac_ext <<_ACEOF
5724#line $LINENO "configure"
a3641d1f 5725#include "confdefs.h"
19d3ff1a 5726$ac_includes_default
5727#ifdef F77_DUMMY_MAIN
5728# ifdef __cplusplus
5729 extern "C"
5730# endif
5731 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 5732#endif
19d3ff1a 5733int
5734main ()
5735{
5736if ((u_int16_t *) 0)
5737 return 0;
5738if (sizeof (u_int16_t))
5739 return 0;
5740 ;
5741 return 0;
5742}
5743_ACEOF
5744rm -f conftest.$ac_objext
5745if { (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
a3641d1f 5756 ac_cv_type_u_int16_t=yes
5757else
19d3ff1a 5758 echo "$as_me: failed program was:" >&5
5759cat conftest.$ac_ext >&5
5760ac_cv_type_u_int16_t=no
a3641d1f 5761fi
19d3ff1a 5762rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 5763fi
19d3ff1a 5764echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5765echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5766if test $ac_cv_type_u_int16_t = yes; then
5767 :
5768else
5769
5770cat >>confdefs.h <<_ACEOF
a3641d1f 5771#define u_int16_t unsigned int
19d3ff1a 5772_ACEOF
a3641d1f 5773
5774fi
5775
5776elif test "$ac_cv_sizeof_short" = 2 ; then
19d3ff1a 5777 echo "$as_me:$LINENO: checking for int16_t" >&5
5778echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5779if test "${ac_cv_type_int16_t+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 5781else
19d3ff1a 5782 cat >conftest.$ac_ext <<_ACEOF
5783#line $LINENO "configure"
a3641d1f 5784#include "confdefs.h"
19d3ff1a 5785$ac_includes_default
5786#ifdef F77_DUMMY_MAIN
5787# ifdef __cplusplus
5788 extern "C"
5789# endif
5790 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 5791#endif
19d3ff1a 5792int
5793main ()
5794{
5795if ((int16_t *) 0)
5796 return 0;
5797if (sizeof (int16_t))
5798 return 0;
5799 ;
5800 return 0;
5801}
5802_ACEOF
5803rm -f conftest.$ac_objext
5804if { (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
a3641d1f 5815 ac_cv_type_int16_t=yes
5816else
19d3ff1a 5817 echo "$as_me: failed program was:" >&5
5818cat conftest.$ac_ext >&5
5819ac_cv_type_int16_t=no
a3641d1f 5820fi
19d3ff1a 5821rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 5822fi
19d3ff1a 5823echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5824echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5825if test $ac_cv_type_int16_t = yes; then
5826 :
5827else
5828
5829cat >>confdefs.h <<_ACEOF
a3641d1f 5830#define int16_t short
19d3ff1a 5831_ACEOF
a3641d1f 5832
5833fi
5834
19d3ff1a 5835 echo "$as_me:$LINENO: checking for u_int16_t" >&5
5836echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5837if test "${ac_cv_type_u_int16_t+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 5839else
19d3ff1a 5840 cat >conftest.$ac_ext <<_ACEOF
5841#line $LINENO "configure"
a3641d1f 5842#include "confdefs.h"
19d3ff1a 5843$ac_includes_default
5844#ifdef F77_DUMMY_MAIN
5845# ifdef __cplusplus
5846 extern "C"
5847# endif
5848 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 5849#endif
19d3ff1a 5850int
5851main ()
5852{
5853if ((u_int16_t *) 0)
5854 return 0;
5855if (sizeof (u_int16_t))
5856 return 0;
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861rm -f conftest.$ac_objext
5862if { (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
a3641d1f 5873 ac_cv_type_u_int16_t=yes
5874else
19d3ff1a 5875 echo "$as_me: failed program was:" >&5
5876cat conftest.$ac_ext >&5
5877ac_cv_type_u_int16_t=no
a3641d1f 5878fi
19d3ff1a 5879rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 5880fi
19d3ff1a 5881echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5882echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5883if test $ac_cv_type_u_int16_t = yes; then
5884 :
5885else
5886
5887cat >>confdefs.h <<_ACEOF
a3641d1f 5888#define u_int16_t unsigned short
19d3ff1a 5889_ACEOF
a3641d1f 5890
5891fi
5892
5893else
19d3ff1a 5894 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
5895echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
5896 { (exit 1); exit 1; }; }
a3641d1f 5897fi
5898if test "$ac_cv_sizeof_int" = 4 ; then
19d3ff1a 5899 echo "$as_me:$LINENO: checking for int32_t" >&5
5900echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5901if test "${ac_cv_type_int32_t+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 5903else
19d3ff1a 5904 cat >conftest.$ac_ext <<_ACEOF
5905#line $LINENO "configure"
a3641d1f 5906#include "confdefs.h"
19d3ff1a 5907$ac_includes_default
5908#ifdef F77_DUMMY_MAIN
5909# ifdef __cplusplus
5910 extern "C"
5911# endif
5912 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 5913#endif
19d3ff1a 5914int
5915main ()
5916{
5917if ((int32_t *) 0)
5918 return 0;
5919if (sizeof (int32_t))
5920 return 0;
5921 ;
5922 return 0;
5923}
5924_ACEOF
5925rm -f conftest.$ac_objext
5926if { (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
a3641d1f 5937 ac_cv_type_int32_t=yes
5938else
19d3ff1a 5939 echo "$as_me: failed program was:" >&5
5940cat conftest.$ac_ext >&5
5941ac_cv_type_int32_t=no
a3641d1f 5942fi
19d3ff1a 5943rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 5944fi
19d3ff1a 5945echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5946echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5947if test $ac_cv_type_int32_t = yes; then
5948 :
5949else
5950
5951cat >>confdefs.h <<_ACEOF
a3641d1f 5952#define int32_t int
19d3ff1a 5953_ACEOF
a3641d1f 5954
5955fi
5956
19d3ff1a 5957 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5958echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5959if test "${ac_cv_type_u_int32_t+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 5961else
19d3ff1a 5962 cat >conftest.$ac_ext <<_ACEOF
5963#line $LINENO "configure"
a3641d1f 5964#include "confdefs.h"
19d3ff1a 5965$ac_includes_default
5966#ifdef F77_DUMMY_MAIN
5967# ifdef __cplusplus
5968 extern "C"
5969# endif
5970 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 5971#endif
19d3ff1a 5972int
5973main ()
5974{
5975if ((u_int32_t *) 0)
5976 return 0;
5977if (sizeof (u_int32_t))
5978 return 0;
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext
5984if { (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
a3641d1f 5995 ac_cv_type_u_int32_t=yes
5996else
19d3ff1a 5997 echo "$as_me: failed program was:" >&5
5998cat conftest.$ac_ext >&5
5999ac_cv_type_u_int32_t=no
a3641d1f 6000fi
19d3ff1a 6001rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 6002fi
19d3ff1a 6003echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6004echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6005if test $ac_cv_type_u_int32_t = yes; then
6006 :
6007else
6008
6009cat >>confdefs.h <<_ACEOF
a3641d1f 6010#define u_int32_t unsigned int
19d3ff1a 6011_ACEOF
a3641d1f 6012
6013fi
6014
6015elif test "$ac_cv_sizeof_short" = 4 ; then
19d3ff1a 6016 echo "$as_me:$LINENO: checking for int32_t" >&5
6017echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6018if test "${ac_cv_type_int32_t+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 6020else
19d3ff1a 6021 cat >conftest.$ac_ext <<_ACEOF
6022#line $LINENO "configure"
a3641d1f 6023#include "confdefs.h"
19d3ff1a 6024$ac_includes_default
6025#ifdef F77_DUMMY_MAIN
6026# ifdef __cplusplus
6027 extern "C"
6028# endif
6029 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 6030#endif
19d3ff1a 6031int
6032main ()
6033{
6034if ((int32_t *) 0)
6035 return 0;
6036if (sizeof (int32_t))
6037 return 0;
6038 ;
6039 return 0;
6040}
6041_ACEOF
6042rm -f conftest.$ac_objext
6043if { (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
a3641d1f 6054 ac_cv_type_int32_t=yes
6055else
19d3ff1a 6056 echo "$as_me: failed program was:" >&5
6057cat conftest.$ac_ext >&5
6058ac_cv_type_int32_t=no
a3641d1f 6059fi
19d3ff1a 6060rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 6061fi
19d3ff1a 6062echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6063echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6064if test $ac_cv_type_int32_t = yes; then
6065 :
6066else
6067
6068cat >>confdefs.h <<_ACEOF
a3641d1f 6069#define int32_t short
19d3ff1a 6070_ACEOF
a3641d1f 6071
6072fi
6073
19d3ff1a 6074 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6075echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6076if test "${ac_cv_type_u_int32_t+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 6078else
19d3ff1a 6079 cat >conftest.$ac_ext <<_ACEOF
6080#line $LINENO "configure"
a3641d1f 6081#include "confdefs.h"
19d3ff1a 6082$ac_includes_default
6083#ifdef F77_DUMMY_MAIN
6084# ifdef __cplusplus
6085 extern "C"
6086# endif
6087 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 6088#endif
19d3ff1a 6089int
6090main ()
6091{
6092if ((u_int32_t *) 0)
6093 return 0;
6094if (sizeof (u_int32_t))
6095 return 0;
6096 ;
6097 return 0;
6098}
6099_ACEOF
6100rm -f conftest.$ac_objext
6101if { (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
a3641d1f 6112 ac_cv_type_u_int32_t=yes
6113else
19d3ff1a 6114 echo "$as_me: failed program was:" >&5
6115cat conftest.$ac_ext >&5
6116ac_cv_type_u_int32_t=no
a3641d1f 6117fi
19d3ff1a 6118rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 6119fi
19d3ff1a 6120echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6121echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6122if test $ac_cv_type_u_int32_t = yes; then
6123 :
6124else
6125
6126cat >>confdefs.h <<_ACEOF
a3641d1f 6127#define u_int32_t unsigned short
19d3ff1a 6128_ACEOF
a3641d1f 6129
6130fi
6131
6132elif test "$ac_cv_sizeof_long" = 4 ; then
19d3ff1a 6133 echo "$as_me:$LINENO: checking for int32_t" >&5
6134echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6135if test "${ac_cv_type_int32_t+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 6137else
19d3ff1a 6138 cat >conftest.$ac_ext <<_ACEOF
6139#line $LINENO "configure"
a3641d1f 6140#include "confdefs.h"
19d3ff1a 6141$ac_includes_default
6142#ifdef F77_DUMMY_MAIN
6143# ifdef __cplusplus
6144 extern "C"
6145# endif
6146 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 6147#endif
19d3ff1a 6148int
6149main ()
6150{
6151if ((int32_t *) 0)
6152 return 0;
6153if (sizeof (int32_t))
6154 return 0;
6155 ;
6156 return 0;
6157}
6158_ACEOF
6159rm -f conftest.$ac_objext
6160if { (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
a3641d1f 6171 ac_cv_type_int32_t=yes
6172else
19d3ff1a 6173 echo "$as_me: failed program was:" >&5
6174cat conftest.$ac_ext >&5
6175ac_cv_type_int32_t=no
a3641d1f 6176fi
19d3ff1a 6177rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 6178fi
19d3ff1a 6179echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6180echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6181if test $ac_cv_type_int32_t = yes; then
6182 :
6183else
6184
6185cat >>confdefs.h <<_ACEOF
a3641d1f 6186#define int32_t long
19d3ff1a 6187_ACEOF
a3641d1f 6188
6189fi
6190
19d3ff1a 6191 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6192echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6193if test "${ac_cv_type_u_int32_t+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 6195else
19d3ff1a 6196 cat >conftest.$ac_ext <<_ACEOF
6197#line $LINENO "configure"
a3641d1f 6198#include "confdefs.h"
19d3ff1a 6199$ac_includes_default
6200#ifdef F77_DUMMY_MAIN
6201# ifdef __cplusplus
6202 extern "C"
6203# endif
6204 int F77_DUMMY_MAIN() { return 1; }
a3641d1f 6205#endif
19d3ff1a 6206int
6207main ()
6208{
6209if ((u_int32_t *) 0)
6210 return 0;
6211if (sizeof (u_int32_t))
6212 return 0;
6213 ;
6214 return 0;
6215}
6216_ACEOF
6217rm -f conftest.$ac_objext
6218if { (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
a3641d1f 6229 ac_cv_type_u_int32_t=yes
6230else
19d3ff1a 6231 echo "$as_me: failed program was:" >&5
6232cat conftest.$ac_ext >&5
6233ac_cv_type_u_int32_t=no
a3641d1f 6234fi
19d3ff1a 6235rm -f conftest.$ac_objext conftest.$ac_ext
a3641d1f 6236fi
19d3ff1a 6237echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6238echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6239if test $ac_cv_type_u_int32_t = yes; then
6240 :
6241else
6242
6243cat >>confdefs.h <<_ACEOF
a3641d1f 6244#define u_int32_t unsigned long
19d3ff1a 6245_ACEOF
a3641d1f 6246
6247fi
6248
6249else
19d3ff1a 6250 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6251echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6252 { (exit 1); exit 1; }; }
a3641d1f 6253fi
51e5031f 6254echo "$as_me:$LINENO: checking for rlim_t" >&5
6255echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
6256if test "${ac_cv_type_rlim_t+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
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
6269int
6270main ()
6271{
6272if ((rlim_t *) 0)
6273 return 0;
6274if (sizeof (rlim_t))
6275 return 0;
6276 ;
6277 return 0;
6278}
6279_ACEOF
6280rm -f conftest.$ac_objext
6281if { (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
6293else
6294 echo "$as_me: failed program was:" >&5
6295cat conftest.$ac_ext >&5
6296ac_cv_type_rlim_t=no
6297fi
6298rm -f conftest.$ac_objext conftest.$ac_ext
6299fi
6300echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
6301echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
6302
6303echo "$as_me:$LINENO: checking size of rlim_t" >&5
6304echo $ECHO_N "checking size of rlim_t... $ECHO_C" >&6
6305if test "${ac_cv_sizeof_rlim_t+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
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.
6315cat >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
6325int
6326main ()
6327{
6328static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) >= 0)];
6329test_array [0] = 0
6330
6331 ;
6332 return 0;
6333}
6334_ACEOF
6335rm -f conftest.$ac_objext
6336if { (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
6359int
6360main ()
6361{
6362static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) <= $ac_mid)];
6363test_array [0] = 0
6364
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369rm -f conftest.$ac_objext
6370if { (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
6382else
6383 echo "$as_me: failed program was:" >&5
6384cat conftest.$ac_ext >&5
6385ac_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`
6391fi
6392rm -f conftest.$ac_objext conftest.$ac_ext
6393 done
6394else
6395 echo "$as_me: failed program was:" >&5
6396cat conftest.$ac_ext >&5
6397cat >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
6407int
6408main ()
6409{
6410static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) < 0)];
6411test_array [0] = 0
6412
6413 ;
6414 return 0;
6415}
6416_ACEOF
6417rm -f conftest.$ac_objext
6418if { (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
6441int
6442main ()
6443{
6444static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) >= $ac_mid)];
6445test_array [0] = 0
6446
6447 ;
6448 return 0;
6449}
6450_ACEOF
6451rm -f conftest.$ac_objext
6452if { (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
6464else
6465 echo "$as_me: failed program was:" >&5
6466cat conftest.$ac_ext >&5
6467ac_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`
6473fi
6474rm -f conftest.$ac_objext conftest.$ac_ext
6475 done
6476else
6477 echo "$as_me: failed program was:" >&5
6478cat conftest.$ac_ext >&5
6479ac_lo= ac_hi=
6480fi
6481rm -f conftest.$ac_objext conftest.$ac_ext
6482fi
6483rm -f conftest.$ac_objext conftest.$ac_ext
6484# Binary search between lo and hi bounds.
6485while 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
6497int
6498main ()
6499{
6500static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) <= $ac_mid)];
6501test_array [0] = 0
6502
6503 ;
6504 return 0;
6505}
6506_ACEOF
6507rm -f conftest.$ac_objext
6508if { (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
6520else
6521 echo "$as_me: failed program was:" >&5
6522cat conftest.$ac_ext >&5
6523ac_lo=`expr '(' $ac_mid ')' + 1`
6524fi
6525rm -f conftest.$ac_objext conftest.$ac_ext
6526done
6527case $ac_lo in
6528?*) ac_cv_sizeof_rlim_t=$ac_lo;;
6529'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t), 77" >&5
6530echo "$as_me: error: cannot compute sizeof (rlim_t), 77" >&2;}
6531 { (exit 1); exit 1; }; } ;;
6532esac
6533else
6534 if test "$cross_compiling" = yes; then
6535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6536echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6537 { (exit 1); exit 1; }; }
6538else
6539 cat >conftest.$ac_ext <<_ACEOF
6540#line $LINENO "configure"
6541#include "confdefs.h"
6542$ac_includes_default
6543long longval () { return (long) (sizeof (rlim_t)); }
6544unsigned 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
6553int
6554main ()
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
6580rm -f conftest$ac_exeext
6581if { (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`
6592else
6593 echo "$as_me: program exited with status $ac_status" >&5
6594echo "$as_me: failed program was:" >&5
6595cat conftest.$ac_ext >&5
6596( exit $ac_status )
6597{ { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t), 77" >&5
6598echo "$as_me: error: cannot compute sizeof (rlim_t), 77" >&2;}
6599 { (exit 1); exit 1; }; }
6600fi
6601rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6602fi
6603fi
6604rm -f conftest.val
6605else
6606 ac_cv_sizeof_rlim_t=0
6607fi
6608fi
6609echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5
6610echo "${ECHO_T}$ac_cv_sizeof_rlim_t" >&6
6611cat >>confdefs.h <<_ACEOF
6612#define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
6613_ACEOF
6614
6615
6616if test "$ac_cv_sizeof_rlim_t" = 8 ; then
6617cat >>confdefs.h <<\_ACEOF
6618#define LONG_LONG_RLIM_T 1
6619_ACEOF
6620
6621fi
6622
a3641d1f 6623
19d3ff1a 6624echo "$as_me:$LINENO: checking what kind of nonblocking sockets you have" >&5
6625echo $ECHO_N "checking what kind of nonblocking sockets you have... $ECHO_C" >&6
6626if test "${ac_cv_nonblocking+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 6628else
19d3ff1a 6629
33f23cef 6630save_libs="$LIBS"
6631LIBS="$LIBS $SOCKLIB"
a3641d1f 6632if test "$cross_compiling" = yes; then
19d3ff1a 6633 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6634echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6635 { (exit 1); exit 1; }; }
a3641d1f 6636else
19d3ff1a 6637 cat >conftest.$ac_ext <<_ACEOF
6638#line $LINENO "configure"
a3641d1f 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>
6647alarmed() {
6648exit(1);
6649}
6650int main() {
6651#ifdef O_NONBLOCK
6652char b[12], x[32];
6653int f, l = sizeof(x);
6654f = socket(AF_INET, SOCK_DGRAM, 0);
6655if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) {
6656signal(SIGALRM, alarmed);
6657alarm(3);
6658recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6659alarm(0);
6660exit(0);
6661}
6662#endif
6663exit(1);
6664}
6665
19d3ff1a 6666_ACEOF
6667rm -f conftest$ac_exeext
6668if { (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
a3641d1f 6678 ac_cv_nonblocking=O_NONBLOCK
6679else
19d3ff1a 6680 echo "$as_me: program exited with status $ac_status" >&5
6681echo "$as_me: failed program was:" >&5
6682cat conftest.$ac_ext >&5
6683( exit $ac_status )
6684
a3641d1f 6685if test "$cross_compiling" = yes; then
19d3ff1a 6686 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6687echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6688 { (exit 1); exit 1; }; }
a3641d1f 6689else
19d3ff1a 6690 cat >conftest.$ac_ext <<_ACEOF
6691#line $LINENO "configure"
a3641d1f 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>
6700alarmed() {
6701exit(0);
6702}
6703int main() {
6704#ifdef O_NDELAY
6705char b[12], x[32];
6706int f, l = sizeof(x);
6707f = socket(AF_INET, SOCK_DGRAM, 0);
6708if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) {
6709signal(SIGALRM, alarmed);
6710alarm(3);
6711recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6712alarm(0);
6713exit(0);
6714}
6715#endif
6716exit(1);
6717}
19d3ff1a 6718_ACEOF
6719rm -f conftest$ac_exeext
6720if { (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
a3641d1f 6730 ac_cv_nonblocking=O_NDELAY
6731else
19d3ff1a 6732 echo "$as_me: program exited with status $ac_status" >&5
6733echo "$as_me: failed program was:" >&5
6734cat conftest.$ac_ext >&5
6735( exit $ac_status )
6736
a3641d1f 6737if test "$cross_compiling" = yes; then
19d3ff1a 6738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6739echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6740 { (exit 1); exit 1; }; }
a3641d1f 6741else
19d3ff1a 6742 cat >conftest.$ac_ext <<_ACEOF
6743#line $LINENO "configure"
a3641d1f 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>
6752alarmed() {
6753exit(1);
6754}
6755int main() {
6756#ifdef FIONBIO
6757char b[12], x[32];
6758int f, l = sizeof(x);
6759f = socket(AF_INET, SOCK_DGRAM, 0);
6760if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) {
6761signal(SIGALRM, alarmed);
6762alarm(3);
6763recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6764alarm(0);
6765exit(0);
6766}
6767#endif
6768exit(1);
6769
19d3ff1a 6770_ACEOF
6771rm -f conftest$ac_exeext
6772if { (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
a3641d1f 6782 ac_cv_nonblocking=FIONBIO
6783else
19d3ff1a 6784 echo "$as_me: program exited with status $ac_status" >&5
6785echo "$as_me: failed program was:" >&5
6786cat conftest.$ac_ext >&5
6787( exit $ac_status )
6788ac_cv_nonblocking=none
a3641d1f 6789fi
19d3ff1a 6790rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 6791fi
a3641d1f 6792fi
19d3ff1a 6793rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 6794fi
a3641d1f 6795fi
19d3ff1a 6796rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 6797fi
a3641d1f 6798fi
19d3ff1a 6799echo "$as_me:$LINENO: result: $ac_cv_nonblocking" >&5
6800echo "${ECHO_T}$ac_cv_nonblocking" >&6
a3641d1f 6801if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then
19d3ff1a 6802cat >>confdefs.h <<\_ACEOF
a3641d1f 6803#define NBLOCK_POSIX 1
19d3ff1a 6804_ACEOF
a3641d1f 6805
6806elif test "$ac_cv_nonblocking" = "O_NDELAY"; then
19d3ff1a 6807cat >>confdefs.h <<\_ACEOF
a3641d1f 6808#define NBLOCK_BSD 1
19d3ff1a 6809_ACEOF
a3641d1f 6810
6811elif test "$ac_cv_nonblocking" = "FIONBIO"; then
19d3ff1a 6812cat >>confdefs.h <<\_ACEOF
a3641d1f 6813#define NBLOCK_SYSV 1
19d3ff1a 6814_ACEOF
a3641d1f 6815
6816fi
33f23cef 6817LIBS="$save_libs"
19d3ff1a 6818if test $ac_cv_c_compiler_gnu = yes; then
6819 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6820echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6821if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 6823else
6824 ac_pattern="Autoconf.*'x'"
19d3ff1a 6825 cat >conftest.$ac_ext <<_ACEOF
6826#line $LINENO "configure"
a3641d1f 6827#include "confdefs.h"
6828#include <sgtty.h>
6829Autoconf TIOCGETP
19d3ff1a 6830_ACEOF
a3641d1f 6831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832 egrep "$ac_pattern" >/dev/null 2>&1; then
a3641d1f 6833 ac_cv_prog_gcc_traditional=yes
6834else
a3641d1f 6835 ac_cv_prog_gcc_traditional=no
6836fi
6837rm -f conftest*
6838
6839
6840 if test $ac_cv_prog_gcc_traditional = no; then
19d3ff1a 6841 cat >conftest.$ac_ext <<_ACEOF
6842#line $LINENO "configure"
a3641d1f 6843#include "confdefs.h"
6844#include <termio.h>
6845Autoconf TCGETA
19d3ff1a 6846_ACEOF
a3641d1f 6847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 egrep "$ac_pattern" >/dev/null 2>&1; then
a3641d1f 6849 ac_cv_prog_gcc_traditional=yes
6850fi
6851rm -f conftest*
6852
6853 fi
6854fi
19d3ff1a 6855echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6856echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
a3641d1f 6857 if test $ac_cv_prog_gcc_traditional = yes; then
6858 CC="$CC -traditional"
6859 fi
6860fi
6861
19d3ff1a 6862echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
6863echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
6864if test "${ac_cv_func_setpgrp_void+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 6866else
6867 if test "$cross_compiling" = yes; then
19d3ff1a 6868 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
6869echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
6870 { (exit 1); exit 1; }; }
a3641d1f 6871else
19d3ff1a 6872 cat >conftest.$ac_ext <<_ACEOF
6873#line $LINENO "configure"
a3641d1f 6874#include "confdefs.h"
19d3ff1a 6875#if HAVE_UNISTD_H
6876# include <unistd.h>
a3641d1f 6877#endif
6878
19d3ff1a 6879#ifdef F77_DUMMY_MAIN
6880# ifdef __cplusplus
6881 extern "C"
6882# endif
6883 int F77_DUMMY_MAIN() { return 1; }
6884#endif
6885int
6886main ()
a3641d1f 6887{
19d3ff1a 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;
a3641d1f 6894}
19d3ff1a 6895_ACEOF
6896rm -f conftest$ac_exeext
6897if { (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
a3641d1f 6907 ac_cv_func_setpgrp_void=no
6908else
19d3ff1a 6909 echo "$as_me: program exited with status $ac_status" >&5
6910echo "$as_me: failed program was:" >&5
6911cat conftest.$ac_ext >&5
6912( exit $ac_status )
6913ac_cv_func_setpgrp_void=yes
a3641d1f 6914fi
19d3ff1a 6915rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 6916fi
a3641d1f 6917fi
19d3ff1a 6918echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
6919echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3641d1f 6920if test $ac_cv_func_setpgrp_void = yes; then
19d3ff1a 6921
6922cat >>confdefs.h <<\_ACEOF
a3641d1f 6923#define SETPGRP_VOID 1
19d3ff1a 6924_ACEOF
a3641d1f 6925
6926fi
6927
19d3ff1a 6928echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
6929echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
6930if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 6932else
6933 if test "$cross_compiling" = yes; then
19d3ff1a 6934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6935echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6936 { (exit 1); exit 1; }; }
a3641d1f 6937else
19d3ff1a 6938 cat >conftest.$ac_ext <<_ACEOF
6939#line $LINENO "configure"
a3641d1f 6940#include "confdefs.h"
6941#include <stdio.h>
6942/* If setvbuf has the reversed format, exit 0. */
19d3ff1a 6943int
6944main ()
6945{
a3641d1f 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}
19d3ff1a 6954_ACEOF
6955rm -f conftest$ac_exeext
6956if { (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
a3641d1f 6966 ac_cv_func_setvbuf_reversed=yes
6967else
19d3ff1a 6968 echo "$as_me: program exited with status $ac_status" >&5
6969echo "$as_me: failed program was:" >&5
6970cat conftest.$ac_ext >&5
6971( exit $ac_status )
6972ac_cv_func_setvbuf_reversed=no
a3641d1f 6973fi
19d3ff1a 6974rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 6975fi
a3641d1f 6976rm -f core core.* *.core
6977fi
19d3ff1a 6978echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
6979echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
a3641d1f 6980if test $ac_cv_func_setvbuf_reversed = yes; then
19d3ff1a 6981
6982cat >>confdefs.h <<\_ACEOF
a3641d1f 6983#define SETVBUF_REVERSED 1
19d3ff1a 6984_ACEOF
a3641d1f 6985
6986fi
6987
19d3ff1a 6988
c2dc1e49 6989for ac_func in snprintf
6990do
19d3ff1a 6991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6992echo "$as_me:$LINENO: checking for $ac_func" >&5
6993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6994if eval "test \"\${$as_ac_var+set}\" = set"; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 cat >conftest.$ac_ext <<_ACEOF
6998#line $LINENO "configure"
c2dc1e49 6999#include "confdefs.h"
7000/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7001 which can conflict with char $ac_func (); below. */
c2dc1e49 7002#include <assert.h>
7003/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7004#ifdef __cplusplus
7005extern "C"
7006#endif
c2dc1e49 7007/* We use char because int might match the return type of a gcc2
19d3ff1a 7008 builtin and then its argument prototype would still apply. */
7009char $ac_func ();
7010char (*f) ();
7011
7012#ifdef F77_DUMMY_MAIN
7013# ifdef __cplusplus
7014 extern "C"
7015# endif
7016 int F77_DUMMY_MAIN() { return 1; }
7017#endif
7018int
7019main ()
7020{
c2dc1e49 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)
7025choke me
7026#else
19d3ff1a 7027f = $ac_func;
c2dc1e49 7028#endif
7029
19d3ff1a 7030 ;
7031 return 0;
7032}
7033_ACEOF
7034rm -f conftest.$ac_objext conftest$ac_exeext
7035if { (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"
7047else
7048 echo "$as_me: failed program was:" >&5
7049cat conftest.$ac_ext >&5
7050eval "$as_ac_var=no"
7051fi
7052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7053fi
7054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7055echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7056if 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
c2dc1e49 7061#define HAVE_SNPRINTF 1
19d3ff1a 7062_ACEOF
c2dc1e49 7063
c2dc1e49 7064fi
7065done
7066
19d3ff1a 7067
c2dc1e49 7068for ac_func in vsnprintf
7069do
19d3ff1a 7070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7071echo "$as_me:$LINENO: checking for $ac_func" >&5
7072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7073if eval "test \"\${$as_ac_var+set}\" = set"; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 cat >conftest.$ac_ext <<_ACEOF
7077#line $LINENO "configure"
c2dc1e49 7078#include "confdefs.h"
7079/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7080 which can conflict with char $ac_func (); below. */
c2dc1e49 7081#include <assert.h>
7082/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7083#ifdef __cplusplus
7084extern "C"
7085#endif
c2dc1e49 7086/* We use char because int might match the return type of a gcc2
19d3ff1a 7087 builtin and then its argument prototype would still apply. */
7088char $ac_func ();
7089char (*f) ();
7090
7091#ifdef F77_DUMMY_MAIN
7092# ifdef __cplusplus
7093 extern "C"
7094# endif
7095 int F77_DUMMY_MAIN() { return 1; }
7096#endif
7097int
7098main ()
7099{
c2dc1e49 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)
7104choke me
7105#else
19d3ff1a 7106f = $ac_func;
c2dc1e49 7107#endif
7108
19d3ff1a 7109 ;
7110 return 0;
7111}
7112_ACEOF
7113rm -f conftest.$ac_objext conftest$ac_exeext
7114if { (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"
7126else
7127 echo "$as_me: failed program was:" >&5
7128cat conftest.$ac_ext >&5
7129eval "$as_ac_var=no"
7130fi
7131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7132fi
7133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7135if 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
c2dc1e49 7140#define HAVE_VSNPRINTF 1
19d3ff1a 7141_ACEOF
c2dc1e49 7142
c2dc1e49 7143fi
7144done
7145
19d3ff1a 7146
c2dc1e49 7147for ac_func in strlcpy
7148do
19d3ff1a 7149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7150echo "$as_me:$LINENO: checking for $ac_func" >&5
7151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7152if eval "test \"\${$as_ac_var+set}\" = set"; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 cat >conftest.$ac_ext <<_ACEOF
7156#line $LINENO "configure"
c2dc1e49 7157#include "confdefs.h"
7158/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7159 which can conflict with char $ac_func (); below. */
c2dc1e49 7160#include <assert.h>
7161/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7162#ifdef __cplusplus
7163extern "C"
7164#endif
c2dc1e49 7165/* We use char because int might match the return type of a gcc2
19d3ff1a 7166 builtin and then its argument prototype would still apply. */
7167char $ac_func ();
7168char (*f) ();
7169
7170#ifdef F77_DUMMY_MAIN
7171# ifdef __cplusplus
7172 extern "C"
7173# endif
7174 int F77_DUMMY_MAIN() { return 1; }
7175#endif
7176int
7177main ()
7178{
c2dc1e49 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)
7183choke me
7184#else
19d3ff1a 7185f = $ac_func;
c2dc1e49 7186#endif
7187
19d3ff1a 7188 ;
7189 return 0;
7190}
7191_ACEOF
7192rm -f conftest.$ac_objext conftest$ac_exeext
7193if { (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"
7205else
7206 echo "$as_me: failed program was:" >&5
7207cat conftest.$ac_ext >&5
7208eval "$as_ac_var=no"
7209fi
7210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7211fi
7212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7214if 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
c2dc1e49 7219#define HAVE_STRLCPY 1
19d3ff1a 7220_ACEOF
c2dc1e49 7221
c2dc1e49 7222fi
7223done
7224
19d3ff1a 7225
c2dc1e49 7226for ac_func in strlcat
7227do
19d3ff1a 7228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7229echo "$as_me:$LINENO: checking for $ac_func" >&5
7230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7231if eval "test \"\${$as_ac_var+set}\" = set"; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233else
7234 cat >conftest.$ac_ext <<_ACEOF
7235#line $LINENO "configure"
c2dc1e49 7236#include "confdefs.h"
7237/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7238 which can conflict with char $ac_func (); below. */
c2dc1e49 7239#include <assert.h>
7240/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7241#ifdef __cplusplus
7242extern "C"
7243#endif
c2dc1e49 7244/* We use char because int might match the return type of a gcc2
19d3ff1a 7245 builtin and then its argument prototype would still apply. */
7246char $ac_func ();
7247char (*f) ();
7248
7249#ifdef F77_DUMMY_MAIN
7250# ifdef __cplusplus
7251 extern "C"
7252# endif
7253 int F77_DUMMY_MAIN() { return 1; }
7254#endif
7255int
7256main ()
7257{
c2dc1e49 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)
7262choke me
7263#else
19d3ff1a 7264f = $ac_func;
c2dc1e49 7265#endif
7266
19d3ff1a 7267 ;
7268 return 0;
7269}
7270_ACEOF
7271rm -f conftest.$ac_objext conftest$ac_exeext
7272if { (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"
7284else
7285 echo "$as_me: failed program was:" >&5
7286cat conftest.$ac_ext >&5
7287eval "$as_ac_var=no"
7288fi
7289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290fi
7291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7293if 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
c2dc1e49 7298#define HAVE_STRLCAT 1
19d3ff1a 7299_ACEOF
c2dc1e49 7300
c2dc1e49 7301fi
7302done
7303
19d3ff1a 7304
c2dc1e49 7305for ac_func in strlncat
7306do
19d3ff1a 7307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7308echo "$as_me:$LINENO: checking for $ac_func" >&5
7309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7310if eval "test \"\${$as_ac_var+set}\" = set"; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 cat >conftest.$ac_ext <<_ACEOF
7314#line $LINENO "configure"
c2dc1e49 7315#include "confdefs.h"
7316/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7317 which can conflict with char $ac_func (); below. */
c2dc1e49 7318#include <assert.h>
7319/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7320#ifdef __cplusplus
7321extern "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. */
7325char $ac_func ();
7326char (*f) ();
7327
7328#ifdef F77_DUMMY_MAIN
7329# ifdef __cplusplus
7330 extern "C"
7331# endif
7332 int F77_DUMMY_MAIN() { return 1; }
7333#endif
7334int
7335main ()
7336{
c2dc1e49 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)
7341choke me
7342#else
19d3ff1a 7343f = $ac_func;
c2dc1e49 7344#endif
7345
19d3ff1a 7346 ;
7347 return 0;
7348}
7349_ACEOF
7350rm -f conftest.$ac_objext conftest$ac_exeext
7351if { (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"
7363else
7364 echo "$as_me: failed program was:" >&5
7365cat conftest.$ac_ext >&5
7366eval "$as_ac_var=no"
7367fi
7368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7369fi
7370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7372if 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
c2dc1e49 7377#define HAVE_STRLNCAT 1
19d3ff1a 7378_ACEOF
c2dc1e49 7379
c2dc1e49 7380fi
7381done
7382
7383
19d3ff1a 7384echo "$as_me:$LINENO: checking if we can set the core size to unlimited" >&5
7385echo $ECHO_N "checking if we can set the core size to unlimited... $ECHO_C" >&6
7386if test "${ac_cv_force_core+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 7388else
19d3ff1a 7389
a3641d1f 7390if test "$cross_compiling" = yes; then
19d3ff1a 7391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7392echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7393 { (exit 1); exit 1; }; }
a3641d1f 7394else
19d3ff1a 7395 cat >conftest.$ac_ext <<_ACEOF
7396#line $LINENO "configure"
a3641d1f 7397#include "confdefs.h"
7398
7399#include <sys/time.h>
7400#include <sys/resource.h>
7401#include <unistd.h>
7402int main() {
7403struct rlimit corelim;
7404corelim.rlim_cur = corelim.rlim_max = RLIM_INFINITY;
7405if (setrlimit(RLIMIT_CORE, &corelim))
7406exit(1);
7407exit(0);
7408}
7409
19d3ff1a 7410_ACEOF
7411rm -f conftest$ac_exeext
7412if { (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
a3641d1f 7422 ac_cv_force_core=yes
7423else
19d3ff1a 7424 echo "$as_me: program exited with status $ac_status" >&5
7425echo "$as_me: failed program was:" >&5
7426cat conftest.$ac_ext >&5
7427( exit $ac_status )
7428ac_cv_force_core=no
a3641d1f 7429fi
19d3ff1a 7430rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 7431fi
7432
a3641d1f 7433fi
19d3ff1a 7434echo "$as_me:$LINENO: result: $ac_cv_force_core" >&5
7435echo "${ECHO_T}$ac_cv_force_core" >&6
a3641d1f 7436if test "$ac_cv_force_core" = "yes"; then
19d3ff1a 7437cat >>confdefs.h <<\_ACEOF
a3641d1f 7438#define FORCE_CORE 1
19d3ff1a 7439_ACEOF
a3641d1f 7440
7441fi
19d3ff1a 7442
7443for ac_func in vprintf
7444do
7445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7446echo "$as_me:$LINENO: checking for $ac_func" >&5
7447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7448if eval "test \"\${$as_ac_var+set}\" = set"; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451 cat >conftest.$ac_ext <<_ACEOF
7452#line $LINENO "configure"
a3641d1f 7453#include "confdefs.h"
7454/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7455 which can conflict with char $ac_func (); below. */
a3641d1f 7456#include <assert.h>
7457/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7458#ifdef __cplusplus
7459extern "C"
7460#endif
a3641d1f 7461/* We use char because int might match the return type of a gcc2
19d3ff1a 7462 builtin and then its argument prototype would still apply. */
7463char $ac_func ();
7464char (*f) ();
7465
7466#ifdef F77_DUMMY_MAIN
7467# ifdef __cplusplus
7468 extern "C"
7469# endif
7470 int F77_DUMMY_MAIN() { return 1; }
7471#endif
7472int
7473main ()
7474{
a3641d1f 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. */
19d3ff1a 7478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3641d1f 7479choke me
7480#else
19d3ff1a 7481f = $ac_func;
a3641d1f 7482#endif
7483
19d3ff1a 7484 ;
7485 return 0;
7486}
7487_ACEOF
7488rm -f conftest.$ac_objext conftest$ac_exeext
7489if { (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"
7501else
7502 echo "$as_me: failed program was:" >&5
7503cat conftest.$ac_ext >&5
7504eval "$as_ac_var=no"
7505fi
7506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7507fi
7508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7510if 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
7515echo "$as_me:$LINENO: checking for _doprnt" >&5
7516echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7517if test "${ac_cv_func__doprnt+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 cat >conftest.$ac_ext <<_ACEOF
7521#line $LINENO "configure"
a3641d1f 7522#include "confdefs.h"
7523/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7524 which can conflict with char _doprnt (); below. */
a3641d1f 7525#include <assert.h>
7526/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7527#ifdef __cplusplus
7528extern "C"
7529#endif
a3641d1f 7530/* We use char because int might match the return type of a gcc2
19d3ff1a 7531 builtin and then its argument prototype would still apply. */
7532char _doprnt ();
7533char (*f) ();
7534
7535#ifdef F77_DUMMY_MAIN
7536# ifdef __cplusplus
7537 extern "C"
7538# endif
7539 int F77_DUMMY_MAIN() { return 1; }
7540#endif
7541int
7542main ()
7543{
a3641d1f 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)
7548choke me
7549#else
19d3ff1a 7550f = _doprnt;
a3641d1f 7551#endif
7552
19d3ff1a 7553 ;
7554 return 0;
7555}
7556_ACEOF
7557rm -f conftest.$ac_objext conftest$ac_exeext
7558if { (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
7570else
7571 echo "$as_me: failed program was:" >&5
7572cat conftest.$ac_ext >&5
7573ac_cv_func__doprnt=no
7574fi
7575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7576fi
7577echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7578echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7579if test $ac_cv_func__doprnt = yes; then
7580
7581cat >>confdefs.h <<\_ACEOF
a3641d1f 7582#define HAVE_DOPRNT 1
19d3ff1a 7583_ACEOF
a3641d1f 7584
a3641d1f 7585fi
7586
7587fi
19d3ff1a 7588done
7589
7590
a3641d1f 7591
7592for ac_func in gettimeofday
7593do
19d3ff1a 7594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7595echo "$as_me:$LINENO: checking for $ac_func" >&5
7596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7597if eval "test \"\${$as_ac_var+set}\" = set"; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600 cat >conftest.$ac_ext <<_ACEOF
7601#line $LINENO "configure"
a3641d1f 7602#include "confdefs.h"
7603/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7604 which can conflict with char $ac_func (); below. */
a3641d1f 7605#include <assert.h>
7606/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7607#ifdef __cplusplus
7608extern "C"
7609#endif
a3641d1f 7610/* We use char because int might match the return type of a gcc2
19d3ff1a 7611 builtin and then its argument prototype would still apply. */
7612char $ac_func ();
7613char (*f) ();
7614
7615#ifdef F77_DUMMY_MAIN
7616# ifdef __cplusplus
7617 extern "C"
7618# endif
7619 int F77_DUMMY_MAIN() { return 1; }
7620#endif
7621int
7622main ()
7623{
a3641d1f 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)
7628choke me
7629#else
19d3ff1a 7630f = $ac_func;
a3641d1f 7631#endif
7632
19d3ff1a 7633 ;
7634 return 0;
7635}
7636_ACEOF
7637rm -f conftest.$ac_objext conftest$ac_exeext
7638if { (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"
7650else
7651 echo "$as_me: failed program was:" >&5
7652cat conftest.$ac_ext >&5
7653eval "$as_ac_var=no"
7654fi
7655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7656fi
7657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7659if 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
a3641d1f 7664#define GETTIMEOFDAY 1
19d3ff1a 7665_ACEOF
a3641d1f 7666
7667else
19d3ff1a 7668
a3641d1f 7669for ac_func in lrand48
7670do
19d3ff1a 7671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7672echo "$as_me:$LINENO: checking for $ac_func" >&5
7673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7674if eval "test \"\${$as_ac_var+set}\" = set"; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 cat >conftest.$ac_ext <<_ACEOF
7678#line $LINENO "configure"
a3641d1f 7679#include "confdefs.h"
7680/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7681 which can conflict with char $ac_func (); below. */
a3641d1f 7682#include <assert.h>
7683/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7684#ifdef __cplusplus
7685extern "C"
7686#endif
a3641d1f 7687/* We use char because int might match the return type of a gcc2
19d3ff1a 7688 builtin and then its argument prototype would still apply. */
7689char $ac_func ();
7690char (*f) ();
7691
7692#ifdef F77_DUMMY_MAIN
7693# ifdef __cplusplus
7694 extern "C"
7695# endif
7696 int F77_DUMMY_MAIN() { return 1; }
7697#endif
7698int
7699main ()
7700{
a3641d1f 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)
7705choke me
7706#else
19d3ff1a 7707f = $ac_func;
a3641d1f 7708#endif
7709
19d3ff1a 7710 ;
7711 return 0;
7712}
7713_ACEOF
7714rm -f conftest.$ac_objext conftest$ac_exeext
7715if { (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"
7727else
7728 echo "$as_me: failed program was:" >&5
7729cat conftest.$ac_ext >&5
7730eval "$as_ac_var=no"
7731fi
7732rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7733fi
7734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7736if 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
a3641d1f 7741#define LRADN48 1
19d3ff1a 7742_ACEOF
a3641d1f 7743
a3641d1f 7744fi
7745done
7746
7747fi
7748done
7749
19d3ff1a 7750
a3641d1f 7751for ac_func in getrusage
7752do
19d3ff1a 7753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7754echo "$as_me:$LINENO: checking for $ac_func" >&5
7755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7756if eval "test \"\${$as_ac_var+set}\" = set"; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759 cat >conftest.$ac_ext <<_ACEOF
7760#line $LINENO "configure"
a3641d1f 7761#include "confdefs.h"
7762/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7763 which can conflict with char $ac_func (); below. */
a3641d1f 7764#include <assert.h>
7765/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7766#ifdef __cplusplus
7767extern "C"
7768#endif
a3641d1f 7769/* We use char because int might match the return type of a gcc2
19d3ff1a 7770 builtin and then its argument prototype would still apply. */
7771char $ac_func ();
7772char (*f) ();
7773
7774#ifdef F77_DUMMY_MAIN
7775# ifdef __cplusplus
7776 extern "C"
7777# endif
7778 int F77_DUMMY_MAIN() { return 1; }
7779#endif
7780int
7781main ()
7782{
a3641d1f 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)
7787choke me
7788#else
19d3ff1a 7789f = $ac_func;
a3641d1f 7790#endif
7791
19d3ff1a 7792 ;
7793 return 0;
7794}
7795_ACEOF
7796rm -f conftest.$ac_objext conftest$ac_exeext
7797if { (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"
7809else
7810 echo "$as_me: failed program was:" >&5
7811cat conftest.$ac_ext >&5
7812eval "$as_ac_var=no"
7813fi
7814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7815fi
7816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7817echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7818if 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
a3641d1f 7823#define GETRUSAGE_2 1
19d3ff1a 7824_ACEOF
a3641d1f 7825
7826else
19d3ff1a 7827
a3641d1f 7828for ac_func in times
7829do
19d3ff1a 7830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7831echo "$as_me:$LINENO: checking for $ac_func" >&5
7832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7833if eval "test \"\${$as_ac_var+set}\" = set"; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836 cat >conftest.$ac_ext <<_ACEOF
7837#line $LINENO "configure"
a3641d1f 7838#include "confdefs.h"
7839/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7840 which can conflict with char $ac_func (); below. */
a3641d1f 7841#include <assert.h>
7842/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7843#ifdef __cplusplus
7844extern "C"
7845#endif
a3641d1f 7846/* We use char because int might match the return type of a gcc2
19d3ff1a 7847 builtin and then its argument prototype would still apply. */
7848char $ac_func ();
7849char (*f) ();
7850
7851#ifdef F77_DUMMY_MAIN
7852# ifdef __cplusplus
7853 extern "C"
7854# endif
7855 int F77_DUMMY_MAIN() { return 1; }
7856#endif
7857int
7858main ()
7859{
a3641d1f 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)
7864choke me
7865#else
19d3ff1a 7866f = $ac_func;
a3641d1f 7867#endif
7868
19d3ff1a 7869 ;
7870 return 0;
7871}
7872_ACEOF
7873rm -f conftest.$ac_objext conftest$ac_exeext
7874if { (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"
7886else
7887 echo "$as_me: failed program was:" >&5
7888cat conftest.$ac_ext >&5
7889eval "$as_ac_var=no"
7890fi
7891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7892fi
7893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7895if 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
a3641d1f 7900#define TIMES_2 1
19d3ff1a 7901_ACEOF
a3641d1f 7902
a3641d1f 7903fi
7904done
7905
769b98a8 7906fi
7907done
7908
19d3ff1a 7909
769b98a8 7910for ac_func in setproctitle
7911do
19d3ff1a 7912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7913echo "$as_me:$LINENO: checking for $ac_func" >&5
7914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7915if eval "test \"\${$as_ac_var+set}\" = set"; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 cat >conftest.$ac_ext <<_ACEOF
7919#line $LINENO "configure"
769b98a8 7920#include "confdefs.h"
7921/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 7922 which can conflict with char $ac_func (); below. */
769b98a8 7923#include <assert.h>
7924/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7925#ifdef __cplusplus
7926extern "C"
7927#endif
769b98a8 7928/* We use char because int might match the return type of a gcc2
19d3ff1a 7929 builtin and then its argument prototype would still apply. */
7930char $ac_func ();
7931char (*f) ();
7932
7933#ifdef F77_DUMMY_MAIN
7934# ifdef __cplusplus
7935 extern "C"
7936# endif
7937 int F77_DUMMY_MAIN() { return 1; }
7938#endif
7939int
7940main ()
7941{
769b98a8 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)
7946choke me
7947#else
19d3ff1a 7948f = $ac_func;
769b98a8 7949#endif
7950
19d3ff1a 7951 ;
7952 return 0;
7953}
7954_ACEOF
7955rm -f conftest.$ac_objext conftest$ac_exeext
7956if { (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"
7968else
7969 echo "$as_me: failed program was:" >&5
7970cat conftest.$ac_ext >&5
7971eval "$as_ac_var=no"
7972fi
7973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7974fi
7975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7977if 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
769b98a8 7982#define HAVE_SETPROCTITLE 1
19d3ff1a 7983_ACEOF
769b98a8 7984
7985else
19d3ff1a 7986
7987echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
7988echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
7989if test "${ac_cv_lib_util_setproctitle+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
769b98a8 7991else
19d3ff1a 7992 ac_check_lib_save_LIBS=$LIBS
769b98a8 7993LIBS="-lutil $LIBS"
19d3ff1a 7994cat >conftest.$ac_ext <<_ACEOF
7995#line $LINENO "configure"
769b98a8 7996#include "confdefs.h"
19d3ff1a 7997
769b98a8 7998/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 7999#ifdef __cplusplus
8000extern "C"
8001#endif
769b98a8 8002/* We use char because int might match the return type of a gcc2
19d3ff1a 8003 builtin and then its argument prototype would still apply. */
8004char setproctitle ();
8005#ifdef F77_DUMMY_MAIN
8006# ifdef __cplusplus
8007 extern "C"
8008# endif
8009 int F77_DUMMY_MAIN() { return 1; }
8010#endif
8011int
8012main ()
8013{
8014setproctitle ();
8015 ;
8016 return 0;
8017}
8018_ACEOF
8019rm -f conftest.$ac_objext conftest$ac_exeext
8020if { (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
8032else
8033 echo "$as_me: failed program was:" >&5
8034cat conftest.$ac_ext >&5
8035ac_cv_lib_util_setproctitle=no
8036fi
8037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8038LIBS=$ac_check_lib_save_LIBS
8039fi
8040echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
8041echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
8042if test $ac_cv_lib_util_setproctitle = yes; then
8043 cat >>confdefs.h <<\_ACEOF
769b98a8 8044#define HAVE_SETPROCTITLE 1
19d3ff1a 8045_ACEOF
769b98a8 8046 IRCDLIBS="$IRCDLIBS-lutil"
8047else
769b98a8 8048
19d3ff1a 8049cat >conftest.$ac_ext <<_ACEOF
8050#line $LINENO "configure"
769b98a8 8051#include "confdefs.h"
8052#include <sys/exec.h>
19d3ff1a 8053
8054_ACEOF
769b98a8 8055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8056 egrep "#define.*PS_STRINGS.*" >/dev/null 2>&1; then
19d3ff1a 8057 cat >>confdefs.h <<\_ACEOF
769b98a8 8058#define HAVE_PSSTRINGS 1
19d3ff1a 8059_ACEOF
769b98a8 8060
8061else
19d3ff1a 8062
8063
769b98a8 8064for ac_func in pstat
8065do
19d3ff1a 8066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8067echo "$as_me:$LINENO: checking for $ac_func" >&5
8068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8069if eval "test \"\${$as_ac_var+set}\" = set"; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072 cat >conftest.$ac_ext <<_ACEOF
8073#line $LINENO "configure"
769b98a8 8074#include "confdefs.h"
8075/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8076 which can conflict with char $ac_func (); below. */
769b98a8 8077#include <assert.h>
8078/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8079#ifdef __cplusplus
8080extern "C"
8081#endif
769b98a8 8082/* We use char because int might match the return type of a gcc2
19d3ff1a 8083 builtin and then its argument prototype would still apply. */
8084char $ac_func ();
8085char (*f) ();
8086
8087#ifdef F77_DUMMY_MAIN
8088# ifdef __cplusplus
8089 extern "C"
8090# endif
8091 int F77_DUMMY_MAIN() { return 1; }
8092#endif
8093int
8094main ()
8095{
769b98a8 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)
8100choke me
8101#else
19d3ff1a 8102f = $ac_func;
769b98a8 8103#endif
8104
19d3ff1a 8105 ;
8106 return 0;
8107}
8108_ACEOF
8109rm -f conftest.$ac_objext conftest$ac_exeext
8110if { (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"
8122else
8123 echo "$as_me: failed program was:" >&5
8124cat conftest.$ac_ext >&5
8125eval "$as_ac_var=no"
8126fi
8127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128fi
8129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8131if 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
769b98a8 8136#define HAVE_PSTAT 1
19d3ff1a 8137_ACEOF
769b98a8 8138
769b98a8 8139fi
8140done
8141
8142
8143fi
8144rm -f conftest*
8145
8146
8147fi
8148
8149
a3641d1f 8150fi
8151done
8152
19d3ff1a 8153echo "$as_me:$LINENO: checking what type of signals you have" >&5
8154echo $ECHO_N "checking what type of signals you have... $ECHO_C" >&6
8155if test "${ac_cv_sigtype+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 8157else
19d3ff1a 8158
a3641d1f 8159if test "$cross_compiling" = yes; then
19d3ff1a 8160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8161echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8162 { (exit 1); exit 1; }; }
a3641d1f 8163else
19d3ff1a 8164 cat >conftest.$ac_ext <<_ACEOF
8165#line $LINENO "configure"
a3641d1f 8166#include "confdefs.h"
8167
8168#include <signal.h>
8169int main() {
8170sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L);
8171}
8172
19d3ff1a 8173_ACEOF
8174rm -f conftest$ac_exeext
8175if { (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
a3641d1f 8185 ac_cv_sigtype=POSIX
8186else
19d3ff1a 8187 echo "$as_me: program exited with status $ac_status" >&5
8188echo "$as_me: failed program was:" >&5
8189cat conftest.$ac_ext >&5
8190( exit $ac_status )
8191
a3641d1f 8192if test "$cross_compiling" = yes; then
19d3ff1a 8193 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8194echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8195 { (exit 1); exit 1; }; }
a3641d1f 8196else
19d3ff1a 8197 cat >conftest.$ac_ext <<_ACEOF
8198#line $LINENO "configure"
a3641d1f 8199#include "confdefs.h"
8200
8201#include <signal.h>
8202int calls = 0;
8203void handler()
8204{
8205if (calls)
8206return;
8207calls++;
8208kill(getpid(), SIGTERM);
8209sleep(1);
8210}
8211
8212int main() {
8213signal(SIGTERM, handler);
8214kill(getpid(), SIGTERM);
8215exit(0);
8216}
8217
19d3ff1a 8218_ACEOF
8219rm -f conftest$ac_exeext
8220if { (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
a3641d1f 8230 ac_cv_sigtype=BSD
8231else
19d3ff1a 8232 echo "$as_me: program exited with status $ac_status" >&5
8233echo "$as_me: failed program was:" >&5
8234cat conftest.$ac_ext >&5
8235( exit $ac_status )
8236ac_cv_sigtype=SYSV
a3641d1f 8237fi
19d3ff1a 8238rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 8239fi
a3641d1f 8240fi
19d3ff1a 8241rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 8242fi
a3641d1f 8243fi
19d3ff1a 8244echo "$as_me:$LINENO: result: $ac_cv_sigtype" >&5
8245echo "${ECHO_T}$ac_cv_sigtype" >&6
a3641d1f 8246
8247if test "$ac_cv_sigtype" = "POSIX"; then
19d3ff1a 8248cat >>confdefs.h <<\_ACEOF
a3641d1f 8249#define POSIX_SIGNALS 1
19d3ff1a 8250_ACEOF
a3641d1f 8251
8252elif test "$ac_cv_sigtype" = "BSD"; then
19d3ff1a 8253cat >>confdefs.h <<\_ACEOF
a3641d1f 8254#define BSD_RELIABLE_SIGNALS 1
19d3ff1a 8255_ACEOF
a3641d1f 8256
8257else
19d3ff1a 8258cat >>confdefs.h <<\_ACEOF
a3641d1f 8259#define SYSV_UNRELIABLE_SIGNALS 1
19d3ff1a 8260_ACEOF
8261
8262fi
a3641d1f 8263
a3641d1f 8264for ac_func in strtoken
8265do
19d3ff1a 8266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8267echo "$as_me:$LINENO: checking for $ac_func" >&5
8268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8269if eval "test \"\${$as_ac_var+set}\" = set"; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 cat >conftest.$ac_ext <<_ACEOF
8273#line $LINENO "configure"
a3641d1f 8274#include "confdefs.h"
8275/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8276 which can conflict with char $ac_func (); below. */
a3641d1f 8277#include <assert.h>
8278/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8279#ifdef __cplusplus
8280extern "C"
8281#endif
a3641d1f 8282/* We use char because int might match the return type of a gcc2
19d3ff1a 8283 builtin and then its argument prototype would still apply. */
8284char $ac_func ();
8285char (*f) ();
8286
8287#ifdef F77_DUMMY_MAIN
8288# ifdef __cplusplus
8289 extern "C"
8290# endif
8291 int F77_DUMMY_MAIN() { return 1; }
8292#endif
8293int
8294main ()
8295{
a3641d1f 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)
8300choke me
8301#else
19d3ff1a 8302f = $ac_func;
a3641d1f 8303#endif
8304
19d3ff1a 8305 ;
8306 return 0;
8307}
8308_ACEOF
8309rm -f conftest.$ac_objext conftest$ac_exeext
8310if { (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"
8322else
8323 echo "$as_me: failed program was:" >&5
8324cat conftest.$ac_ext >&5
8325eval "$as_ac_var=no"
8326fi
8327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8328fi
8329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8331if 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
8336else
8337 cat >>confdefs.h <<\_ACEOF
a3641d1f 8338#define NEED_STRTOKEN 1
19d3ff1a 8339_ACEOF
a3641d1f 8340
8341fi
8342done
8343
19d3ff1a 8344
a3641d1f 8345for ac_func in strtok
8346do
19d3ff1a 8347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8348echo "$as_me:$LINENO: checking for $ac_func" >&5
8349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8350if eval "test \"\${$as_ac_var+set}\" = set"; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 cat >conftest.$ac_ext <<_ACEOF
8354#line $LINENO "configure"
a3641d1f 8355#include "confdefs.h"
8356/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8357 which can conflict with char $ac_func (); below. */
a3641d1f 8358#include <assert.h>
8359/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8360#ifdef __cplusplus
8361extern "C"
8362#endif
a3641d1f 8363/* We use char because int might match the return type of a gcc2
19d3ff1a 8364 builtin and then its argument prototype would still apply. */
8365char $ac_func ();
8366char (*f) ();
8367
8368#ifdef F77_DUMMY_MAIN
8369# ifdef __cplusplus
8370 extern "C"
8371# endif
8372 int F77_DUMMY_MAIN() { return 1; }
8373#endif
8374int
8375main ()
8376{
a3641d1f 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)
8381choke me
8382#else
19d3ff1a 8383f = $ac_func;
a3641d1f 8384#endif
8385
19d3ff1a 8386 ;
8387 return 0;
8388}
8389_ACEOF
8390rm -f conftest.$ac_objext conftest$ac_exeext
8391if { (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"
8403else
8404 echo "$as_me: failed program was:" >&5
8405cat conftest.$ac_ext >&5
8406eval "$as_ac_var=no"
8407fi
8408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8409fi
8410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8412if 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
8417else
8418 cat >>confdefs.h <<\_ACEOF
a3641d1f 8419#define NEED_STRTOK 1
19d3ff1a 8420_ACEOF
a3641d1f 8421
8422fi
8423done
8424
19d3ff1a 8425
a3641d1f 8426for ac_func in strerror
8427do
19d3ff1a 8428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8429echo "$as_me:$LINENO: checking for $ac_func" >&5
8430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8431if eval "test \"\${$as_ac_var+set}\" = set"; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433else
8434 cat >conftest.$ac_ext <<_ACEOF
8435#line $LINENO "configure"
a3641d1f 8436#include "confdefs.h"
8437/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8438 which can conflict with char $ac_func (); below. */
a3641d1f 8439#include <assert.h>
8440/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8441#ifdef __cplusplus
8442extern "C"
8443#endif
a3641d1f 8444/* We use char because int might match the return type of a gcc2
19d3ff1a 8445 builtin and then its argument prototype would still apply. */
8446char $ac_func ();
8447char (*f) ();
8448
8449#ifdef F77_DUMMY_MAIN
8450# ifdef __cplusplus
8451 extern "C"
8452# endif
8453 int F77_DUMMY_MAIN() { return 1; }
8454#endif
8455int
8456main ()
8457{
a3641d1f 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)
8462choke me
8463#else
19d3ff1a 8464f = $ac_func;
a3641d1f 8465#endif
8466
19d3ff1a 8467 ;
8468 return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext conftest$ac_exeext
8472if { (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"
8484else
8485 echo "$as_me: failed program was:" >&5
8486cat conftest.$ac_ext >&5
8487eval "$as_ac_var=no"
8488fi
8489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8490fi
8491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8493if 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
8498else
8499 cat >>confdefs.h <<\_ACEOF
a3641d1f 8500#define NEED_STRERROR 1
19d3ff1a 8501_ACEOF
a3641d1f 8502
8503fi
8504done
8505
19d3ff1a 8506
a3641d1f 8507for ac_func in index
8508do
19d3ff1a 8509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8510echo "$as_me:$LINENO: checking for $ac_func" >&5
8511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8512if eval "test \"\${$as_ac_var+set}\" = set"; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515 cat >conftest.$ac_ext <<_ACEOF
8516#line $LINENO "configure"
a3641d1f 8517#include "confdefs.h"
8518/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8519 which can conflict with char $ac_func (); below. */
a3641d1f 8520#include <assert.h>
8521/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8522#ifdef __cplusplus
8523extern "C"
8524#endif
a3641d1f 8525/* We use char because int might match the return type of a gcc2
19d3ff1a 8526 builtin and then its argument prototype would still apply. */
8527char $ac_func ();
8528char (*f) ();
8529
8530#ifdef F77_DUMMY_MAIN
8531# ifdef __cplusplus
8532 extern "C"
8533# endif
8534 int F77_DUMMY_MAIN() { return 1; }
8535#endif
8536int
8537main ()
8538{
a3641d1f 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)
8543choke me
8544#else
19d3ff1a 8545f = $ac_func;
a3641d1f 8546#endif
8547
19d3ff1a 8548 ;
8549 return 0;
8550}
8551_ACEOF
8552rm -f conftest.$ac_objext conftest$ac_exeext
8553if { (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"
8565else
8566 echo "$as_me: failed program was:" >&5
8567cat conftest.$ac_ext >&5
8568eval "$as_ac_var=no"
8569fi
8570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8571fi
8572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8574if 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
8579else
8580 cat >>confdefs.h <<\_ACEOF
a3641d1f 8581#define NOINDEX 1
19d3ff1a 8582_ACEOF
a3641d1f 8583
8584fi
8585done
8586
19d3ff1a 8587
a3641d1f 8588for ac_func in strtoul
8589do
19d3ff1a 8590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8591echo "$as_me:$LINENO: checking for $ac_func" >&5
8592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8593if eval "test \"\${$as_ac_var+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 cat >conftest.$ac_ext <<_ACEOF
8597#line $LINENO "configure"
a3641d1f 8598#include "confdefs.h"
8599/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8600 which can conflict with char $ac_func (); below. */
a3641d1f 8601#include <assert.h>
8602/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8603#ifdef __cplusplus
8604extern "C"
8605#endif
a3641d1f 8606/* We use char because int might match the return type of a gcc2
19d3ff1a 8607 builtin and then its argument prototype would still apply. */
8608char $ac_func ();
8609char (*f) ();
8610
8611#ifdef F77_DUMMY_MAIN
8612# ifdef __cplusplus
8613 extern "C"
8614# endif
8615 int F77_DUMMY_MAIN() { return 1; }
8616#endif
8617int
8618main ()
8619{
a3641d1f 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)
8624choke me
8625#else
19d3ff1a 8626f = $ac_func;
a3641d1f 8627#endif
8628
19d3ff1a 8629 ;
8630 return 0;
8631}
8632_ACEOF
8633rm -f conftest.$ac_objext conftest$ac_exeext
8634if { (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"
8646else
8647 echo "$as_me: failed program was:" >&5
8648cat conftest.$ac_ext >&5
8649eval "$as_ac_var=no"
8650fi
8651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8652fi
8653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8654echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8655if 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
8660else
8661 STRTOUL="strtoul.o"
a3641d1f 8662fi
8663done
8664
19d3ff1a 8665
a3641d1f 8666for ac_func in bcopy
8667do
19d3ff1a 8668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8669echo "$as_me:$LINENO: checking for $ac_func" >&5
8670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8671if eval "test \"\${$as_ac_var+set}\" = set"; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 cat >conftest.$ac_ext <<_ACEOF
8675#line $LINENO "configure"
a3641d1f 8676#include "confdefs.h"
8677/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8678 which can conflict with char $ac_func (); below. */
a3641d1f 8679#include <assert.h>
8680/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8681#ifdef __cplusplus
8682extern "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. */
8686char $ac_func ();
8687char (*f) ();
8688
8689#ifdef F77_DUMMY_MAIN
8690# ifdef __cplusplus
8691 extern "C"
8692# endif
8693 int F77_DUMMY_MAIN() { return 1; }
8694#endif
8695int
8696main ()
8697{
a3641d1f 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)
8702choke me
8703#else
19d3ff1a 8704f = $ac_func;
a3641d1f 8705#endif
8706
19d3ff1a 8707 ;
8708 return 0;
8709}
8710_ACEOF
8711rm -f conftest.$ac_objext conftest$ac_exeext
8712if { (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"
8724else
8725 echo "$as_me: failed program was:" >&5
8726cat conftest.$ac_ext >&5
8727eval "$as_ac_var=no"
8728fi
8729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8730fi
8731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8732echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8733if 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
8738else
8739 cat >>confdefs.h <<\_ACEOF
a3641d1f 8740#define NEED_BCOPY 1
19d3ff1a 8741_ACEOF
a3641d1f 8742
8743fi
8744done
8745
19d3ff1a 8746
a3641d1f 8747for ac_func in bcmp
8748do
19d3ff1a 8749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8750echo "$as_me:$LINENO: checking for $ac_func" >&5
8751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8752if eval "test \"\${$as_ac_var+set}\" = set"; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755 cat >conftest.$ac_ext <<_ACEOF
8756#line $LINENO "configure"
a3641d1f 8757#include "confdefs.h"
8758/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8759 which can conflict with char $ac_func (); below. */
a3641d1f 8760#include <assert.h>
8761/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8762#ifdef __cplusplus
8763extern "C"
8764#endif
a3641d1f 8765/* We use char because int might match the return type of a gcc2
19d3ff1a 8766 builtin and then its argument prototype would still apply. */
8767char $ac_func ();
8768char (*f) ();
8769
8770#ifdef F77_DUMMY_MAIN
8771# ifdef __cplusplus
8772 extern "C"
8773# endif
8774 int F77_DUMMY_MAIN() { return 1; }
8775#endif
8776int
8777main ()
8778{
a3641d1f 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)
8783choke me
8784#else
19d3ff1a 8785f = $ac_func;
a3641d1f 8786#endif
8787
19d3ff1a 8788 ;
8789 return 0;
8790}
8791_ACEOF
8792rm -f conftest.$ac_objext conftest$ac_exeext
8793if { (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"
8805else
8806 echo "$as_me: failed program was:" >&5
8807cat conftest.$ac_ext >&5
8808eval "$as_ac_var=no"
8809fi
8810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8811fi
8812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8814if 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
8819else
8820 cat >>confdefs.h <<\_ACEOF
a3641d1f 8821#define NEED_BCMP 1
19d3ff1a 8822_ACEOF
a3641d1f 8823
8824fi
8825done
8826
19d3ff1a 8827
a3641d1f 8828for ac_func in bzero
8829do
19d3ff1a 8830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8831echo "$as_me:$LINENO: checking for $ac_func" >&5
8832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8833if eval "test \"\${$as_ac_var+set}\" = set"; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835else
8836 cat >conftest.$ac_ext <<_ACEOF
8837#line $LINENO "configure"
a3641d1f 8838#include "confdefs.h"
8839/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8840 which can conflict with char $ac_func (); below. */
a3641d1f 8841#include <assert.h>
8842/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8843#ifdef __cplusplus
8844extern "C"
8845#endif
a3641d1f 8846/* We use char because int might match the return type of a gcc2
19d3ff1a 8847 builtin and then its argument prototype would still apply. */
8848char $ac_func ();
8849char (*f) ();
8850
8851#ifdef F77_DUMMY_MAIN
8852# ifdef __cplusplus
8853 extern "C"
8854# endif
8855 int F77_DUMMY_MAIN() { return 1; }
8856#endif
8857int
8858main ()
8859{
a3641d1f 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)
8864choke me
8865#else
19d3ff1a 8866f = $ac_func;
a3641d1f 8867#endif
8868
19d3ff1a 8869 ;
8870 return 0;
8871}
8872_ACEOF
8873rm -f conftest.$ac_objext conftest$ac_exeext
8874if { (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"
8886else
8887 echo "$as_me: failed program was:" >&5
8888cat conftest.$ac_ext >&5
8889eval "$as_ac_var=no"
8890fi
8891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8892fi
8893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8895if 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
8900else
8901 cat >>confdefs.h <<\_ACEOF
a3641d1f 8902#define NEED_BZERO 1
19d3ff1a 8903_ACEOF
a3641d1f 8904
8905fi
8906done
8907
19d3ff1a 8908
a3641d1f 8909for ac_func in strcasecmp
8910do
19d3ff1a 8911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8912echo "$as_me:$LINENO: checking for $ac_func" >&5
8913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8914if eval "test \"\${$as_ac_var+set}\" = set"; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916else
8917 cat >conftest.$ac_ext <<_ACEOF
8918#line $LINENO "configure"
a3641d1f 8919#include "confdefs.h"
8920/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 8921 which can conflict with char $ac_func (); below. */
a3641d1f 8922#include <assert.h>
8923/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 8924#ifdef __cplusplus
8925extern "C"
8926#endif
a3641d1f 8927/* We use char because int might match the return type of a gcc2
19d3ff1a 8928 builtin and then its argument prototype would still apply. */
8929char $ac_func ();
8930char (*f) ();
8931
8932#ifdef F77_DUMMY_MAIN
8933# ifdef __cplusplus
8934 extern "C"
8935# endif
8936 int F77_DUMMY_MAIN() { return 1; }
8937#endif
8938int
8939main ()
8940{
a3641d1f 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)
8945choke me
8946#else
19d3ff1a 8947f = $ac_func;
a3641d1f 8948#endif
8949
19d3ff1a 8950 ;
8951 return 0;
8952}
8953_ACEOF
8954rm -f conftest.$ac_objext conftest$ac_exeext
8955if { (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"
8967else
8968 echo "$as_me: failed program was:" >&5
8969cat conftest.$ac_ext >&5
8970eval "$as_ac_var=no"
8971fi
8972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8973fi
8974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976if 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
a3641d1f 8981#define GOT_STRCASECMP 1
19d3ff1a 8982_ACEOF
a3641d1f 8983
a3641d1f 8984fi
8985done
8986
33f23cef 8987save_libs="$LIBS"
8988LIBS="$LIBS $SOCKLIB $INETLIB"
19d3ff1a 8989
a3641d1f 8990for ac_func in inet_addr
8991do
19d3ff1a 8992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8993echo "$as_me:$LINENO: checking for $ac_func" >&5
8994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8995if eval "test \"\${$as_ac_var+set}\" = set"; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997else
8998 cat >conftest.$ac_ext <<_ACEOF
8999#line $LINENO "configure"
a3641d1f 9000#include "confdefs.h"
9001/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 9002 which can conflict with char $ac_func (); below. */
a3641d1f 9003#include <assert.h>
9004/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 9005#ifdef __cplusplus
9006extern "C"
9007#endif
a3641d1f 9008/* We use char because int might match the return type of a gcc2
19d3ff1a 9009 builtin and then its argument prototype would still apply. */
9010char $ac_func ();
9011char (*f) ();
9012
9013#ifdef F77_DUMMY_MAIN
9014# ifdef __cplusplus
9015 extern "C"
9016# endif
9017 int F77_DUMMY_MAIN() { return 1; }
9018#endif
9019int
9020main ()
9021{
a3641d1f 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)
9026choke me
9027#else
19d3ff1a 9028f = $ac_func;
a3641d1f 9029#endif
9030
19d3ff1a 9031 ;
9032 return 0;
9033}
9034_ACEOF
9035rm -f conftest.$ac_objext conftest$ac_exeext
9036if { (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"
9048else
9049 echo "$as_me: failed program was:" >&5
9050cat conftest.$ac_ext >&5
9051eval "$as_ac_var=no"
9052fi
9053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9054fi
9055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9057if 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
9062else
9063 cat >>confdefs.h <<\_ACEOF
a3641d1f 9064#define NEED_INET_ADDR 1
19d3ff1a 9065_ACEOF
a3641d1f 9066
9067fi
9068done
9069
19d3ff1a 9070
a3641d1f 9071for ac_func in inet_ntoa
9072do
19d3ff1a 9073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9074echo "$as_me:$LINENO: checking for $ac_func" >&5
9075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9076if eval "test \"\${$as_ac_var+set}\" = set"; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078else
9079 cat >conftest.$ac_ext <<_ACEOF
9080#line $LINENO "configure"
a3641d1f 9081#include "confdefs.h"
9082/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 9083 which can conflict with char $ac_func (); below. */
a3641d1f 9084#include <assert.h>
9085/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 9086#ifdef __cplusplus
9087extern "C"
9088#endif
a3641d1f 9089/* We use char because int might match the return type of a gcc2
19d3ff1a 9090 builtin and then its argument prototype would still apply. */
9091char $ac_func ();
9092char (*f) ();
9093
9094#ifdef F77_DUMMY_MAIN
9095# ifdef __cplusplus
9096 extern "C"
9097# endif
9098 int F77_DUMMY_MAIN() { return 1; }
9099#endif
9100int
9101main ()
9102{
a3641d1f 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)
9107choke me
9108#else
19d3ff1a 9109f = $ac_func;
a3641d1f 9110#endif
9111
19d3ff1a 9112 ;
9113 return 0;
9114}
9115_ACEOF
9116rm -f conftest.$ac_objext conftest$ac_exeext
9117if { (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"
9129else
9130 echo "$as_me: failed program was:" >&5
9131cat conftest.$ac_ext >&5
9132eval "$as_ac_var=no"
9133fi
9134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9135fi
9136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9138if 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
9143else
9144 cat >>confdefs.h <<\_ACEOF
a3641d1f 9145#define NEED_INET_NTOA 1
19d3ff1a 9146_ACEOF
a3641d1f 9147
9148fi
9149done
9150
19d3ff1a 9151
a3641d1f 9152for ac_func in inet_netof
9153do
19d3ff1a 9154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9155echo "$as_me:$LINENO: checking for $ac_func" >&5
9156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9157if eval "test \"\${$as_ac_var+set}\" = set"; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159else
9160 cat >conftest.$ac_ext <<_ACEOF
9161#line $LINENO "configure"
a3641d1f 9162#include "confdefs.h"
9163/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 9164 which can conflict with char $ac_func (); below. */
a3641d1f 9165#include <assert.h>
9166/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 9167#ifdef __cplusplus
9168extern "C"
9169#endif
a3641d1f 9170/* We use char because int might match the return type of a gcc2
19d3ff1a 9171 builtin and then its argument prototype would still apply. */
9172char $ac_func ();
9173char (*f) ();
9174
9175#ifdef F77_DUMMY_MAIN
9176# ifdef __cplusplus
9177 extern "C"
9178# endif
9179 int F77_DUMMY_MAIN() { return 1; }
9180#endif
9181int
9182main ()
9183{
a3641d1f 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)
9188choke me
9189#else
19d3ff1a 9190f = $ac_func;
a3641d1f 9191#endif
9192
19d3ff1a 9193 ;
9194 return 0;
9195}
9196_ACEOF
9197rm -f conftest.$ac_objext conftest$ac_exeext
9198if { (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"
9210else
9211 echo "$as_me: failed program was:" >&5
9212cat conftest.$ac_ext >&5
9213eval "$as_ac_var=no"
9214fi
9215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9216fi
9217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9219if 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
9224else
9225 cat >>confdefs.h <<\_ACEOF
a3641d1f 9226#define NEED_INET_NETOF 1
19d3ff1a 9227_ACEOF
a3641d1f 9228
9229fi
9230done
9231
33f23cef 9232LIBS="$save_libs"
19d3ff1a 9233
fdd3c1a2 9234for ac_func in syslog
9235do
19d3ff1a 9236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9237echo "$as_me:$LINENO: checking for $ac_func" >&5
9238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9239if eval "test \"\${$as_ac_var+set}\" = set"; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241else
9242 cat >conftest.$ac_ext <<_ACEOF
9243#line $LINENO "configure"
fdd3c1a2 9244#include "confdefs.h"
9245/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 9246 which can conflict with char $ac_func (); below. */
fdd3c1a2 9247#include <assert.h>
9248/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 9249#ifdef __cplusplus
9250extern "C"
9251#endif
fdd3c1a2 9252/* We use char because int might match the return type of a gcc2
19d3ff1a 9253 builtin and then its argument prototype would still apply. */
9254char $ac_func ();
9255char (*f) ();
9256
9257#ifdef F77_DUMMY_MAIN
9258# ifdef __cplusplus
9259 extern "C"
9260# endif
9261 int F77_DUMMY_MAIN() { return 1; }
9262#endif
9263int
9264main ()
9265{
fdd3c1a2 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)
9270choke me
9271#else
19d3ff1a 9272f = $ac_func;
fdd3c1a2 9273#endif
9274
19d3ff1a 9275 ;
9276 return 0;
9277}
9278_ACEOF
9279rm -f conftest.$ac_objext conftest$ac_exeext
9280if { (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"
9292else
9293 echo "$as_me: failed program was:" >&5
9294cat conftest.$ac_ext >&5
9295eval "$as_ac_var=no"
9296fi
9297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9298fi
9299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9300echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9301if 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
fdd3c1a2 9306#define HAVE_SYSLOG 1
19d3ff1a 9307_ACEOF
fdd3c1a2 9308
fdd3c1a2 9309fi
9310done
9311
19d3ff1a 9312
fdd3c1a2 9313for ac_func in vsyslog
9314do
19d3ff1a 9315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9316echo "$as_me:$LINENO: checking for $ac_func" >&5
9317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9318if eval "test \"\${$as_ac_var+set}\" = set"; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320else
9321 cat >conftest.$ac_ext <<_ACEOF
9322#line $LINENO "configure"
fdd3c1a2 9323#include "confdefs.h"
9324/* System header to define __stub macros and hopefully few prototypes,
19d3ff1a 9325 which can conflict with char $ac_func (); below. */
fdd3c1a2 9326#include <assert.h>
9327/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 9328#ifdef __cplusplus
9329extern "C"
9330#endif
fdd3c1a2 9331/* We use char because int might match the return type of a gcc2
19d3ff1a 9332 builtin and then its argument prototype would still apply. */
9333char $ac_func ();
9334char (*f) ();
9335
9336#ifdef F77_DUMMY_MAIN
9337# ifdef __cplusplus
9338 extern "C"
9339# endif
9340 int F77_DUMMY_MAIN() { return 1; }
9341#endif
9342int
9343main ()
9344{
fdd3c1a2 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)
9349choke me
9350#else
19d3ff1a 9351f = $ac_func;
fdd3c1a2 9352#endif
9353
19d3ff1a 9354 ;
9355 return 0;
9356}
9357_ACEOF
9358rm -f conftest.$ac_objext conftest$ac_exeext
9359if { (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"
9371else
9372 echo "$as_me: failed program was:" >&5
9373cat conftest.$ac_ext >&5
9374eval "$as_ac_var=no"
9375fi
9376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9377fi
9378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9380if 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
fdd3c1a2 9385#define HAVE_VSYSLOG 1
19d3ff1a 9386_ACEOF
fdd3c1a2 9387
fdd3c1a2 9388fi
9389done
9390
a3641d1f 9391
9392
9393
9394
a3641d1f 9395# Check whether --with-listen or --without-listen was given.
9396if test "${with_listen+set}" = set; then
9397 withval="$with_listen"
19d3ff1a 9398 cat >>confdefs.h <<_ACEOF
a3641d1f 9399#define LISTEN_SIZE $withval
19d3ff1a 9400_ACEOF
a3641d1f 9401
9402else
19d3ff1a 9403 cat >>confdefs.h <<\_ACEOF
a3641d1f 9404#define LISTEN_SIZE 5
19d3ff1a 9405_ACEOF
a3641d1f 9406
19d3ff1a 9407fi;
a3641d1f 9408
9409# Check whether --with-nick-history or --without-nick-history was given.
9410if test "${with_nick_history+set}" = set; then
9411 withval="$with_nick_history"
19d3ff1a 9412 cat >>confdefs.h <<_ACEOF
a3641d1f 9413#define NICKNAMEHISTORYLENGTH $withval
19d3ff1a 9414_ACEOF
a3641d1f 9415
9416else
19d3ff1a 9417 cat >>confdefs.h <<\_ACEOF
a3641d1f 9418#define NICKNAMEHISTORYLENGTH 2000
19d3ff1a 9419_ACEOF
a3641d1f 9420
19d3ff1a 9421fi;
a3641d1f 9422
9423# Check whether --with-sendq or --without-sendq was given.
9424if test "${with_sendq+set}" = set; then
9425 withval="$with_sendq"
19d3ff1a 9426 cat >>confdefs.h <<_ACEOF
a3641d1f 9427#define MAXSENDQLENGTH $withval
19d3ff1a 9428_ACEOF
a3641d1f 9429
9430else
19d3ff1a 9431 cat >>confdefs.h <<\_ACEOF
a3641d1f 9432#define MAXSENDQLENGTH 3000000
19d3ff1a 9433_ACEOF
a3641d1f 9434
19d3ff1a 9435fi;
a3641d1f 9436
9437# Check whether --with-bufferpool or --without-bufferpool was given.
9438if test "${with_bufferpool+set}" = set; then
9439 withval="$with_bufferpool"
19d3ff1a 9440 cat >>confdefs.h <<_ACEOF
a3641d1f 9441#define BUFFERPOOL ($withval * MAXSENDQLENGTH)
19d3ff1a 9442_ACEOF
a3641d1f 9443
9444else
19d3ff1a 9445 cat >>confdefs.h <<\_ACEOF
b67cdeda 9446#define BUFFERPOOL (18 * MAXSENDQLENGTH)
19d3ff1a 9447_ACEOF
a3641d1f 9448
19d3ff1a 9449fi;
a3641d1f 9450
a3641d1f 9451# Check whether --with-hostname or --without-hostname was given.
9452if test "${with_hostname+set}" = set; then
9453 withval="$with_hostname"
19d3ff1a 9454 cat >>confdefs.h <<_ACEOF
a3641d1f 9455#define DOMAINNAME "$withval"
19d3ff1a 9456_ACEOF
a3641d1f 9457
9458else
19d3ff1a 9459 cat >>confdefs.h <<_ACEOF
a3641d1f 9460#define DOMAINNAME "`hostname`"
19d3ff1a 9461_ACEOF
a3641d1f 9462
19d3ff1a 9463fi;
9464cat >>confdefs.h <<_ACEOF
a3641d1f 9465#define MYOSNAME "`uname -a`"
19d3ff1a 9466_ACEOF
9467
a3641d1f 9468
9469# Check whether --with-permissions or --without-permissions was given.
9470if test "${with_permissions+set}" = set; then
9471 withval="$with_permissions"
19d3ff1a 9472 cat >>confdefs.h <<_ACEOF
a3641d1f 9473#define DEFAULT_PERMISSIONS $withval
19d3ff1a 9474_ACEOF
a3641d1f 9475
9476else
19d3ff1a 9477 cat >>confdefs.h <<\_ACEOF
a3641d1f 9478#define DEFAULT_PERMISSIONS 0600
19d3ff1a 9479_ACEOF
9480
9481fi;
a3641d1f 9482
a3641d1f 9483# Check whether --with-dpath or --without-dpath was given.
9484if test "${with_dpath+set}" = set; then
9485 withval="$with_dpath"
19d3ff1a 9486 cat >>confdefs.h <<_ACEOF
a3641d1f 9487#define DPATH "$withval"
19d3ff1a 9488_ACEOF
8ea0ac5f 9489 IRCDDIR="$withval"; mkdir $withval/tmp
a3641d1f 9490else
19d3ff1a 9491 cat >>confdefs.h <<_ACEOF
a3641d1f 9492#define DPATH "`pwd`"
19d3ff1a 9493_ACEOF
8ea0ac5f 9494 IRCDDIR="`pwd`" mkdir `pwd`/tmp
19d3ff1a 9495fi;
a3641d1f 9496
9497# Check whether --with-fd-setsize or --without-fd-setsize was given.
9498if test "${with_fd_setsize+set}" = set; then
9499 withval="$with_fd_setsize"
9500 ac_fd=$withval
9501else
9502 ac_fd=1024
19d3ff1a 9503fi;
9504cat >>confdefs.h <<_ACEOF
a3641d1f 9505#define MAXCONNECTIONS $ac_fd
19d3ff1a 9506_ACEOF
9507
a3641d1f 9508
9509# Check whether --with-spath or --without-spath was given.
9510if test "${with_spath+set}" = set; then
9511 withval="$with_spath"
19d3ff1a 9512 cat >>confdefs.h <<_ACEOF
a3641d1f 9513#define SPATH "$withval"
19d3ff1a 9514_ACEOF
769b98a8 9515 BINDIR="$withval"
a3641d1f 9516else
19d3ff1a 9517 cat >>confdefs.h <<_ACEOF
a3641d1f 9518#define SPATH "`pwd`/src/ircd"
19d3ff1a 9519_ACEOF
769b98a8 9520 BINDIR="`pwd`/src/ircd"
19d3ff1a 9521fi;
a3641d1f 9522# Check whether --enable-nospoof or --disable-nospoof was given.
9523if test "${enable_nospoof+set}" = set; then
9524 enableval="$enable_nospoof"
19d3ff1a 9525 cat >>confdefs.h <<\_ACEOF
a3641d1f 9526#define NOSPOOF 1
19d3ff1a 9527_ACEOF
a3641d1f 9528
4560beb8
BM
9529fi;
9530# Check whether --enable-prefixaq or --disable-prefixaq was given.
9531if test "${enable_prefixaq+set}" = set; then
9532 enableval="$enable_prefixaq"
9533 cat >>confdefs.h <<\_ACEOF
9534#define PREFIX_AQ 1
9535_ACEOF
9536
19d3ff1a 9537fi;
a3641d1f 9538# Check whether --enable-hub or --disable-hub was given.
9539if test "${enable_hub+set}" = set; then
9540 enableval="$enable_hub"
19d3ff1a 9541 cat >>confdefs.h <<\_ACEOF
a3641d1f 9542#define HUB 1
19d3ff1a 9543_ACEOF
a3641d1f 9544
19d3ff1a 9545fi;
778efe22 9546
a3641d1f 9547# Check whether --enable-ssl or --disable-ssl was given.
9548if test "${enable_ssl+set}" = set; then
9549 enableval="$enable_ssl"
19d3ff1a 9550
778efe22 9551echo "$as_me:$LINENO: checking for openssl" >&5
9552echo $ECHO_N "checking for openssl... $ECHO_C" >&6
8ea0ac5f 9553 for dir in $enableval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
778efe22 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
9557echo "${ECHO_T}found in $ssldir/include/openssl" >&6
9558 found_ssl="yes";
8ea0ac5f
BM
9559 if test ! "$ssldir" = "/usr" ; then
9560 CFLAGS="$CFLAGS -I$ssldir/include";
9561 fi
778efe22 9562 break;
9563 fi
9564 if test -f "$dir/include/ssl.h"; then
9565 echo "$as_me:$LINENO: result: found in $ssldir/include" >&5
9566echo "${ECHO_T}found in $ssldir/include" >&6
9567 found_ssl="yes";
8ea0ac5f
BM
9568 if test ! "$ssldir" = "/usr" ; then
9569 CFLAGS="$CFLAGS -I$ssldir/include";
9570 fi
778efe22 9571 break
9572 fi
9573 done
9574 if test x_$found_ssl != x_yes; then
9575 echo "$as_me:$LINENO: result: not found" >&5
9576echo "${ECHO_T}not found" >&6
9577 { echo "$as_me:$LINENO: WARNING: disabling ssl support" >&5
9578echo "$as_me: WARNING: disabling ssl support" >&2;}
9579 else
9580 CRYPTOLIB="-lssl -lcrypto";
8ea0ac5f
BM
9581 if test ! "$ssldir" = "/usr" ; then
9582 LDFLAGS="$LDFLAGS -L$ssldir/lib";
9583 fi
9584 cat >>confdefs.h <<\_ACEOF
a3641d1f 9585#define USE_SSL 1
19d3ff1a 9586_ACEOF
a3641d1f 9587
8ea0ac5f 9588 fi
19d3ff1a 9589
778efe22 9590fi;
c2946892 9591
c2946892 9592
778efe22 9593# Check whether --enable-ziplinks or --disable-ziplinks was given.
9594if test "${enable_ziplinks+set}" = set; then
9595 enableval="$enable_ziplinks"
9596
9597echo "$as_me:$LINENO: checking for zlib" >&5
9598echo $ECHO_N "checking for zlib... $ECHO_C" >&6
8ea0ac5f 9599 for dir in $enableval /usr/local /usr /usr/pkg; do
778efe22 9600 zlibdir="$dir"
9601 if test -f "$dir/include/zlib.h"; then
9602 echo "$as_me:$LINENO: result: found in $zlibdir" >&5
9603echo "${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
9615echo "${ECHO_T}not found" >&6
9616 { echo "$as_me:$LINENO: WARNING: disabling ziplink support" >&5
9617echo "$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
a3641d1f 9626
8ea0ac5f
BM
9627fi;
9628
9629
9630 # Check whether --enable-libcurl or --disable-libcurl was given.
9631if 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
19d3ff1a 9645fi;
778efe22 9646
a3641d1f 9647# Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
9648if test "${enable_dynamic_linking+set}" = set; then
9649 enableval="$enable_dynamic_linking"
19d3ff1a 9650
9651echo "$as_me:$LINENO: checking for dlopen" >&5
9652echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9653if test "${ac_cv_func_dlopen+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 9655else
19d3ff1a 9656 cat >conftest.$ac_ext <<_ACEOF
9657#line $LINENO "configure"
a3641d1f 9658#include "confdefs.h"
19d3ff1a 9659/* System header to define __stub macros and hopefully few prototypes
9660else
9661 which can conflict with char dlopen (); below. */
a3641d1f 9662#include <assert.h>
9663/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 9664#ifdef __cplusplus
9665extern "C"
9666#endif
a3641d1f 9667/* We use char because int might match the return type of a gcc2
19d3ff1a 9668 builtin and then its argument prototype would still apply. */
9669char dlopen ();
9670char (*f) ();
9671
9672#ifdef F77_DUMMY_MAIN
9673# ifdef __cplusplus
9674 extern "C"
9675# endif
9676 int F77_DUMMY_MAIN() { return 1; }
9677#endif
9678int
9679main ()
9680{
a3641d1f 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)
9685choke me
9686#else
19d3ff1a 9687f = dlopen;
a3641d1f 9688#endif
9689
19d3ff1a 9690 ;
9691 return 0;
9692}
9693_ACEOF
9694rm -f conftest.$ac_objext conftest$ac_exeext
9695if { (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
9707else
9708 echo "$as_me: failed program was:" >&5
9709cat conftest.$ac_ext >&5
9710ac_cv_func_dlopen=no
9711fi
9712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9713fi
9714echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9715echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9716if test $ac_cv_func_dlopen = yes; then
a3641d1f 9717 :
9718else
19d3ff1a 9719 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9720echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9721if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 9723else
19d3ff1a 9724 ac_check_lib_save_LIBS=$LIBS
a3641d1f 9725LIBS="-ldl $LIBS"
19d3ff1a 9726cat >conftest.$ac_ext <<_ACEOF
9727#line $LINENO "configure"
a3641d1f 9728#include "confdefs.h"
19d3ff1a 9729
a3641d1f 9730/* Override any gcc2 internal prototype to avoid an error. */
19d3ff1a 9731#ifdef __cplusplus
9732extern "C"
9733#endif
a3641d1f 9734/* We use char because int might match the return type of a gcc2
19d3ff1a 9735 builtin and then its argument prototype would still apply. */
9736char dlopen ();
9737#ifdef F77_DUMMY_MAIN
9738# ifdef __cplusplus
9739 extern "C"
9740# endif
9741 int F77_DUMMY_MAIN() { return 1; }
9742#endif
9743int
9744main ()
9745{
9746dlopen ();
9747 ;
9748 return 0;
9749}
9750_ACEOF
9751rm -f conftest.$ac_objext conftest$ac_exeext
9752if { (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
9764else
9765 echo "$as_me: failed program was:" >&5
9766cat conftest.$ac_ext >&5
9767ac_cv_lib_dl_dlopen=no
9768fi
9769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9770LIBS=$ac_check_lib_save_LIBS
9771fi
9772echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9773echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9774if test $ac_cv_lib_dl_dlopen = yes; then
778efe22 9775 IRCDLIBS="$IRCDLIBS -ldl"
a3641d1f 9776else
19d3ff1a 9777
9778{ echo "$as_me:$LINENO: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
9779echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
9780cat >>confdefs.h <<\_ACEOF
a3641d1f 9781#define STATIC_LINKING 1
19d3ff1a 9782_ACEOF
9783
a3641d1f 9784
9785fi
9786
9787fi
9788
19d3ff1a 9789
a3641d1f 9790hold_cflags=$CFLAGS
9791CFLAGS="$CFLAGS -export-dynamic"
19d3ff1a 9792echo "$as_me:$LINENO: checking if we need the -export-dynamic flag" >&5
9793echo $ECHO_N "checking if we need the -export-dynamic flag... $ECHO_C" >&6
9794if test "${ac_cv_export_dynamic+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 9796else
19d3ff1a 9797
9798cat >conftest.$ac_ext <<_ACEOF
9799#line $LINENO "configure"
a3641d1f 9800#include "confdefs.h"
9801
19d3ff1a 9802#ifdef F77_DUMMY_MAIN
9803# ifdef __cplusplus
9804 extern "C"
9805# endif
9806 int F77_DUMMY_MAIN() { return 1; }
9807#endif
9808int
9809main ()
9810{
a3641d1f 9811int i;
19d3ff1a 9812 ;
9813 return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
9817if { (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
a3641d1f 9828 ac_cv_export_dynamic=yes
9829else
19d3ff1a 9830 echo "$as_me: failed program was:" >&5
9831cat conftest.$ac_ext >&5
9832ac_cv_export_dynamic=no
a3641d1f 9833fi
19d3ff1a 9834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a3641d1f 9835fi
19d3ff1a 9836echo "$as_me:$LINENO: result: $ac_cv_export_dynamic" >&5
9837echo "${ECHO_T}$ac_cv_export_dynamic" >&6
a3641d1f 9838if test "$ac_cv_export_dynamic" = "no"; then
9839CFLAGS=$hold_cflags
9840fi
9841
19d3ff1a 9842echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
9843echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
9844if test "${ac_cv_pic+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 9846else
19d3ff1a 9847
9848if test "$ac_cv_c_compiler_gnu" = "yes"; then
a3641d1f 9849 ac_cv_pic="-fPIC -DPIC -shared"
33f23cef 9850 case `uname -s` in
9851 Darwin*)
9852 ac_cv_pic="-bundle -flat_namespace -undefined suppress"
9853 ;;
9854 esac
a3641d1f 9855else
9856case `uname -s` in
9857 SunOS*)
9858 ac_cv_pic="-KPIC -DPIC -G"
9859 ;;
9860esac
9861fi
9862
9863fi
19d3ff1a 9864echo "$as_me:$LINENO: result: $ac_cv_pic" >&5
9865echo "${ECHO_T}$ac_cv_pic" >&6
9866echo "$as_me:$LINENO: checking if your system prepends an underscore on symbols" >&5
9867echo $ECHO_N "checking if your system prepends an underscore on symbols... $ECHO_C" >&6
9868if test "${ac_cv_underscore+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
c39013f1 9870else
19d3ff1a 9871
c39013f1 9872cat >uscore.c << __EOF__
9873int main() {
9874 return 0;
9875}
9876__EOF__
9877$CC -o uscore $CFLAGS uscore.c 1>&5
9878if test -z "`strings -a uscore |grep '^_main$'`"; then
9879ac_cv_underscore=no
9880else
9881ac_cv_underscore=yes
9882fi
19d3ff1a 9883rm -f uscore uscore.c
c2dc1e49 9884
9885fi
19d3ff1a 9886echo "$as_me:$LINENO: result: $ac_cv_underscore" >&5
9887echo "${ECHO_T}$ac_cv_underscore" >&6
c39013f1 9888if test "$ac_cv_underscore" = "yes"; then
19d3ff1a 9889cat >>confdefs.h <<\_ACEOF
c39013f1 9890#define UNDERSCORE 1
19d3ff1a 9891_ACEOF
c39013f1 9892
9893fi
9894
a3641d1f 9895MODULEFLAGS=$ac_cv_pic
19d3ff1a 9896cat >>confdefs.h <<\_ACEOF
a3641d1f 9897#define DYNAMIC_LINKING 1
19d3ff1a 9898_ACEOF
a3641d1f 9899
a3641d1f 9900
19d3ff1a 9901fi;
a3641d1f 9902# Check whether --enable-inet6 or --disable-inet6 was given.
9903if test "${enable_inet6+set}" = set; then
9904 enableval="$enable_inet6"
19d3ff1a 9905
9906echo "$as_me:$LINENO: checking if your system has IPv6 support" >&5
9907echo $ECHO_N "checking if your system has IPv6 support... $ECHO_C" >&6
9908if test "${ac_cv_ip6+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
a3641d1f 9910else
19d3ff1a 9911
33f23cef 9912save_libs="$LIBS"
9913LIBS="$LIBS $SOCKLIB"
a3641d1f 9914if test "$cross_compiling" = yes; then
19d3ff1a 9915 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9916echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9917 { (exit 1); exit 1; }; }
a3641d1f 9918else
19d3ff1a 9919 cat >conftest.$ac_ext <<_ACEOF
9920#line $LINENO "configure"
a3641d1f 9921#include "confdefs.h"
9922
9923#include <sys/types.h>
9924#include <sys/socket.h>
9925int main() {
9926if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
9927exit(1);
9928exit(0);
9929}
9930
19d3ff1a 9931_ACEOF
9932rm -f conftest$ac_exeext
9933if { (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
a3641d1f 9943 ac_cv_ip6=yes
9944else
19d3ff1a 9945 echo "$as_me: program exited with status $ac_status" >&5
9946echo "$as_me: failed program was:" >&5
9947cat conftest.$ac_ext >&5
9948( exit $ac_status )
9949ac_cv_ip6=no
a3641d1f 9950fi
19d3ff1a 9951rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 9952fi
9953
a3641d1f 9954fi
19d3ff1a 9955echo "$as_me:$LINENO: result: $ac_cv_ip6" >&5
9956echo "${ECHO_T}$ac_cv_ip6" >&6
a3641d1f 9957if test "$ac_cv_ip6" = "no"; then
19d3ff1a 9958{ echo "$as_me:$LINENO: WARNING: Your system does not support IPv6 so it will not be enabled" >&5
9959echo "$as_me: WARNING: Your system does not support IPv6 so it will not be enabled" >&2;}
a3641d1f 9960else
19d3ff1a 9961cat >>confdefs.h <<\_ACEOF
a3641d1f 9962#define INET6 1
19d3ff1a 9963_ACEOF
a3641d1f 9964
9965fi
33f23cef 9966LIBS="$save_libs"
a3641d1f 9967
19d3ff1a 9968fi;
a3641d1f 9969
9970
19d3ff1a 9971echo "$as_me:$LINENO: checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors" >&5
9972echo $ECHO_N "checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors... $ECHO_C" >&6
a3641d1f 9973if test "$cross_compiling" = yes; then
19d3ff1a 9974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9975echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9976 { (exit 1); exit 1; }; }
a3641d1f 9977else
19d3ff1a 9978 cat >conftest.$ac_ext <<_ACEOF
9979#line $LINENO "configure"
a3641d1f 9980#include "confdefs.h"
9981
9982#include <sys/types.h>
9983#include <sys/time.h>
9984int main() {
9985if (FD_SETSIZE >= $ac_fd)
9986exit(0);
9987exit(1);
9988}
9989
19d3ff1a 9990_ACEOF
9991rm -f conftest$ac_exeext
9992if { (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
10003echo "${ECHO_T}yes" >&6
10004else
10005 echo "$as_me: program exited with status $ac_status" >&5
10006echo "$as_me: failed program was:" >&5
10007cat conftest.$ac_ext >&5
10008( exit $ac_status )
51e5031f 10009
10010FD_SETSIZE="-DFD_SETSIZE=$ac_fd"
10011echo "$as_me:$LINENO: result: no" >&5
19d3ff1a 10012echo "${ECHO_T}no" >&6
51e5031f 10013
19d3ff1a 10014fi
10015rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3641d1f 10016fi
10017
33f23cef 10018case `uname -s` in
10019*SunOS*)
10020CFLAGS="$CFLAGS -D_SOLARIS"
10021IRCDLIBS="$IRCDLIBS -lresolv "
a3641d1f 10022;;
10023*solaris*)
10024CFLAGS="$CFLAGS -D_SOLARIS"
10025IRCDLIBS="$IRCDLIBS -lresolv "
10026;;
a3641d1f 10027esac
dae494dd 10028
00bd34ad 10029tre_version="0.6.6"
8ea0ac5f
BM
10030echo "$as_me:$LINENO: result: extracting TRE regex library" >&5
10031echo "${ECHO_T}extracting TRE regex library" >&6
10032cur_dir=`pwd`
10033cd extras
00bd34ad 10034rm -rf tre-$tre_version
c7dcad79
BM
10035if test "x$ac_cv_path_GUNZIP" = "x" ; then
10036 tar xfz tre.tar.gz
10037else
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
10042fi
8ea0ac5f
BM
10043echo "$as_me:$LINENO: result: configuring TRE regex library" >&5
10044echo "${ECHO_T}configuring TRE regex library" >&6
00bd34ad 10045cd tre-$tre_version
8ea0ac5f
BM
10046./configure --disable-agrep --disable-shared --disable-system-abi --disable-wchar --disable-multibyte --prefix=$cur_dir/extras/regexp
10047echo "$as_me:$LINENO: result: compiling TRE regex library" >&5
10048echo "${ECHO_T}compiling TRE regex library" >&6
10049$ac_cv_prog_MAKER
10050echo "$as_me:$LINENO: result: installing TRE regex library" >&5
10051echo "${ECHO_T}installing TRE regex library" >&6
10052$ac_cv_prog_MAKER install
10053TREINCDIR="$cur_dir/extras/regexp/include"
10054
00bd34ad
BM
10055if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
10056 TRELIBS="-L../extras/regexp/lib -ltre"
10057else
10058 TRELIBS=`$ac_cv_path_PKGCONFIG --libs tre.pc`
10059fi
10060
8ea0ac5f 10061cd $cur_dir
dae494dd 10062ac_config_files="$ac_config_files Makefile src/modules/Makefile unreal ircdcron/ircdchk"
19d3ff1a 10063cat >confcache <<\_ACEOF
a3641d1f 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
19d3ff1a 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.
a3641d1f 10069#
19d3ff1a 10070# config.status only pays attention to the cache file if you give it
10071# the --recheck option to rerun configure.
a3641d1f 10072#
19d3ff1a 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
a3641d1f 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.
19d3ff1a 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
10108if cmp -s $cache_file confcache; then :; else
a3641d1f 10109 if test -w $cache_file; then
19d3ff1a 10110 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10111 cat confcache >$cache_file
a3641d1f 10112 else
10113 echo "not updating unwritable cache $cache_file"
10114 fi
10115fi
10116rm -f confcache
10117
a3641d1f 10118test "x$prefix" = xNONE && prefix=$ac_default_prefix
10119# Let make expand exec_prefix.
10120test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10121
19d3ff1a 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).
a3641d1f 10126if test "x$srcdir" = x.; then
19d3ff1a 10127 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10128s/:*\$(srcdir):*/:/;
10129s/:*\${srcdir}:*/:/;
10130s/:*@srcdir@:*/:/;
10131s/^\([^=]*=[ ]*\):*/\1/;
10132s/:*$//;
10133s/^[^=]*=[ ]*$//;
10134}'
a3641d1f 10135fi
10136
a3641d1f 10137DEFS=-DHAVE_CONFIG_H
10138
a3641d1f 10139
19d3ff1a 10140: ${CONFIG_STATUS=./config.status}
10141ac_clean_files_save=$ac_clean_files
10142ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10143{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10144echo "$as_me: creating $CONFIG_STATUS" >&6;}
10145cat >$CONFIG_STATUS <<_ACEOF
10146#! $SHELL
10147# Generated by $as_me.
a3641d1f 10148# Run this file to recreate the current configuration.
a3641d1f 10149# Compiler output produced by configure, useful for debugging
19d3ff1a 10150# configure, is in config.log if it exists.
a3641d1f 10151
19d3ff1a 10152debug=false
10153SHELL=\${CONFIG_SHELL-$SHELL}
10154_ACEOF
10155
10156cat >>$CONFIG_STATUS <<\_ACEOF
10157
10158## --------------------- ##
10159## M4sh Initialization. ##
10160## --------------------- ##
10161
10162# Be Bourne compatible
10163if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10164 emulate sh
10165 NULLCMD=:
10166elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10167 set -o posix
10168fi
10169
10170# NLS nuisances.
10171# Support unset when possible.
10172if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10173 as_unset=unset
10174else
10175 as_unset=false
10176fi
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.
10205as_me=`(basename "$0") 2>/dev/null ||
10206$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10207 X"$0" : 'X\(//\)$' \| \
10208 X"$0" : 'X\(/\)$' \| \
10209 . : '\(.\)' 2>/dev/null ||
10210echo 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.
10218as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10219as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10220as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10221as_cr_digits='0123456789'
10222as_cr_alnum=$as_cr_Letters$as_cr_digits
10223
10224# The user is always right.
10225if 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
10235fi
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
10248for as_dir in $PATH
a3641d1f 10249do
19d3ff1a 10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10253done
10254
10255 ;;
a3641d1f 10256 esac
19d3ff1a 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
10264echo "$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
10270for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10271do
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
a3641d1f 10289done
19d3ff1a 10290;;
10291 esac
a3641d1f 10292
19d3ff1a 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
10313echo "$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}
a3641d1f 10323
a3641d1f 10324
19d3ff1a 10325case `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= ;;
10330esac
a3641d1f 10331
19d3ff1a 10332if expr a : '\(a\)' >/dev/null 2>&1; then
10333 as_expr=expr
10334else
10335 as_expr=false
10336fi
10337
10338rm -f conf$$ conf$$.exe conf$$.file
10339echo >conf$$.file
10340if 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'
a3641d1f 10346 else
19d3ff1a 10347 as_ln_s='ln -s'
a3641d1f 10348 fi
19d3ff1a 10349elif ln conf$$.file conf$$ 2>/dev/null; then
10350 as_ln_s=ln
10351else
10352 as_ln_s='cp -p'
10353fi
10354rm -f conf$$ conf$$.exe conf$$.file
10355
10356as_executable_p="test -f"
10357
10358# Sed expression to map a string onto a valid CPP name.
10359as_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.
10362as_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.
10367as_nl='
10368'
10369IFS=" $as_nl"
10370
10371# CDPATH.
10372$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10373
10374exec 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.
10379exec 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
10386cat >&5 <<_CSEOF
10387
10388This file was extended by $as_me, which was
10389generated 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
10398echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10399echo >&5
10400_ACEOF
10401
10402# Files that config.status was made for.
10403if test -n "$ac_config_files"; then
10404 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10405fi
10406
10407if test -n "$ac_config_headers"; then
10408 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10409fi
10410
10411if test -n "$ac_config_links"; then
10412 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10413fi
10414
10415if test -n "$ac_config_commands"; then
10416 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10417fi
10418
10419cat >>$CONFIG_STATUS <<\_ACEOF
10420
10421ac_cs_usage="\
10422\`$as_me' instantiates files from templates according to the
10423current configuration.
10424
10425Usage: $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
10436Configuration files:
10437$config_files
10438
10439Configuration headers:
10440$config_headers
10441
10442Report bugs to <bug-autoconf@gnu.org>."
10443_ACEOF
10444
10445cat >>$CONFIG_STATUS <<_ACEOF
10446ac_cs_version="\\
10447config.status
10448configured by $0, generated by GNU Autoconf 2.53,
10449 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10450
10451Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10452Free Software Foundation, Inc.
10453This config.status script is free software; the Free Software Foundation
10454gives unlimited permission to copy, distribute and modify it."
10455srcdir=$srcdir
10456_ACEOF
10457
10458cat >>$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.
10461ac_need_defaults=:
10462while test $# != 0
10463do
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
10481cat >>$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
10486cat >>$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
10492Try \`$0 --help' for more information." >&5
10493echo "$as_me: error: ambiguous option: $1
10494Try \`$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
10511Try \`$0 --help' for more information." >&5
10512echo "$as_me: error: unrecognized option: $1
10513Try \`$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
10520done
10521
10522_ACEOF
10523
10524
10525
10526
10527
10528cat >>$CONFIG_STATUS <<\_ACEOF
10529for ac_config_target in $ac_config_targets
10530do
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" ;;
dae494dd 10536 "ircdcron/ircdchk" ) CONFIG_FILES="$CONFIG_FILES ircdcron/ircdchk" ;;
19d3ff1a 10537 "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10538 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10539echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10540 { (exit 1); exit 1; }; };;
10541 esac
a3641d1f 10542done
19d3ff1a 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.
10548if $ac_need_defaults; then
10549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
a3641d1f 10551fi
a3641d1f 10552
19d3ff1a 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
10577cat >>$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
10585if 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
10589s,@SHELL@,$SHELL,;t t
10590s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10591s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10592s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10593s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10594s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10595s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10596s,@exec_prefix@,$exec_prefix,;t t
10597s,@prefix@,$prefix,;t t
10598s,@program_transform_name@,$program_transform_name,;t t
10599s,@bindir@,$bindir,;t t
10600s,@sbindir@,$sbindir,;t t
10601s,@libexecdir@,$libexecdir,;t t
10602s,@datadir@,$datadir,;t t
10603s,@sysconfdir@,$sysconfdir,;t t
10604s,@sharedstatedir@,$sharedstatedir,;t t
10605s,@localstatedir@,$localstatedir,;t t
10606s,@libdir@,$libdir,;t t
10607s,@includedir@,$includedir,;t t
10608s,@oldincludedir@,$oldincludedir,;t t
10609s,@infodir@,$infodir,;t t
10610s,@mandir@,$mandir,;t t
10611s,@build_alias@,$build_alias,;t t
10612s,@host_alias@,$host_alias,;t t
10613s,@target_alias@,$target_alias,;t t
10614s,@DEFS@,$DEFS,;t t
10615s,@ECHO_C@,$ECHO_C,;t t
10616s,@ECHO_N@,$ECHO_N,;t t
10617s,@ECHO_T@,$ECHO_T,;t t
10618s,@LIBS@,$LIBS,;t t
10619s,@CC@,$CC,;t t
10620s,@CFLAGS@,$CFLAGS,;t t
10621s,@LDFLAGS@,$LDFLAGS,;t t
10622s,@CPPFLAGS@,$CPPFLAGS,;t t
10623s,@ac_ct_CC@,$ac_ct_CC,;t t
10624s,@EXEEXT@,$EXEEXT,;t t
10625s,@OBJEXT@,$OBJEXT,;t t
10626s,@RM@,$RM,;t t
10627s,@CP@,$CP,;t t
10628s,@TOUCH@,$TOUCH,;t t
10629s,@OPENSSLPATH@,$OPENSSLPATH,;t t
10630s,@INSTALL@,$INSTALL,;t t
8ea0ac5f
BM
10631s,@MAKER@,$MAKER,;t t
10632s,@GMAKE@,$GMAKE,;t t
c7dcad79 10633s,@GUNZIP@,$GUNZIP,;t t
00bd34ad 10634s,@PKGCONFIG@,$PKGCONFIG,;t t
19d3ff1a 10635s,@IRCDLIBS@,$IRCDLIBS,;t t
10636s,@MKPASSWDLIBS@,$MKPASSWDLIBS,;t t
10637s,@CPP@,$CPP,;t t
19d3ff1a 10638s,@STRTOUL@,$STRTOUL,;t t
10639s,@CRYPTOLIB@,$CRYPTOLIB,;t t
10640s,@MODULEFLAGS@,$MODULEFLAGS,;t t
778efe22 10641s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
8ea0ac5f 10642s,@URL@,$URL,;t t
19d3ff1a 10643s,@IRCDDIR@,$IRCDDIR,;t t
10644s,@BINDIR@,$BINDIR,;t t
19d3ff1a 10645s,@FD_SETSIZE@,$FD_SETSIZE,;t t
8ea0ac5f 10646s,@TREINCDIR@,$TREINCDIR,;t t
00bd34ad 10647s,@TRELIBS@,$TRELIBS,;t t
19d3ff1a 10648CEOF
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
10689fi # test -n "$CONFIG_FILES"
a3641d1f 10690
19d3ff1a 10691_ACEOF
10692cat >>$CONFIG_STATUS <<\_ACEOF
10693for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a3641d1f 10694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19d3ff1a 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 ||
10712echo 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=.;;
10721esac
10722as_dummy="$ac_dir"
10723for 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
10732echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10733 { (exit 1); exit 1; }; }
10734 ;;
a3641d1f 10735 esac
19d3ff1a 10736done; }
a3641d1f 10737
19d3ff1a 10738 ac_builddir=.
a3641d1f 10739
19d3ff1a 10740if 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'`
10744else
10745 ac_dir_suffix= ac_top_builddir=
10746fi
a3641d1f 10747
19d3ff1a 10748case $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 ;;
a3641d1f 10759 *) # Relative path.
19d3ff1a 10760 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10761 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10762esac
10763# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10764# absolute.
10765ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10766ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10767ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10768ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a3641d1f 10769
10770
a3641d1f 10771
19d3ff1a 10772 if test x"$ac_file" != x-; then
10773 { echo "$as_me:$LINENO: creating $ac_file" >&5
10774echo "$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
10797echo "$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
10810echo "$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
10816cat >>$CONFIG_STATUS <<_ACEOF
10817 sed "$ac_vpsub
10818$extrasub
10819_ACEOF
10820cat >>$CONFIG_STATUS <<\_ACEOF
10821:t
10822/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10823s,@configure_input@,$configure_input,;t t
10824s,@srcdir@,$ac_srcdir,;t t
10825s,@abs_srcdir@,$ac_abs_srcdir,;t t
10826s,@top_srcdir@,$ac_top_srcdir,;t t
10827s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10828s,@builddir@,$ac_builddir,;t t
10829s,@abs_builddir@,$ac_abs_builddir,;t t
10830s,@top_builddir@,$ac_top_builddir,;t t
10831s,@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
10841done
10842_ACEOF
10843cat >>$CONFIG_STATUS <<\_ACEOF
10844
10845#
10846# CONFIG_HEADER section.
10847#
a3641d1f 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.
19d3ff1a 10853ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10854ac_dB='[ ].*$,\1#\2'
10855ac_dC=' '
10856ac_dD=',;t'
10857# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10858ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10859ac_uB='$,\1#\2define\3'
a3641d1f 10860ac_uC=' '
19d3ff1a 10861ac_uD=',;t'
10862
10863for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
a3641d1f 10864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19d3ff1a 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 ;;
a3641d1f 10873 esac
10874
19d3ff1a 10875 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10876echo "$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
10887echo "$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
10900echo "$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.
10917rm -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'.
10924cat >confdef2sed.sed <<\_ACEOF
10925s/[\\&,]/\\&/g
10926s,[\\$`],\\&,g
10927t clear
10928: clear
10929s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10930t end
10931s,^[ ]*#[ ]*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.
10937uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10938sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10939rm -f confdef2sed.sed
a3641d1f 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.
19d3ff1a 10944cat >>conftest.undefs <<\_ACEOF
10945s,^[ ]*#[ ]*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).
10950echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10951echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10952echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10953echo ' :' >>$CONFIG_STATUS
10954rm -f conftest.tail
10955while grep . conftest.defines >/dev/null
10956do
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
10973done
10974rm -f conftest.defines
10975echo ' fi # egrep' >>$CONFIG_STATUS
10976echo >>$CONFIG_STATUS
a3641d1f 10977
19d3ff1a 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).
10980echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
a3641d1f 10981rm -f conftest.tail
19d3ff1a 10982while grep . conftest.undefs >/dev/null
a3641d1f 10983do
19d3ff1a 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
a3641d1f 10992 echo 'CEOF
19d3ff1a 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
a3641d1f 11000done
19d3ff1a 11001rm -f conftest.undefs
11002
11003cat >>$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
a3641d1f 11009 else
19d3ff1a 11010 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
a3641d1f 11011 fi
19d3ff1a 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
11017echo "$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 ||
11025echo 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=.;;
11034esac
11035as_dummy="$ac_dir"
11036for 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
11045echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11046 { (exit 1); exit 1; }; }
11047 ;;
11048 esac
11049done; }
a3641d1f 11050
19d3ff1a 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
11058done
11059_ACEOF
a3641d1f 11060
19d3ff1a 11061cat >>$CONFIG_STATUS <<\_ACEOF
a3641d1f 11062
19d3ff1a 11063{ (exit 0); exit 0; }
11064_ACEOF
a3641d1f 11065chmod +x $CONFIG_STATUS
19d3ff1a 11066ac_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.
11077if 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; }
11085fi
a3641d1f 11086
769b98a8 11087chmod 0700 unreal
dae494dd 11088chmod 0700 ircdcron/ircdchk