ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/configure
Revision: 571
Committed: Fri Apr 28 06:48:08 2006 UTC (17 years, 11 months ago) by michael
File size: 339094 byte(s)
Log Message:
- removed INVARIANTS leftover and updated configure.ac accordingly

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for ircd-hybrid 7.3.
4 #
5 # $Id$
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='ircd-hybrid'
271 PACKAGE_TARNAME='ircd-hybrid'
272 PACKAGE_VERSION='7.3'
273 PACKAGE_STRING='ircd-hybrid 7.3'
274 PACKAGE_BUGREPORT=''
275
276 ac_default_prefix=/usr/local/ircd
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MKDEP MAKEDEPEND STDOUT CPP EGREP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CP MV LN SED AR LD TEST INET_MISC CRYPT_C CRYPT_LIB SNPRINTF_C ENCSPEED ZLIB_LD SELECT_TYPE CLOBBER BALLOC_C EXAMPLE_CONF MODULES_LIBS MOD_TARGET SSL_SRCS_ENABLE SSL_INCLUDES SSL_LIBS PICFLAGS IRC_CFLAGS SEDOBJ DYNLINK_C LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
405
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
643 *)
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 ;;
650
651 esac
652 done
653
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674 do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727 else
728 ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures ircd-hybrid 7.3 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
833
834 cat <<\_ACEOF
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of ircd-hybrid 7.3:";;
841 esac
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
848 --disable-openssl Disable OpenSSL support.
849 --disable-zlib Disable ziplinks support
850 --enable-poll Force poll() usage.
851 --enable-select Force select() usage.
852 --enable-kqueue Force kqueue() usage.
853 --enable-devpoll Force usage of /dev/poll.
854 --enable-rtsigio Enable SIGIO with RT Signals (Linux only)
855 --enable-epoll Enable Linux epoll support.
856 --enable-clobber Don't preserve old binaries on make install
857 --enable-profile Enable profiling
858 --enable-efence Enable ElectricFence (memory debugger).
859 --disable-block-alloc Disable the block allocator (Only useful with
860 ElectricFence)
861 --enable-warnings Enable all sorts of warnings for debugging.
862 --enable-small-net Enable small network support.
863 --enable-efnet For IRCDs running on EFnet.
864 --disable-gline-voting Disable G-line voting.
865 --enable-halfops Enable halfops support.
866 --enable-syslog="EVENTS"
867 Enable syslog for events: kill, squit, connect,
868 users, oper, space separated in quotes (default:
869 disabled)
870 --disable-shared-modules
871 Disable shared modules.
872
873 Optional Packages:
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-zlib-path=DIR Path to libz.so for ziplinks support.
877 --with-nicklen=LENGTH Set the nick length to LENGTH (default 15)
878 --with-syslog-facility=LOG
879 Define the log facility to use with ircd's syslog
880 output (default LOG_LOCAL4)
881 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max
882 390)
883
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
934 *)
935 case "$ac_dir" in
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *)
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
952 *)
953 case $ac_srcdir in
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *)
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 esac;;
967 esac
968
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 fi
984 cd $ac_popdir
985 done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990 cat <<\_ACEOF
991 ircd-hybrid configure 7.3
992 generated by GNU Autoconf 2.59
993
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997
998 $Id$
999 _ACEOF
1000 exit 0
1001 fi
1002 exec 5>config.log
1003 cat >&5 <<_ACEOF
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1006
1007 It was created by ircd-hybrid $as_me 7.3, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1009
1010 $ $0 $@
1011
1012 _ACEOF
1013 {
1014 cat <<_ASUNAME
1015 ## --------- ##
1016 ## Platform. ##
1017 ## --------- ##
1018
1019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027
1028 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1032 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035
1036 _ASUNAME
1037
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 for as_dir in $PATH
1040 do
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044 done
1045
1046 } >&5
1047
1048 cat >&5 <<_ACEOF
1049
1050
1051 ## ----------- ##
1052 ## Core tests. ##
1053 ## ----------- ##
1054
1055 _ACEOF
1056
1057
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_configure_args=
1064 ac_configure_args0=
1065 ac_configure_args1=
1066 ac_sep=
1067 ac_must_keep_next=false
1068 for ac_pass in 1 2
1069 do
1070 for ac_arg
1071 do
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 2)
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1086 else
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1095 ;;
1096 -* ) ac_must_keep_next=true ;;
1097 esac
1098 fi
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
1102 ;;
1103 esac
1104 done
1105 done
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close' the trap.
1114 trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
1116 {
1117 echo
1118
1119 cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1126 {
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 ;;
1134 *)
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ;;
1138 esac;
1139 }
1140 echo
1141
1142 cat <<\_ASBOX
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
1157 ## ------------- ##
1158 ## Output files. ##
1159 ## ------------- ##
1160 _ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1163 do
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1166 done | sort
1167 echo
1168 fi
1169
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172 ## ----------- ##
1173 ## confdefs.h. ##
1174 ## ----------- ##
1175 _ASBOX
1176 echo
1177 sed "/^$/d" confdefs.h | sort
1178 echo
1179 fi
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
1184 rm -f core *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 exit $exit_status
1187 ' 0
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 done
1191 ac_signal=0
1192
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 echo >confdefs.h
1197
1198 # Predefined preprocessor variables.
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 _ACEOF
1223
1224
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 fi
1233 fi
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's/^/| /' "$ac_site_file" >&5
1239 . "$ac_site_file"
1240 fi
1241 done
1242
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1252 esac
1253 fi
1254 else
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1258 fi
1259
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1279 *)
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1301 fi
1302 done
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1309 fi
1310
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344 ac_config_headers="$ac_config_headers include/setup.h"
1345
1346
1347
1348
1349
1350 cat >>confdefs.h <<\_ACEOF
1351 #define _GNU_SOURCE 1
1352 _ACEOF
1353
1354
1355
1356 OLD_CFLAGS="$CFLAGS"
1357 ac_ext=c
1358 ac_cpp='$CPP $CPPFLAGS'
1359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362 if test -n "$ac_tool_prefix"; then
1363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1365 echo "$as_me:$LINENO: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1372 else
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1375 do
1376 IFS=$as_save_IFS
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 break 2
1383 fi
1384 done
1385 done
1386
1387 fi
1388 fi
1389 CC=$ac_cv_prog_CC
1390 if test -n "$CC"; then
1391 echo "$as_me:$LINENO: result: $CC" >&5
1392 echo "${ECHO_T}$CC" >&6
1393 else
1394 echo "$as_me:$LINENO: result: no" >&5
1395 echo "${ECHO_T}no" >&6
1396 fi
1397
1398 fi
1399 if test -z "$ac_cv_prog_CC"; then
1400 ac_ct_CC=$CC
1401 # Extract the first word of "gcc", so it can be a program name with args.
1402 set dummy gcc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 if test -n "$ac_ct_CC"; then
1409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1413 do
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_ac_ct_CC="gcc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1421 fi
1422 done
1423 done
1424
1425 fi
1426 fi
1427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1428 if test -n "$ac_ct_CC"; then
1429 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1430 echo "${ECHO_T}$ac_ct_CC" >&6
1431 else
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1434 fi
1435
1436 CC=$ac_ct_CC
1437 else
1438 CC="$ac_cv_prog_CC"
1439 fi
1440
1441 if test -z "$CC"; then
1442 if test -n "$ac_tool_prefix"; then
1443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1444 set dummy ${ac_tool_prefix}cc; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450 if test -n "$CC"; then
1451 ac_cv_prog_CC="$CC" # Let the user override the test.
1452 else
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 for as_dir in $PATH
1455 do
1456 IFS=$as_save_IFS
1457 test -z "$as_dir" && as_dir=.
1458 for ac_exec_ext in '' $ac_executable_extensions; do
1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1460 ac_cv_prog_CC="${ac_tool_prefix}cc"
1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 break 2
1463 fi
1464 done
1465 done
1466
1467 fi
1468 fi
1469 CC=$ac_cv_prog_CC
1470 if test -n "$CC"; then
1471 echo "$as_me:$LINENO: result: $CC" >&5
1472 echo "${ECHO_T}$CC" >&6
1473 else
1474 echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1476 fi
1477
1478 fi
1479 if test -z "$ac_cv_prog_CC"; then
1480 ac_ct_CC=$CC
1481 # Extract the first word of "cc", so it can be a program name with args.
1482 set dummy cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$ac_ct_CC"; then
1489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_ac_ct_CC="cc"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 break 2
1501 fi
1502 done
1503 done
1504
1505 fi
1506 fi
1507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1508 if test -n "$ac_ct_CC"; then
1509 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1510 echo "${ECHO_T}$ac_ct_CC" >&6
1511 else
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 fi
1515
1516 CC=$ac_ct_CC
1517 else
1518 CC="$ac_cv_prog_CC"
1519 fi
1520
1521 fi
1522 if test -z "$CC"; then
1523 # Extract the first word of "cc", so it can be a program name with args.
1524 set dummy cc; ac_word=$2
1525 echo "$as_me:$LINENO: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 if test -n "$CC"; then
1531 ac_cv_prog_CC="$CC" # Let the user override the test.
1532 else
1533 ac_prog_rejected=no
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537 IFS=$as_save_IFS
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1542 ac_prog_rejected=yes
1543 continue
1544 fi
1545 ac_cv_prog_CC="cc"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 break 2
1548 fi
1549 done
1550 done
1551
1552 if test $ac_prog_rejected = yes; then
1553 # We found a bogon in the path, so make sure we never use it.
1554 set dummy $ac_cv_prog_CC
1555 shift
1556 if test $# != 0; then
1557 # We chose a different compiler from the bogus one.
1558 # However, it has the same basename, so the bogon will be chosen
1559 # first if we set CC to just the basename; use the full file name.
1560 shift
1561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1562 fi
1563 fi
1564 fi
1565 fi
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1573 fi
1574
1575 fi
1576 if test -z "$CC"; then
1577 if test -n "$ac_tool_prefix"; then
1578 for ac_prog in cl
1579 do
1580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 if test -n "$CC"; then
1588 ac_cv_prog_CC="$CC" # Let the user override the test.
1589 else
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1600 fi
1601 done
1602 done
1603
1604 fi
1605 fi
1606 CC=$ac_cv_prog_CC
1607 if test -n "$CC"; then
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1613 fi
1614
1615 test -n "$CC" && break
1616 done
1617 fi
1618 if test -z "$CC"; then
1619 ac_ct_CC=$CC
1620 for ac_prog in cl
1621 do
1622 # Extract the first word of "$ac_prog", so it can be a program name with args.
1623 set dummy $ac_prog; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$ac_ct_CC"; then
1630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_ac_ct_CC="$ac_prog"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1642 fi
1643 done
1644 done
1645
1646 fi
1647 fi
1648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1649 if test -n "$ac_ct_CC"; then
1650 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1651 echo "${ECHO_T}$ac_ct_CC" >&6
1652 else
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1655 fi
1656
1657 test -n "$ac_ct_CC" && break
1658 done
1659
1660 CC=$ac_ct_CC
1661 fi
1662
1663 fi
1664
1665
1666 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1667 See \`config.log' for more details." >&5
1668 echo "$as_me: error: no acceptable C compiler found in \$PATH
1669 See \`config.log' for more details." >&2;}
1670 { (exit 1); exit 1; }; }
1671
1672 # Provide some information about the compiler.
1673 echo "$as_me:$LINENO:" \
1674 "checking for C compiler version" >&5
1675 ac_compiler=`set X $ac_compile; echo $2`
1676 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1677 (eval $ac_compiler --version </dev/null >&5) 2>&5
1678 ac_status=$?
1679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680 (exit $ac_status); }
1681 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1682 (eval $ac_compiler -v </dev/null >&5) 2>&5
1683 ac_status=$?
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }
1686 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1687 (eval $ac_compiler -V </dev/null >&5) 2>&5
1688 ac_status=$?
1689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690 (exit $ac_status); }
1691
1692 cat >conftest.$ac_ext <<_ACEOF
1693 /* confdefs.h. */
1694 _ACEOF
1695 cat confdefs.h >>conftest.$ac_ext
1696 cat >>conftest.$ac_ext <<_ACEOF
1697 /* end confdefs.h. */
1698
1699 int
1700 main ()
1701 {
1702
1703 ;
1704 return 0;
1705 }
1706 _ACEOF
1707 ac_clean_files_save=$ac_clean_files
1708 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1709 # Try to create an executable without -o first, disregard a.out.
1710 # It will help us diagnose broken compilers, and finding out an intuition
1711 # of exeext.
1712 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1713 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1714 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1715 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1716 (eval $ac_link_default) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }; then
1720 # Find the output, starting from the most likely. This scheme is
1721 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 # resort.
1723
1724 # Be careful to initialize this variable, since it used to be cached.
1725 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1726 ac_cv_exeext=
1727 # b.out is created by i960 compilers.
1728 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1729 do
1730 test -f "$ac_file" || continue
1731 case $ac_file in
1732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1733 ;;
1734 conftest.$ac_ext )
1735 # This is the source file.
1736 ;;
1737 [ab].out )
1738 # We found the default executable, but exeext='' is most
1739 # certainly right.
1740 break;;
1741 *.* )
1742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1743 # FIXME: I believe we export ac_cv_exeext for Libtool,
1744 # but it would be cool to find out if it's true. Does anybody
1745 # maintain Libtool? --akim.
1746 export ac_cv_exeext
1747 break;;
1748 * )
1749 break;;
1750 esac
1751 done
1752 else
1753 echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1757 See \`config.log' for more details." >&5
1758 echo "$as_me: error: C compiler cannot create executables
1759 See \`config.log' for more details." >&2;}
1760 { (exit 77); exit 77; }; }
1761 fi
1762
1763 ac_exeext=$ac_cv_exeext
1764 echo "$as_me:$LINENO: result: $ac_file" >&5
1765 echo "${ECHO_T}$ac_file" >&6
1766
1767 # Check the compiler produces executables we can run. If not, either
1768 # the compiler is broken, or we cross compile.
1769 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1770 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1771 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1772 # If not cross compiling, check that we can run a simple program.
1773 if test "$cross_compiling" != yes; then
1774 if { ac_try='./$ac_file'
1775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1776 (eval $ac_try) 2>&5
1777 ac_status=$?
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }; }; then
1780 cross_compiling=no
1781 else
1782 if test "$cross_compiling" = maybe; then
1783 cross_compiling=yes
1784 else
1785 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1786 If you meant to cross compile, use \`--host'.
1787 See \`config.log' for more details." >&5
1788 echo "$as_me: error: cannot run C compiled programs.
1789 If you meant to cross compile, use \`--host'.
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1792 fi
1793 fi
1794 fi
1795 echo "$as_me:$LINENO: result: yes" >&5
1796 echo "${ECHO_T}yes" >&6
1797
1798 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1799 ac_clean_files=$ac_clean_files_save
1800 # Check the compiler produces executables we can run. If not, either
1801 # the compiler is broken, or we cross compile.
1802 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1803 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1804 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1805 echo "${ECHO_T}$cross_compiling" >&6
1806
1807 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1808 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1810 (eval $ac_link) 2>&5
1811 ac_status=$?
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; then
1814 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1815 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1816 # work properly (i.e., refer to `conftest.exe'), while it won't with
1817 # `rm'.
1818 for ac_file in conftest.exe conftest conftest.*; do
1819 test -f "$ac_file" || continue
1820 case $ac_file in
1821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1823 export ac_cv_exeext
1824 break;;
1825 * ) break;;
1826 esac
1827 done
1828 else
1829 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }
1834 fi
1835
1836 rm -f conftest$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1838 echo "${ECHO_T}$ac_cv_exeext" >&6
1839
1840 rm -f conftest.$ac_ext
1841 EXEEXT=$ac_cv_exeext
1842 ac_exeext=$EXEEXT
1843 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1844 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1845 if test "${ac_cv_objext+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 cat >conftest.$ac_ext <<_ACEOF
1849 /* confdefs.h. */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1854
1855 int
1856 main ()
1857 {
1858
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 rm -f conftest.o conftest.obj
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1866 ac_status=$?
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1870 case $ac_file in
1871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1873 break;;
1874 esac
1875 done
1876 else
1877 echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1881 See \`config.log' for more details." >&5
1882 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1883 See \`config.log' for more details." >&2;}
1884 { (exit 1); exit 1; }; }
1885 fi
1886
1887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1888 fi
1889 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1890 echo "${ECHO_T}$ac_cv_objext" >&6
1891 OBJEXT=$ac_cv_objext
1892 ac_objext=$OBJEXT
1893 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898 cat >conftest.$ac_ext <<_ACEOF
1899 /* confdefs.h. */
1900 _ACEOF
1901 cat confdefs.h >>conftest.$ac_ext
1902 cat >>conftest.$ac_ext <<_ACEOF
1903 /* end confdefs.h. */
1904
1905 int
1906 main ()
1907 {
1908 #ifndef __GNUC__
1909 choke me
1910 #endif
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 rm -f conftest.$ac_objext
1917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>conftest.er1
1919 ac_status=$?
1920 grep -v '^ *+' conftest.er1 >conftest.err
1921 rm -f conftest.er1
1922 cat conftest.err >&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); } &&
1925 { ac_try='test -z "$ac_c_werror_flag"
1926 || test ! -s conftest.err'
1927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1928 (eval $ac_try) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; } &&
1932 { ac_try='test -s conftest.$ac_objext'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 (eval $ac_try) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; }; then
1938 ac_compiler_gnu=yes
1939 else
1940 echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_compiler_gnu=no
1944 fi
1945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1947
1948 fi
1949 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1950 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1951 GCC=`test $ac_compiler_gnu = yes && echo yes`
1952 ac_test_CFLAGS=${CFLAGS+set}
1953 ac_save_CFLAGS=$CFLAGS
1954 CFLAGS="-g"
1955 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1957 if test "${ac_cv_prog_cc_g+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 cat >conftest.$ac_ext <<_ACEOF
1961 /* confdefs.h. */
1962 _ACEOF
1963 cat confdefs.h >>conftest.$ac_ext
1964 cat >>conftest.$ac_ext <<_ACEOF
1965 /* end confdefs.h. */
1966
1967 int
1968 main ()
1969 {
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>conftest.er1
1978 ac_status=$?
1979 grep -v '^ *+' conftest.er1 >conftest.err
1980 rm -f conftest.er1
1981 cat conftest.err >&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); } &&
1984 { ac_try='test -z "$ac_c_werror_flag"
1985 || test ! -s conftest.err'
1986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987 (eval $ac_try) 2>&5
1988 ac_status=$?
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }; } &&
1991 { ac_try='test -s conftest.$ac_objext'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1993 (eval $ac_try) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1997 ac_cv_prog_cc_g=yes
1998 else
1999 echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002 ac_cv_prog_cc_g=no
2003 fi
2004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2007 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2008 if test "$ac_test_CFLAGS" = set; then
2009 CFLAGS=$ac_save_CFLAGS
2010 elif test $ac_cv_prog_cc_g = yes; then
2011 if test "$GCC" = yes; then
2012 CFLAGS="-g -O2"
2013 else
2014 CFLAGS="-g"
2015 fi
2016 else
2017 if test "$GCC" = yes; then
2018 CFLAGS="-O2"
2019 else
2020 CFLAGS=
2021 fi
2022 fi
2023 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2024 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2025 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 ac_cv_prog_cc_stdc=no
2029 ac_save_CC=$CC
2030 cat >conftest.$ac_ext <<_ACEOF
2031 /* confdefs.h. */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2036 #include <stdarg.h>
2037 #include <stdio.h>
2038 #include <sys/types.h>
2039 #include <sys/stat.h>
2040 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2041 struct buf { int x; };
2042 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2043 static char *e (p, i)
2044 char **p;
2045 int i;
2046 {
2047 return p[i];
2048 }
2049 static char *f (char * (*g) (char **, int), char **p, ...)
2050 {
2051 char *s;
2052 va_list v;
2053 va_start (v,p);
2054 s = g (p, va_arg (v,int));
2055 va_end (v);
2056 return s;
2057 }
2058
2059 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2060 function prototypes and stuff, but not '\xHH' hex character constants.
2061 These don't provoke an error unfortunately, instead are silently treated
2062 as 'x'. The following induces an error, until -std1 is added to get
2063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2064 array size at least. It's necessary to write '\x00'==0 to get something
2065 that's true only with -std1. */
2066 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2067
2068 int test (int i, double x);
2069 struct s1 {int (*f) (int a);};
2070 struct s2 {int (*f) (double a);};
2071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2072 int argc;
2073 char **argv;
2074 int
2075 main ()
2076 {
2077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 # Don't try gcc -ansi; that turns off useful extensions and
2083 # breaks some systems' header files.
2084 # AIX -qlanglvl=ansi
2085 # Ultrix and OSF/1 -std1
2086 # HP-UX 10.20 and later -Ae
2087 # HP-UX older versions -Aa -D_HPUX_SOURCE
2088 # SVR4 -Xc -D__EXTENSIONS__
2089 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2090 do
2091 CC="$ac_save_CC $ac_arg"
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>conftest.er1
2095 ac_status=$?
2096 grep -v '^ *+' conftest.er1 >conftest.err
2097 rm -f conftest.er1
2098 cat conftest.err >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -z "$ac_c_werror_flag"
2102 || test ! -s conftest.err'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 (eval $ac_try) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 ac_cv_prog_cc_stdc=$ac_arg
2115 break
2116 else
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 fi
2121 rm -f conftest.err conftest.$ac_objext
2122 done
2123 rm -f conftest.$ac_ext conftest.$ac_objext
2124 CC=$ac_save_CC
2125
2126 fi
2127
2128 case "x$ac_cv_prog_cc_stdc" in
2129 x|xno)
2130 echo "$as_me:$LINENO: result: none needed" >&5
2131 echo "${ECHO_T}none needed" >&6 ;;
2132 *)
2133 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2134 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2135 CC="$CC $ac_cv_prog_cc_stdc" ;;
2136 esac
2137
2138 # Some people use a C++ compiler to compile C. Since we use `exit',
2139 # in C++ we need to declare it. In case someone uses the same compiler
2140 # for both compiling C and C++ we need to have the C++ compiler decide
2141 # the declaration of exit, since it's the most demanding environment.
2142 cat >conftest.$ac_ext <<_ACEOF
2143 #ifndef __cplusplus
2144 choke me
2145 #endif
2146 _ACEOF
2147 rm -f conftest.$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149 (eval $ac_compile) 2>conftest.er1
2150 ac_status=$?
2151 grep -v '^ *+' conftest.er1 >conftest.err
2152 rm -f conftest.er1
2153 cat conftest.err >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 { ac_try='test -z "$ac_c_werror_flag"
2157 || test ! -s conftest.err'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; } &&
2163 { ac_try='test -s conftest.$ac_objext'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2169 for ac_declaration in \
2170 '' \
2171 'extern "C" void std::exit (int) throw (); using std::exit;' \
2172 'extern "C" void std::exit (int); using std::exit;' \
2173 'extern "C" void exit (int) throw ();' \
2174 'extern "C" void exit (int);' \
2175 'void exit (int);'
2176 do
2177 cat >conftest.$ac_ext <<_ACEOF
2178 /* confdefs.h. */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2183 $ac_declaration
2184 #include <stdlib.h>
2185 int
2186 main ()
2187 {
2188 exit (42);
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 :
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 continue
2221 fi
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 cat >conftest.$ac_ext <<_ACEOF
2224 /* confdefs.h. */
2225 _ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2229 $ac_declaration
2230 int
2231 main ()
2232 {
2233 exit (42);
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 rm -f conftest.$ac_objext
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>conftest.er1
2241 ac_status=$?
2242 grep -v '^ *+' conftest.er1 >conftest.err
2243 rm -f conftest.er1
2244 cat conftest.err >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); } &&
2247 { ac_try='test -z "$ac_c_werror_flag"
2248 || test ! -s conftest.err'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2260 break
2261 else
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265 fi
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 rm -f conftest*
2269 if test -n "$ac_declaration"; then
2270 echo '#ifdef __cplusplus' >>confdefs.h
2271 echo $ac_declaration >>confdefs.h
2272 echo '#endif' >>confdefs.h
2273 fi
2274
2275 else
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 fi
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 ac_ext=c
2282 ac_cpp='$CPP $CPPFLAGS'
2283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293
2294 CFLAGS="$OLD_CFLAGS"
2295
2296
2297 if test "$ac_cv_c_compiler_gnu" != yes; then
2298
2299 SGS=no
2300 echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2301 echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6
2302 case `$CC -version 2>&1` in
2303 *TenDRA*)
2304 echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2305 echo "${ECHO_T}yes, TenDRA" >&6
2306 IRC_CFLAGS=""
2307 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem"
2308 SGS=yes
2309 TenDRA=yes
2310 ;;
2311 *MIPSpro*)
2312 echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2313 echo "${ECHO_T}yes, MIPSpro" >&6
2314 MIPSpro=yes
2315 SGS=yes
2316 ;;
2317 *)
2318 echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2320 TenDRA=no
2321 MIPSpro=no
2322 ;;
2323 esac
2324
2325 echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2326 echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6
2327 case `$CC -V 2>&1` in
2328 *Sun*WorkShop* | *Forte*Developer* | *Sun*C*)
2329 echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2330 echo "${ECHO_T}Sun Workshop/Forte" >&6
2331 IRC_CFLAGS="-xO3 -xdepend -xinline=_MyMalloc,_MyRealloc,_MyFree,_DupString"
2332 SunWorkShop=yes
2333 SGS=yes
2334 ;;
2335 *Tru64*)
2336 echo "$as_me:$LINENO: result: Tru64 cc" >&5
2337 echo "${ECHO_T}Tru64 cc" >&6
2338 IRC_CFLAGS=""
2339 CPPFLAGS="-I/usr/local/include"
2340 Tru=yes
2341 ;;
2342 *HP*ANSI*)
2343 echo "$as_me:$LINENO: result: HPUX cc" >&5
2344 echo "${ECHO_T}HPUX cc" >&6
2345 HPUX=yes
2346 IRC_CFLAGS="+e"
2347 ;;
2348 *)
2349 echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2351 ;;
2352 esac
2353
2354 fi
2355
2356 echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5
2357 echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6
2358 case `uname -s` in
2359 HP-UX*)
2360
2361 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2362 echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2363 echo "${ECHO_T}assuming old HPUX with its own cc" >&6
2364 IRC_CFLAGS="$IRC_CFLAGS +e"
2365 HPUX=yes
2366 else
2367 echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2368 echo "${ECHO_T}already using newer HPUX" >&6
2369 fi
2370 ;;
2371 CYGWIN*)
2372 echo "$as_me:$LINENO: result: Cygwin" >&5
2373 echo "${ECHO_T}Cygwin" >&6
2374 CYGWIN=yes
2375 ;;
2376 SunOS*)
2377 echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2378 echo "${ECHO_T}SunOS or Solaris" >&6
2379
2380 cat >>confdefs.h <<\_ACEOF
2381 #define __EXTENSIONS__ 1
2382 _ACEOF
2383
2384 ;;
2385 *)
2386 echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2388 ;;
2389 esac
2390
2391 if test "$ac_cv_c_compiler_gnu" = yes; then
2392 echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2393 echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6
2394
2395 if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then
2396 AppleGCC=yes
2397 else
2398 AppleGCC=no
2399 fi
2400
2401 echo "$as_me:$LINENO: result: $AppleGCC" >&5
2402 echo "${ECHO_T}$AppleGCC" >&6
2403
2404 IRC_CFLAGS="$IRC_CFLAGS -Wall -O0"
2405 fi
2406
2407 if test "$ac_cv_prog_cc_g" = yes; then
2408 if test "$Tru" = yes; then
2409 IRC_CFLAGS="$IRC_CFLAGS -g3"
2410 else
2411 IRC_CFLAGS="$IRC_CFLAGS -g"
2412 fi
2413 fi
2414
2415 echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2416 echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6
2417 if test "$SGS" = "yes"; then
2418 echo "$as_me:$LINENO: result: yes" >&5
2419 echo "${ECHO_T}yes" >&6
2420 else
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425 # Extract the first word of "mkdep", so it can be a program name with args.
2426 set dummy mkdep; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_path_MKDEP+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 case $MKDEP in
2433 [\\/]* | ?:[\\/]*)
2434 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2435 ;;
2436 *)
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448 done
2449 done
2450
2451 ;;
2452 esac
2453 fi
2454 MKDEP=$ac_cv_path_MKDEP
2455
2456 if test -n "$MKDEP"; then
2457 echo "$as_me:$LINENO: result: $MKDEP" >&5
2458 echo "${ECHO_T}$MKDEP" >&6
2459 else
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2462 fi
2463
2464 # Extract the first word of "makedepend", so it can be a program name with args.
2465 set dummy makedepend; ac_word=$2
2466 echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 case $MAKEDEPEND in
2472 [\\/]* | ?:[\\/]*)
2473 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2474 ;;
2475 *)
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489
2490 ;;
2491 esac
2492 fi
2493 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2494
2495 if test -n "$MAKEDEPEND"; then
2496 echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2497 echo "${ECHO_T}$MAKEDEPEND" >&6
2498 else
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503
2504 echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2505 echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6
2506
2507 STDOUT="> .depend"
2508
2509 if test "$ac_cv_c_compiler_gnu" = yes; then
2510 echo "$as_me:$LINENO: result: gcc -MM" >&5
2511 echo "${ECHO_T}gcc -MM" >&6
2512 MKDEP="$CC -MM"
2513 elif test ! -z "$MKDEP"; then
2514 echo "$as_me:$LINENO: result: mkdep" >&5
2515 echo "${ECHO_T}mkdep" >&6
2516
2517 if test -z "$Tru"; then
2518 STDOUT=""
2519 else
2520 STDOUT=" 2> /dev/null"
2521 fi
2522 elif test "$SunWorkShop" = yes; then
2523 echo "$as_me:$LINENO: result: $CC -xM" >&5
2524 echo "${ECHO_T}$CC -xM" >&6
2525 MKDEP="$CC -xM"
2526 STDOUT="> .depend 2> /dev/null"
2527 elif test ! -z "$MAKEDEPEND"; then
2528 echo "$as_me:$LINENO: result: makedepend" >&5
2529 echo "${ECHO_T}makedepend" >&6
2530 MKDEP="$MAKEDEPEND -f-"
2531 else
2532 echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2533 echo "${ECHO_T}nothing suitable.. forget it!" >&6
2534 MKDEP=":"
2535 fi
2536
2537
2538
2539
2540 echo "$as_me:$LINENO: checking for /dev/null" >&5
2541 echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6
2542 if test -c /dev/null ; then
2543
2544 cat >>confdefs.h <<\_ACEOF
2545 #define PATH_DEVNULL "/dev/null"
2546 _ACEOF
2547
2548 echo "$as_me:$LINENO: result: yes" >&5
2549 echo "${ECHO_T}yes" >&6
2550 else
2551
2552 cat >>confdefs.h <<\_ACEOF
2553 #define PATH_DEVNULL "devnull.log"
2554 _ACEOF
2555
2556 echo "$as_me:$LINENO: result: no - using devnull.log" >&5
2557 echo "${ECHO_T}no - using devnull.log" >&6
2558 fi
2559
2560 if test ! -z "$CFLAGS"; then
2561 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2562 fi
2563
2564
2565 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2566 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2567 if test "${ac_cv_search_strerror+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 ac_func_search_save_LIBS=$LIBS
2571 ac_cv_search_strerror=no
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2578
2579 /* Override any gcc2 internal prototype to avoid an error. */
2580 #ifdef __cplusplus
2581 extern "C"
2582 #endif
2583 /* We use char because int might match the return type of a gcc2
2584 builtin and then its argument prototype would still apply. */
2585 char strerror ();
2586 int
2587 main ()
2588 {
2589 strerror ();
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext conftest$ac_exeext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596 (eval $ac_link) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest$ac_exeext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 ac_cv_search_strerror="none required"
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 fi
2622 rm -f conftest.err conftest.$ac_objext \
2623 conftest$ac_exeext conftest.$ac_ext
2624 if test "$ac_cv_search_strerror" = no; then
2625 for ac_lib in cposix; do
2626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2633
2634 /* Override any gcc2 internal prototype to avoid an error. */
2635 #ifdef __cplusplus
2636 extern "C"
2637 #endif
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2640 char strerror ();
2641 int
2642 main ()
2643 {
2644 strerror ();
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 rm -f conftest.$ac_objext conftest$ac_exeext
2650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2651 (eval $ac_link) 2>conftest.er1
2652 ac_status=$?
2653 grep -v '^ *+' conftest.er1 >conftest.err
2654 rm -f conftest.er1
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -z "$ac_c_werror_flag"
2659 || test ! -s conftest.err'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; } &&
2665 { ac_try='test -s conftest$ac_exeext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 ac_cv_search_strerror="-l$ac_lib"
2672 break
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 fi
2678 rm -f conftest.err conftest.$ac_objext \
2679 conftest$ac_exeext conftest.$ac_ext
2680 done
2681 fi
2682 LIBS=$ac_func_search_save_LIBS
2683 fi
2684 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2685 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2686 if test "$ac_cv_search_strerror" != no; then
2687 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2688
2689 fi
2690
2691 echo "$as_me:$LINENO: checking for inline" >&5
2692 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2693 if test "${ac_cv_c_inline+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696 ac_cv_c_inline=no
2697 for ac_kw in inline __inline__ __inline; do
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h. */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2704 #ifndef __cplusplus
2705 typedef int foo_t;
2706 static $ac_kw foo_t static_foo () {return 0; }
2707 $ac_kw foo_t foo () {return 0; }
2708 #endif
2709
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 ac_cv_c_inline=$ac_kw; break
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2744 echo "${ECHO_T}$ac_cv_c_inline" >&6
2745
2746
2747 case $ac_cv_c_inline in
2748 inline | yes) ;;
2749 *)
2750 case $ac_cv_c_inline in
2751 no) ac_val=;;
2752 *) ac_val=$ac_cv_c_inline;;
2753 esac
2754 cat >>confdefs.h <<_ACEOF
2755 #ifndef __cplusplus
2756 #define inline $ac_val
2757 #endif
2758 _ACEOF
2759 ;;
2760 esac
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2768 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2769 # On Suns, sometimes $CPP names a directory.
2770 if test -n "$CPP" && test -d "$CPP"; then
2771 CPP=
2772 fi
2773 if test -z "$CPP"; then
2774 if test "${ac_cv_prog_CPP+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 # Double quotes because CPP needs to be expanded
2778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2779 do
2780 ac_preproc_ok=false
2781 for ac_c_preproc_warn_flag in '' yes
2782 do
2783 # Use a header file that comes with gcc, so configuring glibc
2784 # with a fresh cross-compiler works.
2785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786 # <limits.h> exists even on freestanding compilers.
2787 # On the NeXT, cc -E runs the code through the compiler's parser,
2788 # not just through cpp. "Syntax error" is here to catch this case.
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #ifdef __STDC__
2796 # include <limits.h>
2797 #else
2798 # include <assert.h>
2799 #endif
2800 Syntax error
2801 _ACEOF
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804 ac_status=$?
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null; then
2810 if test -s conftest.err; then
2811 ac_cpp_err=$ac_c_preproc_warn_flag
2812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2813 else
2814 ac_cpp_err=
2815 fi
2816 else
2817 ac_cpp_err=yes
2818 fi
2819 if test -z "$ac_cpp_err"; then
2820 :
2821 else
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 # Broken: fails on valid input.
2826 continue
2827 fi
2828 rm -f conftest.err conftest.$ac_ext
2829
2830 # OK, works on sane cases. Now check whether non-existent headers
2831 # can be detected and how.
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h. */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.h>
2839 _ACEOF
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 ac_status=$?
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev/null; then
2848 if test -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2851 else
2852 ac_cpp_err=
2853 fi
2854 else
2855 ac_cpp_err=yes
2856 fi
2857 if test -z "$ac_cpp_err"; then
2858 # Broken: success on invalid input.
2859 continue
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 # Passes both tests.
2865 ac_preproc_ok=:
2866 break
2867 fi
2868 rm -f conftest.err conftest.$ac_ext
2869
2870 done
2871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2872 rm -f conftest.err conftest.$ac_ext
2873 if $ac_preproc_ok; then
2874 break
2875 fi
2876
2877 done
2878 ac_cv_prog_CPP=$CPP
2879
2880 fi
2881 CPP=$ac_cv_prog_CPP
2882 else
2883 ac_cv_prog_CPP=$CPP
2884 fi
2885 echo "$as_me:$LINENO: result: $CPP" >&5
2886 echo "${ECHO_T}$CPP" >&6
2887 ac_preproc_ok=false
2888 for ac_c_preproc_warn_flag in '' yes
2889 do
2890 # Use a header file that comes with gcc, so configuring glibc
2891 # with a fresh cross-compiler works.
2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893 # <limits.h> exists even on freestanding compilers.
2894 # On the NeXT, cc -E runs the code through the compiler's parser,
2895 # not just through cpp. "Syntax error" is here to catch this case.
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 #ifdef __STDC__
2903 # include <limits.h>
2904 #else
2905 # include <assert.h>
2906 #endif
2907 Syntax error
2908 _ACEOF
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2920 else
2921 ac_cpp_err=
2922 fi
2923 else
2924 ac_cpp_err=yes
2925 fi
2926 if test -z "$ac_cpp_err"; then
2927 :
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 # Broken: fails on valid input.
2933 continue
2934 fi
2935 rm -f conftest.err conftest.$ac_ext
2936
2937 # OK, works on sane cases. Now check whether non-existent headers
2938 # can be detected and how.
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <ac_nonexistent.h>
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958 else
2959 ac_cpp_err=
2960 fi
2961 else
2962 ac_cpp_err=yes
2963 fi
2964 if test -z "$ac_cpp_err"; then
2965 # Broken: success on invalid input.
2966 continue
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 # Passes both tests.
2972 ac_preproc_ok=:
2973 break
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977 done
2978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2979 rm -f conftest.err conftest.$ac_ext
2980 if $ac_preproc_ok; then
2981 :
2982 else
2983 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2984 See \`config.log' for more details." >&5
2985 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2986 See \`config.log' for more details." >&2;}
2987 { (exit 1); exit 1; }; }
2988 fi
2989
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995
2996
2997 echo "$as_me:$LINENO: checking for egrep" >&5
2998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2999 if test "${ac_cv_prog_egrep+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3003 then ac_cv_prog_egrep='grep -E'
3004 else ac_cv_prog_egrep='egrep'
3005 fi
3006 fi
3007 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3008 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3009 EGREP=$ac_cv_prog_egrep
3010
3011
3012 if test $ac_cv_c_compiler_gnu = yes; then
3013 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3014 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3015 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 ac_pattern="Autoconf.*'x'"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 #include <sgtty.h>
3026 Autoconf TIOCGETP
3027 _ACEOF
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3030 ac_cv_prog_gcc_traditional=yes
3031 else
3032 ac_cv_prog_gcc_traditional=no
3033 fi
3034 rm -f conftest*
3035
3036
3037 if test $ac_cv_prog_gcc_traditional = no; then
3038 cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h. */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3044 #include <termio.h>
3045 Autoconf TCGETA
3046 _ACEOF
3047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3048 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3049 ac_cv_prog_gcc_traditional=yes
3050 fi
3051 rm -f conftest*
3052
3053 fi
3054 fi
3055 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3056 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3057 if test $ac_cv_prog_gcc_traditional = yes; then
3058 CC="$CC -traditional"
3059 fi
3060 fi
3061
3062 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3063 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3064 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3065 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 cat >conftest.make <<\_ACEOF
3069 all:
3070 @echo 'ac_maketemp="$(MAKE)"'
3071 _ACEOF
3072 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3073 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3074 if test -n "$ac_maketemp"; then
3075 eval ac_cv_prog_make_${ac_make}_set=yes
3076 else
3077 eval ac_cv_prog_make_${ac_make}_set=no
3078 fi
3079 rm -f conftest.make
3080 fi
3081 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3084 SET_MAKE=
3085 else
3086 echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3088 SET_MAKE="MAKE=${MAKE-make}"
3089 fi
3090
3091 ac_aux_dir=
3092 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3093 if test -f $ac_dir/install-sh; then
3094 ac_aux_dir=$ac_dir
3095 ac_install_sh="$ac_aux_dir/install-sh -c"
3096 break
3097 elif test -f $ac_dir/install.sh; then
3098 ac_aux_dir=$ac_dir
3099 ac_install_sh="$ac_aux_dir/install.sh -c"
3100 break
3101 elif test -f $ac_dir/shtool; then
3102 ac_aux_dir=$ac_dir
3103 ac_install_sh="$ac_aux_dir/shtool install -c"
3104 break
3105 fi
3106 done
3107 if test -z "$ac_aux_dir"; then
3108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3109 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3110 { (exit 1); exit 1; }; }
3111 fi
3112 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3113 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3114 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3115
3116 # Find a good install program. We prefer a C program (faster),
3117 # so one script is as good as another. But avoid the broken or
3118 # incompatible versions:
3119 # SysV /etc/install, /usr/sbin/install
3120 # SunOS /usr/etc/install
3121 # IRIX /sbin/install
3122 # AIX /bin/install
3123 # AmigaOS /C/install, which installs bootblocks on floppy discs
3124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3127 # OS/2's system install, which has a completely different semantic
3128 # ./install, which can be erroneously created by make from ./install.sh.
3129 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3130 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3131 if test -z "$INSTALL"; then
3132 if test "${ac_cv_path_install+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 # Account for people who put trailing slashes in PATH elements.
3141 case $as_dir/ in
3142 ./ | .// | /cC/* | \
3143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3144 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3145 /usr/ucb/* ) ;;
3146 *)
3147 # OSF1 and SCO ODT 3.0 have their own names for install.
3148 # Don't use installbsd from OSF since it installs stuff as root
3149 # by default.
3150 for ac_prog in ginstall scoinst install; do
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3153 if test $ac_prog = install &&
3154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3155 # AIX install. It has an incompatible calling convention.
3156 :
3157 elif test $ac_prog = install &&
3158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3159 # program-specific install script used by HP pwplus--don't use.
3160 :
3161 else
3162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3163 break 3
3164 fi
3165 fi
3166 done
3167 done
3168 ;;
3169 esac
3170 done
3171
3172
3173 fi
3174 if test "${ac_cv_path_install+set}" = set; then
3175 INSTALL=$ac_cv_path_install
3176 else
3177 # As a last resort, use the slow shell script. We don't cache a
3178 # path for INSTALL within a source directory, because that will
3179 # break other packages using the cache if that directory is
3180 # removed, or if the path is relative.
3181 INSTALL=$ac_install_sh
3182 fi
3183 fi
3184 echo "$as_me:$LINENO: result: $INSTALL" >&5
3185 echo "${ECHO_T}$INSTALL" >&6
3186
3187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3188 # It thinks the first close brace ends the variable substitution.
3189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3190
3191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3192
3193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3194
3195 # Extract the first word of "rm", so it can be a program name with args.
3196 set dummy rm; ac_word=$2
3197 echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_path_RM+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 case $RM in
3203 [\\/]* | ?:[\\/]*)
3204 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3205 ;;
3206 *)
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218 done
3219 done
3220
3221 ;;
3222 esac
3223 fi
3224 RM=$ac_cv_path_RM
3225
3226 if test -n "$RM"; then
3227 echo "$as_me:$LINENO: result: $RM" >&5
3228 echo "${ECHO_T}$RM" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3232 fi
3233
3234 # Extract the first word of "cp", so it can be a program name with args.
3235 set dummy cp; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_path_CP+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 case $CP in
3242 [\\/]* | ?:[\\/]*)
3243 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3244 ;;
3245 *)
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259
3260 ;;
3261 esac
3262 fi
3263 CP=$ac_cv_path_CP
3264
3265 if test -n "$CP"; then
3266 echo "$as_me:$LINENO: result: $CP" >&5
3267 echo "${ECHO_T}$CP" >&6
3268 else
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3271 fi
3272
3273 # Extract the first word of "mv", so it can be a program name with args.
3274 set dummy mv; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_path_MV+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 case $MV in
3281 [\\/]* | ?:[\\/]*)
3282 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3283 ;;
3284 *)
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296 done
3297 done
3298
3299 ;;
3300 esac
3301 fi
3302 MV=$ac_cv_path_MV
3303
3304 if test -n "$MV"; then
3305 echo "$as_me:$LINENO: result: $MV" >&5
3306 echo "${ECHO_T}$MV" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3310 fi
3311
3312 # Extract the first word of "ln", so it can be a program name with args.
3313 set dummy ln; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_path_LN+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 case $LN in
3320 [\\/]* | ?:[\\/]*)
3321 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3322 ;;
3323 *)
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337
3338 ;;
3339 esac
3340 fi
3341 LN=$ac_cv_path_LN
3342
3343 if test -n "$LN"; then
3344 echo "$as_me:$LINENO: result: $LN" >&5
3345 echo "${ECHO_T}$LN" >&6
3346 else
3347 echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3349 fi
3350
3351 # Extract the first word of "sed", so it can be a program name with args.
3352 set dummy sed; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_path_SED+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 case $SED in
3359 [\\/]* | ?:[\\/]*)
3360 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3361 ;;
3362 *)
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376
3377 ;;
3378 esac
3379 fi
3380 SED=$ac_cv_path_SED
3381
3382 if test -n "$SED"; then
3383 echo "$as_me:$LINENO: result: $SED" >&5
3384 echo "${ECHO_T}$SED" >&6
3385 else
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3388 fi
3389
3390 # Extract the first word of "ar", so it can be a program name with args.
3391 set dummy ar; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_path_AR+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 case $AR in
3398 [\\/]* | ?:[\\/]*)
3399 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3400 ;;
3401 *)
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415
3416 ;;
3417 esac
3418 fi
3419 AR=$ac_cv_path_AR
3420
3421 if test -n "$AR"; then
3422 echo "$as_me:$LINENO: result: $AR" >&5
3423 echo "${ECHO_T}$AR" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3427 fi
3428
3429 # Extract the first word of "ld", so it can be a program name with args.
3430 set dummy ld; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_path_LD+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 case $LD in
3437 [\\/]* | ?:[\\/]*)
3438 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3439 ;;
3440 *)
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454
3455 ;;
3456 esac
3457 fi
3458 LD=$ac_cv_path_LD
3459
3460 if test -n "$LD"; then
3461 echo "$as_me:$LINENO: result: $LD" >&5
3462 echo "${ECHO_T}$LD" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467
3468 # Extract the first word of "test", so it can be a program name with args.
3469 set dummy test; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_TEST+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475 case $TEST in
3476 [\\/]* | ?:[\\/]*)
3477 ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
3478 ;;
3479 *)
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493
3494 test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test"
3495 ;;
3496 esac
3497 fi
3498 TEST=$ac_cv_path_TEST
3499
3500 if test -n "$TEST"; then
3501 echo "$as_me:$LINENO: result: $TEST" >&5
3502 echo "${ECHO_T}$TEST" >&6
3503 else
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3506 fi
3507
3508
3509 if test "$libexecdir" = '${exec_prefix}/libexec' &&
3510 test "$localstatedir" = '${prefix}/var'; then
3511 libexecdir='${bindir}'
3512 localstatedir='${prefix}'
3513 fi
3514
3515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517 if test "${ac_cv_header_stdc+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <stdlib.h>
3527 #include <stdarg.h>
3528 #include <string.h>
3529 #include <float.h>
3530
3531 int
3532 main ()
3533 {
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_cv_header_stdc=yes
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 ac_cv_header_stdc=no
3567 fi
3568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569
3570 if test $ac_cv_header_stdc = yes; then
3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h. */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <string.h>
3579
3580 _ACEOF
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 $EGREP "memchr" >/dev/null 2>&1; then
3583 :
3584 else
3585 ac_cv_header_stdc=no
3586 fi
3587 rm -f conftest*
3588
3589 fi
3590
3591 if test $ac_cv_header_stdc = yes; then
3592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <stdlib.h>
3600
3601 _ACEOF
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "free" >/dev/null 2>&1; then
3604 :
3605 else
3606 ac_cv_header_stdc=no
3607 fi
3608 rm -f conftest*
3609
3610 fi
3611
3612 if test $ac_cv_header_stdc = yes; then
3613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3614 if test "$cross_compiling" = yes; then
3615 :
3616 else
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <ctype.h>
3624 #if ((' ' & 0x0FF) == 0x020)
3625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3627 #else
3628 # define ISLOWER(c) \
3629 (('a' <= (c) && (c) <= 'i') \
3630 || ('j' <= (c) && (c) <= 'r') \
3631 || ('s' <= (c) && (c) <= 'z'))
3632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3633 #endif
3634
3635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3636 int
3637 main ()
3638 {
3639 int i;
3640 for (i = 0; i < 256; i++)
3641 if (XOR (islower (i), ISLOWER (i))
3642 || toupper (i) != TOUPPER (i))
3643 exit(2);
3644 exit (0);
3645 }
3646 _ACEOF
3647 rm -f conftest$ac_exeext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3658 :
3659 else
3660 echo "$as_me: program exited with status $ac_status" >&5
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 ( exit $ac_status )
3665 ac_cv_header_stdc=no
3666 fi
3667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 fi
3670 fi
3671 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3672 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3673 if test $ac_cv_header_stdc = yes; then
3674
3675 cat >>confdefs.h <<\_ACEOF
3676 #define STDC_HEADERS 1
3677 _ACEOF
3678
3679 fi
3680
3681
3682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3693 inttypes.h stdint.h unistd.h
3694 do
3695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3696 echo "$as_me:$LINENO: checking for $ac_header" >&5
3697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 $ac_includes_default
3708
3709 #include <$ac_header>
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 eval "$as_ac_Header=yes"
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 eval "$as_ac_Header=no"
3739 fi
3740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3745 cat >>confdefs.h <<_ACEOF
3746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3747 _ACEOF
3748
3749 fi
3750
3751 done
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766 for ac_header in crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h
3767 do
3768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3770 echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 fi
3775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3777 else
3778 # Is the header compilable?
3779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3781 cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 $ac_includes_default
3788 #include <$ac_header>
3789 _ACEOF
3790 rm -f conftest.$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_header_compiler=yes
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 ac_header_compiler=no
3818 fi
3819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3821 echo "${ECHO_T}$ac_header_compiler" >&6
3822
3823 # Is the header present?
3824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 #include <$ac_header>
3833 _ACEOF
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null; then
3842 if test -s conftest.err; then
3843 ac_cpp_err=$ac_c_preproc_warn_flag
3844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3845 else
3846 ac_cpp_err=
3847 fi
3848 else
3849 ac_cpp_err=yes
3850 fi
3851 if test -z "$ac_cpp_err"; then
3852 ac_header_preproc=yes
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 ac_header_preproc=no
3858 fi
3859 rm -f conftest.err conftest.$ac_ext
3860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3861 echo "${ECHO_T}$ac_header_preproc" >&6
3862
3863 # So? What about this header?
3864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3865 yes:no: )
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3870 ac_header_preproc=yes
3871 ;;
3872 no:yes:* )
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3885 (
3886 cat <<\_ASBOX
3887 ## -------------------------------------- ##
3888 ## Report this to the ircd-hybrid lists. ##
3889 ## -------------------------------------- ##
3890 _ASBOX
3891 ) |
3892 sed "s/^/$as_me: WARNING: /" >&2
3893 ;;
3894 esac
3895 echo "$as_me:$LINENO: checking for $ac_header" >&5
3896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 eval "$as_ac_Header=\$ac_header_preproc"
3901 fi
3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3904
3905 fi
3906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3907 cat >>confdefs.h <<_ACEOF
3908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3909 _ACEOF
3910
3911 fi
3912
3913 done
3914
3915
3916
3917 echo "$as_me:$LINENO: checking for library containing socket" >&5
3918 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
3919 if test "${ac_cv_search_socket+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 ac_func_search_save_LIBS=$LIBS
3923 ac_cv_search_socket=no
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 #ifdef __cplusplus
3933 extern "C"
3934 #endif
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3937 char socket ();
3938 int
3939 main ()
3940 {
3941 socket ();
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.$ac_objext conftest$ac_exeext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948 (eval $ac_link) 2>conftest.er1
3949 ac_status=$?
3950 grep -v '^ *+' conftest.er1 >conftest.err
3951 rm -f conftest.er1
3952 cat conftest.err >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -z "$ac_c_werror_flag"
3956 || test ! -s conftest.err'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; } &&
3962 { ac_try='test -s conftest$ac_exeext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 ac_cv_search_socket="none required"
3969 else
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 fi
3974 rm -f conftest.err conftest.$ac_objext \
3975 conftest$ac_exeext conftest.$ac_ext
3976 if test "$ac_cv_search_socket" = no; then
3977 for ac_lib in socket; do
3978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h. */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985
3986 /* Override any gcc2 internal prototype to avoid an error. */
3987 #ifdef __cplusplus
3988 extern "C"
3989 #endif
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3992 char socket ();
3993 int
3994 main ()
3995 {
3996 socket ();
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.$ac_objext conftest$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag"
4011 || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_search_socket="-l$ac_lib"
4024 break
4025 else
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 fi
4030 rm -f conftest.err conftest.$ac_objext \
4031 conftest$ac_exeext conftest.$ac_ext
4032 done
4033 fi
4034 LIBS=$ac_func_search_save_LIBS
4035 fi
4036 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4037 echo "${ECHO_T}$ac_cv_search_socket" >&6
4038 if test "$ac_cv_search_socket" != no; then
4039 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4040
4041 else
4042 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
4043 echo "$as_me: error: You have no socket()! Aborting." >&2;}
4044 { (exit 1); exit 1; }; }
4045 fi
4046
4047
4048 echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
4049 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6
4050 if test "${ac_cv_search_inet_aton+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 ac_func_search_save_LIBS=$LIBS
4054 ac_cv_search_inet_aton=no
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061
4062 /* Override any gcc2 internal prototype to avoid an error. */
4063 #ifdef __cplusplus
4064 extern "C"
4065 #endif
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4068 char inet_aton ();
4069 int
4070 main ()
4071 {
4072 inet_aton ();
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext conftest$ac_exeext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079 (eval $ac_link) 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag"
4087 || test ! -s conftest.err'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest$ac_exeext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_search_inet_aton="none required"
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 fi
4105 rm -f conftest.err conftest.$ac_objext \
4106 conftest$ac_exeext conftest.$ac_ext
4107 if test "$ac_cv_search_inet_aton" = no; then
4108 for ac_lib in resolv; do
4109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116
4117 /* Override any gcc2 internal prototype to avoid an error. */
4118 #ifdef __cplusplus
4119 extern "C"
4120 #endif
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4123 char inet_aton ();
4124 int
4125 main ()
4126 {
4127 inet_aton ();
4128 ;
4129 return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext conftest$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag"
4142 || test ! -s conftest.err'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest$ac_exeext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 (eval $ac_try) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 ac_cv_search_inet_aton="-l$ac_lib"
4155 break
4156 else
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 fi
4161 rm -f conftest.err conftest.$ac_objext \
4162 conftest$ac_exeext conftest.$ac_ext
4163 done
4164 fi
4165 LIBS=$ac_func_search_save_LIBS
4166 fi
4167 echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
4168 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6
4169 if test "$ac_cv_search_inet_aton" != no; then
4170 test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
4171
4172 else
4173 inet_misc=1;
4174 cat >>confdefs.h <<\_ACEOF
4175 #define NO_INET_ATON 1
4176 _ACEOF
4177
4178 fi
4179
4180 echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
4181 echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6
4182 if test "${ac_cv_search_inet_pton+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 ac_func_search_save_LIBS=$LIBS
4186 ac_cv_search_inet_pton=no
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193
4194 /* Override any gcc2 internal prototype to avoid an error. */
4195 #ifdef __cplusplus
4196 extern "C"
4197 #endif
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4200 char inet_pton ();
4201 int
4202 main ()
4203 {
4204 inet_pton ();
4205 ;
4206 return 0;
4207 }
4208 _ACEOF
4209 rm -f conftest.$ac_objext conftest$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -z "$ac_c_werror_flag"
4219 || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 ac_cv_search_inet_pton="none required"
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 fi
4237 rm -f conftest.err conftest.$ac_objext \
4238 conftest$ac_exeext conftest.$ac_ext
4239 if test "$ac_cv_search_inet_pton" = no; then
4240 for ac_lib in resolv nsl; do
4241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 #ifdef __cplusplus
4251 extern "C"
4252 #endif
4253 /* We use char because int might match the return type of a gcc2
4254 builtin and then its argument prototype would still apply. */
4255 char inet_pton ();
4256 int
4257 main ()
4258 {
4259 inet_pton ();
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest.$ac_objext conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag"
4274 || test ! -s conftest.err'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest$ac_exeext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 ac_cv_search_inet_pton="-l$ac_lib"
4287 break
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 fi
4293 rm -f conftest.err conftest.$ac_objext \
4294 conftest$ac_exeext conftest.$ac_ext
4295 done
4296 fi
4297 LIBS=$ac_func_search_save_LIBS
4298 fi
4299 echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
4300 echo "${ECHO_T}$ac_cv_search_inet_pton" >&6
4301 if test "$ac_cv_search_inet_pton" != no; then
4302 test "$ac_cv_search_inet_pton" = "none required" || LIBS="$ac_cv_search_inet_pton $LIBS"
4303
4304 else
4305 inet_misc=1;
4306 cat >>confdefs.h <<\_ACEOF
4307 #define NO_INET_PTON 1
4308 _ACEOF
4309
4310 fi
4311
4312 echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
4313 echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6
4314 if test "${ac_cv_search_inet_ntop+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 ac_func_search_save_LIBS=$LIBS
4318 ac_cv_search_inet_ntop=no
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325
4326 /* Override any gcc2 internal prototype to avoid an error. */
4327 #ifdef __cplusplus
4328 extern "C"
4329 #endif
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4332 char inet_ntop ();
4333 int
4334 main ()
4335 {
4336 inet_ntop ();
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 rm -f conftest.$ac_objext conftest$ac_exeext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343 (eval $ac_link) 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_search_inet_ntop="none required"
4364 else
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 fi
4369 rm -f conftest.err conftest.$ac_objext \
4370 conftest$ac_exeext conftest.$ac_ext
4371 if test "$ac_cv_search_inet_ntop" = no; then
4372 for ac_lib in resolv nsl; do
4373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380
4381 /* Override any gcc2 internal prototype to avoid an error. */
4382 #ifdef __cplusplus
4383 extern "C"
4384 #endif
4385 /* We use char because int might match the return type of a gcc2
4386 builtin and then its argument prototype would still apply. */
4387 char inet_ntop ();
4388 int
4389 main ()
4390 {
4391 inet_ntop ();
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext conftest$ac_exeext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4398 (eval $ac_link) 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest$ac_exeext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_cv_search_inet_ntop="-l$ac_lib"
4419 break
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 fi
4425 rm -f conftest.err conftest.$ac_objext \
4426 conftest$ac_exeext conftest.$ac_ext
4427 done
4428 fi
4429 LIBS=$ac_func_search_save_LIBS
4430 fi
4431 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
4432 echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6
4433 if test "$ac_cv_search_inet_ntop" != no; then
4434 test "$ac_cv_search_inet_ntop" = "none required" || LIBS="$ac_cv_search_inet_ntop $LIBS"
4435
4436 else
4437 inet_misc=1;
4438 cat >>confdefs.h <<\_ACEOF
4439 #define NO_INET_NTOP 1
4440 _ACEOF
4441
4442 fi
4443
4444
4445 if test "$inet_misc" = 1; then
4446 INET_MISC=inet_misc.c
4447
4448 fi
4449
4450 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
4451 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
4452 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <sys/types.h>
4462 #include <sys/socket.h>
4463
4464
4465 int
4466 main ()
4467 {
4468 if ((struct sockaddr_storage *) 0)
4469 return 0;
4470 if (sizeof (struct sockaddr_storage))
4471 return 0;
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>conftest.er1
4479 ac_status=$?
4480 grep -v '^ *+' conftest.er1 >conftest.err
4481 rm -f conftest.er1
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -z "$ac_c_werror_flag"
4486 || test ! -s conftest.err'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 ac_cv_type_struct_sockaddr_storage=yes
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 ac_cv_type_struct_sockaddr_storage=no
4504 fi
4505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4506 fi
4507 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
4508 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
4509 if test $ac_cv_type_struct_sockaddr_storage = yes; then
4510
4511 cat >>confdefs.h <<_ACEOF
4512 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
4513 _ACEOF
4514
4515
4516 fi
4517
4518
4519 if test "$ac_cv_type_struct_sockaddr_storage" = no; then
4520 echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
4521 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6
4522 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 $ac_includes_default
4532 int
4533 main ()
4534 {
4535 static struct sockaddr_in ac_aggr;
4536 if (ac_aggr.sin_len)
4537 return 0;
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_member_struct_sockaddr_in_sin_len=yes
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h. */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575 $ac_includes_default
4576 int
4577 main ()
4578 {
4579 static struct sockaddr_in ac_aggr;
4580 if (sizeof ac_aggr.sin_len)
4581 return 0;
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag"
4596 || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_cv_member_struct_sockaddr_in_sin_len=yes
4609 else
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613 ac_cv_member_struct_sockaddr_in_sin_len=no
4614 fi
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616 fi
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618 fi
4619 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
4620 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6
4621 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
4622
4623 cat >>confdefs.h <<\_ACEOF
4624 #define SOCKADDR_IN_HAS_LEN 1
4625 _ACEOF
4626
4627 fi
4628
4629 fi
4630
4631 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
4632 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
4633 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h. */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <netdb.h>
4643
4644 int
4645 main ()
4646 {
4647 if ((struct addrinfo *) 0)
4648 return 0;
4649 if (sizeof (struct addrinfo))
4650 return 0;
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag"
4665 || test ! -s conftest.err'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; } &&
4671 { ac_try='test -s conftest.$ac_objext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 ac_cv_type_struct_addrinfo=yes
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 ac_cv_type_struct_addrinfo=no
4683 fi
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 fi
4686 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
4687 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
4688 if test $ac_cv_type_struct_addrinfo = yes; then
4689
4690 cat >>confdefs.h <<_ACEOF
4691 #define HAVE_STRUCT_ADDRINFO 1
4692 _ACEOF
4693
4694
4695 fi
4696
4697
4698 echo "$as_me:$LINENO: checking for socklen_t" >&5
4699 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4700 if test "${ac_cv_type_socklen_t+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h. */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 #include <sys/types.h>
4710 #include <sys/socket.h>
4711
4712 int
4713 main ()
4714 {
4715 if ((socklen_t *) 0)
4716 return 0;
4717 if (sizeof (socklen_t))
4718 return 0;
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_c_werror_flag"
4733 || test ! -s conftest.err'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; } &&
4739 { ac_try='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_type_socklen_t=yes
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 ac_cv_type_socklen_t=no
4751 fi
4752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4755 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4756 if test $ac_cv_type_socklen_t = yes; then
4757 :
4758 else
4759
4760 cat >>confdefs.h <<\_ACEOF
4761 #define socklen_t unsigned int
4762 _ACEOF
4763
4764 fi
4765
4766
4767 if test -z "$Tru"; then
4768
4769 echo "$as_me:$LINENO: checking for broken glibc with __ss_family" >&5
4770 echo $ECHO_N "checking for broken glibc with __ss_family... $ECHO_C" >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 #include <sys/types.h>
4778 #include <sys/socket.h>
4779 int
4780 main ()
4781 {
4782 struct sockaddr_storage s; s.__ss_family = AF_INET;
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809
4810 echo "$as_me:$LINENO: result: yes" >&5
4811 echo "${ECHO_T}yes" >&6
4812
4813 cat >>confdefs.h <<\_ACEOF
4814 #define ss_family __ss_family
4815 _ACEOF
4816
4817
4818 else
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4821
4822 echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6
4824 fi
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826
4827 fi
4828
4829 echo "$as_me:$LINENO: checking for core IPv6 support" >&5
4830 echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6
4831
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #define IN_AUTOCONF
4839 #include "include/stdinc.h"
4840 int
4841 main ()
4842 {
4843 struct sockaddr_in6 s;
4844 struct sockaddr_storage t;
4845 s.sin6_family = 0;
4846
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -z "$ac_c_werror_flag"
4861 || test ! -s conftest.err'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; } &&
4867 { ac_try='test -s conftest.$ac_objext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873
4874 if test "$CYGWIN" = "yes"; then
4875 echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
4876 echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6
4877 have_v6=no
4878 else
4879 have_v6=yes
4880
4881 cat >>confdefs.h <<\_ACEOF
4882 #define IPV6 1
4883 _ACEOF
4884
4885 echo "$as_me:$LINENO: result: yes" >&5
4886 echo "${ECHO_T}yes" >&6
4887 echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
4888 echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 #define IN_AUTOCONF
4896 #include "include/stdinc.h"
4897 int
4898 main ()
4899 {
4900 struct in6_addr a = in6addr_any;
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 echo "$as_me:$LINENO: result: yes" >&5
4929 echo "${ECHO_T}yes" >&6
4930 else
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934
4935 echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6
4937
4938 cat >>confdefs.h <<\_ACEOF
4939 #define NO_IN6ADDR_ANY 1
4940 _ACEOF
4941
4942 inet_misc=1
4943
4944
4945 fi
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947 fi
4948
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 have_v6="no"
4956 fi
4957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958
4959 echo "$as_me:$LINENO: checking for library containing crypt" >&5
4960 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
4961 if test "${ac_cv_search_crypt+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 ac_func_search_save_LIBS=$LIBS
4965 ac_cv_search_crypt=no
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 #ifdef __cplusplus
4975 extern "C"
4976 #endif
4977 /* We use char because int might match the return type of a gcc2
4978 builtin and then its argument prototype would still apply. */
4979 char crypt ();
4980 int
4981 main ()
4982 {
4983 crypt ();
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.$ac_objext conftest$ac_exeext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990 (eval $ac_link) 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -z "$ac_c_werror_flag"
4998 || test ! -s conftest.err'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest$ac_exeext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_cv_search_crypt="none required"
5011 else
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 fi
5016 rm -f conftest.err conftest.$ac_objext \
5017 conftest$ac_exeext conftest.$ac_ext
5018 if test "$ac_cv_search_crypt" = no; then
5019 for ac_lib in crypt descrypt; do
5020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 #ifdef __cplusplus
5030 extern "C"
5031 #endif
5032 /* We use char because int might match the return type of a gcc2
5033 builtin and then its argument prototype would still apply. */
5034 char crypt ();
5035 int
5036 main ()
5037 {
5038 crypt ();
5039 ;
5040 return 0;
5041 }
5042 _ACEOF
5043 rm -f conftest.$ac_objext conftest$ac_exeext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5045 (eval $ac_link) 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } &&
5052 { ac_try='test -z "$ac_c_werror_flag"
5053 || test ! -s conftest.err'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 (eval $ac_try) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; } &&
5059 { ac_try='test -s conftest$ac_exeext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_search_crypt="-l$ac_lib"
5066 break
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071 fi
5072 rm -f conftest.err conftest.$ac_objext \
5073 conftest$ac_exeext conftest.$ac_ext
5074 done
5075 fi
5076 LIBS=$ac_func_search_save_LIBS
5077 fi
5078 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5079 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5080 if test "$ac_cv_search_crypt" != no; then
5081 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5082
5083 fi
5084
5085
5086 CRYPT_LIB=$ac_cv_search_crypt
5087
5088 if test "$CRYPT_LIB" = "none required"; then
5089 unset CRYPT_LIB
5090 elif test "$CRYPT_LIB" = no; then
5091 CRYPT_C=crypt.c
5092 unset CRYPT_LIB
5093 fi
5094
5095
5096
5097
5098 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5099 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5100 if test "${gcc_cv_header_string+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103
5104 cat >conftest.$ac_ext <<_ACEOF
5105 #include <string.h>
5106 #include <strings.h>
5107 _ACEOF
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110 (eval $ac_compile) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_c_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 gcc_cv_header_string=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 gcc_cv_header_string=no
5136 fi
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138
5139 fi
5140 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5141 echo "${ECHO_T}$gcc_cv_header_string" >&6
5142
5143 if test "$gcc_cv_header_string" = "yes"; then
5144
5145 cat >>confdefs.h <<\_ACEOF
5146 #define STRING_WITH_STRINGS 1
5147 _ACEOF
5148
5149 fi
5150
5151 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5152 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5153 if test "${ac_cv_c_bigendian+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 # See if sys/param.h defines the BYTE_ORDER macro.
5157 cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h. */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 #include <sys/types.h>
5164 #include <sys/param.h>
5165
5166 int
5167 main ()
5168 {
5169 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5170 bogus endian macros
5171 #endif
5172
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 rm -f conftest.$ac_objext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try='test -z "$ac_c_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try='test -s conftest.$ac_objext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 # It does; now see whether it defined to BIG_ENDIAN or not.
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5207 #include <sys/param.h>
5208
5209 int
5210 main ()
5211 {
5212 #if BYTE_ORDER != BIG_ENDIAN
5213 not big endian
5214 #endif
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_c_bigendian=yes
5243 else
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_cv_c_bigendian=no
5248 fi
5249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 # It does not; compile a test program.
5255 if test "$cross_compiling" = yes; then
5256 # try to guess the endianness by grepping values into an object file
5257 ac_cv_c_bigendian=unknown
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5265 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5266 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5267 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5268 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5269 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5270 int
5271 main ()
5272 {
5273 _ascii (); _ebcdic ();
5274 ;
5275 return 0;
5276 }
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -z "$ac_c_werror_flag"
5288 || test ! -s conftest.err'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; } &&
5294 { ac_try='test -s conftest.$ac_objext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5301 ac_cv_c_bigendian=yes
5302 fi
5303 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5304 if test "$ac_cv_c_bigendian" = unknown; then
5305 ac_cv_c_bigendian=no
5306 else
5307 # finding both strings is unlikely to happen, but who knows?
5308 ac_cv_c_bigendian=unknown
5309 fi
5310 fi
5311 else
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 fi
5316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317 else
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 int
5325 main ()
5326 {
5327 /* Are we little or big endian? From Harbison&Steele. */
5328 union
5329 {
5330 long l;
5331 char c[sizeof (long)];
5332 } u;
5333 u.l = 1;
5334 exit (u.c[sizeof (long) - 1] == 1);
5335 }
5336 _ACEOF
5337 rm -f conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_c_bigendian=no
5349 else
5350 echo "$as_me: program exited with status $ac_status" >&5
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ( exit $ac_status )
5355 ac_cv_c_bigendian=yes
5356 fi
5357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5358 fi
5359 fi
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361 fi
5362 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5363 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5364 case $ac_cv_c_bigendian in
5365 yes)
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define WORDS_BIGENDIAN 1
5369 _ACEOF
5370 ;;
5371 no)
5372 ;;
5373 *)
5374 { { echo "$as_me:$LINENO: error: unknown endianness
5375 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5376 echo "$as_me: error: unknown endianness
5377 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5378 { (exit 1); exit 1; }; } ;;
5379 esac
5380
5381
5382 if test "${ac_cv_header_stdarg_h+set}" = set; then
5383 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5384 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5385 if test "${ac_cv_header_stdarg_h+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5389 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5390 else
5391 # Is the header compilable?
5392 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5393 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
5394 cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h. */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5400 $ac_includes_default
5401 #include <stdarg.h>
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag"
5413 || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_header_compiler=yes
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430 ac_header_compiler=no
5431 fi
5432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5434 echo "${ECHO_T}$ac_header_compiler" >&6
5435
5436 # Is the header present?
5437 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5438 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5439 cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h. */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <stdarg.h>
5446 _ACEOF
5447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } >/dev/null; then
5455 if test -s conftest.err; then
5456 ac_cpp_err=$ac_c_preproc_warn_flag
5457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5458 else
5459 ac_cpp_err=
5460 fi
5461 else
5462 ac_cpp_err=yes
5463 fi
5464 if test -z "$ac_cpp_err"; then
5465 ac_header_preproc=yes
5466 else
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 ac_header_preproc=no
5471 fi
5472 rm -f conftest.err conftest.$ac_ext
5473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5474 echo "${ECHO_T}$ac_header_preproc" >&6
5475
5476 # So? What about this header?
5477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5478 yes:no: )
5479 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5480 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5482 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5483 ac_header_preproc=yes
5484 ;;
5485 no:yes:* )
5486 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5487 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5488 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5489 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5490 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5491 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5492 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5493 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5495 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5496 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5497 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5498 (
5499 cat <<\_ASBOX
5500 ## -------------------------------------- ##
5501 ## Report this to the ircd-hybrid lists. ##
5502 ## -------------------------------------- ##
5503 _ASBOX
5504 ) |
5505 sed "s/^/$as_me: WARNING: /" >&2
5506 ;;
5507 esac
5508 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5509 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5510 if test "${ac_cv_header_stdarg_h+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 ac_cv_header_stdarg_h=$ac_header_preproc
5514 fi
5515 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5516 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5517
5518 fi
5519 if test $ac_cv_header_stdarg_h = yes; then
5520 :
5521 else
5522 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&5
5523 echo "$as_me: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&2;}
5524 { (exit 1); exit 1; }; }
5525 fi
5526
5527
5528
5529
5530 if test "$ac_cv_c_compiler_gnu" = yes; then
5531
5532 echo "$as_me:$LINENO: checking for strlcpy" >&5
5533 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
5534 save_CFLAGS=$CFLAGS
5535 CFLAGS="$CFLAGS -Wimplicit -Werror"
5536
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 #include <string.h>
5544 #include <stdlib.h>
5545 int
5546 main ()
5547 {
5548 char *a = malloc(6), *b = strdup("hello");
5549 strlcpy(a, b, 6);
5550
5551 ;
5552 return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest$ac_exeext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 echo "$as_me:$LINENO: result: yes" >&5
5578 echo "${ECHO_T}yes" >&6
5579
5580 cat >>confdefs.h <<\_ACEOF
5581 #define HAVE_STRLCPY 1
5582 _ACEOF
5583
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588 echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590
5591 fi
5592 rm -f conftest.err conftest.$ac_objext \
5593 conftest$ac_exeext conftest.$ac_ext
5594
5595 echo "$as_me:$LINENO: checking for strlcat" >&5
5596 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <string.h>
5604 #include <stdlib.h>
5605 int
5606 main ()
5607 {
5608 char *a = malloc(6), *b = strdup("hello");
5609 strlcat(a, b, 6);
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try='test -z "$ac_c_werror_flag"
5625 || test ! -s conftest.err'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; } &&
5631 { ac_try='test -s conftest$ac_exeext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 echo "$as_me:$LINENO: result: yes" >&5
5638 echo "${ECHO_T}yes" >&6
5639
5640 cat >>confdefs.h <<\_ACEOF
5641 #define HAVE_STRLCAT 1
5642 _ACEOF
5643
5644 else
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 echo "$as_me:$LINENO: result: no" >&5
5649 echo "${ECHO_T}no" >&6
5650
5651 fi
5652 rm -f conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654
5655 CFLAGS=$save_CFLAGS
5656
5657 else
5658
5659
5660
5661
5662 for ac_func in strlcat strlcpy
5663 do
5664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5665 echo "$as_me:$LINENO: checking for $ac_func" >&5
5666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5667 if eval "test \"\${$as_ac_var+set}\" = set"; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5678 #define $ac_func innocuous_$ac_func
5679
5680 /* System header to define __stub macros and hopefully few prototypes,
5681 which can conflict with char $ac_func (); below.
5682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5683 <limits.h> exists even on freestanding compilers. */
5684
5685 #ifdef __STDC__
5686 # include <limits.h>
5687 #else
5688 # include <assert.h>
5689 #endif
5690
5691 #undef $ac_func
5692
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 #ifdef __cplusplus
5695 extern "C"
5696 {
5697 #endif
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700 char $ac_func ();
5701 /* The GNU C library defines this for functions which it implements
5702 to always fail with ENOSYS. Some functions are actually named
5703 something starting with __ and the normal name is an alias. */
5704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5705 choke me
5706 #else
5707 char (*f) () = $ac_func;
5708 #endif
5709 #ifdef __cplusplus
5710 }
5711 #endif
5712
5713 int
5714 main ()
5715 {
5716 return f != $ac_func;
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 eval "$as_ac_var=yes"
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748 eval "$as_ac_var=no"
5749 fi
5750 rm -f conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 fi
5753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5755 if test `eval echo '${'$as_ac_var'}'` = yes; then
5756 cat >>confdefs.h <<_ACEOF
5757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5758 _ACEOF
5759
5760 fi
5761 done
5762
5763
5764 fi
5765
5766 echo "$as_me:$LINENO: checking for int64_t" >&5
5767 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
5768 if test "${ac_cv_type_int64_t+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 $ac_includes_default
5778 int
5779 main ()
5780 {
5781 if ((int64_t *) 0)
5782 return 0;
5783 if (sizeof (int64_t))
5784 return 0;
5785 ;
5786 return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791 (eval $ac_compile) 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag"
5799 || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_type_int64_t=yes
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_cv_type_int64_t=no
5817 fi
5818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5819 fi
5820 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
5821 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
5822
5823 echo "$as_me:$LINENO: checking size of int64_t" >&5
5824 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
5825 if test "${ac_cv_sizeof_int64_t+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 if test "$ac_cv_type_int64_t" = yes; then
5829 # The cast to unsigned long works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 if test "$cross_compiling" = yes; then
5834 # Depending upon the size, compute the lo and hi bounds.
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 $ac_includes_default
5842 int
5843 main ()
5844 {
5845 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
5846 test_array [0] = 0
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_lo=0 ac_mid=0
5875 while :; do
5876 cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h. */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 $ac_includes_default
5883 int
5884 main ()
5885 {
5886 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
5887 test_array [0] = 0
5888
5889 ;
5890 return 0;
5891 }
5892 _ACEOF
5893 rm -f conftest.$ac_objext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5895 (eval $ac_compile) 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -z "$ac_c_werror_flag"
5903 || test ! -s conftest.err'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; } &&
5909 { ac_try='test -s conftest.$ac_objext'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5915 ac_hi=$ac_mid; break
5916 else
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 ac_lo=`expr $ac_mid + 1`
5921 if test $ac_lo -le $ac_mid; then
5922 ac_lo= ac_hi=
5923 break
5924 fi
5925 ac_mid=`expr 2 '*' $ac_mid + 1`
5926 fi
5927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928 done
5929 else
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 $ac_includes_default
5940 int
5941 main ()
5942 {
5943 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
5944 test_array [0] = 0
5945
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_c_werror_flag"
5960 || test ! -s conftest.err'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_hi=-1 ac_mid=-1
5973 while :; do
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 $ac_includes_default
5981 int
5982 main ()
5983 {
5984 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
5985 test_array [0] = 0
5986
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993 (eval $ac_compile) 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } &&
6000 { ac_try='test -z "$ac_c_werror_flag"
6001 || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_lo=$ac_mid; break
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 ac_hi=`expr '(' $ac_mid ')' - 1`
6019 if test $ac_mid -le $ac_hi; then
6020 ac_lo= ac_hi=
6021 break
6022 fi
6023 ac_mid=`expr 2 '*' $ac_mid`
6024 fi
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 done
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 ac_lo= ac_hi=
6032 fi
6033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036 # Binary search between lo and hi bounds.
6037 while test "x$ac_lo" != "x$ac_hi"; do
6038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6046 int
6047 main ()
6048 {
6049 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6050 test_array [0] = 0
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_hi=$ac_mid
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_lo=`expr '(' $ac_mid ')' + 1`
6084 fi
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 done
6087 case $ac_lo in
6088 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6089 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6090 See \`config.log' for more details." >&5
6091 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6092 See \`config.log' for more details." >&2;}
6093 { (exit 1); exit 1; }; } ;;
6094 esac
6095 else
6096 if test "$cross_compiling" = yes; then
6097 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6098 See \`config.log' for more details." >&5
6099 echo "$as_me: error: cannot run test program while cross compiling
6100 See \`config.log' for more details." >&2;}
6101 { (exit 1); exit 1; }; }
6102 else
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 $ac_includes_default
6110 long longval () { return (long) (sizeof (int64_t)); }
6111 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6112 #include <stdio.h>
6113 #include <stdlib.h>
6114 int
6115 main ()
6116 {
6117
6118 FILE *f = fopen ("conftest.val", "w");
6119 if (! f)
6120 exit (1);
6121 if (((long) (sizeof (int64_t))) < 0)
6122 {
6123 long i = longval ();
6124 if (i != ((long) (sizeof (int64_t))))
6125 exit (1);
6126 fprintf (f, "%ld\n", i);
6127 }
6128 else
6129 {
6130 unsigned long i = ulongval ();
6131 if (i != ((long) (sizeof (int64_t))))
6132 exit (1);
6133 fprintf (f, "%lu\n", i);
6134 }
6135 exit (ferror (f) || fclose (f) != 0);
6136
6137 ;
6138 return 0;
6139 }
6140 _ACEOF
6141 rm -f conftest$ac_exeext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6143 (eval $ac_link) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_sizeof_int64_t=`cat conftest.val`
6153 else
6154 echo "$as_me: program exited with status $ac_status" >&5
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ( exit $ac_status )
6159 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6160 See \`config.log' for more details." >&5
6161 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6162 See \`config.log' for more details." >&2;}
6163 { (exit 1); exit 1; }; }
6164 fi
6165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6166 fi
6167 fi
6168 rm -f conftest.val
6169 else
6170 ac_cv_sizeof_int64_t=0
6171 fi
6172 fi
6173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6174 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6175 cat >>confdefs.h <<_ACEOF
6176 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6177 _ACEOF
6178
6179
6180 echo "$as_me:$LINENO: checking for long long" >&5
6181 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6182 if test "${ac_cv_type_long_long+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 int
6193 main ()
6194 {
6195 if ((long long *) 0)
6196 return 0;
6197 if (sizeof (long long))
6198 return 0;
6199 ;
6200 return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_type_long_long=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 ac_cv_type_long_long=no
6231 fi
6232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6233 fi
6234 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6235 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6236
6237 echo "$as_me:$LINENO: checking size of long long" >&5
6238 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6239 if test "${ac_cv_sizeof_long_long+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 if test "$ac_cv_type_long_long" = yes; then
6243 # The cast to unsigned long works around a bug in the HP C Compiler
6244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6246 # This bug is HP SR number 8606223364.
6247 if test "$cross_compiling" = yes; then
6248 # Depending upon the size, compute the lo and hi bounds.
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 $ac_includes_default
6256 int
6257 main ()
6258 {
6259 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6260 test_array [0] = 0
6261
6262 ;
6263 return 0;
6264 }
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268 (eval $ac_compile) 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -z "$ac_c_werror_flag"
6276 || test ! -s conftest.err'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 (eval $ac_try) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; } &&
6282 { ac_try='test -s conftest.$ac_objext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 ac_lo=0 ac_mid=0
6289 while :; do
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 $ac_includes_default
6297 int
6298 main ()
6299 {
6300 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6301 test_array [0] = 0
6302
6303 ;
6304 return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag"
6317 || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 ac_hi=$ac_mid; break
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334 ac_lo=`expr $ac_mid + 1`
6335 if test $ac_lo -le $ac_mid; then
6336 ac_lo= ac_hi=
6337 break
6338 fi
6339 ac_mid=`expr 2 '*' $ac_mid + 1`
6340 fi
6341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6342 done
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 $ac_includes_default
6354 int
6355 main ()
6356 {
6357 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6358 test_array [0] = 0
6359
6360 ;
6361 return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366 (eval $ac_compile) 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try='test -z "$ac_c_werror_flag"
6374 || test ! -s conftest.err'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_hi=-1 ac_mid=-1
6387 while :; do
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 $ac_includes_default
6395 int
6396 main ()
6397 {
6398 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6399 test_array [0] = 0
6400
6401 ;
6402 return 0;
6403 }
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_lo=$ac_mid; break
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_hi=`expr '(' $ac_mid ')' - 1`
6433 if test $ac_mid -le $ac_hi; then
6434 ac_lo= ac_hi=
6435 break
6436 fi
6437 ac_mid=`expr 2 '*' $ac_mid`
6438 fi
6439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440 done
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_lo= ac_hi=
6446 fi
6447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448 fi
6449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450 # Binary search between lo and hi bounds.
6451 while test "x$ac_lo" != "x$ac_hi"; do
6452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6460 int
6461 main ()
6462 {
6463 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6464 test_array [0] = 0
6465
6466 ;
6467 return 0;
6468 }
6469 _ACEOF
6470 rm -f conftest.$ac_objext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472 (eval $ac_compile) 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } &&
6479 { ac_try='test -z "$ac_c_werror_flag"
6480 || test ! -s conftest.err'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_hi=$ac_mid
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 ac_lo=`expr '(' $ac_mid ')' + 1`
6498 fi
6499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6500 done
6501 case $ac_lo in
6502 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6503 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6504 See \`config.log' for more details." >&5
6505 echo "$as_me: error: cannot compute sizeof (long long), 77
6506 See \`config.log' for more details." >&2;}
6507 { (exit 1); exit 1; }; } ;;
6508 esac
6509 else
6510 if test "$cross_compiling" = yes; then
6511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6512 See \`config.log' for more details." >&5
6513 echo "$as_me: error: cannot run test program while cross compiling
6514 See \`config.log' for more details." >&2;}
6515 { (exit 1); exit 1; }; }
6516 else
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h. */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 $ac_includes_default
6524 long longval () { return (long) (sizeof (long long)); }
6525 unsigned long ulongval () { return (long) (sizeof (long long)); }
6526 #include <stdio.h>
6527 #include <stdlib.h>
6528 int
6529 main ()
6530 {
6531
6532 FILE *f = fopen ("conftest.val", "w");
6533 if (! f)
6534 exit (1);
6535 if (((long) (sizeof (long long))) < 0)
6536 {
6537 long i = longval ();
6538 if (i != ((long) (sizeof (long long))))
6539 exit (1);
6540 fprintf (f, "%ld\n", i);
6541 }
6542 else
6543 {
6544 unsigned long i = ulongval ();
6545 if (i != ((long) (sizeof (long long))))
6546 exit (1);
6547 fprintf (f, "%lu\n", i);
6548 }
6549 exit (ferror (f) || fclose (f) != 0);
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest$ac_exeext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_cv_sizeof_long_long=`cat conftest.val`
6567 else
6568 echo "$as_me: program exited with status $ac_status" >&5
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572 ( exit $ac_status )
6573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6574 See \`config.log' for more details." >&5
6575 echo "$as_me: error: cannot compute sizeof (long long), 77
6576 See \`config.log' for more details." >&2;}
6577 { (exit 1); exit 1; }; }
6578 fi
6579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6580 fi
6581 fi
6582 rm -f conftest.val
6583 else
6584 ac_cv_sizeof_long_long=0
6585 fi
6586 fi
6587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6588 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6589 cat >>confdefs.h <<_ACEOF
6590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6591 _ACEOF
6592
6593
6594
6595 if test "$ac_cv_sizeof_int64_t" = 8; then
6596 echo "$as_me:$LINENO: checking for uint64_t" >&5
6597 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6598 if test "${ac_cv_type_uint64_t+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 $ac_includes_default
6608 int
6609 main ()
6610 {
6611 if ((uint64_t *) 0)
6612 return 0;
6613 if (sizeof (uint64_t))
6614 return 0;
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_type_uint64_t=yes
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ac_cv_type_uint64_t=no
6647 fi
6648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649 fi
6650 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6651 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6652
6653 echo "$as_me:$LINENO: checking for int64_t" >&5
6654 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6655 if test "${ac_cv_type_int64_t+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658 cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h. */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 $ac_includes_default
6665 int
6666 main ()
6667 {
6668 if ((int64_t *) 0)
6669 return 0;
6670 if (sizeof (int64_t))
6671 return 0;
6672 ;
6673 return 0;
6674 }
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -z "$ac_c_werror_flag"
6686 || test ! -s conftest.err'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; } &&
6692 { ac_try='test -s conftest.$ac_objext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 (eval $ac_try) 2>&5
6695 ac_status=$?
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6698 ac_cv_type_int64_t=yes
6699 else
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6702
6703 ac_cv_type_int64_t=no
6704 fi
6705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706 fi
6707 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6708 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6709
6710 elif test "$ac_cv_sizeof_long_long" = 8; then
6711 echo "$as_me:$LINENO: checking for uint64_t" >&5
6712 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6713 if test "${ac_cv_type_uint64_t+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 $ac_includes_default
6723 int
6724 main ()
6725 {
6726 if ((uint64_t *) 0)
6727 return 0;
6728 if (sizeof (uint64_t))
6729 return 0;
6730 ;
6731 return 0;
6732 }
6733 _ACEOF
6734 rm -f conftest.$ac_objext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6736 (eval $ac_compile) 2>conftest.er1
6737 ac_status=$?
6738 grep -v '^ *+' conftest.er1 >conftest.err
6739 rm -f conftest.er1
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -z "$ac_c_werror_flag"
6744 || test ! -s conftest.err'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; } &&
6750 { ac_try='test -s conftest.$ac_objext'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6756 ac_cv_type_uint64_t=yes
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 ac_cv_type_uint64_t=no
6762 fi
6763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764 fi
6765 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6766 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6767 if test $ac_cv_type_uint64_t = yes; then
6768 :
6769 else
6770
6771 cat >>confdefs.h <<_ACEOF
6772 #define uint64_t unsigned long long
6773 _ACEOF
6774
6775 fi
6776
6777 echo "$as_me:$LINENO: checking for int64_t" >&5
6778 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6779 if test "${ac_cv_type_int64_t+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 $ac_includes_default
6789 int
6790 main ()
6791 {
6792 if ((int64_t *) 0)
6793 return 0;
6794 if (sizeof (int64_t))
6795 return 0;
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_type_int64_t=yes
6823 else
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ac_cv_type_int64_t=no
6828 fi
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830 fi
6831 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6832 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6833 if test $ac_cv_type_int64_t = yes; then
6834 :
6835 else
6836
6837 cat >>confdefs.h <<_ACEOF
6838 #define int64_t long long
6839 _ACEOF
6840
6841 fi
6842
6843 else
6844 { { echo "$as_me:$LINENO: error: Your system doesn't appear to have 64 bit integers. Aborting." >&5
6845 echo "$as_me: error: Your system doesn't appear to have 64 bit integers. Aborting." >&2;}
6846 { (exit 1); exit 1; }; }
6847 fi
6848
6849 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6850 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6851 if test "${ac_cv_type_u_int32_t+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6861 int
6862 main ()
6863 {
6864 if ((u_int32_t *) 0)
6865 return 0;
6866 if (sizeof (u_int32_t))
6867 return 0;
6868 ;
6869 return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_type_u_int32_t=yes
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 ac_cv_type_u_int32_t=no
6900 fi
6901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6902 fi
6903 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6904 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6905 if test $ac_cv_type_u_int32_t = yes; then
6906 :
6907 else
6908
6909 echo "$as_me:$LINENO: checking for uint32_t" >&5
6910 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6911 if test "${ac_cv_type_uint32_t+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 $ac_includes_default
6921 int
6922 main ()
6923 {
6924 if ((uint32_t *) 0)
6925 return 0;
6926 if (sizeof (uint32_t))
6927 return 0;
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934 (eval $ac_compile) 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -z "$ac_c_werror_flag"
6942 || test ! -s conftest.err'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; } &&
6948 { ac_try='test -s conftest.$ac_objext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 ac_cv_type_uint32_t=yes
6955 else
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959 ac_cv_type_uint32_t=no
6960 fi
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6964 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6965 if test $ac_cv_type_uint32_t = yes; then
6966
6967
6968 cat >>confdefs.h <<\_ACEOF
6969 #define u_int32_t uint32_t
6970 _ACEOF
6971
6972
6973 else
6974
6975 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6976 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6977
6978 cat >>confdefs.h <<\_ACEOF
6979 #define u_int32_t unsigned long int
6980 _ACEOF
6981
6982
6983 fi
6984
6985
6986 fi
6987
6988
6989 echo "$as_me:$LINENO: checking for u_int16_t" >&5
6990 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6991 if test "${ac_cv_type_u_int16_t+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 int
7002 main ()
7003 {
7004 if ((u_int16_t *) 0)
7005 return 0;
7006 if (sizeof (u_int16_t))
7007 return 0;
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014 (eval $ac_compile) 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -z "$ac_c_werror_flag"
7022 || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest.$ac_objext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_type_u_int16_t=yes
7035 else
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 ac_cv_type_u_int16_t=no
7040 fi
7041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042 fi
7043 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
7044 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
7045 if test $ac_cv_type_u_int16_t = yes; then
7046 :
7047 else
7048
7049 echo "$as_me:$LINENO: checking for uint16_t" >&5
7050 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7051 if test "${ac_cv_type_uint16_t+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h. */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 $ac_includes_default
7061 int
7062 main ()
7063 {
7064 if ((uint16_t *) 0)
7065 return 0;
7066 if (sizeof (uint16_t))
7067 return 0;
7068 ;
7069 return 0;
7070 }
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074 (eval $ac_compile) 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -z "$ac_c_werror_flag"
7082 || test ! -s conftest.err'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try='test -s conftest.$ac_objext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_type_uint16_t=yes
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7098
7099 ac_cv_type_uint16_t=no
7100 fi
7101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102 fi
7103 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7104 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7105 if test $ac_cv_type_uint16_t = yes; then
7106
7107
7108 cat >>confdefs.h <<\_ACEOF
7109 #define u_int16_t uint16_t
7110 _ACEOF
7111
7112
7113 else
7114
7115 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
7116 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
7117
7118 cat >>confdefs.h <<\_ACEOF
7119 #define u_int16_t unsigned short int
7120 _ACEOF
7121
7122
7123 fi
7124
7125
7126 fi
7127
7128
7129 echo "$as_me:$LINENO: checking for in_port_t" >&5
7130 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
7131 if test "${ac_cv_type_in_port_t+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <netinet/in.h>
7142
7143 int
7144 main ()
7145 {
7146 if ((in_port_t *) 0)
7147 return 0;
7148 if (sizeof (in_port_t))
7149 return 0;
7150 ;
7151 return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156 (eval $ac_compile) 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_c_werror_flag"
7164 || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest.$ac_objext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 ac_cv_type_in_port_t=yes
7177 else
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7180
7181 ac_cv_type_in_port_t=no
7182 fi
7183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7184 fi
7185 echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
7186 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6
7187 if test $ac_cv_type_in_port_t = yes; then
7188 :
7189 else
7190
7191 cat >>confdefs.h <<\_ACEOF
7192 #define in_port_t u_int16_t
7193 _ACEOF
7194
7195 fi
7196
7197
7198 echo "$as_me:$LINENO: checking for sa_family_t" >&5
7199 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
7200 if test "${ac_cv_type_sa_family_t+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h. */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7209 #include <sys/types.h>
7210 #include <sys/socket.h>
7211
7212 int
7213 main ()
7214 {
7215 if ((sa_family_t *) 0)
7216 return 0;
7217 if (sizeof (sa_family_t))
7218 return 0;
7219 ;
7220 return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try='test -z "$ac_c_werror_flag"
7233 || test ! -s conftest.err'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; } &&
7239 { ac_try='test -s conftest.$ac_objext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_type_sa_family_t=yes
7246 else
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250 ac_cv_type_sa_family_t=no
7251 fi
7252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7253 fi
7254 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
7255 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
7256 if test $ac_cv_type_sa_family_t = yes; then
7257 :
7258 else
7259
7260 cat >>confdefs.h <<\_ACEOF
7261 #define sa_family_t u_int16_t
7262 _ACEOF
7263
7264 fi
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 for ac_func in socketpair basename mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep
7277 do
7278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7279 echo "$as_me:$LINENO: checking for $ac_func" >&5
7280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7281 if eval "test \"\${$as_ac_var+set}\" = set"; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7292 #define $ac_func innocuous_$ac_func
7293
7294 /* System header to define __stub macros and hopefully few prototypes,
7295 which can conflict with char $ac_func (); below.
7296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7297 <limits.h> exists even on freestanding compilers. */
7298
7299 #ifdef __STDC__
7300 # include <limits.h>
7301 #else
7302 # include <assert.h>
7303 #endif
7304
7305 #undef $ac_func
7306
7307 /* Override any gcc2 internal prototype to avoid an error. */
7308 #ifdef __cplusplus
7309 extern "C"
7310 {
7311 #endif
7312 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */
7314 char $ac_func ();
7315 /* The GNU C library defines this for functions which it implements
7316 to always fail with ENOSYS. Some functions are actually named
7317 something starting with __ and the normal name is an alias. */
7318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7319 choke me
7320 #else
7321 char (*f) () = $ac_func;
7322 #endif
7323 #ifdef __cplusplus
7324 }
7325 #endif
7326
7327 int
7328 main ()
7329 {
7330 return f != $ac_func;
7331 ;
7332 return 0;
7333 }
7334 _ACEOF
7335 rm -f conftest.$ac_objext conftest$ac_exeext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337 (eval $ac_link) 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -z "$ac_c_werror_flag"
7345 || test ! -s conftest.err'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; } &&
7351 { ac_try='test -s conftest$ac_exeext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 eval "$as_ac_var=yes"
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 eval "$as_ac_var=no"
7363 fi
7364 rm -f conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7366 fi
7367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7369 if test `eval echo '${'$as_ac_var'}'` = yes; then
7370 cat >>confdefs.h <<_ACEOF
7371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7372 _ACEOF
7373
7374 fi
7375 done
7376
7377
7378 if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then
7379 SNPRINTF_C="snprintf.c"
7380 fi
7381
7382
7383
7384
7385 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7386 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7387 # Check whether --enable-openssl or --disable-openssl was given.
7388 if test "${enable_openssl+set}" = set; then
7389 enableval="$enable_openssl"
7390 cf_enable_openssl=$enableval
7391 else
7392 cf_enable_openssl="auto"
7393 fi;
7394
7395 if test "$cf_enable_openssl" != "no" ; then
7396 cf_openssl_basedir=""
7397 if test "$cf_enable_openssl" != "auto" &&
7398 test "$cf_enable_openssl" != "yes" ; then
7399 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7400 else
7401 for dirs in /usr/local/ssl /usr/pkg /usr/local \
7402 /usr/local/openssl /usr/sfw; do
7403 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7404 cf_openssl_basedir="${dirs}"
7405 break
7406 fi
7407 done
7408 unset dirs
7409 fi
7410 if test ! -z "$cf_openssl_basedir"; then
7411 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7412 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7413 SSL_LIBS="-L${cf_openssl_basedir}/lib"
7414 else
7415 cf_openssl_basedir=""
7416 fi
7417 else
7418 if test -f "/usr/include/openssl/opensslv.h" ; then
7419 cf_openssl_basedir="/usr"
7420 fi
7421 fi
7422
7423 if test ! -z "$cf_openssl_basedir"; then
7424 echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
7425 echo "${ECHO_T}$cf_openssl_basedir" >&6
7426 cf_enable_openssl="yes"
7427 else
7428 echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
7429 echo "${ECHO_T}not found. Specify a correct path?" >&6
7430 cf_enable_openssl="no"
7431 fi
7432 unset cf_openssl_basedir
7433 else
7434 echo "$as_me:$LINENO: result: disabled" >&5
7435 echo "${ECHO_T}disabled" >&6
7436 fi
7437
7438 save_CPPFLAGS="$CPPFLAGS"
7439 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7440 save_LIBS="$LIBS"
7441 LIBS="$LIBS $SSL_LIBS"
7442 if test "$cf_enable_openssl" != no; then
7443 echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
7444 echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6
7445 if test "$cross_compiling" = yes; then
7446 cf_openssl_version_ok=no
7447 else
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h. */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <openssl/opensslv.h>
7455 #include <stdlib.h>
7456 int
7457 main ()
7458 {
7459 if (OPENSSL_VERSION_NUMBER >= 0x00906000)
7460 exit(0); else exit(1);
7461 ;
7462 return 0;
7463 }
7464 _ACEOF
7465 rm -f conftest$ac_exeext
7466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7467 (eval $ac_link) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 cf_openssl_version_ok=yes
7477 else
7478 echo "$as_me: program exited with status $ac_status" >&5
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482 ( exit $ac_status )
7483 cf_openssl_version_ok=no
7484 fi
7485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7486 fi
7487
7488 if test "$cf_openssl_version_ok" = yes; then
7489 echo "$as_me:$LINENO: result: found" >&5
7490 echo "${ECHO_T}found" >&6
7491
7492 ENCSPEED=encspeed
7493
7494
7495 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7496
7497 echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
7498 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6
7499 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 ac_check_lib_save_LIBS=$LIBS
7503 LIBS="-lcrypto $LIBS"
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510
7511 /* Override any gcc2 internal prototype to avoid an error. */
7512 #ifdef __cplusplus
7513 extern "C"
7514 #endif
7515 /* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7517 char RSA_free ();
7518 int
7519 main ()
7520 {
7521 RSA_free ();
7522 ;
7523 return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528 (eval $ac_link) 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -z "$ac_c_werror_flag"
7536 || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 (eval $ac_try) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_lib_crypto_RSA_free=yes
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 ac_cv_lib_crypto_RSA_free=no
7554 fi
7555 rm -f conftest.err conftest.$ac_objext \
7556 conftest$ac_exeext conftest.$ac_ext
7557 LIBS=$ac_check_lib_save_LIBS
7558 fi
7559 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
7560 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6
7561 if test $ac_cv_lib_crypto_RSA_free = yes; then
7562 cat >>confdefs.h <<_ACEOF
7563 #define HAVE_LIBCRYPTO 1
7564 _ACEOF
7565
7566 LIBS="-lcrypto $LIBS"
7567
7568 fi
7569
7570 if test "$ac_cv_lib_crypto_RSA_free" = yes; then
7571 LIBS="$LIBS -lcrypto"
7572 cf_openssl_ciphers=''
7573
7574 for ac_func in EVP_bf_cfb
7575 do
7576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7577 echo "$as_me:$LINENO: checking for $ac_func" >&5
7578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7579 if eval "test \"\${$as_ac_var+set}\" = set"; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h. */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7590 #define $ac_func innocuous_$ac_func
7591
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func (); below.
7594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7595 <limits.h> exists even on freestanding compilers. */
7596
7597 #ifdef __STDC__
7598 # include <limits.h>
7599 #else
7600 # include <assert.h>
7601 #endif
7602
7603 #undef $ac_func
7604
7605 /* Override any gcc2 internal prototype to avoid an error. */
7606 #ifdef __cplusplus
7607 extern "C"
7608 {
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7612 char $ac_func ();
7613 /* The GNU C library defines this for functions which it implements
7614 to always fail with ENOSYS. Some functions are actually named
7615 something starting with __ and the normal name is an alias. */
7616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7617 choke me
7618 #else
7619 char (*f) () = $ac_func;
7620 #endif
7621 #ifdef __cplusplus
7622 }
7623 #endif
7624
7625 int
7626 main ()
7627 {
7628 return f != $ac_func;
7629 ;
7630 return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
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); }; } &&
7649 { ac_try='test -s conftest$ac_exeext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 eval "$as_ac_var=yes"
7656 else
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 eval "$as_ac_var=no"
7661 fi
7662 rm -f conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7664 fi
7665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7667 if test `eval echo '${'$as_ac_var'}'` = yes; then
7668 cat >>confdefs.h <<_ACEOF
7669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7670 _ACEOF
7671 cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 "
7672 fi
7673 done
7674
7675
7676 for ac_func in EVP_cast5_cfb
7677 do
7678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7679 echo "$as_me:$LINENO: checking for $ac_func" >&5
7680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7681 if eval "test \"\${$as_ac_var+set}\" = set"; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7692 #define $ac_func innocuous_$ac_func
7693
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char $ac_func (); below.
7696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697 <limits.h> exists even on freestanding compilers. */
7698
7699 #ifdef __STDC__
7700 # include <limits.h>
7701 #else
7702 # include <assert.h>
7703 #endif
7704
7705 #undef $ac_func
7706
7707 /* Override any gcc2 internal prototype to avoid an error. */
7708 #ifdef __cplusplus
7709 extern "C"
7710 {
7711 #endif
7712 /* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7714 char $ac_func ();
7715 /* The GNU C library defines this for functions which it implements
7716 to always fail with ENOSYS. Some functions are actually named
7717 something starting with __ and the normal name is an alias. */
7718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7719 choke me
7720 #else
7721 char (*f) () = $ac_func;
7722 #endif
7723 #ifdef __cplusplus
7724 }
7725 #endif
7726
7727 int
7728 main ()
7729 {
7730 return f != $ac_func;
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737 (eval $ac_link) 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 eval "$as_ac_var=yes"
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7761
7762 eval "$as_ac_var=no"
7763 fi
7764 rm -f conftest.err conftest.$ac_objext \
7765 conftest$ac_exeext conftest.$ac_ext
7766 fi
7767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7769 if test `eval echo '${'$as_ac_var'}'` = yes; then
7770 cat >>confdefs.h <<_ACEOF
7771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7772 _ACEOF
7773 cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 "
7774 fi
7775 done
7776
7777
7778 for ac_func in EVP_idea_cfb
7779 do
7780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7781 echo "$as_me:$LINENO: checking for $ac_func" >&5
7782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7783 if eval "test \"\${$as_ac_var+set}\" = set"; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h. */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7794 #define $ac_func innocuous_$ac_func
7795
7796 /* System header to define __stub macros and hopefully few prototypes,
7797 which can conflict with char $ac_func (); below.
7798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7799 <limits.h> exists even on freestanding compilers. */
7800
7801 #ifdef __STDC__
7802 # include <limits.h>
7803 #else
7804 # include <assert.h>
7805 #endif
7806
7807 #undef $ac_func
7808
7809 /* Override any gcc2 internal prototype to avoid an error. */
7810 #ifdef __cplusplus
7811 extern "C"
7812 {
7813 #endif
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7816 char $ac_func ();
7817 /* The GNU C library defines this for functions which it implements
7818 to always fail with ENOSYS. Some functions are actually named
7819 something starting with __ and the normal name is an alias. */
7820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7821 choke me
7822 #else
7823 char (*f) () = $ac_func;
7824 #endif
7825 #ifdef __cplusplus
7826 }
7827 #endif
7828
7829 int
7830 main ()
7831 {
7832 return f != $ac_func;
7833 ;
7834 return 0;
7835 }
7836 _ACEOF
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 eval "$as_ac_var=yes"
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 eval "$as_ac_var=no"
7865 fi
7866 rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 fi
7869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7871 if test `eval echo '${'$as_ac_var'}'` = yes; then
7872 cat >>confdefs.h <<_ACEOF
7873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7874 _ACEOF
7875 cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 "
7876 fi
7877 done
7878
7879
7880 for ac_func in EVP_rc5_32_12_16_cfb
7881 do
7882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7883 echo "$as_me:$LINENO: checking for $ac_func" >&5
7884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7885 if eval "test \"\${$as_ac_var+set}\" = set"; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h. */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7896 #define $ac_func innocuous_$ac_func
7897
7898 /* System header to define __stub macros and hopefully few prototypes,
7899 which can conflict with char $ac_func (); below.
7900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7901 <limits.h> exists even on freestanding compilers. */
7902
7903 #ifdef __STDC__
7904 # include <limits.h>
7905 #else
7906 # include <assert.h>
7907 #endif
7908
7909 #undef $ac_func
7910
7911 /* Override any gcc2 internal prototype to avoid an error. */
7912 #ifdef __cplusplus
7913 extern "C"
7914 {
7915 #endif
7916 /* We use char because int might match the return type of a gcc2
7917 builtin and then its argument prototype would still apply. */
7918 char $ac_func ();
7919 /* The GNU C library defines this for functions which it implements
7920 to always fail with ENOSYS. Some functions are actually named
7921 something starting with __ and the normal name is an alias. */
7922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7923 choke me
7924 #else
7925 char (*f) () = $ac_func;
7926 #endif
7927 #ifdef __cplusplus
7928 }
7929 #endif
7930
7931 int
7932 main ()
7933 {
7934 return f != $ac_func;
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_c_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try='test -s conftest$ac_exeext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 eval "$as_ac_var=yes"
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 eval "$as_ac_var=no"
7967 fi
7968 rm -f conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 fi
7971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7973 if test `eval echo '${'$as_ac_var'}'` = yes; then
7974 cat >>confdefs.h <<_ACEOF
7975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7976 _ACEOF
7977 cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 "
7978 fi
7979 done
7980
7981
7982 for ac_func in EVP_des_ede3_cfb
7983 do
7984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7985 echo "$as_me:$LINENO: checking for $ac_func" >&5
7986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7987 if eval "test \"\${$as_ac_var+set}\" = set"; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7998 #define $ac_func innocuous_$ac_func
7999
8000 /* System header to define __stub macros and hopefully few prototypes,
8001 which can conflict with char $ac_func (); below.
8002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8003 <limits.h> exists even on freestanding compilers. */
8004
8005 #ifdef __STDC__
8006 # include <limits.h>
8007 #else
8008 # include <assert.h>
8009 #endif
8010
8011 #undef $ac_func
8012
8013 /* Override any gcc2 internal prototype to avoid an error. */
8014 #ifdef __cplusplus
8015 extern "C"
8016 {
8017 #endif
8018 /* We use char because int might match the return type of a gcc2
8019 builtin and then its argument prototype would still apply. */
8020 char $ac_func ();
8021 /* The GNU C library defines this for functions which it implements
8022 to always fail with ENOSYS. Some functions are actually named
8023 something starting with __ and the normal name is an alias. */
8024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8025 choke me
8026 #else
8027 char (*f) () = $ac_func;
8028 #endif
8029 #ifdef __cplusplus
8030 }
8031 #endif
8032
8033 int
8034 main ()
8035 {
8036 return f != $ac_func;
8037 ;
8038 return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext conftest$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043 (eval $ac_link) 2>conftest.er1
8044 ac_status=$?
8045 grep -v '^ *+' conftest.er1 >conftest.err
8046 rm -f conftest.er1
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -z "$ac_c_werror_flag"
8051 || test ! -s conftest.err'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 (eval $ac_try) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; } &&
8057 { ac_try='test -s conftest$ac_exeext'
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 (eval $ac_try) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
8063 eval "$as_ac_var=yes"
8064 else
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 eval "$as_ac_var=no"
8069 fi
8070 rm -f conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072 fi
8073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8075 if test `eval echo '${'$as_ac_var'}'` = yes; then
8076 cat >>confdefs.h <<_ACEOF
8077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8078 _ACEOF
8079 cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 "
8080 fi
8081 done
8082
8083
8084 for ac_func in EVP_des_cfb
8085 do
8086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8087 echo "$as_me:$LINENO: checking for $ac_func" >&5
8088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8089 if eval "test \"\${$as_ac_var+set}\" = set"; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8100 #define $ac_func innocuous_$ac_func
8101
8102 /* System header to define __stub macros and hopefully few prototypes,
8103 which can conflict with char $ac_func (); below.
8104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8105 <limits.h> exists even on freestanding compilers. */
8106
8107 #ifdef __STDC__
8108 # include <limits.h>
8109 #else
8110 # include <assert.h>
8111 #endif
8112
8113 #undef $ac_func
8114
8115 /* Override any gcc2 internal prototype to avoid an error. */
8116 #ifdef __cplusplus
8117 extern "C"
8118 {
8119 #endif
8120 /* We use char because int might match the return type of a gcc2
8121 builtin and then its argument prototype would still apply. */
8122 char $ac_func ();
8123 /* The GNU C library defines this for functions which it implements
8124 to always fail with ENOSYS. Some functions are actually named
8125 something starting with __ and the normal name is an alias. */
8126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8127 choke me
8128 #else
8129 char (*f) () = $ac_func;
8130 #endif
8131 #ifdef __cplusplus
8132 }
8133 #endif
8134
8135 int
8136 main ()
8137 {
8138 return f != $ac_func;
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext conftest$ac_exeext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag"
8153 || test ! -s conftest.err'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; } &&
8159 { ac_try='test -s conftest$ac_exeext'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 eval "$as_ac_var=yes"
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170 eval "$as_ac_var=no"
8171 fi
8172 rm -f conftest.err conftest.$ac_objext \
8173 conftest$ac_exeext conftest.$ac_ext
8174 fi
8175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8177 if test `eval echo '${'$as_ac_var'}'` = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8180 _ACEOF
8181 cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 "
8182 fi
8183 done
8184
8185 fi
8186 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
8187 SSL_SRCS_ENABLE='$(SSL_SRCS)'
8188 else
8189 echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
8190 echo "${ECHO_T}no - OpenSSL support disabled" >&6
8191 fi
8192 fi
8193
8194 CPPFLAGS="$save_CPPFLAGS"
8195 LIBS="$save_LIBS"
8196
8197
8198
8199
8200 # Check whether --with-zlib-path or --without-zlib-path was given.
8201 if test "${with_zlib_path+set}" = set; then
8202 withval="$with_zlib_path"
8203 LIBS="$LIBS -L$withval"
8204 fi;
8205
8206 # Check whether --enable-zlib or --disable-zlib was given.
8207 if test "${enable_zlib+set}" = set; then
8208 enableval="$enable_zlib"
8209 zlib=$enableval
8210 else
8211 zlib=yes
8212 fi;
8213
8214 if test "$zlib" = yes; then
8215
8216 if test "${ac_cv_header_zlib_h+set}" = set; then
8217 echo "$as_me:$LINENO: checking for zlib.h" >&5
8218 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8219 if test "${ac_cv_header_zlib_h+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 fi
8222 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8223 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8224 else
8225 # Is the header compilable?
8226 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8227 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8235 #include <zlib.h>
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>conftest.er1
8240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -z "$ac_c_werror_flag"
8247 || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 (eval $ac_try) 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest.$ac_objext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 ac_header_compiler=yes
8260 else
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264 ac_header_compiler=no
8265 fi
8266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8269
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8272 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h. */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 #include <zlib.h>
8280 _ACEOF
8281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } >/dev/null; then
8289 if test -s conftest.err; then
8290 ac_cpp_err=$ac_c_preproc_warn_flag
8291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8292 else
8293 ac_cpp_err=
8294 fi
8295 else
8296 ac_cpp_err=yes
8297 fi
8298 if test -z "$ac_cpp_err"; then
8299 ac_header_preproc=yes
8300 else
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304 ac_header_preproc=no
8305 fi
8306 rm -f conftest.err conftest.$ac_ext
8307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8308 echo "${ECHO_T}$ac_header_preproc" >&6
8309
8310 # So? What about this header?
8311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8312 yes:no: )
8313 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8314 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8316 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8317 ac_header_preproc=yes
8318 ;;
8319 no:yes:* )
8320 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8321 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8322 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8323 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8324 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8325 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8327 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8328 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8329 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8330 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8331 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8332 (
8333 cat <<\_ASBOX
8334 ## -------------------------------------- ##
8335 ## Report this to the ircd-hybrid lists. ##
8336 ## -------------------------------------- ##
8337 _ASBOX
8338 ) |
8339 sed "s/^/$as_me: WARNING: /" >&2
8340 ;;
8341 esac
8342 echo "$as_me:$LINENO: checking for zlib.h" >&5
8343 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8344 if test "${ac_cv_header_zlib_h+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347 ac_cv_header_zlib_h=$ac_header_preproc
8348 fi
8349 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8350 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8351
8352 fi
8353 if test $ac_cv_header_zlib_h = yes; then
8354
8355 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
8356 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
8357 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-lz $LIBS"
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h. */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368
8369 /* Override any gcc2 internal prototype to avoid an error. */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8375 char zlibVersion ();
8376 int
8377 main ()
8378 {
8379 zlibVersion ();
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386 (eval $ac_link) 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -z "$ac_c_werror_flag"
8394 || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_lib_z_zlibVersion=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ac_cv_lib_z_zlibVersion=no
8412 fi
8413 rm -f conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 LIBS=$ac_check_lib_save_LIBS
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
8418 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
8419 if test $ac_cv_lib_z_zlibVersion = yes; then
8420
8421 ZLIB_LD=-lz
8422
8423
8424 cat >>confdefs.h <<\_ACEOF
8425 #define HAVE_LIBZ 1
8426 _ACEOF
8427
8428
8429 else
8430 zlib=no
8431 fi
8432
8433
8434 else
8435 zlib=no
8436 fi
8437
8438
8439
8440 fi
8441
8442
8443 # Check whether --enable-poll or --disable-poll was given.
8444 if test "${enable_poll+set}" = set; then
8445 enableval="$enable_poll"
8446 SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled"
8447 fi;
8448
8449 # Check whether --enable-select or --disable-select was given.
8450 if test "${enable_select+set}" = set; then
8451 enableval="$enable_select"
8452 SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled"
8453 fi;
8454
8455 # Check whether --enable-kqueue or --disable-kqueue was given.
8456 if test "${enable_kqueue+set}" = set; then
8457 enableval="$enable_kqueue"
8458 SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled"
8459 fi;
8460
8461 # Check whether --enable-devpoll or --disable-devpoll was given.
8462 if test "${enable_devpoll+set}" = set; then
8463 enableval="$enable_devpoll"
8464 SELECT_TYPE_EXPLICIT="devpoll"
8465 echo "Forcing /dev/poll to be enabled"
8466
8467
8468 for ac_header in sys/devpoll.h devpoll.h
8469 do
8470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8472 echo "$as_me:$LINENO: checking for $ac_header" >&5
8473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 fi
8477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479 else
8480 # Is the header compilable?
8481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h. */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8489 $ac_includes_default
8490 #include <$ac_header>
8491 _ACEOF
8492 rm -f conftest.$ac_objext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest.$ac_objext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_header_compiler=yes
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 ac_header_compiler=no
8520 fi
8521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8523 echo "${ECHO_T}$ac_header_compiler" >&6
8524
8525 # Is the header present?
8526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 #include <$ac_header>
8535 _ACEOF
8536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } >/dev/null; then
8544 if test -s conftest.err; then
8545 ac_cpp_err=$ac_c_preproc_warn_flag
8546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8547 else
8548 ac_cpp_err=
8549 fi
8550 else
8551 ac_cpp_err=yes
8552 fi
8553 if test -z "$ac_cpp_err"; then
8554 ac_header_preproc=yes
8555 else
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559 ac_header_preproc=no
8560 fi
8561 rm -f conftest.err conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8563 echo "${ECHO_T}$ac_header_preproc" >&6
8564
8565 # So? What about this header?
8566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8567 yes:no: )
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8572 ac_header_preproc=yes
8573 ;;
8574 no:yes:* )
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8587 (
8588 cat <<\_ASBOX
8589 ## -------------------------------------- ##
8590 ## Report this to the ircd-hybrid lists. ##
8591 ## -------------------------------------- ##
8592 _ASBOX
8593 ) |
8594 sed "s/^/$as_me: WARNING: /" >&2
8595 ;;
8596 esac
8597 echo "$as_me:$LINENO: checking for $ac_header" >&5
8598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602 eval "$as_ac_Header=\$ac_header_preproc"
8603 fi
8604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8606
8607 fi
8608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8609 cat >>confdefs.h <<_ACEOF
8610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8611 _ACEOF
8612
8613 fi
8614
8615 done
8616
8617 fi;
8618
8619 # Check whether --enable-rtsigio or --disable-rtsigio was given.
8620 if test "${enable_rtsigio+set}" = set; then
8621 enableval="$enable_rtsigio"
8622 SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled"
8623 fi;
8624
8625 # Check whether --enable-epoll or --disable-epoll was given.
8626 if test "${enable_epoll+set}" = set; then
8627 enableval="$enable_epoll"
8628 SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled"
8629 fi;
8630
8631 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
8632 SELECT_TYPE="$SELECT_TYPE_EXPLICIT"
8633 else
8634
8635 echo "$as_me:$LINENO: checking for kevent" >&5
8636 echo $ECHO_N "checking for kevent... $ECHO_C" >&6
8637 if test "${ac_cv_func_kevent+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h. */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
8647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8648 #define kevent innocuous_kevent
8649
8650 /* System header to define __stub macros and hopefully few prototypes,
8651 which can conflict with char kevent (); below.
8652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8653 <limits.h> exists even on freestanding compilers. */
8654
8655 #ifdef __STDC__
8656 # include <limits.h>
8657 #else
8658 # include <assert.h>
8659 #endif
8660
8661 #undef kevent
8662
8663 /* Override any gcc2 internal prototype to avoid an error. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 {
8667 #endif
8668 /* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8670 char kevent ();
8671 /* The GNU C library defines this for functions which it implements
8672 to always fail with ENOSYS. Some functions are actually named
8673 something starting with __ and the normal name is an alias. */
8674 #if defined (__stub_kevent) || defined (__stub___kevent)
8675 choke me
8676 #else
8677 char (*f) () = kevent;
8678 #endif
8679 #ifdef __cplusplus
8680 }
8681 #endif
8682
8683 int
8684 main ()
8685 {
8686 return f != kevent;
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8693 (eval $ac_link) 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -z "$ac_c_werror_flag"
8701 || test ! -s conftest.err'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; } &&
8707 { ac_try='test -s conftest$ac_exeext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_cv_func_kevent=yes
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718 ac_cv_func_kevent=no
8719 fi
8720 rm -f conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
8722 fi
8723 echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
8724 echo "${ECHO_T}$ac_cv_func_kevent" >&6
8725 if test $ac_cv_func_kevent = yes; then
8726
8727 SELECT_TYPE="kqueue"
8728
8729 else
8730
8731 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8732 echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8733 echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6
8734 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 fi
8737 echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8738 echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6
8739 else
8740 # Is the header compilable?
8741 echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
8742 echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 $ac_includes_default
8750 #include <sys/epoll.h>
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_header_compiler=yes
8775 else
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_header_compiler=no
8780 fi
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8784
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
8787 echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 #include <sys/epoll.h>
8795 _ACEOF
8796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev/null; then
8804 if test -s conftest.err; then
8805 ac_cpp_err=$ac_c_preproc_warn_flag
8806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8807 else
8808 ac_cpp_err=
8809 fi
8810 else
8811 ac_cpp_err=yes
8812 fi
8813 if test -z "$ac_cpp_err"; then
8814 ac_header_preproc=yes
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 ac_header_preproc=no
8820 fi
8821 rm -f conftest.err conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8824
8825 # So? What about this header?
8826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8827 yes:no: )
8828 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
8831 echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
8832 ac_header_preproc=yes
8833 ;;
8834 no:yes:* )
8835 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
8836 echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5
8838 echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
8840 echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5
8842 echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
8846 echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
8847 (
8848 cat <<\_ASBOX
8849 ## -------------------------------------- ##
8850 ## Report this to the ircd-hybrid lists. ##
8851 ## -------------------------------------- ##
8852 _ASBOX
8853 ) |
8854 sed "s/^/$as_me: WARNING: /" >&2
8855 ;;
8856 esac
8857 echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8858 echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6
8859 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 ac_cv_header_sys_epoll_h=$ac_header_preproc
8863 fi
8864 echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8865 echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6
8866
8867 fi
8868 if test $ac_cv_header_sys_epoll_h = yes; then
8869 HAS_EPOLL=1
8870 else
8871 HAS_EPOLL=0
8872 fi
8873
8874
8875 if test $HAS_EPOLL -eq 1; then
8876 echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
8877 echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6
8878 if test "$cross_compiling" = yes; then
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881 HAS_EPOLL=0
8882 else
8883 cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h. */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 #include <sys/epoll.h>
8890 #include <sys/syscall.h>
8891 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
8892 #if !defined(__NR_epoll_create)
8893 #if defined(__ia64__)
8894 #define __NR_epoll_create 1243
8895 #elif defined(__x86_64__)
8896 #define __NR_epoll_create 214
8897 #elif defined(__sparc64__) || defined(__sparc__)
8898 #define __NR_epoll_create 193
8899 #elif defined(__s390__) || defined(__m68k__)
8900 #define __NR_epoll_create 249
8901 #elif defined(__ppc64__) || defined(__ppc__)
8902 #define __NR_epoll_create 236
8903 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
8904 #define __NR_epoll_create 224
8905 #elif defined(__alpha__)
8906 #define __NR_epoll_create 407
8907 #elif defined(__sh64__)
8908 #define __NR_epoll_create 282
8909 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
8910 #define __NR_epoll_create 254
8911 #else
8912 #error No system call numbers defined for epoll family.
8913 #endif
8914 #endif
8915 _syscall1(int, epoll_create, int, size)
8916 #endif
8917 main() { return epoll_create(256) == -1 ? 1 : 0; }
8918 _ACEOF
8919 rm -f conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 echo "$as_me:$LINENO: result: yes" >&5
8931 echo "${ECHO_T}yes" >&6
8932 SELECT_TYPE="epoll"
8933 else
8934 echo "$as_me: program exited with status $ac_status" >&5
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 ( exit $ac_status )
8939 echo "$as_me:$LINENO: result: no" >&5
8940 echo "${ECHO_T}no" >&6
8941 HAS_EPOLL=0
8942 fi
8943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8944 fi
8945 fi
8946 if test $HAS_EPOLL -eq 0; then
8947 echo "$as_me:$LINENO: checking for /dev/poll" >&5
8948 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
8949 if test -c "/dev/poll"; then
8950 echo "$as_me:$LINENO: result: yes" >&5
8951 echo "${ECHO_T}yes" >&6
8952
8953
8954 for ac_header in devpoll.h sys/devpoll.h
8955 do
8956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958 echo "$as_me:$LINENO: checking for $ac_header" >&5
8959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 fi
8963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8965 else
8966 # Is the header compilable?
8967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8969 cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h. */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 $ac_includes_default
8976 #include <$ac_header>
8977 _ACEOF
8978 rm -f conftest.$ac_objext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8980 (eval $ac_compile) 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -z "$ac_c_werror_flag"
8988 || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest.$ac_objext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 ac_header_compiler=yes
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005 ac_header_compiler=no
9006 fi
9007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9009 echo "${ECHO_T}$ac_header_compiler" >&6
9010
9011 # Is the header present?
9012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020 #include <$ac_header>
9021 _ACEOF
9022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } >/dev/null; then
9030 if test -s conftest.err; then
9031 ac_cpp_err=$ac_c_preproc_warn_flag
9032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9033 else
9034 ac_cpp_err=
9035 fi
9036 else
9037 ac_cpp_err=yes
9038 fi
9039 if test -z "$ac_cpp_err"; then
9040 ac_header_preproc=yes
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_header_preproc=no
9046 fi
9047 rm -f conftest.err conftest.$ac_ext
9048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9049 echo "${ECHO_T}$ac_header_preproc" >&6
9050
9051 # So? What about this header?
9052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9053 yes:no: )
9054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9058 ac_header_preproc=yes
9059 ;;
9060 no:yes:* )
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9073 (
9074 cat <<\_ASBOX
9075 ## -------------------------------------- ##
9076 ## Report this to the ircd-hybrid lists. ##
9077 ## -------------------------------------- ##
9078 _ASBOX
9079 ) |
9080 sed "s/^/$as_me: WARNING: /" >&2
9081 ;;
9082 esac
9083 echo "$as_me:$LINENO: checking for $ac_header" >&5
9084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088 eval "$as_ac_Header=\$ac_header_preproc"
9089 fi
9090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9092
9093 fi
9094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9095 cat >>confdefs.h <<_ACEOF
9096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9097 _ACEOF
9098
9099 fi
9100
9101 done
9102
9103 SELECT_TYPE="devpoll"
9104 else
9105 echo "$as_me:$LINENO: result: no" >&5
9106 echo "${ECHO_T}no" >&6
9107 echo "$as_me:$LINENO: checking for RT Signal IO" >&5
9108 echo $ECHO_N "checking for RT Signal IO... $ECHO_C" >&6
9109
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9116 #define _GNU_SOURCE
9117 #include <fcntl.h>
9118 #ifdef F_SETSIG
9119 YUP_HAVE_F_SETSIG
9120 #endif
9121
9122 _ACEOF
9123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9124 $EGREP "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then
9125
9126 SELECT_TYPE="sigio"
9127 echo "$as_me:$LINENO: result: yes" >&5
9128 echo "${ECHO_T}yes" >&6
9129
9130 else
9131
9132 echo "$as_me:$LINENO: result: no" >&5
9133 echo "${ECHO_T}no" >&6
9134 echo "$as_me:$LINENO: checking for poll" >&5
9135 echo $ECHO_N "checking for poll... $ECHO_C" >&6
9136 if test "${ac_cv_func_poll+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h. */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
9146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9147 #define poll innocuous_poll
9148
9149 /* System header to define __stub macros and hopefully few prototypes,
9150 which can conflict with char poll (); below.
9151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9152 <limits.h> exists even on freestanding compilers. */
9153
9154 #ifdef __STDC__
9155 # include <limits.h>
9156 #else
9157 # include <assert.h>
9158 #endif
9159
9160 #undef poll
9161
9162 /* Override any gcc2 internal prototype to avoid an error. */
9163 #ifdef __cplusplus
9164 extern "C"
9165 {
9166 #endif
9167 /* We use char because int might match the return type of a gcc2
9168 builtin and then its argument prototype would still apply. */
9169 char poll ();
9170 /* The GNU C library defines this for functions which it implements
9171 to always fail with ENOSYS. Some functions are actually named
9172 something starting with __ and the normal name is an alias. */
9173 #if defined (__stub_poll) || defined (__stub___poll)
9174 choke me
9175 #else
9176 char (*f) () = poll;
9177 #endif
9178 #ifdef __cplusplus
9179 }
9180 #endif
9181
9182 int
9183 main ()
9184 {
9185 return f != poll;
9186 ;
9187 return 0;
9188 }
9189 _ACEOF
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag"
9200 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_func_poll=yes
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 ac_cv_func_poll=no
9218 fi
9219 rm -f conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 fi
9222 echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
9223 echo "${ECHO_T}$ac_cv_func_poll" >&6
9224 if test $ac_cv_func_poll = yes; then
9225 SELECT_TYPE="poll"
9226 else
9227
9228 echo "$as_me:$LINENO: checking for select" >&5
9229 echo $ECHO_N "checking for select... $ECHO_C" >&6
9230 if test "${ac_cv_func_select+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h. */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 /* Define select to an innocuous variant, in case <limits.h> declares select.
9240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9241 #define select innocuous_select
9242
9243 /* System header to define __stub macros and hopefully few prototypes,
9244 which can conflict with char select (); below.
9245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9246 <limits.h> exists even on freestanding compilers. */
9247
9248 #ifdef __STDC__
9249 # include <limits.h>
9250 #else
9251 # include <assert.h>
9252 #endif
9253
9254 #undef select
9255
9256 /* Override any gcc2 internal prototype to avoid an error. */
9257 #ifdef __cplusplus
9258 extern "C"
9259 {
9260 #endif
9261 /* We use char because int might match the return type of a gcc2
9262 builtin and then its argument prototype would still apply. */
9263 char select ();
9264 /* The GNU C library defines this for functions which it implements
9265 to always fail with ENOSYS. Some functions are actually named
9266 something starting with __ and the normal name is an alias. */
9267 #if defined (__stub_select) || defined (__stub___select)
9268 choke me
9269 #else
9270 char (*f) () = select;
9271 #endif
9272 #ifdef __cplusplus
9273 }
9274 #endif
9275
9276 int
9277 main ()
9278 {
9279 return f != select;
9280 ;
9281 return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_func_select=yes
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_cv_func_select=no
9312 fi
9313 rm -f conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 fi
9316 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
9317 echo "${ECHO_T}$ac_cv_func_select" >&6
9318 if test $ac_cv_func_select = yes; then
9319 SELECT_TYPE="select"
9320 else
9321 { { echo "$as_me:$LINENO: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&5
9322 echo "$as_me: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&2;}
9323 { (exit 1); exit 1; }; }
9324
9325 fi
9326
9327
9328 fi
9329
9330
9331 fi
9332 rm -f conftest*
9333
9334 fi
9335 fi
9336
9337 fi
9338
9339
9340 fi
9341
9342 echo "Using $SELECT_TYPE for select loop."
9343
9344
9345 cat >>confdefs.h <<_ACEOF
9346 #define SELECT_TYPE "$SELECT_TYPE"
9347 _ACEOF
9348
9349
9350
9351
9352
9353 # Check whether --enable-clobber or --disable-clobber was given.
9354 if test "${enable_clobber+set}" = set; then
9355 enableval="$enable_clobber"
9356 clobber=$enableval
9357 else
9358 clobber=no
9359 fi;
9360
9361 if test "$clobber" = yes; then
9362 CLOBBER=yes
9363
9364 fi
9365
9366
9367
9368 echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
9369 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6
9370 # Check whether --enable-profile or --disable-profile was given.
9371 if test "${enable_profile+set}" = set; then
9372 enableval="$enable_profile"
9373 profile=$enableval
9374 else
9375 profile=no
9376 fi;
9377
9378 if test "$profile" = yes; then
9379 if test "$ac_cv_c_compiler_gnu" = yes; then
9380 IRC_CFLAGS="$IRC_CFLAGS -pg -static"
9381 echo "$as_me:$LINENO: result: " >&5
9382 echo "${ECHO_T}" >&6="yes, adding -pg -static"
9383 else
9384 echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
9385 echo "${ECHO_T}no, profile builds only work with gcc" >&6
9386 fi
9387 else
9388 echo "$as_me:$LINENO: result: no" >&5
9389 echo "${ECHO_T}no" >&6
9390 fi
9391
9392 echo "$as_me:$LINENO: checking if you want ElectricFence" >&5
9393 echo $ECHO_N "checking if you want ElectricFence... $ECHO_C" >&6
9394 # Check whether --enable-efence or --disable-efence was given.
9395 if test "${enable_efence+set}" = set; then
9396 enableval="$enable_efence"
9397
9398 if test "$enableval" != no; then
9399 if test ! -z "$enableval" -a "$enableval" != yes; then
9400 LIBS="$LIBS -L$enableval"
9401 fi
9402
9403 echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
9404 echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6
9405 if test "${ac_cv_lib_efence_malloc+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408 ac_check_lib_save_LIBS=$LIBS
9409 LIBS="-lefence $LIBS"
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h. */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416
9417 /* Override any gcc2 internal prototype to avoid an error. */
9418 #ifdef __cplusplus
9419 extern "C"
9420 #endif
9421 /* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */
9423 char malloc ();
9424 int
9425 main ()
9426 {
9427 malloc ();
9428 ;
9429 return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest$ac_exeext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 ac_cv_lib_efence_malloc=yes
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ac_cv_lib_efence_malloc=no
9460 fi
9461 rm -f conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463 LIBS=$ac_check_lib_save_LIBS
9464 fi
9465 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
9466 echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6
9467 if test $ac_cv_lib_efence_malloc = yes; then
9468
9469 LIBS="$LIBS -lefence"
9470 echo "$as_me:$LINENO: result: yes" >&5
9471 echo "${ECHO_T}yes" >&6
9472
9473 else
9474 echo "$as_me:$LINENO: result: not found" >&5
9475 echo "${ECHO_T}not found" >&6
9476 fi
9477
9478 else
9479 echo "$as_me:$LINENO: result: no" >&5
9480 echo "${ECHO_T}no" >&6
9481 fi
9482
9483 else
9484 echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6
9486 fi;
9487
9488 echo "$as_me:$LINENO: checking if you want the block allocator" >&5
9489 echo $ECHO_N "checking if you want the block allocator... $ECHO_C" >&6
9490 # Check whether --enable-block-alloc or --disable-block-alloc was given.
9491 if test "${enable_block_alloc+set}" = set; then
9492 enableval="$enable_block_alloc"
9493 balloc=$enableval
9494 else
9495 balloc=yes
9496 fi;
9497
9498 if test "$balloc" = no; then
9499
9500
9501 cat >>confdefs.h <<\_ACEOF
9502 #define NOBALLOC 1
9503 _ACEOF
9504
9505 else
9506 BALLOC_C=balloc.c
9507
9508 fi
9509
9510 echo "$as_me:$LINENO: result: $balloc" >&5
9511 echo "${ECHO_T}$balloc" >&6
9512
9513 # Check whether --enable-warnings or --disable-warnings was given.
9514 if test "${enable_warnings+set}" = set; then
9515 enableval="$enable_warnings"
9516 IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused"
9517 fi;
9518
9519
9520 # Check whether --enable-small-net or --disable-small-net was given.
9521 if test "${enable_small_net+set}" = set; then
9522 enableval="$enable_small_net"
9523 small_net=$enableval
9524 else
9525 small_net=no
9526 fi;
9527
9528 if test "$small_net" = yes; then
9529
9530 cat >>confdefs.h <<\_ACEOF
9531 #define NICKNAMEHISTORYLENGTH 1500
9532 _ACEOF
9533
9534
9535 cat >>confdefs.h <<\_ACEOF
9536 #define CHANNEL_HEAP_SIZE 256
9537 _ACEOF
9538
9539
9540 cat >>confdefs.h <<\_ACEOF
9541 #define BAN_HEAP_SIZE 128
9542 _ACEOF
9543
9544
9545 cat >>confdefs.h <<\_ACEOF
9546 #define CLIENT_HEAP_SIZE 256
9547 _ACEOF
9548
9549
9550 cat >>confdefs.h <<\_ACEOF
9551 #define LCLIENT_HEAP_SIZE 128
9552 _ACEOF
9553
9554
9555 cat >>confdefs.h <<\_ACEOF
9556 #define DNODE_HEAP_SIZE 256
9557 _ACEOF
9558
9559
9560 cat >>confdefs.h <<\_ACEOF
9561 #define TOPIC_HEAP_SIZE 256
9562 _ACEOF
9563
9564
9565 cat >>confdefs.h <<\_ACEOF
9566 #define DBUF_HEAP_SIZE 64
9567 _ACEOF
9568
9569 else
9570
9571 cat >>confdefs.h <<\_ACEOF
9572 #define NICKNAMEHISTORYLENGTH 15000
9573 _ACEOF
9574
9575
9576 cat >>confdefs.h <<\_ACEOF
9577 #define CHANNEL_HEAP_SIZE 1024
9578 _ACEOF
9579
9580
9581 cat >>confdefs.h <<\_ACEOF
9582 #define BAN_HEAP_SIZE 1024
9583 _ACEOF
9584
9585
9586 cat >>confdefs.h <<\_ACEOF
9587 #define CLIENT_HEAP_SIZE 1024
9588 _ACEOF
9589
9590
9591 cat >>confdefs.h <<\_ACEOF
9592 #define LCLIENT_HEAP_SIZE 512
9593 _ACEOF
9594
9595
9596 cat >>confdefs.h <<\_ACEOF
9597 #define DNODE_HEAP_SIZE 2048
9598 _ACEOF
9599
9600
9601 cat >>confdefs.h <<\_ACEOF
9602 #define TOPIC_HEAP_SIZE 1024
9603 _ACEOF
9604
9605
9606 cat >>confdefs.h <<\_ACEOF
9607 #define DBUF_HEAP_SIZE 512
9608 _ACEOF
9609
9610 fi
9611
9612
9613 # Check whether --with-nicklen or --without-nicklen was given.
9614 if test "${with_nicklen+set}" = set; then
9615 withval="$with_nicklen"
9616 NICKLEN="$withval"
9617 else
9618 NICKLEN="15"
9619 fi;
9620
9621 # Check whether --enable-efnet or --disable-efnet was given.
9622 if test "${enable_efnet+set}" = set; then
9623 enableval="$enable_efnet"
9624 efnet=$enableval
9625 else
9626 efnet=no
9627 fi;
9628
9629 if test "$efnet" = yes; then
9630
9631 cat >>confdefs.h <<\_ACEOF
9632 #define EFNET 1
9633 _ACEOF
9634
9635
9636 cat >>confdefs.h <<\_ACEOF
9637 #define TS5_ONLY 1
9638 _ACEOF
9639
9640 echo "Building ircd for use with EFnet"
9641 EXAMPLE_CONF=example.efnet.conf
9642 NICKLEN=9
9643 else
9644 EXAMPLE_CONF=example.conf
9645 fi
9646
9647 # Check whether --enable-gline-voting or --disable-gline-voting was given.
9648 if test "${enable_gline_voting+set}" = set; then
9649 enableval="$enable_gline_voting"
9650 gline_voting=$enableval
9651 else
9652 gline_voting=yes
9653 fi;
9654
9655 if test "$gline_voting" = yes; then
9656
9657 cat >>confdefs.h <<\_ACEOF
9658 #define GLINE_VOTING 1
9659 _ACEOF
9660
9661 echo "Building ircd with G-Line voting support"
9662 fi
9663
9664 # Check whether --enable-halfops or --disable-halfops was given.
9665 if test "${enable_halfops+set}" = set; then
9666 enableval="$enable_halfops"
9667 halfops=$enableval
9668 else
9669 halfops=no
9670 fi;
9671
9672 if test "$halfops" = yes; then
9673
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HALFOPS 1
9676 _ACEOF
9677
9678 fi
9679
9680
9681
9682 echo "$as_me:$LINENO: checking for syslog options" >&5
9683 echo $ECHO_N "checking for syslog options... $ECHO_C" >&6
9684
9685 # Check whether --enable-syslog or --disable-syslog was given.
9686 if test "${enable_syslog+set}" = set; then
9687 enableval="$enable_syslog"
9688
9689
9690 if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then
9691
9692 if test "$enableval" != no; then
9693 syslogstuff=core
9694
9695 for option in $enableval; do
9696 case "$option" in
9697 kill)
9698 syslogstuff="$syslogstuff kill"
9699
9700 cat >>confdefs.h <<\_ACEOF
9701 #define SYSLOG_KILL 1
9702 _ACEOF
9703
9704 ;;
9705 squit)
9706 syslogstuff="$syslogstuff squit"
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define SYSLOG_SQUIT 1
9710 _ACEOF
9711
9712 ;;
9713 connect)
9714 syslogstuff="$syslogstuff connect"
9715
9716 cat >>confdefs.h <<\_ACEOF
9717 #define SYSLOG_CONNECT 1
9718 _ACEOF
9719
9720 ;;
9721 users)
9722 syslogstuff="$syslogstuff users"
9723
9724 cat >>confdefs.h <<\_ACEOF
9725 #define SYSLOG_USERS 1
9726 _ACEOF
9727
9728 ;;
9729 oper)
9730 syslogstuff="$syslogstuff oper"
9731
9732 cat >>confdefs.h <<\_ACEOF
9733 #define SYSLOG_OPER 1
9734 _ACEOF
9735
9736 ;;
9737 yes)
9738 ;;
9739 *)
9740 { echo "$as_me:$LINENO: WARNING: unknown event $option" >&5
9741 echo "$as_me: WARNING: unknown event $option" >&2;}
9742 ;;
9743 esac
9744 done
9745
9746 if test ! -z "$syslogstuff" -o "$enableval" = yes; then
9747
9748 cat >>confdefs.h <<\_ACEOF
9749 #define USE_SYSLOG 1
9750 _ACEOF
9751
9752 fi
9753 else syslogstuff=none
9754 fi
9755
9756 else { echo "$as_me:$LINENO: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&5
9757 echo "$as_me: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&2;}
9758 syslogstuff=none
9759 fi
9760
9761 else
9762 syslogstuff=none
9763 fi;
9764
9765 echo "$as_me:$LINENO: result: $syslogstuff" >&5
9766 echo "${ECHO_T}$syslogstuff" >&6
9767
9768
9769 # Check whether --with-syslog-facility or --without-syslog-facility was given.
9770 if test "${with_syslog_facility+set}" = set; then
9771 withval="$with_syslog_facility"
9772 facility=$withval
9773 else
9774 facility="LOG_LOCAL4"
9775 fi;
9776
9777 if test "$syslogstuff" != none; then
9778
9779 cat >>confdefs.h <<_ACEOF
9780 #define LOG_FACILITY $facility
9781 _ACEOF
9782
9783 fi
9784
9785
9786 # Check whether --with-topiclen or --without-topiclen was given.
9787 if test "${with_topiclen+set}" = set; then
9788 withval="$with_topiclen"
9789
9790 if test $withval -ge 390; then
9791 TOPICLEN=390
9792 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
9793 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
9794 else
9795 TOPICLEN=$withval
9796 fi
9797
9798 else
9799 TOPICLEN=160
9800 fi;
9801
9802
9803 cat >>confdefs.h <<_ACEOF
9804 #define TOPICLEN ${TOPICLEN}
9805 _ACEOF
9806
9807
9808 cat >>confdefs.h <<_ACEOF
9809 #define NICKLEN (${NICKLEN}+1)
9810 _ACEOF
9811
9812
9813 cat >>confdefs.h <<_ACEOF
9814 #define USERLEN 10
9815 _ACEOF
9816
9817
9818 cat >>confdefs.h <<_ACEOF
9819 #define HOSTLEN 63
9820 _ACEOF
9821
9822
9823 # Check whether --enable-shared-modules or --disable-shared-modules was given.
9824 if test "${enable_shared_modules+set}" = set; then
9825 enableval="$enable_shared_modules"
9826 shared_modules=$enableval
9827 else
9828 shared_modules="yes"
9829 fi;
9830
9831 if test "$shared_modules" = yes; then
9832
9833 if test "$profile" = "no"; then
9834 shared_modules="yes"
9835 else
9836 { echo "$as_me:$LINENO: WARNING: disabling shared modules; cannot coexist with profile builds" >&5
9837 echo "$as_me: WARNING: disabling shared modules; cannot coexist with profile builds" >&2;}
9838 shared_modules="no"
9839 fi
9840
9841 if test "$CYGWIN" = yes; then
9842 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
9843 echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
9844 shared_modules="no"
9845 fi
9846
9847 if test "$CC" = tcc -a "$TenDRA" = "no"; then
9848 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
9849 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
9850 shared_modules="no"
9851 fi
9852 fi
9853
9854 if test "$shared_modules" = yes; then
9855 DYNLINK_C=dynlink.c
9856
9857 for ac_header in dlfcn.h
9858 do
9859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9861 echo "$as_me:$LINENO: checking for $ac_header" >&5
9862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 fi
9866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9868 else
9869 # Is the header compilable?
9870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 $ac_includes_default
9879 #include <$ac_header>
9880 _ACEOF
9881 rm -f conftest.$ac_objext
9882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>conftest.er1
9884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
9890 { ac_try='test -z "$ac_c_werror_flag"
9891 || test ! -s conftest.err'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest.$ac_objext'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
9903 ac_header_compiler=yes
9904 else
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9907
9908 ac_header_compiler=no
9909 fi
9910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9912 echo "${ECHO_T}$ac_header_compiler" >&6
9913
9914 # Is the header present?
9915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 #include <$ac_header>
9924 _ACEOF
9925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } >/dev/null; then
9933 if test -s conftest.err; then
9934 ac_cpp_err=$ac_c_preproc_warn_flag
9935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9936 else
9937 ac_cpp_err=
9938 fi
9939 else
9940 ac_cpp_err=yes
9941 fi
9942 if test -z "$ac_cpp_err"; then
9943 ac_header_preproc=yes
9944 else
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_header_preproc=no
9949 fi
9950 rm -f conftest.err conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9952 echo "${ECHO_T}$ac_header_preproc" >&6
9953
9954 # So? What about this header?
9955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9956 yes:no: )
9957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9961 ac_header_preproc=yes
9962 ;;
9963 no:yes:* )
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9976 (
9977 cat <<\_ASBOX
9978 ## -------------------------------------- ##
9979 ## Report this to the ircd-hybrid lists. ##
9980 ## -------------------------------------- ##
9981 _ASBOX
9982 ) |
9983 sed "s/^/$as_me: WARNING: /" >&2
9984 ;;
9985 esac
9986 echo "$as_me:$LINENO: checking for $ac_header" >&5
9987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 eval "$as_ac_Header=\$ac_header_preproc"
9992 fi
9993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9995
9996 fi
9997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9998 cat >>confdefs.h <<_ACEOF
9999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10000 _ACEOF
10001
10002 fi
10003
10004 done
10005
10006 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10007 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
10008 if test "${ac_cv_search_shl_load+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011 ac_func_search_save_LIBS=$LIBS
10012 ac_cv_search_shl_load=no
10013 cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h. */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019
10020 /* Override any gcc2 internal prototype to avoid an error. */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 /* We use char because int might match the return type of a gcc2
10025 builtin and then its argument prototype would still apply. */
10026 char shl_load ();
10027 int
10028 main ()
10029 {
10030 shl_load ();
10031 ;
10032 return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037 (eval $ac_link) 2>conftest.er1
10038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try='test -z "$ac_c_werror_flag"
10045 || test ! -s conftest.err'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10057 ac_cv_search_shl_load="none required"
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 fi
10063 rm -f conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 if test "$ac_cv_search_shl_load" = no; then
10066 for ac_lib in dld; do
10067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074
10075 /* Override any gcc2 internal prototype to avoid an error. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081 char shl_load ();
10082 int
10083 main ()
10084 {
10085 shl_load ();
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_search_shl_load="-l$ac_lib"
10113 break
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 fi
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 done
10122 fi
10123 LIBS=$ac_func_search_save_LIBS
10124 fi
10125 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
10126 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
10127 if test "$ac_cv_search_shl_load" != no; then
10128 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
10129
10130
10131 cat >>confdefs.h <<\_ACEOF
10132 #define HAVE_SHL_LOAD 1
10133 _ACEOF
10134
10135 SUFFIX=".sl"
10136 MOD_TARGET=hpux_shared
10137 SEDOBJ="s/\.o/.sl/g"
10138
10139 else
10140
10141 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10142 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10143 if test "${ac_cv_search_dlopen+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 ac_func_search_save_LIBS=$LIBS
10147 ac_cv_search_dlopen=no
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h. */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154
10155 /* Override any gcc2 internal prototype to avoid an error. */
10156 #ifdef __cplusplus
10157 extern "C"
10158 #endif
10159 /* We use char because int might match the return type of a gcc2
10160 builtin and then its argument prototype would still apply. */
10161 char dlopen ();
10162 int
10163 main ()
10164 {
10165 dlopen ();
10166 ;
10167 return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest$ac_exeext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_search_dlopen="none required"
10193 else
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 fi
10198 rm -f conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 if test "$ac_cv_search_dlopen" = no; then
10201 for ac_lib in dl c_r; do
10202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h. */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209
10210 /* Override any gcc2 internal prototype to avoid an error. */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 /* We use char because int might match the return type of a gcc2
10215 builtin and then its argument prototype would still apply. */
10216 char dlopen ();
10217 int
10218 main ()
10219 {
10220 dlopen ();
10221 ;
10222 return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227 (eval $ac_link) 2>conftest.er1
10228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag"
10235 || test ! -s conftest.err'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 ac_cv_search_dlopen="-l$ac_lib"
10248 break
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10252
10253 fi
10254 rm -f conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10256 done
10257 fi
10258 LIBS=$ac_func_search_save_LIBS
10259 fi
10260 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10261 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10262 if test "$ac_cv_search_dlopen" != no; then
10263 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10264
10265
10266 cat >>confdefs.h <<\_ACEOF
10267 #define HAVE_DLOPEN 1
10268 _ACEOF
10269
10270 SUFFIX=".so"
10271 MOD_TARGET=shared_modules
10272 SEDOBJ="s/\.o/.so/g"
10273 if test "$AppleGCC" = yes; then
10274
10275 for ac_header in mach-o/dyld.h
10276 do
10277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10279 echo "$as_me:$LINENO: checking for $ac_header" >&5
10280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 fi
10284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10286 else
10287 # Is the header compilable?
10288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h. */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10296 $ac_includes_default
10297 #include <$ac_header>
10298 _ACEOF
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>conftest.er1
10302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag"
10309 || test ! -s conftest.err'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; } &&
10315 { ac_try='test -s conftest.$ac_objext'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 ac_header_compiler=yes
10322 else
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326 ac_header_compiler=no
10327 fi
10328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10330 echo "${ECHO_T}$ac_header_compiler" >&6
10331
10332 # Is the header present?
10333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #include <$ac_header>
10342 _ACEOF
10343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } >/dev/null; then
10351 if test -s conftest.err; then
10352 ac_cpp_err=$ac_c_preproc_warn_flag
10353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10354 else
10355 ac_cpp_err=
10356 fi
10357 else
10358 ac_cpp_err=yes
10359 fi
10360 if test -z "$ac_cpp_err"; then
10361 ac_header_preproc=yes
10362 else
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10365
10366 ac_header_preproc=no
10367 fi
10368 rm -f conftest.err conftest.$ac_ext
10369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10370 echo "${ECHO_T}$ac_header_preproc" >&6
10371
10372 # So? What about this header?
10373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10374 yes:no: )
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10379 ac_header_preproc=yes
10380 ;;
10381 no:yes:* )
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10394 (
10395 cat <<\_ASBOX
10396 ## -------------------------------------- ##
10397 ## Report this to the ircd-hybrid lists. ##
10398 ## -------------------------------------- ##
10399 _ASBOX
10400 ) |
10401 sed "s/^/$as_me: WARNING: /" >&2
10402 ;;
10403 esac
10404 echo "$as_me:$LINENO: checking for $ac_header" >&5
10405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409 eval "$as_ac_Header=\$ac_header_preproc"
10410 fi
10411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10413
10414 fi
10415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10416 cat >>confdefs.h <<_ACEOF
10417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10418 _ACEOF
10419
10420 fi
10421
10422 done
10423
10424 fi
10425 echo "$as_me:$LINENO: checking for dlsym" >&5
10426 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
10427 if test "${ac_cv_func_dlsym+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
10437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10438 #define dlsym innocuous_dlsym
10439
10440 /* System header to define __stub macros and hopefully few prototypes,
10441 which can conflict with char dlsym (); below.
10442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10443 <limits.h> exists even on freestanding compilers. */
10444
10445 #ifdef __STDC__
10446 # include <limits.h>
10447 #else
10448 # include <assert.h>
10449 #endif
10450
10451 #undef dlsym
10452
10453 /* Override any gcc2 internal prototype to avoid an error. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 {
10457 #endif
10458 /* We use char because int might match the return type of a gcc2
10459 builtin and then its argument prototype would still apply. */
10460 char dlsym ();
10461 /* The GNU C library defines this for functions which it implements
10462 to always fail with ENOSYS. Some functions are actually named
10463 something starting with __ and the normal name is an alias. */
10464 #if defined (__stub_dlsym) || defined (__stub___dlsym)
10465 choke me
10466 #else
10467 char (*f) () = dlsym;
10468 #endif
10469 #ifdef __cplusplus
10470 }
10471 #endif
10472
10473 int
10474 main ()
10475 {
10476 return f != dlsym;
10477 ;
10478 return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483 (eval $ac_link) 2>conftest.er1
10484 ac_status=$?
10485 grep -v '^ *+' conftest.er1 >conftest.err
10486 rm -f conftest.er1
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try='test -z "$ac_c_werror_flag"
10491 || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_func_dlsym=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 ac_cv_func_dlsym=no
10509 fi
10510 rm -f conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10512 fi
10513 echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
10514 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
10515 if test $ac_cv_func_dlsym = yes; then
10516 :
10517 else
10518
10519 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
10520 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
10521 shared_modules=no
10522
10523 fi
10524
10525
10526
10527 for ac_func in dlfunc dlinfo
10528 do
10529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10530 echo "$as_me:$LINENO: checking for $ac_func" >&5
10531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10532 if eval "test \"\${$as_ac_var+set}\" = set"; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10543 #define $ac_func innocuous_$ac_func
10544
10545 /* System header to define __stub macros and hopefully few prototypes,
10546 which can conflict with char $ac_func (); below.
10547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10548 <limits.h> exists even on freestanding compilers. */
10549
10550 #ifdef __STDC__
10551 # include <limits.h>
10552 #else
10553 # include <assert.h>
10554 #endif
10555
10556 #undef $ac_func
10557
10558 /* Override any gcc2 internal prototype to avoid an error. */
10559 #ifdef __cplusplus
10560 extern "C"
10561 {
10562 #endif
10563 /* We use char because int might match the return type of a gcc2
10564 builtin and then its argument prototype would still apply. */
10565 char $ac_func ();
10566 /* The GNU C library defines this for functions which it implements
10567 to always fail with ENOSYS. Some functions are actually named
10568 something starting with __ and the normal name is an alias. */
10569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10570 choke me
10571 #else
10572 char (*f) () = $ac_func;
10573 #endif
10574 #ifdef __cplusplus
10575 }
10576 #endif
10577
10578 int
10579 main ()
10580 {
10581 return f != $ac_func;
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588 (eval $ac_link) 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag"
10596 || test ! -s conftest.err'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 eval "$as_ac_var=yes"
10609 else
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613 eval "$as_ac_var=no"
10614 fi
10615 rm -f conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617 fi
10618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10620 if test `eval echo '${'$as_ac_var'}'` = yes; then
10621 cat >>confdefs.h <<_ACEOF
10622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10623 _ACEOF
10624
10625 fi
10626 done
10627
10628
10629 else
10630
10631 shared_modules=no
10632
10633 fi
10634
10635
10636 fi
10637
10638 fi
10639
10640
10641 cat >>confdefs.h <<_ACEOF
10642 #define SHARED_SUFFIX "$SUFFIX"
10643 _ACEOF
10644
10645
10646 if test "$shared_modules" = yes; then
10647 # The GNU linker requires the -export-dynamic option to make
10648 # all symbols visible in the dynamic symbol table.
10649 hold_ldflags=$LDFLAGS
10650 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
10651 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
10652 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659
10660 int
10661 main ()
10662 {
10663 int i;
10664 ;
10665 return 0;
10666 }
10667 _ACEOF
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>conftest.er1
10671 ac_status=$?
10672 grep -v '^ *+' conftest.er1 >conftest.err
10673 rm -f conftest.er1
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -z "$ac_c_werror_flag"
10678 || test ! -s conftest.err'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; } &&
10684 { ac_try='test -s conftest$ac_exeext'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10690 found=yes
10691 else
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10694
10695 found=no
10696 fi
10697 rm -f conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LDFLAGS=$hold_ldflags
10700
10701 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
10702 found="no, IRIX ld uses -B,dynamic"
10703 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
10704 fi
10705
10706 echo "$as_me:$LINENO: result: $found" >&5
10707 echo "${ECHO_T}$found" >&6
10708
10709 if test "$found" = yes; then
10710 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10711 fi
10712
10713 echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
10714 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
10715 if test "$SGS" = "yes"; then
10716 echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
10717 echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6
10718 PICFLAGS="-KPIC -DPIC -G"
10719 fi
10720
10721 if test "$AppleGCC" = "yes"; then
10722 echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
10723 echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6
10724 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
10725 fi
10726 if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then
10727 echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
10728 echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6
10729 PICFLAGS="+z -r -q -n -c"
10730 echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
10731 echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6
10732
10733 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
10734 echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6
10736 else
10737 echo "$as_me:$LINENO: result: yes" >&5
10738 echo "${ECHO_T}yes" >&6
10739 PICFLAGS="$PICFLAGS +ESfic"
10740 fi
10741
10742 LDFLAGS="${LDFLAGS} -Wl,-E"
10743 fi
10744 if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then
10745 echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
10746 echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6
10747 PICFLAGS="-shared -expect_unresolved '*' "
10748 LDFLAGS="-call_shared"
10749 fi
10750 if test -z "$PICFLAGS"; then
10751 if test "$ac_cv_c_compiler_gnu" = "yes"; then
10752 echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
10753 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6
10754 PICFLAGS="-fPIC -DPIC -shared"
10755 else
10756 echo "$as_me:$LINENO: result: no" >&5
10757 echo "${ECHO_T}no" >&6
10758 shared_modules=no
10759 fi
10760 fi
10761 fi
10762
10763 if test "$shared_modules" = no; then
10764 DYNLINK_C=""
10765 MOD_TARGET="libmodules.a"
10766 MODULES_LIBS="../modules/libmodules.a"
10767 SEDOBJ=""
10768
10769 cat >>confdefs.h <<\_ACEOF
10770 #define STATIC_MODULES 1
10771 _ACEOF
10772
10773 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
10774 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
10775 fi
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790 if test "$prefix" = "NONE"; then
10791
10792 cat >>confdefs.h <<_ACEOF
10793 #define IRCD_PREFIX "$ac_default_prefix"
10794 _ACEOF
10795
10796
10797 else
10798
10799
10800 prefix=`echo $prefix | sed 's/\/$//'`
10801
10802 cat >>confdefs.h <<_ACEOF
10803 #define IRCD_PREFIX "$prefix"
10804 _ACEOF
10805
10806
10807 fi
10808
10809 ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile libio/Makefile libio/comm/Makefile libio/mem/Makefile libio/misc/Makefile libio/net/Makefile libio/string/Makefile"
10810
10811
10812 cat >confcache <<\_ACEOF
10813 # This file is a shell script that caches the results of configure
10814 # tests run on this system so they can be shared between configure
10815 # scripts and configure runs, see configure's option --config-cache.
10816 # It is not useful on other systems. If it contains results you don't
10817 # want to keep, you may remove or edit it.
10818 #
10819 # config.status only pays attention to the cache file if you give it
10820 # the --recheck option to rerun configure.
10821 #
10822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10824 # following values.
10825
10826 _ACEOF
10827
10828 # The following way of writing the cache mishandles newlines in values,
10829 # but we know of no workaround that is simple, portable, and efficient.
10830 # So, don't put newlines in cache variables' values.
10831 # Ultrix sh set writes to stderr and can't be redirected directly,
10832 # and sets the high bit in the cache file unless we assign to the vars.
10833 {
10834 (set) 2>&1 |
10835 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10836 *ac_space=\ *)
10837 # `set' does not quote correctly, so add quotes (double-quote
10838 # substitution turns \\\\ into \\, and sed turns \\ into \).
10839 sed -n \
10840 "s/'/'\\\\''/g;
10841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10842 ;;
10843 *)
10844 # `set' quotes correctly as required by POSIX, so do not add quotes.
10845 sed -n \
10846 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10847 ;;
10848 esac;
10849 } |
10850 sed '
10851 t clear
10852 : clear
10853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10854 t end
10855 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10856 : end' >>confcache
10857 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10858 if test -w $cache_file; then
10859 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10860 cat confcache >$cache_file
10861 else
10862 echo "not updating unwritable cache $cache_file"
10863 fi
10864 fi
10865 rm -f confcache
10866
10867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10868 # Let make expand exec_prefix.
10869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10870
10871 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10872 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10873 # trailing colons and then remove the whole line if VPATH becomes empty
10874 # (actually we leave an empty line to preserve line numbers).
10875 if test "x$srcdir" = x.; then
10876 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10877 s/:*\$(srcdir):*/:/;
10878 s/:*\${srcdir}:*/:/;
10879 s/:*@srcdir@:*/:/;
10880 s/^\([^=]*=[ ]*\):*/\1/;
10881 s/:*$//;
10882 s/^[^=]*=[ ]*$//;
10883 }'
10884 fi
10885
10886 DEFS=-DHAVE_CONFIG_H
10887
10888 ac_libobjs=
10889 ac_ltlibobjs=
10890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10891 # 1. Remove the extension, and $U if already installed.
10892 ac_i=`echo "$ac_i" |
10893 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10894 # 2. Add them.
10895 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10896 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10897 done
10898 LIBOBJS=$ac_libobjs
10899
10900 LTLIBOBJS=$ac_ltlibobjs
10901
10902
10903
10904 : ${CONFIG_STATUS=./config.status}
10905 ac_clean_files_save=$ac_clean_files
10906 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10907 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10908 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10909 cat >$CONFIG_STATUS <<_ACEOF
10910 #! $SHELL
10911 # Generated by $as_me.
10912 # Run this file to recreate the current configuration.
10913 # Compiler output produced by configure, useful for debugging
10914 # configure, is in config.log if it exists.
10915
10916 debug=false
10917 ac_cs_recheck=false
10918 ac_cs_silent=false
10919 SHELL=\${CONFIG_SHELL-$SHELL}
10920 _ACEOF
10921
10922 cat >>$CONFIG_STATUS <<\_ACEOF
10923 ## --------------------- ##
10924 ## M4sh Initialization. ##
10925 ## --------------------- ##
10926
10927 # Be Bourne compatible
10928 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10929 emulate sh
10930 NULLCMD=:
10931 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10932 # is contrary to our usage. Disable this feature.
10933 alias -g '${1+"$@"}'='"$@"'
10934 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10935 set -o posix
10936 fi
10937 DUALCASE=1; export DUALCASE # for MKS sh
10938
10939 # Support unset when possible.
10940 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10941 as_unset=unset
10942 else
10943 as_unset=false
10944 fi
10945
10946
10947 # Work around bugs in pre-3.0 UWIN ksh.
10948 $as_unset ENV MAIL MAILPATH
10949 PS1='$ '
10950 PS2='> '
10951 PS4='+ '
10952
10953 # NLS nuisances.
10954 for as_var in \
10955 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10956 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10957 LC_TELEPHONE LC_TIME
10958 do
10959 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10960 eval $as_var=C; export $as_var
10961 else
10962 $as_unset $as_var
10963 fi
10964 done
10965
10966 # Required to use basename.
10967 if expr a : '\(a\)' >/dev/null 2>&1; then
10968 as_expr=expr
10969 else
10970 as_expr=false
10971 fi
10972
10973 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10974 as_basename=basename
10975 else
10976 as_basename=false
10977 fi
10978
10979
10980 # Name of the executable.
10981 as_me=`$as_basename "$0" ||
10982 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10983 X"$0" : 'X\(//\)$' \| \
10984 X"$0" : 'X\(/\)$' \| \
10985 . : '\(.\)' 2>/dev/null ||
10986 echo X/"$0" |
10987 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10988 /^X\/\(\/\/\)$/{ s//\1/; q; }
10989 /^X\/\(\/\).*/{ s//\1/; q; }
10990 s/.*/./; q'`
10991
10992
10993 # PATH needs CR, and LINENO needs CR and PATH.
10994 # Avoid depending upon Character Ranges.
10995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10998 as_cr_digits='0123456789'
10999 as_cr_alnum=$as_cr_Letters$as_cr_digits
11000
11001 # The user is always right.
11002 if test "${PATH_SEPARATOR+set}" != set; then
11003 echo "#! /bin/sh" >conf$$.sh
11004 echo "exit 0" >>conf$$.sh
11005 chmod +x conf$$.sh
11006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11007 PATH_SEPARATOR=';'
11008 else
11009 PATH_SEPARATOR=:
11010 fi
11011 rm -f conf$$.sh
11012 fi
11013
11014
11015 as_lineno_1=$LINENO
11016 as_lineno_2=$LINENO
11017 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11018 test "x$as_lineno_1" != "x$as_lineno_2" &&
11019 test "x$as_lineno_3" = "x$as_lineno_2" || {
11020 # Find who we are. Look in the path if we contain no path at all
11021 # relative or not.
11022 case $0 in
11023 *[\\/]* ) as_myself=$0 ;;
11024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11026 do
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11030 done
11031
11032 ;;
11033 esac
11034 # We did not find ourselves, most probably we were run as `sh COMMAND'
11035 # in which case we are not to be found in the path.
11036 if test "x$as_myself" = x; then
11037 as_myself=$0
11038 fi
11039 if test ! -f "$as_myself"; then
11040 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11041 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11042 { (exit 1); exit 1; }; }
11043 fi
11044 case $CONFIG_SHELL in
11045 '')
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11048 do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for as_base in sh bash ksh sh5; do
11052 case $as_dir in
11053 /*)
11054 if ("$as_dir/$as_base" -c '
11055 as_lineno_1=$LINENO
11056 as_lineno_2=$LINENO
11057 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11058 test "x$as_lineno_1" != "x$as_lineno_2" &&
11059 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11060 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11061 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11062 CONFIG_SHELL=$as_dir/$as_base
11063 export CONFIG_SHELL
11064 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11065 fi;;
11066 esac
11067 done
11068 done
11069 ;;
11070 esac
11071
11072 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11073 # uniformly replaced by the line number. The first 'sed' inserts a
11074 # line-number line before each line; the second 'sed' does the real
11075 # work. The second script uses 'N' to pair each line-number line
11076 # with the numbered line, and appends trailing '-' during
11077 # substitution so that $LINENO is not a special case at line end.
11078 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11079 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11080 sed '=' <$as_myself |
11081 sed '
11082 N
11083 s,$,-,
11084 : loop
11085 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11086 t loop
11087 s,-$,,
11088 s,^['$as_cr_digits']*\n,,
11089 ' >$as_me.lineno &&
11090 chmod +x $as_me.lineno ||
11091 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11092 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11093 { (exit 1); exit 1; }; }
11094
11095 # Don't try to exec as it changes $[0], causing all sort of problems
11096 # (the dirname of $[0] is not the place where we might find the
11097 # original and so on. Autoconf is especially sensible to this).
11098 . ./$as_me.lineno
11099 # Exit status is that of the last command.
11100 exit
11101 }
11102
11103
11104 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11105 *c*,-n*) ECHO_N= ECHO_C='
11106 ' ECHO_T=' ' ;;
11107 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11108 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11109 esac
11110
11111 if expr a : '\(a\)' >/dev/null 2>&1; then
11112 as_expr=expr
11113 else
11114 as_expr=false
11115 fi
11116
11117 rm -f conf$$ conf$$.exe conf$$.file
11118 echo >conf$$.file
11119 if ln -s conf$$.file conf$$ 2>/dev/null; then
11120 # We could just check for DJGPP; but this test a) works b) is more generic
11121 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11122 if test -f conf$$.exe; then
11123 # Don't use ln at all; we don't have any links
11124 as_ln_s='cp -p'
11125 else
11126 as_ln_s='ln -s'
11127 fi
11128 elif ln conf$$.file conf$$ 2>/dev/null; then
11129 as_ln_s=ln
11130 else
11131 as_ln_s='cp -p'
11132 fi
11133 rm -f conf$$ conf$$.exe conf$$.file
11134
11135 if mkdir -p . 2>/dev/null; then
11136 as_mkdir_p=:
11137 else
11138 test -d ./-p && rmdir ./-p
11139 as_mkdir_p=false
11140 fi
11141
11142 as_executable_p="test -f"
11143
11144 # Sed expression to map a string onto a valid CPP name.
11145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11146
11147 # Sed expression to map a string onto a valid variable name.
11148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11149
11150
11151 # IFS
11152 # We need space, tab and new line, in precisely that order.
11153 as_nl='
11154 '
11155 IFS=" $as_nl"
11156
11157 # CDPATH.
11158 $as_unset CDPATH
11159
11160 exec 6>&1
11161
11162 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11163 # report actual input values of CONFIG_FILES etc. instead of their
11164 # values after options handling. Logging --version etc. is OK.
11165 exec 5>>config.log
11166 {
11167 echo
11168 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11169 ## Running $as_me. ##
11170 _ASBOX
11171 } >&5
11172 cat >&5 <<_CSEOF
11173
11174 This file was extended by ircd-hybrid $as_me 7.3, which was
11175 generated by GNU Autoconf 2.59. Invocation command line was
11176
11177 CONFIG_FILES = $CONFIG_FILES
11178 CONFIG_HEADERS = $CONFIG_HEADERS
11179 CONFIG_LINKS = $CONFIG_LINKS
11180 CONFIG_COMMANDS = $CONFIG_COMMANDS
11181 $ $0 $@
11182
11183 _CSEOF
11184 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11185 echo >&5
11186 _ACEOF
11187
11188 # Files that config.status was made for.
11189 if test -n "$ac_config_files"; then
11190 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11191 fi
11192
11193 if test -n "$ac_config_headers"; then
11194 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11195 fi
11196
11197 if test -n "$ac_config_links"; then
11198 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11199 fi
11200
11201 if test -n "$ac_config_commands"; then
11202 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11203 fi
11204
11205 cat >>$CONFIG_STATUS <<\_ACEOF
11206
11207 ac_cs_usage="\
11208 \`$as_me' instantiates files from templates according to the
11209 current configuration.
11210
11211 Usage: $0 [OPTIONS] [FILE]...
11212
11213 -h, --help print this help, then exit
11214 -V, --version print version number, then exit
11215 -q, --quiet do not print progress messages
11216 -d, --debug don't remove temporary files
11217 --recheck update $as_me by reconfiguring in the same conditions
11218 --file=FILE[:TEMPLATE]
11219 instantiate the configuration file FILE
11220 --header=FILE[:TEMPLATE]
11221 instantiate the configuration header FILE
11222
11223 Configuration files:
11224 $config_files
11225
11226 Configuration headers:
11227 $config_headers
11228
11229 Report bugs to <bug-autoconf@gnu.org>."
11230 _ACEOF
11231
11232 cat >>$CONFIG_STATUS <<_ACEOF
11233 ac_cs_version="\\
11234 ircd-hybrid config.status 7.3
11235 configured by $0, generated by GNU Autoconf 2.59,
11236 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11237
11238 Copyright (C) 2003 Free Software Foundation, Inc.
11239 This config.status script is free software; the Free Software Foundation
11240 gives unlimited permission to copy, distribute and modify it."
11241 srcdir=$srcdir
11242 INSTALL="$INSTALL"
11243 _ACEOF
11244
11245 cat >>$CONFIG_STATUS <<\_ACEOF
11246 # If no file are specified by the user, then we need to provide default
11247 # value. By we need to know if files were specified by the user.
11248 ac_need_defaults=:
11249 while test $# != 0
11250 do
11251 case $1 in
11252 --*=*)
11253 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11254 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11255 ac_shift=:
11256 ;;
11257 -*)
11258 ac_option=$1
11259 ac_optarg=$2
11260 ac_shift=shift
11261 ;;
11262 *) # This is not an option, so the user has probably given explicit
11263 # arguments.
11264 ac_option=$1
11265 ac_need_defaults=false;;
11266 esac
11267
11268 case $ac_option in
11269 # Handling of the options.
11270 _ACEOF
11271 cat >>$CONFIG_STATUS <<\_ACEOF
11272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11273 ac_cs_recheck=: ;;
11274 --version | --vers* | -V )
11275 echo "$ac_cs_version"; exit 0 ;;
11276 --he | --h)
11277 # Conflict between --help and --header
11278 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11279 Try \`$0 --help' for more information." >&5
11280 echo "$as_me: error: ambiguous option: $1
11281 Try \`$0 --help' for more information." >&2;}
11282 { (exit 1); exit 1; }; };;
11283 --help | --hel | -h )
11284 echo "$ac_cs_usage"; exit 0 ;;
11285 --debug | --d* | -d )
11286 debug=: ;;
11287 --file | --fil | --fi | --f )
11288 $ac_shift
11289 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11290 ac_need_defaults=false;;
11291 --header | --heade | --head | --hea )
11292 $ac_shift
11293 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11294 ac_need_defaults=false;;
11295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11296 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11297 ac_cs_silent=: ;;
11298
11299 # This is an error.
11300 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11301 Try \`$0 --help' for more information." >&5
11302 echo "$as_me: error: unrecognized option: $1
11303 Try \`$0 --help' for more information." >&2;}
11304 { (exit 1); exit 1; }; } ;;
11305
11306 *) ac_config_targets="$ac_config_targets $1" ;;
11307
11308 esac
11309 shift
11310 done
11311
11312 ac_configure_extra_args=
11313
11314 if $ac_cs_silent; then
11315 exec 6>/dev/null
11316 ac_configure_extra_args="$ac_configure_extra_args --silent"
11317 fi
11318
11319 _ACEOF
11320 cat >>$CONFIG_STATUS <<_ACEOF
11321 if \$ac_cs_recheck; then
11322 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11323 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11324 fi
11325
11326 _ACEOF
11327
11328
11329
11330
11331
11332 cat >>$CONFIG_STATUS <<\_ACEOF
11333 for ac_config_target in $ac_config_targets
11334 do
11335 case "$ac_config_target" in
11336 # Handling of arguments.
11337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11338 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
11339 "servlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
11340 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
11341 "contrib/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
11342 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11343 "messages/Makefile" ) CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
11344 "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
11345 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11346 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11347 "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
11348 "libio/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/Makefile" ;;
11349 "libio/comm/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/comm/Makefile" ;;
11350 "libio/mem/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/mem/Makefile" ;;
11351 "libio/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/misc/Makefile" ;;
11352 "libio/net/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/net/Makefile" ;;
11353 "libio/string/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/string/Makefile" ;;
11354 "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
11355 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11356 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11357 { (exit 1); exit 1; }; };;
11358 esac
11359 done
11360
11361 # If the user did not use the arguments to specify the items to instantiate,
11362 # then the envvar interface is used. Set only those that are not.
11363 # We use the long form for the default assignment because of an extremely
11364 # bizarre bug on SunOS 4.1.3.
11365 if $ac_need_defaults; then
11366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11368 fi
11369
11370 # Have a temporary directory for convenience. Make it in the build tree
11371 # simply because there is no reason to put it here, and in addition,
11372 # creating and moving files from /tmp can sometimes cause problems.
11373 # Create a temporary directory, and hook for its removal unless debugging.
11374 $debug ||
11375 {
11376 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11377 trap '{ (exit 1); exit 1; }' 1 2 13 15
11378 }
11379
11380 # Create a (secure) tmp directory for tmp files.
11381
11382 {
11383 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11384 test -n "$tmp" && test -d "$tmp"
11385 } ||
11386 {
11387 tmp=./confstat$$-$RANDOM
11388 (umask 077 && mkdir $tmp)
11389 } ||
11390 {
11391 echo "$me: cannot create a temporary directory in ." >&2
11392 { (exit 1); exit 1; }
11393 }
11394
11395 _ACEOF
11396
11397 cat >>$CONFIG_STATUS <<_ACEOF
11398
11399 #
11400 # CONFIG_FILES section.
11401 #
11402
11403 # No need to generate the scripts if there are no CONFIG_FILES.
11404 # This happens for instance when ./config.status config.h
11405 if test -n "\$CONFIG_FILES"; then
11406 # Protect against being on the right side of a sed subst in config.status.
11407 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11408 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11409 s,@SHELL@,$SHELL,;t t
11410 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11411 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11412 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11413 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11414 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11415 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11416 s,@exec_prefix@,$exec_prefix,;t t
11417 s,@prefix@,$prefix,;t t
11418 s,@program_transform_name@,$program_transform_name,;t t
11419 s,@bindir@,$bindir,;t t
11420 s,@sbindir@,$sbindir,;t t
11421 s,@libexecdir@,$libexecdir,;t t
11422 s,@datadir@,$datadir,;t t
11423 s,@sysconfdir@,$sysconfdir,;t t
11424 s,@sharedstatedir@,$sharedstatedir,;t t
11425 s,@localstatedir@,$localstatedir,;t t
11426 s,@libdir@,$libdir,;t t
11427 s,@includedir@,$includedir,;t t
11428 s,@oldincludedir@,$oldincludedir,;t t
11429 s,@infodir@,$infodir,;t t
11430 s,@mandir@,$mandir,;t t
11431 s,@build_alias@,$build_alias,;t t
11432 s,@host_alias@,$host_alias,;t t
11433 s,@target_alias@,$target_alias,;t t
11434 s,@DEFS@,$DEFS,;t t
11435 s,@ECHO_C@,$ECHO_C,;t t
11436 s,@ECHO_N@,$ECHO_N,;t t
11437 s,@ECHO_T@,$ECHO_T,;t t
11438 s,@LIBS@,$LIBS,;t t
11439 s,@CC@,$CC,;t t
11440 s,@CFLAGS@,$CFLAGS,;t t
11441 s,@LDFLAGS@,$LDFLAGS,;t t
11442 s,@CPPFLAGS@,$CPPFLAGS,;t t
11443 s,@ac_ct_CC@,$ac_ct_CC,;t t
11444 s,@EXEEXT@,$EXEEXT,;t t
11445 s,@OBJEXT@,$OBJEXT,;t t
11446 s,@MKDEP@,$MKDEP,;t t
11447 s,@MAKEDEPEND@,$MAKEDEPEND,;t t
11448 s,@STDOUT@,$STDOUT,;t t
11449 s,@CPP@,$CPP,;t t
11450 s,@EGREP@,$EGREP,;t t
11451 s,@SET_MAKE@,$SET_MAKE,;t t
11452 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11453 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11454 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11455 s,@RM@,$RM,;t t
11456 s,@CP@,$CP,;t t
11457 s,@MV@,$MV,;t t
11458 s,@LN@,$LN,;t t
11459 s,@SED@,$SED,;t t
11460 s,@AR@,$AR,;t t
11461 s,@LD@,$LD,;t t
11462 s,@TEST@,$TEST,;t t
11463 s,@INET_MISC@,$INET_MISC,;t t
11464 s,@CRYPT_C@,$CRYPT_C,;t t
11465 s,@CRYPT_LIB@,$CRYPT_LIB,;t t
11466 s,@SNPRINTF_C@,$SNPRINTF_C,;t t
11467 s,@ENCSPEED@,$ENCSPEED,;t t
11468 s,@ZLIB_LD@,$ZLIB_LD,;t t
11469 s,@SELECT_TYPE@,$SELECT_TYPE,;t t
11470 s,@CLOBBER@,$CLOBBER,;t t
11471 s,@BALLOC_C@,$BALLOC_C,;t t
11472 s,@EXAMPLE_CONF@,$EXAMPLE_CONF,;t t
11473 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
11474 s,@MOD_TARGET@,$MOD_TARGET,;t t
11475 s,@SSL_SRCS_ENABLE@,$SSL_SRCS_ENABLE,;t t
11476 s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
11477 s,@SSL_LIBS@,$SSL_LIBS,;t t
11478 s,@PICFLAGS@,$PICFLAGS,;t t
11479 s,@IRC_CFLAGS@,$IRC_CFLAGS,;t t
11480 s,@SEDOBJ@,$SEDOBJ,;t t
11481 s,@DYNLINK_C@,$DYNLINK_C,;t t
11482 s,@LIBOBJS@,$LIBOBJS,;t t
11483 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11484 CEOF
11485
11486 _ACEOF
11487
11488 cat >>$CONFIG_STATUS <<\_ACEOF
11489 # Split the substitutions into bite-sized pieces for seds with
11490 # small command number limits, like on Digital OSF/1 and HP-UX.
11491 ac_max_sed_lines=48
11492 ac_sed_frag=1 # Number of current file.
11493 ac_beg=1 # First line for current file.
11494 ac_end=$ac_max_sed_lines # Line after last line for current file.
11495 ac_more_lines=:
11496 ac_sed_cmds=
11497 while $ac_more_lines; do
11498 if test $ac_beg -gt 1; then
11499 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11500 else
11501 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11502 fi
11503 if test ! -s $tmp/subs.frag; then
11504 ac_more_lines=false
11505 else
11506 # The purpose of the label and of the branching condition is to
11507 # speed up the sed processing (if there are no `@' at all, there
11508 # is no need to browse any of the substitutions).
11509 # These are the two extra sed commands mentioned above.
11510 (echo ':t
11511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11512 if test -z "$ac_sed_cmds"; then
11513 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11514 else
11515 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11516 fi
11517 ac_sed_frag=`expr $ac_sed_frag + 1`
11518 ac_beg=$ac_end
11519 ac_end=`expr $ac_end + $ac_max_sed_lines`
11520 fi
11521 done
11522 if test -z "$ac_sed_cmds"; then
11523 ac_sed_cmds=cat
11524 fi
11525 fi # test -n "$CONFIG_FILES"
11526
11527 _ACEOF
11528 cat >>$CONFIG_STATUS <<\_ACEOF
11529 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11530 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11531 case $ac_file in
11532 - | *:- | *:-:* ) # input from stdin
11533 cat >$tmp/stdin
11534 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11536 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11538 * ) ac_file_in=$ac_file.in ;;
11539 esac
11540
11541 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11542 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11543 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11544 X"$ac_file" : 'X\(//\)[^/]' \| \
11545 X"$ac_file" : 'X\(//\)$' \| \
11546 X"$ac_file" : 'X\(/\)' \| \
11547 . : '\(.\)' 2>/dev/null ||
11548 echo X"$ac_file" |
11549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11551 /^X\(\/\/\)$/{ s//\1/; q; }
11552 /^X\(\/\).*/{ s//\1/; q; }
11553 s/.*/./; q'`
11554 { if $as_mkdir_p; then
11555 mkdir -p "$ac_dir"
11556 else
11557 as_dir="$ac_dir"
11558 as_dirs=
11559 while test ! -d "$as_dir"; do
11560 as_dirs="$as_dir $as_dirs"
11561 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11563 X"$as_dir" : 'X\(//\)[^/]' \| \
11564 X"$as_dir" : 'X\(//\)$' \| \
11565 X"$as_dir" : 'X\(/\)' \| \
11566 . : '\(.\)' 2>/dev/null ||
11567 echo X"$as_dir" |
11568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11570 /^X\(\/\/\)$/{ s//\1/; q; }
11571 /^X\(\/\).*/{ s//\1/; q; }
11572 s/.*/./; q'`
11573 done
11574 test ! -n "$as_dirs" || mkdir $as_dirs
11575 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11576 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11577 { (exit 1); exit 1; }; }; }
11578
11579 ac_builddir=.
11580
11581 if test "$ac_dir" != .; then
11582 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11583 # A "../" for each directory in $ac_dir_suffix.
11584 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11585 else
11586 ac_dir_suffix= ac_top_builddir=
11587 fi
11588
11589 case $srcdir in
11590 .) # No --srcdir option. We are building in place.
11591 ac_srcdir=.
11592 if test -z "$ac_top_builddir"; then
11593 ac_top_srcdir=.
11594 else
11595 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11596 fi ;;
11597 [\\/]* | ?:[\\/]* ) # Absolute path.
11598 ac_srcdir=$srcdir$ac_dir_suffix;
11599 ac_top_srcdir=$srcdir ;;
11600 *) # Relative path.
11601 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11602 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11603 esac
11604
11605 # Do not use `cd foo && pwd` to compute absolute paths, because
11606 # the directories may not exist.
11607 case `pwd` in
11608 .) ac_abs_builddir="$ac_dir";;
11609 *)
11610 case "$ac_dir" in
11611 .) ac_abs_builddir=`pwd`;;
11612 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11613 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11614 esac;;
11615 esac
11616 case $ac_abs_builddir in
11617 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11618 *)
11619 case ${ac_top_builddir}. in
11620 .) ac_abs_top_builddir=$ac_abs_builddir;;
11621 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11622 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11623 esac;;
11624 esac
11625 case $ac_abs_builddir in
11626 .) ac_abs_srcdir=$ac_srcdir;;
11627 *)
11628 case $ac_srcdir in
11629 .) ac_abs_srcdir=$ac_abs_builddir;;
11630 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11631 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11632 esac;;
11633 esac
11634 case $ac_abs_builddir in
11635 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11636 *)
11637 case $ac_top_srcdir in
11638 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11639 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11640 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11641 esac;;
11642 esac
11643
11644
11645 case $INSTALL in
11646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11647 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11648 esac
11649
11650 if test x"$ac_file" != x-; then
11651 { echo "$as_me:$LINENO: creating $ac_file" >&5
11652 echo "$as_me: creating $ac_file" >&6;}
11653 rm -f "$ac_file"
11654 fi
11655 # Let's still pretend it is `configure' which instantiates (i.e., don't
11656 # use $as_me), people would be surprised to read:
11657 # /* config.h. Generated by config.status. */
11658 if test x"$ac_file" = x-; then
11659 configure_input=
11660 else
11661 configure_input="$ac_file. "
11662 fi
11663 configure_input=$configure_input"Generated from `echo $ac_file_in |
11664 sed 's,.*/,,'` by configure."
11665
11666 # First look for the input files in the build tree, otherwise in the
11667 # src tree.
11668 ac_file_inputs=`IFS=:
11669 for f in $ac_file_in; do
11670 case $f in
11671 -) echo $tmp/stdin ;;
11672 [\\/$]*)
11673 # Absolute (can't be DOS-style, as IFS=:)
11674 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11675 echo "$as_me: error: cannot find input file: $f" >&2;}
11676 { (exit 1); exit 1; }; }
11677 echo "$f";;
11678 *) # Relative
11679 if test -f "$f"; then
11680 # Build tree
11681 echo "$f"
11682 elif test -f "$srcdir/$f"; then
11683 # Source tree
11684 echo "$srcdir/$f"
11685 else
11686 # /dev/null tree
11687 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11688 echo "$as_me: error: cannot find input file: $f" >&2;}
11689 { (exit 1); exit 1; }; }
11690 fi;;
11691 esac
11692 done` || { (exit 1); exit 1; }
11693 _ACEOF
11694 cat >>$CONFIG_STATUS <<_ACEOF
11695 sed "$ac_vpsub
11696 $extrasub
11697 _ACEOF
11698 cat >>$CONFIG_STATUS <<\_ACEOF
11699 :t
11700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11701 s,@configure_input@,$configure_input,;t t
11702 s,@srcdir@,$ac_srcdir,;t t
11703 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11704 s,@top_srcdir@,$ac_top_srcdir,;t t
11705 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11706 s,@builddir@,$ac_builddir,;t t
11707 s,@abs_builddir@,$ac_abs_builddir,;t t
11708 s,@top_builddir@,$ac_top_builddir,;t t
11709 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11710 s,@INSTALL@,$ac_INSTALL,;t t
11711 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11712 rm -f $tmp/stdin
11713 if test x"$ac_file" != x-; then
11714 mv $tmp/out $ac_file
11715 else
11716 cat $tmp/out
11717 rm -f $tmp/out
11718 fi
11719
11720 done
11721 _ACEOF
11722 cat >>$CONFIG_STATUS <<\_ACEOF
11723
11724 #
11725 # CONFIG_HEADER section.
11726 #
11727
11728 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11729 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11730 #
11731 # ac_d sets the value in "#define NAME VALUE" lines.
11732 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11733 ac_dB='[ ].*$,\1#\2'
11734 ac_dC=' '
11735 ac_dD=',;t'
11736 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11737 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11738 ac_uB='$,\1#\2define\3'
11739 ac_uC=' '
11740 ac_uD=',;t'
11741
11742 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11744 case $ac_file in
11745 - | *:- | *:-:* ) # input from stdin
11746 cat >$tmp/stdin
11747 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11749 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11751 * ) ac_file_in=$ac_file.in ;;
11752 esac
11753
11754 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11755 echo "$as_me: creating $ac_file" >&6;}
11756
11757 # First look for the input files in the build tree, otherwise in the
11758 # src tree.
11759 ac_file_inputs=`IFS=:
11760 for f in $ac_file_in; do
11761 case $f in
11762 -) echo $tmp/stdin ;;
11763 [\\/$]*)
11764 # Absolute (can't be DOS-style, as IFS=:)
11765 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11766 echo "$as_me: error: cannot find input file: $f" >&2;}
11767 { (exit 1); exit 1; }; }
11768 # Do quote $f, to prevent DOS paths from being IFS'd.
11769 echo "$f";;
11770 *) # Relative
11771 if test -f "$f"; then
11772 # Build tree
11773 echo "$f"
11774 elif test -f "$srcdir/$f"; then
11775 # Source tree
11776 echo "$srcdir/$f"
11777 else
11778 # /dev/null tree
11779 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11780 echo "$as_me: error: cannot find input file: $f" >&2;}
11781 { (exit 1); exit 1; }; }
11782 fi;;
11783 esac
11784 done` || { (exit 1); exit 1; }
11785 # Remove the trailing spaces.
11786 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11787
11788 _ACEOF
11789
11790 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11791 # `conftest.undefs', that substitutes the proper values into
11792 # config.h.in to produce config.h. The first handles `#define'
11793 # templates, and the second `#undef' templates.
11794 # And first: Protect against being on the right side of a sed subst in
11795 # config.status. Protect against being in an unquoted here document
11796 # in config.status.
11797 rm -f conftest.defines conftest.undefs
11798 # Using a here document instead of a string reduces the quoting nightmare.
11799 # Putting comments in sed scripts is not portable.
11800 #
11801 # `end' is used to avoid that the second main sed command (meant for
11802 # 0-ary CPP macros) applies to n-ary macro definitions.
11803 # See the Autoconf documentation for `clear'.
11804 cat >confdef2sed.sed <<\_ACEOF
11805 s/[\\&,]/\\&/g
11806 s,[\\$`],\\&,g
11807 t clear
11808 : clear
11809 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11810 t end
11811 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11812 : end
11813 _ACEOF
11814 # If some macros were called several times there might be several times
11815 # the same #defines, which is useless. Nevertheless, we may not want to
11816 # sort them, since we want the *last* AC-DEFINE to be honored.
11817 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11818 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11819 rm -f confdef2sed.sed
11820
11821 # This sed command replaces #undef with comments. This is necessary, for
11822 # example, in the case of _POSIX_SOURCE, which is predefined and required
11823 # on some systems where configure will not decide to define it.
11824 cat >>conftest.undefs <<\_ACEOF
11825 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11826 _ACEOF
11827
11828 # Break up conftest.defines because some shells have a limit on the size
11829 # of here documents, and old seds have small limits too (100 cmds).
11830 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11831 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11832 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11833 echo ' :' >>$CONFIG_STATUS
11834 rm -f conftest.tail
11835 while grep . conftest.defines >/dev/null
11836 do
11837 # Write a limited-size here document to $tmp/defines.sed.
11838 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11839 # Speed up: don't consider the non `#define' lines.
11840 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11841 # Work around the forget-to-reset-the-flag bug.
11842 echo 't clr' >>$CONFIG_STATUS
11843 echo ': clr' >>$CONFIG_STATUS
11844 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11845 echo 'CEOF
11846 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11847 rm -f $tmp/in
11848 mv $tmp/out $tmp/in
11849 ' >>$CONFIG_STATUS
11850 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11851 rm -f conftest.defines
11852 mv conftest.tail conftest.defines
11853 done
11854 rm -f conftest.defines
11855 echo ' fi # grep' >>$CONFIG_STATUS
11856 echo >>$CONFIG_STATUS
11857
11858 # Break up conftest.undefs because some shells have a limit on the size
11859 # of here documents, and old seds have small limits too (100 cmds).
11860 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11861 rm -f conftest.tail
11862 while grep . conftest.undefs >/dev/null
11863 do
11864 # Write a limited-size here document to $tmp/undefs.sed.
11865 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11866 # Speed up: don't consider the non `#undef'
11867 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11868 # Work around the forget-to-reset-the-flag bug.
11869 echo 't clr' >>$CONFIG_STATUS
11870 echo ': clr' >>$CONFIG_STATUS
11871 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11872 echo 'CEOF
11873 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11874 rm -f $tmp/in
11875 mv $tmp/out $tmp/in
11876 ' >>$CONFIG_STATUS
11877 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11878 rm -f conftest.undefs
11879 mv conftest.tail conftest.undefs
11880 done
11881 rm -f conftest.undefs
11882
11883 cat >>$CONFIG_STATUS <<\_ACEOF
11884 # Let's still pretend it is `configure' which instantiates (i.e., don't
11885 # use $as_me), people would be surprised to read:
11886 # /* config.h. Generated by config.status. */
11887 if test x"$ac_file" = x-; then
11888 echo "/* Generated by configure. */" >$tmp/config.h
11889 else
11890 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11891 fi
11892 cat $tmp/in >>$tmp/config.h
11893 rm -f $tmp/in
11894 if test x"$ac_file" != x-; then
11895 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11896 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11897 echo "$as_me: $ac_file is unchanged" >&6;}
11898 else
11899 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11901 X"$ac_file" : 'X\(//\)[^/]' \| \
11902 X"$ac_file" : 'X\(//\)$' \| \
11903 X"$ac_file" : 'X\(/\)' \| \
11904 . : '\(.\)' 2>/dev/null ||
11905 echo X"$ac_file" |
11906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11908 /^X\(\/\/\)$/{ s//\1/; q; }
11909 /^X\(\/\).*/{ s//\1/; q; }
11910 s/.*/./; q'`
11911 { if $as_mkdir_p; then
11912 mkdir -p "$ac_dir"
11913 else
11914 as_dir="$ac_dir"
11915 as_dirs=
11916 while test ! -d "$as_dir"; do
11917 as_dirs="$as_dir $as_dirs"
11918 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11920 X"$as_dir" : 'X\(//\)[^/]' \| \
11921 X"$as_dir" : 'X\(//\)$' \| \
11922 X"$as_dir" : 'X\(/\)' \| \
11923 . : '\(.\)' 2>/dev/null ||
11924 echo X"$as_dir" |
11925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11927 /^X\(\/\/\)$/{ s//\1/; q; }
11928 /^X\(\/\).*/{ s//\1/; q; }
11929 s/.*/./; q'`
11930 done
11931 test ! -n "$as_dirs" || mkdir $as_dirs
11932 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11933 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11934 { (exit 1); exit 1; }; }; }
11935
11936 rm -f $ac_file
11937 mv $tmp/config.h $ac_file
11938 fi
11939 else
11940 cat $tmp/config.h
11941 rm -f $tmp/config.h
11942 fi
11943 done
11944 _ACEOF
11945
11946 cat >>$CONFIG_STATUS <<\_ACEOF
11947
11948 { (exit 0); exit 0; }
11949 _ACEOF
11950 chmod +x $CONFIG_STATUS
11951 ac_clean_files=$ac_clean_files_save
11952
11953
11954 # configure is writing to config.log, and then calls config.status.
11955 # config.status does its own redirection, appending to config.log.
11956 # Unfortunately, on DOS this fails, as config.log is still kept open
11957 # by configure, so config.status won't be able to write to it; its
11958 # output is simply discarded. So we exec the FD to /dev/null,
11959 # effectively closing config.log, so it can be properly (re)opened and
11960 # appended to by config.status. When coming back to configure, we
11961 # need to make the FD available again.
11962 if test "$no_create" != yes; then
11963 ac_cs_success=:
11964 ac_config_status_args=
11965 test "$silent" = yes &&
11966 ac_config_status_args="$ac_config_status_args --quiet"
11967 exec 5>/dev/null
11968 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11969 exec 5>>config.log
11970 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11971 # would make configure fail if this is the last instruction.
11972 $ac_cs_success || { (exit 1); exit 1; }
11973 fi
11974
11975
11976 rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend
11977
11978
11979 echo
11980 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
11981 echo
11982
11983 echo "Installing into: $prefix"
11984
11985 echo "Ziplinks ................ $zlib"
11986
11987 if test ! -z "$cf_openssl_ciphers"; then
11988 tmpresult="yes - ${cf_openssl_ciphers}"
11989 else
11990 tmpresult=no
11991 fi
11992
11993 echo "OpenSSL ................. $tmpresult"
11994
11995 if test "$shared_modules" = yes; then
11996 tmpresult=shared
11997 else
11998 tmpresult=static
11999 fi
12000
12001 echo "Modules ................. $tmpresult"
12002 echo "IPv6 support ............ $have_v6"
12003 echo "Net I/O implementation .. $SELECT_TYPE"
12004
12005 if test "$efnet" = "yes"; then
12006 tmpresult="yes (use example.efnet.conf)"
12007 else
12008 tmpresult="no (use example.conf)"
12009 fi
12010
12011 echo "EFnet server ............ $tmpresult"
12012 echo "Halfops support ......... $halfops"
12013 echo "Small network ........... $small_net"
12014 echo "G-Line voting ........... $gline_voting"
12015 echo
12016 echo "Configured limits:"
12017 echo "NICKLEN ................. $NICKLEN"
12018 echo "TOPICLEN ................ $TOPICLEN"
12019 echo

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Id Revision