ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/configure
Revision: 641
Committed: Wed Jun 7 10:51:31 2006 UTC (19 years, 2 months ago) by michael
File size: 339084 byte(s)
Log Message:
- Renamed basename() to libio_basename() and use it everywhere instead
  of glibc's basename
- Updated configure.ac accordingly

File Contents

# User Rev Content
1 adx 30 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 michael 244 # Generated by GNU Autoconf 2.59 for ircd-hybrid 7.3.
4 adx 30 #
5 knight 31 # $Id$
6 adx 30 #
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 michael 244 PACKAGE_VERSION='7.3'
273     PACKAGE_STRING='ircd-hybrid 7.3'
274 adx 30 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 michael 244 \`configure' configures ircd-hybrid 7.3 to adapt to many kinds of systems.
784 adx 30
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 michael 244 short | recursive ) echo "Configuration of ircd-hybrid 7.3:";;
841 adx 30 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 adx 248 --with-nicklen=LENGTH Set the nick length to LENGTH (default 15)
878 adx 30 --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 michael 244 ircd-hybrid configure 7.3
992 adx 30 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 knight 31 $Id$
999 adx 30 _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 michael 244 It was created by ircd-hybrid $as_me 7.3, which was
1008 adx 30 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 michael 501 IRC_CFLAGS="-xO3 -xdepend -xinline=_MyMalloc,_MyRealloc,_MyFree,_DupString"
2332 adx 30 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 michael 254 IRC_CFLAGS="$IRC_CFLAGS -Wall -O0"
2405 adx 30 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 db 165
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 adx 30 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 adx 61 INET_MISC=inet_misc.c
4447 adx 30
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 michael 641 for ac_func in socketpair mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep
7276 adx 30 do
7277     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7278     echo "$as_me:$LINENO: checking for $ac_func" >&5
7279     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7280     if eval "test \"\${$as_ac_var+set}\" = set"; then
7281     echo $ECHO_N "(cached) $ECHO_C" >&6
7282     else
7283     cat >conftest.$ac_ext <<_ACEOF
7284     /* confdefs.h. */
7285     _ACEOF
7286     cat confdefs.h >>conftest.$ac_ext
7287     cat >>conftest.$ac_ext <<_ACEOF
7288     /* end confdefs.h. */
7289     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7290     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7291     #define $ac_func innocuous_$ac_func
7292    
7293     /* System header to define __stub macros and hopefully few prototypes,
7294     which can conflict with char $ac_func (); below.
7295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296     <limits.h> exists even on freestanding compilers. */
7297    
7298     #ifdef __STDC__
7299     # include <limits.h>
7300     #else
7301     # include <assert.h>
7302     #endif
7303    
7304     #undef $ac_func
7305    
7306     /* Override any gcc2 internal prototype to avoid an error. */
7307     #ifdef __cplusplus
7308     extern "C"
7309     {
7310     #endif
7311     /* We use char because int might match the return type of a gcc2
7312     builtin and then its argument prototype would still apply. */
7313     char $ac_func ();
7314     /* The GNU C library defines this for functions which it implements
7315     to always fail with ENOSYS. Some functions are actually named
7316     something starting with __ and the normal name is an alias. */
7317     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7318     choke me
7319     #else
7320     char (*f) () = $ac_func;
7321     #endif
7322     #ifdef __cplusplus
7323     }
7324     #endif
7325    
7326     int
7327     main ()
7328     {
7329     return f != $ac_func;
7330     ;
7331     return 0;
7332     }
7333     _ACEOF
7334     rm -f conftest.$ac_objext conftest$ac_exeext
7335     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336     (eval $ac_link) 2>conftest.er1
7337     ac_status=$?
7338     grep -v '^ *+' conftest.er1 >conftest.err
7339     rm -f conftest.er1
7340     cat conftest.err >&5
7341     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342     (exit $ac_status); } &&
7343     { ac_try='test -z "$ac_c_werror_flag"
7344     || test ! -s conftest.err'
7345     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346     (eval $ac_try) 2>&5
7347     ac_status=$?
7348     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349     (exit $ac_status); }; } &&
7350     { ac_try='test -s conftest$ac_exeext'
7351     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352     (eval $ac_try) 2>&5
7353     ac_status=$?
7354     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355     (exit $ac_status); }; }; then
7356     eval "$as_ac_var=yes"
7357     else
7358     echo "$as_me: failed program was:" >&5
7359     sed 's/^/| /' conftest.$ac_ext >&5
7360    
7361     eval "$as_ac_var=no"
7362     fi
7363     rm -f conftest.err conftest.$ac_objext \
7364     conftest$ac_exeext conftest.$ac_ext
7365     fi
7366     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7367     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7368     if test `eval echo '${'$as_ac_var'}'` = yes; then
7369     cat >>confdefs.h <<_ACEOF
7370     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7371     _ACEOF
7372    
7373     fi
7374     done
7375    
7376    
7377     if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then
7378     SNPRINTF_C="snprintf.c"
7379     fi
7380    
7381    
7382    
7383    
7384     echo "$as_me:$LINENO: checking for OpenSSL" >&5
7385     echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7386     # Check whether --enable-openssl or --disable-openssl was given.
7387     if test "${enable_openssl+set}" = set; then
7388     enableval="$enable_openssl"
7389     cf_enable_openssl=$enableval
7390     else
7391     cf_enable_openssl="auto"
7392     fi;
7393    
7394     if test "$cf_enable_openssl" != "no" ; then
7395     cf_openssl_basedir=""
7396     if test "$cf_enable_openssl" != "auto" &&
7397     test "$cf_enable_openssl" != "yes" ; then
7398     cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7399     else
7400     for dirs in /usr/local/ssl /usr/pkg /usr/local \
7401     /usr/local/openssl /usr/sfw; do
7402     if test -f "${dirs}/include/openssl/opensslv.h" ; then
7403     cf_openssl_basedir="${dirs}"
7404     break
7405     fi
7406     done
7407     unset dirs
7408     fi
7409     if test ! -z "$cf_openssl_basedir"; then
7410     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7411     SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7412     SSL_LIBS="-L${cf_openssl_basedir}/lib"
7413     else
7414     cf_openssl_basedir=""
7415     fi
7416     else
7417     if test -f "/usr/include/openssl/opensslv.h" ; then
7418     cf_openssl_basedir="/usr"
7419     fi
7420     fi
7421    
7422     if test ! -z "$cf_openssl_basedir"; then
7423     echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
7424     echo "${ECHO_T}$cf_openssl_basedir" >&6
7425     cf_enable_openssl="yes"
7426     else
7427     echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
7428     echo "${ECHO_T}not found. Specify a correct path?" >&6
7429     cf_enable_openssl="no"
7430     fi
7431     unset cf_openssl_basedir
7432     else
7433     echo "$as_me:$LINENO: result: disabled" >&5
7434     echo "${ECHO_T}disabled" >&6
7435     fi
7436    
7437     save_CPPFLAGS="$CPPFLAGS"
7438     CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7439     save_LIBS="$LIBS"
7440     LIBS="$LIBS $SSL_LIBS"
7441     if test "$cf_enable_openssl" != no; then
7442     echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
7443     echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6
7444     if test "$cross_compiling" = yes; then
7445     cf_openssl_version_ok=no
7446     else
7447     cat >conftest.$ac_ext <<_ACEOF
7448     /* confdefs.h. */
7449     _ACEOF
7450     cat confdefs.h >>conftest.$ac_ext
7451     cat >>conftest.$ac_ext <<_ACEOF
7452     /* end confdefs.h. */
7453     #include <openssl/opensslv.h>
7454     #include <stdlib.h>
7455     int
7456     main ()
7457     {
7458 michael 250 if (OPENSSL_VERSION_NUMBER >= 0x00906000)
7459 adx 30 exit(0); else exit(1);
7460     ;
7461     return 0;
7462     }
7463     _ACEOF
7464     rm -f conftest$ac_exeext
7465     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466     (eval $ac_link) 2>&5
7467     ac_status=$?
7468     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7470     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471     (eval $ac_try) 2>&5
7472     ac_status=$?
7473     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474     (exit $ac_status); }; }; then
7475     cf_openssl_version_ok=yes
7476     else
7477     echo "$as_me: program exited with status $ac_status" >&5
7478     echo "$as_me: failed program was:" >&5
7479     sed 's/^/| /' conftest.$ac_ext >&5
7480    
7481     ( exit $ac_status )
7482     cf_openssl_version_ok=no
7483     fi
7484     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7485     fi
7486    
7487     if test "$cf_openssl_version_ok" = yes; then
7488     echo "$as_me:$LINENO: result: found" >&5
7489     echo "${ECHO_T}found" >&6
7490    
7491     ENCSPEED=encspeed
7492    
7493    
7494     CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7495    
7496     echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
7497     echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6
7498     if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
7499     echo $ECHO_N "(cached) $ECHO_C" >&6
7500     else
7501     ac_check_lib_save_LIBS=$LIBS
7502     LIBS="-lcrypto $LIBS"
7503     cat >conftest.$ac_ext <<_ACEOF
7504     /* confdefs.h. */
7505     _ACEOF
7506     cat confdefs.h >>conftest.$ac_ext
7507     cat >>conftest.$ac_ext <<_ACEOF
7508     /* end confdefs.h. */
7509    
7510     /* Override any gcc2 internal prototype to avoid an error. */
7511     #ifdef __cplusplus
7512     extern "C"
7513     #endif
7514     /* We use char because int might match the return type of a gcc2
7515     builtin and then its argument prototype would still apply. */
7516     char RSA_free ();
7517     int
7518     main ()
7519     {
7520     RSA_free ();
7521     ;
7522     return 0;
7523     }
7524     _ACEOF
7525     rm -f conftest.$ac_objext conftest$ac_exeext
7526     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527     (eval $ac_link) 2>conftest.er1
7528     ac_status=$?
7529     grep -v '^ *+' conftest.er1 >conftest.err
7530     rm -f conftest.er1
7531     cat conftest.err >&5
7532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533     (exit $ac_status); } &&
7534     { ac_try='test -z "$ac_c_werror_flag"
7535     || test ! -s conftest.err'
7536     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537     (eval $ac_try) 2>&5
7538     ac_status=$?
7539     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540     (exit $ac_status); }; } &&
7541     { ac_try='test -s conftest$ac_exeext'
7542     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543     (eval $ac_try) 2>&5
7544     ac_status=$?
7545     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546     (exit $ac_status); }; }; then
7547     ac_cv_lib_crypto_RSA_free=yes
7548     else
7549     echo "$as_me: failed program was:" >&5
7550     sed 's/^/| /' conftest.$ac_ext >&5
7551    
7552     ac_cv_lib_crypto_RSA_free=no
7553     fi
7554     rm -f conftest.err conftest.$ac_objext \
7555     conftest$ac_exeext conftest.$ac_ext
7556     LIBS=$ac_check_lib_save_LIBS
7557     fi
7558     echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
7559     echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6
7560     if test $ac_cv_lib_crypto_RSA_free = yes; then
7561     cat >>confdefs.h <<_ACEOF
7562     #define HAVE_LIBCRYPTO 1
7563     _ACEOF
7564    
7565     LIBS="-lcrypto $LIBS"
7566    
7567     fi
7568    
7569     if test "$ac_cv_lib_crypto_RSA_free" = yes; then
7570     LIBS="$LIBS -lcrypto"
7571     cf_openssl_ciphers=''
7572    
7573     for ac_func in EVP_bf_cfb
7574     do
7575     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7576     echo "$as_me:$LINENO: checking for $ac_func" >&5
7577     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7578     if eval "test \"\${$as_ac_var+set}\" = set"; then
7579     echo $ECHO_N "(cached) $ECHO_C" >&6
7580     else
7581     cat >conftest.$ac_ext <<_ACEOF
7582     /* confdefs.h. */
7583     _ACEOF
7584     cat confdefs.h >>conftest.$ac_ext
7585     cat >>conftest.$ac_ext <<_ACEOF
7586     /* end confdefs.h. */
7587     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7588     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7589     #define $ac_func innocuous_$ac_func
7590    
7591     /* System header to define __stub macros and hopefully few prototypes,
7592     which can conflict with char $ac_func (); below.
7593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7594     <limits.h> exists even on freestanding compilers. */
7595    
7596     #ifdef __STDC__
7597     # include <limits.h>
7598     #else
7599     # include <assert.h>
7600     #endif
7601    
7602     #undef $ac_func
7603    
7604     /* Override any gcc2 internal prototype to avoid an error. */
7605     #ifdef __cplusplus
7606     extern "C"
7607     {
7608     #endif
7609     /* We use char because int might match the return type of a gcc2
7610     builtin and then its argument prototype would still apply. */
7611     char $ac_func ();
7612     /* The GNU C library defines this for functions which it implements
7613     to always fail with ENOSYS. Some functions are actually named
7614     something starting with __ and the normal name is an alias. */
7615     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7616     choke me
7617     #else
7618     char (*f) () = $ac_func;
7619     #endif
7620     #ifdef __cplusplus
7621     }
7622     #endif
7623    
7624     int
7625     main ()
7626     {
7627     return f != $ac_func;
7628     ;
7629     return 0;
7630     }
7631     _ACEOF
7632     rm -f conftest.$ac_objext conftest$ac_exeext
7633     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634     (eval $ac_link) 2>conftest.er1
7635     ac_status=$?
7636     grep -v '^ *+' conftest.er1 >conftest.err
7637     rm -f conftest.er1
7638     cat conftest.err >&5
7639     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640     (exit $ac_status); } &&
7641     { ac_try='test -z "$ac_c_werror_flag"
7642     || test ! -s conftest.err'
7643     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644     (eval $ac_try) 2>&5
7645     ac_status=$?
7646     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647     (exit $ac_status); }; } &&
7648     { ac_try='test -s conftest$ac_exeext'
7649     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650     (eval $ac_try) 2>&5
7651     ac_status=$?
7652     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653     (exit $ac_status); }; }; then
7654     eval "$as_ac_var=yes"
7655     else
7656     echo "$as_me: failed program was:" >&5
7657     sed 's/^/| /' conftest.$ac_ext >&5
7658    
7659     eval "$as_ac_var=no"
7660     fi
7661     rm -f conftest.err conftest.$ac_objext \
7662     conftest$ac_exeext conftest.$ac_ext
7663     fi
7664     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7665     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7666     if test `eval echo '${'$as_ac_var'}'` = yes; then
7667     cat >>confdefs.h <<_ACEOF
7668     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7669     _ACEOF
7670     cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 "
7671     fi
7672     done
7673    
7674    
7675     for ac_func in EVP_cast5_cfb
7676     do
7677     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7678     echo "$as_me:$LINENO: checking for $ac_func" >&5
7679     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7680     if eval "test \"\${$as_ac_var+set}\" = set"; then
7681     echo $ECHO_N "(cached) $ECHO_C" >&6
7682     else
7683     cat >conftest.$ac_ext <<_ACEOF
7684     /* confdefs.h. */
7685     _ACEOF
7686     cat confdefs.h >>conftest.$ac_ext
7687     cat >>conftest.$ac_ext <<_ACEOF
7688     /* end confdefs.h. */
7689     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7690     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7691     #define $ac_func innocuous_$ac_func
7692    
7693     /* System header to define __stub macros and hopefully few prototypes,
7694     which can conflict with char $ac_func (); below.
7695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7696     <limits.h> exists even on freestanding compilers. */
7697    
7698     #ifdef __STDC__
7699     # include <limits.h>
7700     #else
7701     # include <assert.h>
7702     #endif
7703    
7704     #undef $ac_func
7705    
7706     /* Override any gcc2 internal prototype to avoid an error. */
7707     #ifdef __cplusplus
7708     extern "C"
7709     {
7710     #endif
7711     /* We use char because int might match the return type of a gcc2
7712     builtin and then its argument prototype would still apply. */
7713     char $ac_func ();
7714     /* The GNU C library defines this for functions which it implements
7715     to always fail with ENOSYS. Some functions are actually named
7716     something starting with __ and the normal name is an alias. */
7717     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7718     choke me
7719     #else
7720     char (*f) () = $ac_func;
7721     #endif
7722     #ifdef __cplusplus
7723     }
7724     #endif
7725    
7726     int
7727     main ()
7728     {
7729     return f != $ac_func;
7730     ;
7731     return 0;
7732     }
7733     _ACEOF
7734     rm -f conftest.$ac_objext conftest$ac_exeext
7735     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736     (eval $ac_link) 2>conftest.er1
7737     ac_status=$?
7738     grep -v '^ *+' conftest.er1 >conftest.err
7739     rm -f conftest.er1
7740     cat conftest.err >&5
7741     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742     (exit $ac_status); } &&
7743     { ac_try='test -z "$ac_c_werror_flag"
7744     || test ! -s conftest.err'
7745     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746     (eval $ac_try) 2>&5
7747     ac_status=$?
7748     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749     (exit $ac_status); }; } &&
7750     { ac_try='test -s conftest$ac_exeext'
7751     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752     (eval $ac_try) 2>&5
7753     ac_status=$?
7754     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755     (exit $ac_status); }; }; then
7756     eval "$as_ac_var=yes"
7757     else
7758     echo "$as_me: failed program was:" >&5
7759     sed 's/^/| /' conftest.$ac_ext >&5
7760    
7761     eval "$as_ac_var=no"
7762     fi
7763     rm -f conftest.err conftest.$ac_objext \
7764     conftest$ac_exeext conftest.$ac_ext
7765     fi
7766     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7767     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7768     if test `eval echo '${'$as_ac_var'}'` = yes; then
7769     cat >>confdefs.h <<_ACEOF
7770     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7771     _ACEOF
7772     cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 "
7773     fi
7774     done
7775    
7776    
7777     for ac_func in EVP_idea_cfb
7778     do
7779     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7780     echo "$as_me:$LINENO: checking for $ac_func" >&5
7781     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7782     if eval "test \"\${$as_ac_var+set}\" = set"; then
7783     echo $ECHO_N "(cached) $ECHO_C" >&6
7784     else
7785     cat >conftest.$ac_ext <<_ACEOF
7786     /* confdefs.h. */
7787     _ACEOF
7788     cat confdefs.h >>conftest.$ac_ext
7789     cat >>conftest.$ac_ext <<_ACEOF
7790     /* end confdefs.h. */
7791     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7792     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7793     #define $ac_func innocuous_$ac_func
7794    
7795     /* System header to define __stub macros and hopefully few prototypes,
7796     which can conflict with char $ac_func (); below.
7797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7798     <limits.h> exists even on freestanding compilers. */
7799    
7800     #ifdef __STDC__
7801     # include <limits.h>
7802     #else
7803     # include <assert.h>
7804     #endif
7805    
7806     #undef $ac_func
7807    
7808     /* Override any gcc2 internal prototype to avoid an error. */
7809     #ifdef __cplusplus
7810     extern "C"
7811     {
7812     #endif
7813     /* We use char because int might match the return type of a gcc2
7814     builtin and then its argument prototype would still apply. */
7815     char $ac_func ();
7816     /* The GNU C library defines this for functions which it implements
7817     to always fail with ENOSYS. Some functions are actually named
7818     something starting with __ and the normal name is an alias. */
7819     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7820     choke me
7821     #else
7822     char (*f) () = $ac_func;
7823     #endif
7824     #ifdef __cplusplus
7825     }
7826     #endif
7827    
7828     int
7829     main ()
7830     {
7831     return f != $ac_func;
7832     ;
7833     return 0;
7834     }
7835     _ACEOF
7836     rm -f conftest.$ac_objext conftest$ac_exeext
7837     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838     (eval $ac_link) 2>conftest.er1
7839     ac_status=$?
7840     grep -v '^ *+' conftest.er1 >conftest.err
7841     rm -f conftest.er1
7842     cat conftest.err >&5
7843     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844     (exit $ac_status); } &&
7845     { ac_try='test -z "$ac_c_werror_flag"
7846     || test ! -s conftest.err'
7847     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848     (eval $ac_try) 2>&5
7849     ac_status=$?
7850     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851     (exit $ac_status); }; } &&
7852     { ac_try='test -s conftest$ac_exeext'
7853     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854     (eval $ac_try) 2>&5
7855     ac_status=$?
7856     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857     (exit $ac_status); }; }; then
7858     eval "$as_ac_var=yes"
7859     else
7860     echo "$as_me: failed program was:" >&5
7861     sed 's/^/| /' conftest.$ac_ext >&5
7862    
7863     eval "$as_ac_var=no"
7864     fi
7865     rm -f conftest.err conftest.$ac_objext \
7866     conftest$ac_exeext conftest.$ac_ext
7867     fi
7868     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7869     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7870     if test `eval echo '${'$as_ac_var'}'` = yes; then
7871     cat >>confdefs.h <<_ACEOF
7872     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7873     _ACEOF
7874     cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 "
7875     fi
7876     done
7877    
7878    
7879     for ac_func in EVP_rc5_32_12_16_cfb
7880     do
7881     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7882     echo "$as_me:$LINENO: checking for $ac_func" >&5
7883     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7884     if eval "test \"\${$as_ac_var+set}\" = set"; then
7885     echo $ECHO_N "(cached) $ECHO_C" >&6
7886     else
7887     cat >conftest.$ac_ext <<_ACEOF
7888     /* confdefs.h. */
7889     _ACEOF
7890     cat confdefs.h >>conftest.$ac_ext
7891     cat >>conftest.$ac_ext <<_ACEOF
7892     /* end confdefs.h. */
7893     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7894     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7895     #define $ac_func innocuous_$ac_func
7896    
7897     /* System header to define __stub macros and hopefully few prototypes,
7898     which can conflict with char $ac_func (); below.
7899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7900     <limits.h> exists even on freestanding compilers. */
7901    
7902     #ifdef __STDC__
7903     # include <limits.h>
7904     #else
7905     # include <assert.h>
7906     #endif
7907    
7908     #undef $ac_func
7909    
7910     /* Override any gcc2 internal prototype to avoid an error. */
7911     #ifdef __cplusplus
7912     extern "C"
7913     {
7914     #endif
7915     /* We use char because int might match the return type of a gcc2
7916     builtin and then its argument prototype would still apply. */
7917     char $ac_func ();
7918     /* The GNU C library defines this for functions which it implements
7919     to always fail with ENOSYS. Some functions are actually named
7920     something starting with __ and the normal name is an alias. */
7921     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7922     choke me
7923     #else
7924     char (*f) () = $ac_func;
7925     #endif
7926     #ifdef __cplusplus
7927     }
7928     #endif
7929    
7930     int
7931     main ()
7932     {
7933     return f != $ac_func;
7934     ;
7935     return 0;
7936     }
7937     _ACEOF
7938     rm -f conftest.$ac_objext conftest$ac_exeext
7939     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940     (eval $ac_link) 2>conftest.er1
7941     ac_status=$?
7942     grep -v '^ *+' conftest.er1 >conftest.err
7943     rm -f conftest.er1
7944     cat conftest.err >&5
7945     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946     (exit $ac_status); } &&
7947     { ac_try='test -z "$ac_c_werror_flag"
7948     || test ! -s conftest.err'
7949     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950     (eval $ac_try) 2>&5
7951     ac_status=$?
7952     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953     (exit $ac_status); }; } &&
7954     { ac_try='test -s conftest$ac_exeext'
7955     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956     (eval $ac_try) 2>&5
7957     ac_status=$?
7958     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959     (exit $ac_status); }; }; then
7960     eval "$as_ac_var=yes"
7961     else
7962     echo "$as_me: failed program was:" >&5
7963     sed 's/^/| /' conftest.$ac_ext >&5
7964    
7965     eval "$as_ac_var=no"
7966     fi
7967     rm -f conftest.err conftest.$ac_objext \
7968     conftest$ac_exeext conftest.$ac_ext
7969     fi
7970     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7971     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7972     if test `eval echo '${'$as_ac_var'}'` = yes; then
7973     cat >>confdefs.h <<_ACEOF
7974     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7975     _ACEOF
7976     cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 "
7977     fi
7978     done
7979    
7980    
7981     for ac_func in EVP_des_ede3_cfb
7982     do
7983     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7984     echo "$as_me:$LINENO: checking for $ac_func" >&5
7985     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7986     if eval "test \"\${$as_ac_var+set}\" = set"; then
7987     echo $ECHO_N "(cached) $ECHO_C" >&6
7988     else
7989     cat >conftest.$ac_ext <<_ACEOF
7990     /* confdefs.h. */
7991     _ACEOF
7992     cat confdefs.h >>conftest.$ac_ext
7993     cat >>conftest.$ac_ext <<_ACEOF
7994     /* end confdefs.h. */
7995     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7996     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7997     #define $ac_func innocuous_$ac_func
7998    
7999     /* System header to define __stub macros and hopefully few prototypes,
8000     which can conflict with char $ac_func (); below.
8001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8002     <limits.h> exists even on freestanding compilers. */
8003    
8004     #ifdef __STDC__
8005     # include <limits.h>
8006     #else
8007     # include <assert.h>
8008     #endif
8009    
8010     #undef $ac_func
8011    
8012     /* Override any gcc2 internal prototype to avoid an error. */
8013     #ifdef __cplusplus
8014     extern "C"
8015     {
8016     #endif
8017     /* We use char because int might match the return type of a gcc2
8018     builtin and then its argument prototype would still apply. */
8019     char $ac_func ();
8020     /* The GNU C library defines this for functions which it implements
8021     to always fail with ENOSYS. Some functions are actually named
8022     something starting with __ and the normal name is an alias. */
8023     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8024     choke me
8025     #else
8026     char (*f) () = $ac_func;
8027     #endif
8028     #ifdef __cplusplus
8029     }
8030     #endif
8031    
8032     int
8033     main ()
8034     {
8035     return f != $ac_func;
8036     ;
8037     return 0;
8038     }
8039     _ACEOF
8040     rm -f conftest.$ac_objext conftest$ac_exeext
8041     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042     (eval $ac_link) 2>conftest.er1
8043     ac_status=$?
8044     grep -v '^ *+' conftest.er1 >conftest.err
8045     rm -f conftest.er1
8046     cat conftest.err >&5
8047     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048     (exit $ac_status); } &&
8049     { ac_try='test -z "$ac_c_werror_flag"
8050     || test ! -s conftest.err'
8051     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052     (eval $ac_try) 2>&5
8053     ac_status=$?
8054     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055     (exit $ac_status); }; } &&
8056     { ac_try='test -s conftest$ac_exeext'
8057     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058     (eval $ac_try) 2>&5
8059     ac_status=$?
8060     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061     (exit $ac_status); }; }; then
8062     eval "$as_ac_var=yes"
8063     else
8064     echo "$as_me: failed program was:" >&5
8065     sed 's/^/| /' conftest.$ac_ext >&5
8066    
8067     eval "$as_ac_var=no"
8068     fi
8069     rm -f conftest.err conftest.$ac_objext \
8070     conftest$ac_exeext conftest.$ac_ext
8071     fi
8072     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8073     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8074     if test `eval echo '${'$as_ac_var'}'` = yes; then
8075     cat >>confdefs.h <<_ACEOF
8076     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8077     _ACEOF
8078     cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 "
8079     fi
8080     done
8081    
8082    
8083     for ac_func in EVP_des_cfb
8084     do
8085     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8086     echo "$as_me:$LINENO: checking for $ac_func" >&5
8087     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8088     if eval "test \"\${$as_ac_var+set}\" = set"; then
8089     echo $ECHO_N "(cached) $ECHO_C" >&6
8090     else
8091     cat >conftest.$ac_ext <<_ACEOF
8092     /* confdefs.h. */
8093     _ACEOF
8094     cat confdefs.h >>conftest.$ac_ext
8095     cat >>conftest.$ac_ext <<_ACEOF
8096     /* end confdefs.h. */
8097     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8098     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8099     #define $ac_func innocuous_$ac_func
8100    
8101     /* System header to define __stub macros and hopefully few prototypes,
8102     which can conflict with char $ac_func (); below.
8103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8104     <limits.h> exists even on freestanding compilers. */
8105    
8106     #ifdef __STDC__
8107     # include <limits.h>
8108     #else
8109     # include <assert.h>
8110     #endif
8111    
8112     #undef $ac_func
8113    
8114     /* Override any gcc2 internal prototype to avoid an error. */
8115     #ifdef __cplusplus
8116     extern "C"
8117     {
8118     #endif
8119     /* We use char because int might match the return type of a gcc2
8120     builtin and then its argument prototype would still apply. */
8121     char $ac_func ();
8122     /* The GNU C library defines this for functions which it implements
8123     to always fail with ENOSYS. Some functions are actually named
8124     something starting with __ and the normal name is an alias. */
8125     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8126     choke me
8127     #else
8128     char (*f) () = $ac_func;
8129     #endif
8130     #ifdef __cplusplus
8131     }
8132     #endif
8133    
8134     int
8135     main ()
8136     {
8137     return f != $ac_func;
8138     ;
8139     return 0;
8140     }
8141     _ACEOF
8142     rm -f conftest.$ac_objext conftest$ac_exeext
8143     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144     (eval $ac_link) 2>conftest.er1
8145     ac_status=$?
8146     grep -v '^ *+' conftest.er1 >conftest.err
8147     rm -f conftest.er1
8148     cat conftest.err >&5
8149     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150     (exit $ac_status); } &&
8151     { ac_try='test -z "$ac_c_werror_flag"
8152     || test ! -s conftest.err'
8153     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154     (eval $ac_try) 2>&5
8155     ac_status=$?
8156     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157     (exit $ac_status); }; } &&
8158     { ac_try='test -s conftest$ac_exeext'
8159     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160     (eval $ac_try) 2>&5
8161     ac_status=$?
8162     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163     (exit $ac_status); }; }; then
8164     eval "$as_ac_var=yes"
8165     else
8166     echo "$as_me: failed program was:" >&5
8167     sed 's/^/| /' conftest.$ac_ext >&5
8168    
8169     eval "$as_ac_var=no"
8170     fi
8171     rm -f conftest.err conftest.$ac_objext \
8172     conftest$ac_exeext conftest.$ac_ext
8173     fi
8174     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8175     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8176     if test `eval echo '${'$as_ac_var'}'` = yes; then
8177     cat >>confdefs.h <<_ACEOF
8178     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8179     _ACEOF
8180     cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 "
8181     fi
8182     done
8183    
8184     fi
8185     SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
8186     SSL_SRCS_ENABLE='$(SSL_SRCS)'
8187     else
8188     echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
8189     echo "${ECHO_T}no - OpenSSL support disabled" >&6
8190     fi
8191     fi
8192    
8193     CPPFLAGS="$save_CPPFLAGS"
8194     LIBS="$save_LIBS"
8195    
8196    
8197    
8198    
8199     # Check whether --with-zlib-path or --without-zlib-path was given.
8200     if test "${with_zlib_path+set}" = set; then
8201     withval="$with_zlib_path"
8202     LIBS="$LIBS -L$withval"
8203     fi;
8204    
8205     # Check whether --enable-zlib or --disable-zlib was given.
8206     if test "${enable_zlib+set}" = set; then
8207     enableval="$enable_zlib"
8208     zlib=$enableval
8209     else
8210     zlib=yes
8211     fi;
8212    
8213     if test "$zlib" = yes; then
8214    
8215     if test "${ac_cv_header_zlib_h+set}" = set; then
8216     echo "$as_me:$LINENO: checking for zlib.h" >&5
8217     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8218     if test "${ac_cv_header_zlib_h+set}" = set; then
8219     echo $ECHO_N "(cached) $ECHO_C" >&6
8220     fi
8221     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8222     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8223     else
8224     # Is the header compilable?
8225     echo "$as_me:$LINENO: checking zlib.h usability" >&5
8226     echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8227     cat >conftest.$ac_ext <<_ACEOF
8228     /* confdefs.h. */
8229     _ACEOF
8230     cat confdefs.h >>conftest.$ac_ext
8231     cat >>conftest.$ac_ext <<_ACEOF
8232     /* end confdefs.h. */
8233     $ac_includes_default
8234     #include <zlib.h>
8235     _ACEOF
8236     rm -f conftest.$ac_objext
8237     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238     (eval $ac_compile) 2>conftest.er1
8239     ac_status=$?
8240     grep -v '^ *+' conftest.er1 >conftest.err
8241     rm -f conftest.er1
8242     cat conftest.err >&5
8243     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244     (exit $ac_status); } &&
8245     { ac_try='test -z "$ac_c_werror_flag"
8246     || test ! -s conftest.err'
8247     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248     (eval $ac_try) 2>&5
8249     ac_status=$?
8250     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251     (exit $ac_status); }; } &&
8252     { ac_try='test -s conftest.$ac_objext'
8253     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254     (eval $ac_try) 2>&5
8255     ac_status=$?
8256     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257     (exit $ac_status); }; }; then
8258     ac_header_compiler=yes
8259     else
8260     echo "$as_me: failed program was:" >&5
8261     sed 's/^/| /' conftest.$ac_ext >&5
8262    
8263     ac_header_compiler=no
8264     fi
8265     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8266     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8267     echo "${ECHO_T}$ac_header_compiler" >&6
8268    
8269     # Is the header present?
8270     echo "$as_me:$LINENO: checking zlib.h presence" >&5
8271     echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8272     cat >conftest.$ac_ext <<_ACEOF
8273     /* confdefs.h. */
8274     _ACEOF
8275     cat confdefs.h >>conftest.$ac_ext
8276     cat >>conftest.$ac_ext <<_ACEOF
8277     /* end confdefs.h. */
8278     #include <zlib.h>
8279     _ACEOF
8280     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8281     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8282     ac_status=$?
8283     grep -v '^ *+' conftest.er1 >conftest.err
8284     rm -f conftest.er1
8285     cat conftest.err >&5
8286     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287     (exit $ac_status); } >/dev/null; then
8288     if test -s conftest.err; then
8289     ac_cpp_err=$ac_c_preproc_warn_flag
8290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8291     else
8292     ac_cpp_err=
8293     fi
8294     else
8295     ac_cpp_err=yes
8296     fi
8297     if test -z "$ac_cpp_err"; then
8298     ac_header_preproc=yes
8299     else
8300     echo "$as_me: failed program was:" >&5
8301     sed 's/^/| /' conftest.$ac_ext >&5
8302    
8303     ac_header_preproc=no
8304     fi
8305     rm -f conftest.err conftest.$ac_ext
8306     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8307     echo "${ECHO_T}$ac_header_preproc" >&6
8308    
8309     # So? What about this header?
8310     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8311     yes:no: )
8312     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8313     echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8314     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8315     echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8316     ac_header_preproc=yes
8317     ;;
8318     no:yes:* )
8319     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8320     echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8321     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8322     echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8323     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8324     echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8325     { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8326     echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8327     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8328     echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8329     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8330     echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8331     (
8332     cat <<\_ASBOX
8333     ## -------------------------------------- ##
8334     ## Report this to the ircd-hybrid lists. ##
8335     ## -------------------------------------- ##
8336     _ASBOX
8337     ) |
8338     sed "s/^/$as_me: WARNING: /" >&2
8339     ;;
8340     esac
8341     echo "$as_me:$LINENO: checking for zlib.h" >&5
8342     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8343     if test "${ac_cv_header_zlib_h+set}" = set; then
8344     echo $ECHO_N "(cached) $ECHO_C" >&6
8345     else
8346     ac_cv_header_zlib_h=$ac_header_preproc
8347     fi
8348     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8349     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8350    
8351     fi
8352     if test $ac_cv_header_zlib_h = yes; then
8353    
8354     echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
8355     echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
8356     if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
8357     echo $ECHO_N "(cached) $ECHO_C" >&6
8358     else
8359     ac_check_lib_save_LIBS=$LIBS
8360     LIBS="-lz $LIBS"
8361     cat >conftest.$ac_ext <<_ACEOF
8362     /* confdefs.h. */
8363     _ACEOF
8364     cat confdefs.h >>conftest.$ac_ext
8365     cat >>conftest.$ac_ext <<_ACEOF
8366     /* end confdefs.h. */
8367    
8368     /* Override any gcc2 internal prototype to avoid an error. */
8369     #ifdef __cplusplus
8370     extern "C"
8371     #endif
8372     /* We use char because int might match the return type of a gcc2
8373     builtin and then its argument prototype would still apply. */
8374     char zlibVersion ();
8375     int
8376     main ()
8377     {
8378     zlibVersion ();
8379     ;
8380     return 0;
8381     }
8382     _ACEOF
8383     rm -f conftest.$ac_objext conftest$ac_exeext
8384     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385     (eval $ac_link) 2>conftest.er1
8386     ac_status=$?
8387     grep -v '^ *+' conftest.er1 >conftest.err
8388     rm -f conftest.er1
8389     cat conftest.err >&5
8390     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391     (exit $ac_status); } &&
8392     { ac_try='test -z "$ac_c_werror_flag"
8393     || test ! -s conftest.err'
8394     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395     (eval $ac_try) 2>&5
8396     ac_status=$?
8397     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398     (exit $ac_status); }; } &&
8399     { ac_try='test -s conftest$ac_exeext'
8400     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401     (eval $ac_try) 2>&5
8402     ac_status=$?
8403     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404     (exit $ac_status); }; }; then
8405     ac_cv_lib_z_zlibVersion=yes
8406     else
8407     echo "$as_me: failed program was:" >&5
8408     sed 's/^/| /' conftest.$ac_ext >&5
8409    
8410     ac_cv_lib_z_zlibVersion=no
8411     fi
8412     rm -f conftest.err conftest.$ac_objext \
8413     conftest$ac_exeext conftest.$ac_ext
8414     LIBS=$ac_check_lib_save_LIBS
8415     fi
8416     echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
8417     echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
8418     if test $ac_cv_lib_z_zlibVersion = yes; then
8419    
8420     ZLIB_LD=-lz
8421    
8422    
8423     cat >>confdefs.h <<\_ACEOF
8424     #define HAVE_LIBZ 1
8425     _ACEOF
8426    
8427    
8428     else
8429     zlib=no
8430     fi
8431    
8432    
8433     else
8434     zlib=no
8435     fi
8436    
8437    
8438    
8439     fi
8440    
8441    
8442     # Check whether --enable-poll or --disable-poll was given.
8443     if test "${enable_poll+set}" = set; then
8444     enableval="$enable_poll"
8445     SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled"
8446     fi;
8447    
8448     # Check whether --enable-select or --disable-select was given.
8449     if test "${enable_select+set}" = set; then
8450     enableval="$enable_select"
8451     SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled"
8452     fi;
8453    
8454     # Check whether --enable-kqueue or --disable-kqueue was given.
8455     if test "${enable_kqueue+set}" = set; then
8456     enableval="$enable_kqueue"
8457     SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled"
8458     fi;
8459    
8460     # Check whether --enable-devpoll or --disable-devpoll was given.
8461     if test "${enable_devpoll+set}" = set; then
8462     enableval="$enable_devpoll"
8463     SELECT_TYPE_EXPLICIT="devpoll"
8464     echo "Forcing /dev/poll to be enabled"
8465    
8466    
8467     for ac_header in sys/devpoll.h devpoll.h
8468     do
8469     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471     echo "$as_me:$LINENO: checking for $ac_header" >&5
8472     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8473     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474     echo $ECHO_N "(cached) $ECHO_C" >&6
8475     fi
8476     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8477     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478     else
8479     # Is the header compilable?
8480     echo "$as_me:$LINENO: checking $ac_header usability" >&5
8481     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8482     cat >conftest.$ac_ext <<_ACEOF
8483     /* confdefs.h. */
8484     _ACEOF
8485     cat confdefs.h >>conftest.$ac_ext
8486     cat >>conftest.$ac_ext <<_ACEOF
8487     /* end confdefs.h. */
8488     $ac_includes_default
8489     #include <$ac_header>
8490     _ACEOF
8491     rm -f conftest.$ac_objext
8492     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493     (eval $ac_compile) 2>conftest.er1
8494     ac_status=$?
8495     grep -v '^ *+' conftest.er1 >conftest.err
8496     rm -f conftest.er1
8497     cat conftest.err >&5
8498     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499     (exit $ac_status); } &&
8500     { ac_try='test -z "$ac_c_werror_flag"
8501     || test ! -s conftest.err'
8502     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503     (eval $ac_try) 2>&5
8504     ac_status=$?
8505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506     (exit $ac_status); }; } &&
8507     { ac_try='test -s conftest.$ac_objext'
8508     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509     (eval $ac_try) 2>&5
8510     ac_status=$?
8511     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512     (exit $ac_status); }; }; then
8513     ac_header_compiler=yes
8514     else
8515     echo "$as_me: failed program was:" >&5
8516     sed 's/^/| /' conftest.$ac_ext >&5
8517    
8518     ac_header_compiler=no
8519     fi
8520     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8521     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8522     echo "${ECHO_T}$ac_header_compiler" >&6
8523    
8524     # Is the header present?
8525     echo "$as_me:$LINENO: checking $ac_header presence" >&5
8526     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8527     cat >conftest.$ac_ext <<_ACEOF
8528     /* confdefs.h. */
8529     _ACEOF
8530     cat confdefs.h >>conftest.$ac_ext
8531     cat >>conftest.$ac_ext <<_ACEOF
8532     /* end confdefs.h. */
8533     #include <$ac_header>
8534     _ACEOF
8535     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8536     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8537     ac_status=$?
8538     grep -v '^ *+' conftest.er1 >conftest.err
8539     rm -f conftest.er1
8540     cat conftest.err >&5
8541     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542     (exit $ac_status); } >/dev/null; then
8543     if test -s conftest.err; then
8544     ac_cpp_err=$ac_c_preproc_warn_flag
8545     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8546     else
8547     ac_cpp_err=
8548     fi
8549     else
8550     ac_cpp_err=yes
8551     fi
8552     if test -z "$ac_cpp_err"; then
8553     ac_header_preproc=yes
8554     else
8555     echo "$as_me: failed program was:" >&5
8556     sed 's/^/| /' conftest.$ac_ext >&5
8557    
8558     ac_header_preproc=no
8559     fi
8560     rm -f conftest.err conftest.$ac_ext
8561     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8562     echo "${ECHO_T}$ac_header_preproc" >&6
8563    
8564     # So? What about this header?
8565     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8566     yes:no: )
8567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8568     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8570     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8571     ac_header_preproc=yes
8572     ;;
8573     no:yes:* )
8574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8575     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8576     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8577     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8579     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8581     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8583     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8585     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8586     (
8587     cat <<\_ASBOX
8588     ## -------------------------------------- ##
8589     ## Report this to the ircd-hybrid lists. ##
8590     ## -------------------------------------- ##
8591     _ASBOX
8592     ) |
8593     sed "s/^/$as_me: WARNING: /" >&2
8594     ;;
8595     esac
8596     echo "$as_me:$LINENO: checking for $ac_header" >&5
8597     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8598     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599     echo $ECHO_N "(cached) $ECHO_C" >&6
8600     else
8601     eval "$as_ac_Header=\$ac_header_preproc"
8602     fi
8603     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8605    
8606     fi
8607     if test `eval echo '${'$as_ac_Header'}'` = yes; then
8608     cat >>confdefs.h <<_ACEOF
8609     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8610     _ACEOF
8611    
8612     fi
8613    
8614     done
8615    
8616     fi;
8617    
8618     # Check whether --enable-rtsigio or --disable-rtsigio was given.
8619     if test "${enable_rtsigio+set}" = set; then
8620     enableval="$enable_rtsigio"
8621     SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled"
8622     fi;
8623    
8624     # Check whether --enable-epoll or --disable-epoll was given.
8625     if test "${enable_epoll+set}" = set; then
8626     enableval="$enable_epoll"
8627     SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled"
8628     fi;
8629    
8630     if test ! -z "$SELECT_TYPE_EXPLICIT"; then
8631     SELECT_TYPE="$SELECT_TYPE_EXPLICIT"
8632     else
8633    
8634     echo "$as_me:$LINENO: checking for kevent" >&5
8635     echo $ECHO_N "checking for kevent... $ECHO_C" >&6
8636     if test "${ac_cv_func_kevent+set}" = set; then
8637     echo $ECHO_N "(cached) $ECHO_C" >&6
8638     else
8639     cat >conftest.$ac_ext <<_ACEOF
8640     /* confdefs.h. */
8641     _ACEOF
8642     cat confdefs.h >>conftest.$ac_ext
8643     cat >>conftest.$ac_ext <<_ACEOF
8644     /* end confdefs.h. */
8645     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
8646     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8647     #define kevent innocuous_kevent
8648    
8649     /* System header to define __stub macros and hopefully few prototypes,
8650     which can conflict with char kevent (); below.
8651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652     <limits.h> exists even on freestanding compilers. */
8653    
8654     #ifdef __STDC__
8655     # include <limits.h>
8656     #else
8657     # include <assert.h>
8658     #endif
8659    
8660     #undef kevent
8661    
8662     /* Override any gcc2 internal prototype to avoid an error. */
8663     #ifdef __cplusplus
8664     extern "C"
8665     {
8666     #endif
8667     /* We use char because int might match the return type of a gcc2
8668     builtin and then its argument prototype would still apply. */
8669     char kevent ();
8670     /* The GNU C library defines this for functions which it implements
8671     to always fail with ENOSYS. Some functions are actually named
8672     something starting with __ and the normal name is an alias. */
8673     #if defined (__stub_kevent) || defined (__stub___kevent)
8674     choke me
8675     #else
8676     char (*f) () = kevent;
8677     #endif
8678     #ifdef __cplusplus
8679     }
8680     #endif
8681    
8682     int
8683     main ()
8684     {
8685     return f != kevent;
8686     ;
8687     return 0;
8688     }
8689     _ACEOF
8690     rm -f conftest.$ac_objext conftest$ac_exeext
8691     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692     (eval $ac_link) 2>conftest.er1
8693     ac_status=$?
8694     grep -v '^ *+' conftest.er1 >conftest.err
8695     rm -f conftest.er1
8696     cat conftest.err >&5
8697     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698     (exit $ac_status); } &&
8699     { ac_try='test -z "$ac_c_werror_flag"
8700     || test ! -s conftest.err'
8701     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702     (eval $ac_try) 2>&5
8703     ac_status=$?
8704     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705     (exit $ac_status); }; } &&
8706     { ac_try='test -s conftest$ac_exeext'
8707     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708     (eval $ac_try) 2>&5
8709     ac_status=$?
8710     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711     (exit $ac_status); }; }; then
8712     ac_cv_func_kevent=yes
8713     else
8714     echo "$as_me: failed program was:" >&5
8715     sed 's/^/| /' conftest.$ac_ext >&5
8716    
8717     ac_cv_func_kevent=no
8718     fi
8719     rm -f conftest.err conftest.$ac_objext \
8720     conftest$ac_exeext conftest.$ac_ext
8721     fi
8722     echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
8723     echo "${ECHO_T}$ac_cv_func_kevent" >&6
8724     if test $ac_cv_func_kevent = yes; then
8725    
8726     SELECT_TYPE="kqueue"
8727    
8728     else
8729    
8730     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8731     echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8732     echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6
8733     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8734     echo $ECHO_N "(cached) $ECHO_C" >&6
8735     fi
8736     echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8737     echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6
8738     else
8739     # Is the header compilable?
8740     echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
8741     echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6
8742     cat >conftest.$ac_ext <<_ACEOF
8743     /* confdefs.h. */
8744     _ACEOF
8745     cat confdefs.h >>conftest.$ac_ext
8746     cat >>conftest.$ac_ext <<_ACEOF
8747     /* end confdefs.h. */
8748     $ac_includes_default
8749     #include <sys/epoll.h>
8750     _ACEOF
8751     rm -f conftest.$ac_objext
8752     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753     (eval $ac_compile) 2>conftest.er1
8754     ac_status=$?
8755     grep -v '^ *+' conftest.er1 >conftest.err
8756     rm -f conftest.er1
8757     cat conftest.err >&5
8758     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759     (exit $ac_status); } &&
8760     { ac_try='test -z "$ac_c_werror_flag"
8761     || test ! -s conftest.err'
8762     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763     (eval $ac_try) 2>&5
8764     ac_status=$?
8765     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766     (exit $ac_status); }; } &&
8767     { ac_try='test -s conftest.$ac_objext'
8768     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769     (eval $ac_try) 2>&5
8770     ac_status=$?
8771     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772     (exit $ac_status); }; }; then
8773     ac_header_compiler=yes
8774     else
8775     echo "$as_me: failed program was:" >&5
8776     sed 's/^/| /' conftest.$ac_ext >&5
8777    
8778     ac_header_compiler=no
8779     fi
8780     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8781     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8782     echo "${ECHO_T}$ac_header_compiler" >&6
8783    
8784     # Is the header present?
8785     echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
8786     echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6
8787     cat >conftest.$ac_ext <<_ACEOF
8788     /* confdefs.h. */
8789     _ACEOF
8790     cat confdefs.h >>conftest.$ac_ext
8791     cat >>conftest.$ac_ext <<_ACEOF
8792     /* end confdefs.h. */
8793     #include <sys/epoll.h>
8794     _ACEOF
8795     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8796     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8797     ac_status=$?
8798     grep -v '^ *+' conftest.er1 >conftest.err
8799     rm -f conftest.er1
8800     cat conftest.err >&5
8801     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802     (exit $ac_status); } >/dev/null; then
8803     if test -s conftest.err; then
8804     ac_cpp_err=$ac_c_preproc_warn_flag
8805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8806     else
8807     ac_cpp_err=
8808     fi
8809     else
8810     ac_cpp_err=yes
8811     fi
8812     if test -z "$ac_cpp_err"; then
8813     ac_header_preproc=yes
8814     else
8815     echo "$as_me: failed program was:" >&5
8816     sed 's/^/| /' conftest.$ac_ext >&5
8817    
8818     ac_header_preproc=no
8819     fi
8820     rm -f conftest.err conftest.$ac_ext
8821     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8822     echo "${ECHO_T}$ac_header_preproc" >&6
8823    
8824     # So? What about this header?
8825     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8826     yes:no: )
8827     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
8828     echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8829     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
8830     echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
8831     ac_header_preproc=yes
8832     ;;
8833     no:yes:* )
8834     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
8835     echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
8836     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5
8837     echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;}
8838     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
8839     echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
8840     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5
8841     echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
8842     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
8843     echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
8845     echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
8846     (
8847     cat <<\_ASBOX
8848     ## -------------------------------------- ##
8849     ## Report this to the ircd-hybrid lists. ##
8850     ## -------------------------------------- ##
8851     _ASBOX
8852     ) |
8853     sed "s/^/$as_me: WARNING: /" >&2
8854     ;;
8855     esac
8856     echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8857     echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6
8858     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8859     echo $ECHO_N "(cached) $ECHO_C" >&6
8860     else
8861     ac_cv_header_sys_epoll_h=$ac_header_preproc
8862     fi
8863     echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8864     echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6
8865    
8866     fi
8867     if test $ac_cv_header_sys_epoll_h = yes; then
8868     HAS_EPOLL=1
8869     else
8870     HAS_EPOLL=0
8871     fi
8872    
8873    
8874     if test $HAS_EPOLL -eq 1; then
8875     echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
8876     echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6
8877     if test "$cross_compiling" = yes; then
8878     echo "$as_me:$LINENO: result: no" >&5
8879     echo "${ECHO_T}no" >&6
8880     HAS_EPOLL=0
8881     else
8882     cat >conftest.$ac_ext <<_ACEOF
8883     /* confdefs.h. */
8884     _ACEOF
8885     cat confdefs.h >>conftest.$ac_ext
8886     cat >>conftest.$ac_ext <<_ACEOF
8887     /* end confdefs.h. */
8888     #include <sys/epoll.h>
8889     #include <sys/syscall.h>
8890     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
8891     #if !defined(__NR_epoll_create)
8892     #if defined(__ia64__)
8893     #define __NR_epoll_create 1243
8894     #elif defined(__x86_64__)
8895     #define __NR_epoll_create 214
8896     #elif defined(__sparc64__) || defined(__sparc__)
8897     #define __NR_epoll_create 193
8898     #elif defined(__s390__) || defined(__m68k__)
8899     #define __NR_epoll_create 249
8900     #elif defined(__ppc64__) || defined(__ppc__)
8901     #define __NR_epoll_create 236
8902     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
8903     #define __NR_epoll_create 224
8904     #elif defined(__alpha__)
8905     #define __NR_epoll_create 407
8906     #elif defined(__sh64__)
8907     #define __NR_epoll_create 282
8908     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
8909     #define __NR_epoll_create 254
8910     #else
8911     #error No system call numbers defined for epoll family.
8912     #endif
8913     #endif
8914     _syscall1(int, epoll_create, int, size)
8915     #endif
8916     main() { return epoll_create(256) == -1 ? 1 : 0; }
8917     _ACEOF
8918     rm -f conftest$ac_exeext
8919     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920     (eval $ac_link) 2>&5
8921     ac_status=$?
8922     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8924     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925     (eval $ac_try) 2>&5
8926     ac_status=$?
8927     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928     (exit $ac_status); }; }; then
8929     echo "$as_me:$LINENO: result: yes" >&5
8930     echo "${ECHO_T}yes" >&6
8931     SELECT_TYPE="epoll"
8932     else
8933     echo "$as_me: program exited with status $ac_status" >&5
8934     echo "$as_me: failed program was:" >&5
8935     sed 's/^/| /' conftest.$ac_ext >&5
8936    
8937     ( exit $ac_status )
8938     echo "$as_me:$LINENO: result: no" >&5
8939     echo "${ECHO_T}no" >&6
8940     HAS_EPOLL=0
8941     fi
8942     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8943     fi
8944     fi
8945     if test $HAS_EPOLL -eq 0; then
8946     echo "$as_me:$LINENO: checking for /dev/poll" >&5
8947     echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
8948     if test -c "/dev/poll"; then
8949     echo "$as_me:$LINENO: result: yes" >&5
8950     echo "${ECHO_T}yes" >&6
8951    
8952    
8953     for ac_header in devpoll.h sys/devpoll.h
8954     do
8955     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8956     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8957     echo "$as_me:$LINENO: checking for $ac_header" >&5
8958     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8959     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8960     echo $ECHO_N "(cached) $ECHO_C" >&6
8961     fi
8962     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8963     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8964     else
8965     # Is the header compilable?
8966     echo "$as_me:$LINENO: checking $ac_header usability" >&5
8967     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8968     cat >conftest.$ac_ext <<_ACEOF
8969     /* confdefs.h. */
8970     _ACEOF
8971     cat confdefs.h >>conftest.$ac_ext
8972     cat >>conftest.$ac_ext <<_ACEOF
8973     /* end confdefs.h. */
8974     $ac_includes_default
8975     #include <$ac_header>
8976     _ACEOF
8977     rm -f conftest.$ac_objext
8978     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979     (eval $ac_compile) 2>conftest.er1
8980     ac_status=$?
8981     grep -v '^ *+' conftest.er1 >conftest.err
8982     rm -f conftest.er1
8983     cat conftest.err >&5
8984     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985     (exit $ac_status); } &&
8986     { ac_try='test -z "$ac_c_werror_flag"
8987     || test ! -s conftest.err'
8988     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989     (eval $ac_try) 2>&5
8990     ac_status=$?
8991     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992     (exit $ac_status); }; } &&
8993     { ac_try='test -s conftest.$ac_objext'
8994     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995     (eval $ac_try) 2>&5
8996     ac_status=$?
8997     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998     (exit $ac_status); }; }; then
8999     ac_header_compiler=yes
9000     else
9001     echo "$as_me: failed program was:" >&5
9002     sed 's/^/| /' conftest.$ac_ext >&5
9003    
9004     ac_header_compiler=no
9005     fi
9006     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9007     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9008     echo "${ECHO_T}$ac_header_compiler" >&6
9009    
9010     # Is the header present?
9011     echo "$as_me:$LINENO: checking $ac_header presence" >&5
9012     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9013     cat >conftest.$ac_ext <<_ACEOF
9014     /* confdefs.h. */
9015     _ACEOF
9016     cat confdefs.h >>conftest.$ac_ext
9017     cat >>conftest.$ac_ext <<_ACEOF
9018     /* end confdefs.h. */
9019     #include <$ac_header>
9020     _ACEOF
9021     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9022     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9023     ac_status=$?
9024     grep -v '^ *+' conftest.er1 >conftest.err
9025     rm -f conftest.er1
9026     cat conftest.err >&5
9027     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028     (exit $ac_status); } >/dev/null; then
9029     if test -s conftest.err; then
9030     ac_cpp_err=$ac_c_preproc_warn_flag
9031     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9032     else
9033     ac_cpp_err=
9034     fi
9035     else
9036     ac_cpp_err=yes
9037     fi
9038     if test -z "$ac_cpp_err"; then
9039     ac_header_preproc=yes
9040     else
9041     echo "$as_me: failed program was:" >&5
9042     sed 's/^/| /' conftest.$ac_ext >&5
9043    
9044     ac_header_preproc=no
9045     fi
9046     rm -f conftest.err conftest.$ac_ext
9047     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9048     echo "${ECHO_T}$ac_header_preproc" >&6
9049    
9050     # So? What about this header?
9051     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9052     yes:no: )
9053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9054     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9056     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9057     ac_header_preproc=yes
9058     ;;
9059     no:yes:* )
9060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9061     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9062     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9063     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9065     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9066     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9067     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9069     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9071     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9072     (
9073     cat <<\_ASBOX
9074     ## -------------------------------------- ##
9075     ## Report this to the ircd-hybrid lists. ##
9076     ## -------------------------------------- ##
9077     _ASBOX
9078     ) |
9079     sed "s/^/$as_me: WARNING: /" >&2
9080     ;;
9081     esac
9082     echo "$as_me:$LINENO: checking for $ac_header" >&5
9083     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9084     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085     echo $ECHO_N "(cached) $ECHO_C" >&6
9086     else
9087     eval "$as_ac_Header=\$ac_header_preproc"
9088     fi
9089     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9090     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9091    
9092     fi
9093     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9094     cat >>confdefs.h <<_ACEOF
9095     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9096     _ACEOF
9097    
9098     fi
9099    
9100     done
9101    
9102     SELECT_TYPE="devpoll"
9103     else
9104     echo "$as_me:$LINENO: result: no" >&5
9105     echo "${ECHO_T}no" >&6
9106     echo "$as_me:$LINENO: checking for RT Signal IO" >&5
9107     echo $ECHO_N "checking for RT Signal IO... $ECHO_C" >&6
9108    
9109     cat >conftest.$ac_ext <<_ACEOF
9110     /* confdefs.h. */
9111     _ACEOF
9112     cat confdefs.h >>conftest.$ac_ext
9113     cat >>conftest.$ac_ext <<_ACEOF
9114     /* end confdefs.h. */
9115     #define _GNU_SOURCE
9116     #include <fcntl.h>
9117     #ifdef F_SETSIG
9118     YUP_HAVE_F_SETSIG
9119     #endif
9120    
9121     _ACEOF
9122     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9123     $EGREP "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then
9124    
9125     SELECT_TYPE="sigio"
9126     echo "$as_me:$LINENO: result: yes" >&5
9127     echo "${ECHO_T}yes" >&6
9128    
9129     else
9130    
9131     echo "$as_me:$LINENO: result: no" >&5
9132     echo "${ECHO_T}no" >&6
9133     echo "$as_me:$LINENO: checking for poll" >&5
9134     echo $ECHO_N "checking for poll... $ECHO_C" >&6
9135     if test "${ac_cv_func_poll+set}" = set; then
9136     echo $ECHO_N "(cached) $ECHO_C" >&6
9137     else
9138     cat >conftest.$ac_ext <<_ACEOF
9139     /* confdefs.h. */
9140     _ACEOF
9141     cat confdefs.h >>conftest.$ac_ext
9142     cat >>conftest.$ac_ext <<_ACEOF
9143     /* end confdefs.h. */
9144     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
9145     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9146     #define poll innocuous_poll
9147    
9148     /* System header to define __stub macros and hopefully few prototypes,
9149     which can conflict with char poll (); below.
9150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9151     <limits.h> exists even on freestanding compilers. */
9152    
9153     #ifdef __STDC__
9154     # include <limits.h>
9155     #else
9156     # include <assert.h>
9157     #endif
9158    
9159     #undef poll
9160    
9161     /* Override any gcc2 internal prototype to avoid an error. */
9162     #ifdef __cplusplus
9163     extern "C"
9164     {
9165     #endif
9166     /* We use char because int might match the return type of a gcc2
9167     builtin and then its argument prototype would still apply. */
9168     char poll ();
9169     /* The GNU C library defines this for functions which it implements
9170     to always fail with ENOSYS. Some functions are actually named
9171     something starting with __ and the normal name is an alias. */
9172     #if defined (__stub_poll) || defined (__stub___poll)
9173     choke me
9174     #else
9175     char (*f) () = poll;
9176     #endif
9177     #ifdef __cplusplus
9178     }
9179     #endif
9180    
9181     int
9182     main ()
9183     {
9184     return f != poll;
9185     ;
9186     return 0;
9187     }
9188     _ACEOF
9189     rm -f conftest.$ac_objext conftest$ac_exeext
9190     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191     (eval $ac_link) 2>conftest.er1
9192     ac_status=$?
9193     grep -v '^ *+' conftest.er1 >conftest.err
9194     rm -f conftest.er1
9195     cat conftest.err >&5
9196     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197     (exit $ac_status); } &&
9198     { ac_try='test -z "$ac_c_werror_flag"
9199     || test ! -s conftest.err'
9200     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201     (eval $ac_try) 2>&5
9202     ac_status=$?
9203     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204     (exit $ac_status); }; } &&
9205     { ac_try='test -s conftest$ac_exeext'
9206     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207     (eval $ac_try) 2>&5
9208     ac_status=$?
9209     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210     (exit $ac_status); }; }; then
9211     ac_cv_func_poll=yes
9212     else
9213     echo "$as_me: failed program was:" >&5
9214     sed 's/^/| /' conftest.$ac_ext >&5
9215    
9216     ac_cv_func_poll=no
9217     fi
9218     rm -f conftest.err conftest.$ac_objext \
9219     conftest$ac_exeext conftest.$ac_ext
9220     fi
9221     echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
9222     echo "${ECHO_T}$ac_cv_func_poll" >&6
9223     if test $ac_cv_func_poll = yes; then
9224     SELECT_TYPE="poll"
9225     else
9226    
9227     echo "$as_me:$LINENO: checking for select" >&5
9228     echo $ECHO_N "checking for select... $ECHO_C" >&6
9229     if test "${ac_cv_func_select+set}" = set; then
9230     echo $ECHO_N "(cached) $ECHO_C" >&6
9231     else
9232     cat >conftest.$ac_ext <<_ACEOF
9233     /* confdefs.h. */
9234     _ACEOF
9235     cat confdefs.h >>conftest.$ac_ext
9236     cat >>conftest.$ac_ext <<_ACEOF
9237     /* end confdefs.h. */
9238     /* Define select to an innocuous variant, in case <limits.h> declares select.
9239     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9240     #define select innocuous_select
9241    
9242     /* System header to define __stub macros and hopefully few prototypes,
9243     which can conflict with char select (); below.
9244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9245     <limits.h> exists even on freestanding compilers. */
9246    
9247     #ifdef __STDC__
9248     # include <limits.h>
9249     #else
9250     # include <assert.h>
9251     #endif
9252    
9253     #undef select
9254    
9255     /* Override any gcc2 internal prototype to avoid an error. */
9256     #ifdef __cplusplus
9257     extern "C"
9258     {
9259     #endif
9260     /* We use char because int might match the return type of a gcc2
9261     builtin and then its argument prototype would still apply. */
9262     char select ();
9263     /* The GNU C library defines this for functions which it implements
9264     to always fail with ENOSYS. Some functions are actually named
9265     something starting with __ and the normal name is an alias. */
9266     #if defined (__stub_select) || defined (__stub___select)
9267     choke me
9268     #else
9269     char (*f) () = select;
9270     #endif
9271     #ifdef __cplusplus
9272     }
9273     #endif
9274    
9275     int
9276     main ()
9277     {
9278     return f != select;
9279     ;
9280     return 0;
9281     }
9282     _ACEOF
9283     rm -f conftest.$ac_objext conftest$ac_exeext
9284     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285     (eval $ac_link) 2>conftest.er1
9286     ac_status=$?
9287     grep -v '^ *+' conftest.er1 >conftest.err
9288     rm -f conftest.er1
9289     cat conftest.err >&5
9290     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291     (exit $ac_status); } &&
9292     { ac_try='test -z "$ac_c_werror_flag"
9293     || test ! -s conftest.err'
9294     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295     (eval $ac_try) 2>&5
9296     ac_status=$?
9297     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298     (exit $ac_status); }; } &&
9299     { ac_try='test -s conftest$ac_exeext'
9300     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301     (eval $ac_try) 2>&5
9302     ac_status=$?
9303     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304     (exit $ac_status); }; }; then
9305     ac_cv_func_select=yes
9306     else
9307     echo "$as_me: failed program was:" >&5
9308     sed 's/^/| /' conftest.$ac_ext >&5
9309    
9310     ac_cv_func_select=no
9311     fi
9312     rm -f conftest.err conftest.$ac_objext \
9313     conftest$ac_exeext conftest.$ac_ext
9314     fi
9315     echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
9316     echo "${ECHO_T}$ac_cv_func_select" >&6
9317     if test $ac_cv_func_select = yes; then
9318     SELECT_TYPE="select"
9319     else
9320     { { echo "$as_me:$LINENO: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&5
9321     echo "$as_me: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&2;}
9322     { (exit 1); exit 1; }; }
9323    
9324     fi
9325    
9326    
9327     fi
9328    
9329    
9330     fi
9331     rm -f conftest*
9332    
9333     fi
9334     fi
9335    
9336     fi
9337    
9338    
9339     fi
9340    
9341     echo "Using $SELECT_TYPE for select loop."
9342    
9343    
9344     cat >>confdefs.h <<_ACEOF
9345     #define SELECT_TYPE "$SELECT_TYPE"
9346     _ACEOF
9347    
9348    
9349    
9350    
9351    
9352     # Check whether --enable-clobber or --disable-clobber was given.
9353     if test "${enable_clobber+set}" = set; then
9354     enableval="$enable_clobber"
9355     clobber=$enableval
9356     else
9357     clobber=no
9358     fi;
9359    
9360     if test "$clobber" = yes; then
9361     CLOBBER=yes
9362    
9363     fi
9364    
9365    
9366    
9367     echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
9368     echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6
9369     # Check whether --enable-profile or --disable-profile was given.
9370     if test "${enable_profile+set}" = set; then
9371     enableval="$enable_profile"
9372     profile=$enableval
9373     else
9374     profile=no
9375     fi;
9376    
9377     if test "$profile" = yes; then
9378     if test "$ac_cv_c_compiler_gnu" = yes; then
9379     IRC_CFLAGS="$IRC_CFLAGS -pg -static"
9380     echo "$as_me:$LINENO: result: " >&5
9381     echo "${ECHO_T}" >&6="yes, adding -pg -static"
9382     else
9383     echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
9384     echo "${ECHO_T}no, profile builds only work with gcc" >&6
9385     fi
9386     else
9387     echo "$as_me:$LINENO: result: no" >&5
9388     echo "${ECHO_T}no" >&6
9389     fi
9390    
9391     echo "$as_me:$LINENO: checking if you want ElectricFence" >&5
9392     echo $ECHO_N "checking if you want ElectricFence... $ECHO_C" >&6
9393     # Check whether --enable-efence or --disable-efence was given.
9394     if test "${enable_efence+set}" = set; then
9395     enableval="$enable_efence"
9396    
9397     if test "$enableval" != no; then
9398     if test ! -z "$enableval" -a "$enableval" != yes; then
9399     LIBS="$LIBS -L$enableval"
9400     fi
9401    
9402     echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
9403     echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6
9404     if test "${ac_cv_lib_efence_malloc+set}" = set; then
9405     echo $ECHO_N "(cached) $ECHO_C" >&6
9406     else
9407     ac_check_lib_save_LIBS=$LIBS
9408     LIBS="-lefence $LIBS"
9409     cat >conftest.$ac_ext <<_ACEOF
9410     /* confdefs.h. */
9411     _ACEOF
9412     cat confdefs.h >>conftest.$ac_ext
9413     cat >>conftest.$ac_ext <<_ACEOF
9414     /* end confdefs.h. */
9415    
9416     /* Override any gcc2 internal prototype to avoid an error. */
9417     #ifdef __cplusplus
9418     extern "C"
9419     #endif
9420     /* We use char because int might match the return type of a gcc2
9421     builtin and then its argument prototype would still apply. */
9422     char malloc ();
9423     int
9424     main ()
9425     {
9426     malloc ();
9427     ;
9428     return 0;
9429     }
9430     _ACEOF
9431     rm -f conftest.$ac_objext conftest$ac_exeext
9432     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433     (eval $ac_link) 2>conftest.er1
9434     ac_status=$?
9435     grep -v '^ *+' conftest.er1 >conftest.err
9436     rm -f conftest.er1
9437     cat conftest.err >&5
9438     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439     (exit $ac_status); } &&
9440     { ac_try='test -z "$ac_c_werror_flag"
9441     || test ! -s conftest.err'
9442     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443     (eval $ac_try) 2>&5
9444     ac_status=$?
9445     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446     (exit $ac_status); }; } &&
9447     { ac_try='test -s conftest$ac_exeext'
9448     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449     (eval $ac_try) 2>&5
9450     ac_status=$?
9451     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452     (exit $ac_status); }; }; then
9453     ac_cv_lib_efence_malloc=yes
9454     else
9455     echo "$as_me: failed program was:" >&5
9456     sed 's/^/| /' conftest.$ac_ext >&5
9457    
9458     ac_cv_lib_efence_malloc=no
9459     fi
9460     rm -f conftest.err conftest.$ac_objext \
9461     conftest$ac_exeext conftest.$ac_ext
9462     LIBS=$ac_check_lib_save_LIBS
9463     fi
9464     echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
9465     echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6
9466     if test $ac_cv_lib_efence_malloc = yes; then
9467    
9468     LIBS="$LIBS -lefence"
9469     echo "$as_me:$LINENO: result: yes" >&5
9470     echo "${ECHO_T}yes" >&6
9471    
9472     else
9473     echo "$as_me:$LINENO: result: not found" >&5
9474     echo "${ECHO_T}not found" >&6
9475     fi
9476    
9477     else
9478     echo "$as_me:$LINENO: result: no" >&5
9479     echo "${ECHO_T}no" >&6
9480     fi
9481    
9482     else
9483     echo "$as_me:$LINENO: result: no" >&5
9484     echo "${ECHO_T}no" >&6
9485     fi;
9486    
9487     echo "$as_me:$LINENO: checking if you want the block allocator" >&5
9488     echo $ECHO_N "checking if you want the block allocator... $ECHO_C" >&6
9489     # Check whether --enable-block-alloc or --disable-block-alloc was given.
9490     if test "${enable_block_alloc+set}" = set; then
9491     enableval="$enable_block_alloc"
9492     balloc=$enableval
9493     else
9494     balloc=yes
9495     fi;
9496    
9497     if test "$balloc" = no; then
9498    
9499    
9500     cat >>confdefs.h <<\_ACEOF
9501     #define NOBALLOC 1
9502     _ACEOF
9503    
9504     else
9505 adx 61 BALLOC_C=balloc.c
9506 adx 30
9507     fi
9508    
9509     echo "$as_me:$LINENO: result: $balloc" >&5
9510     echo "${ECHO_T}$balloc" >&6
9511    
9512     # Check whether --enable-warnings or --disable-warnings was given.
9513     if test "${enable_warnings+set}" = set; then
9514     enableval="$enable_warnings"
9515     IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused"
9516     fi;
9517    
9518    
9519     # Check whether --enable-small-net or --disable-small-net was given.
9520     if test "${enable_small_net+set}" = set; then
9521     enableval="$enable_small_net"
9522     small_net=$enableval
9523     else
9524     small_net=no
9525     fi;
9526    
9527     if test "$small_net" = yes; then
9528    
9529     cat >>confdefs.h <<\_ACEOF
9530     #define NICKNAMEHISTORYLENGTH 1500
9531     _ACEOF
9532    
9533    
9534     cat >>confdefs.h <<\_ACEOF
9535     #define CHANNEL_HEAP_SIZE 256
9536     _ACEOF
9537    
9538    
9539     cat >>confdefs.h <<\_ACEOF
9540     #define BAN_HEAP_SIZE 128
9541     _ACEOF
9542    
9543    
9544     cat >>confdefs.h <<\_ACEOF
9545     #define CLIENT_HEAP_SIZE 256
9546     _ACEOF
9547    
9548    
9549     cat >>confdefs.h <<\_ACEOF
9550     #define LCLIENT_HEAP_SIZE 128
9551     _ACEOF
9552    
9553    
9554     cat >>confdefs.h <<\_ACEOF
9555     #define DNODE_HEAP_SIZE 256
9556     _ACEOF
9557    
9558    
9559     cat >>confdefs.h <<\_ACEOF
9560     #define TOPIC_HEAP_SIZE 256
9561     _ACEOF
9562    
9563    
9564     cat >>confdefs.h <<\_ACEOF
9565     #define DBUF_HEAP_SIZE 64
9566     _ACEOF
9567    
9568     else
9569    
9570     cat >>confdefs.h <<\_ACEOF
9571     #define NICKNAMEHISTORYLENGTH 15000
9572     _ACEOF
9573    
9574    
9575     cat >>confdefs.h <<\_ACEOF
9576     #define CHANNEL_HEAP_SIZE 1024
9577     _ACEOF
9578    
9579    
9580     cat >>confdefs.h <<\_ACEOF
9581     #define BAN_HEAP_SIZE 1024
9582     _ACEOF
9583    
9584    
9585     cat >>confdefs.h <<\_ACEOF
9586     #define CLIENT_HEAP_SIZE 1024
9587     _ACEOF
9588    
9589    
9590     cat >>confdefs.h <<\_ACEOF
9591     #define LCLIENT_HEAP_SIZE 512
9592     _ACEOF
9593    
9594    
9595     cat >>confdefs.h <<\_ACEOF
9596     #define DNODE_HEAP_SIZE 2048
9597     _ACEOF
9598    
9599    
9600     cat >>confdefs.h <<\_ACEOF
9601     #define TOPIC_HEAP_SIZE 1024
9602     _ACEOF
9603    
9604    
9605     cat >>confdefs.h <<\_ACEOF
9606     #define DBUF_HEAP_SIZE 512
9607     _ACEOF
9608    
9609     fi
9610    
9611 adx 248
9612     # Check whether --with-nicklen or --without-nicklen was given.
9613     if test "${with_nicklen+set}" = set; then
9614     withval="$with_nicklen"
9615     NICKLEN="$withval"
9616     else
9617     NICKLEN="15"
9618     fi;
9619    
9620 adx 30 # Check whether --enable-efnet or --disable-efnet was given.
9621     if test "${enable_efnet+set}" = set; then
9622     enableval="$enable_efnet"
9623     efnet=$enableval
9624     else
9625     efnet=no
9626     fi;
9627    
9628     if test "$efnet" = yes; then
9629    
9630     cat >>confdefs.h <<\_ACEOF
9631     #define EFNET 1
9632     _ACEOF
9633    
9634    
9635     cat >>confdefs.h <<\_ACEOF
9636     #define TS5_ONLY 1
9637     _ACEOF
9638    
9639     echo "Building ircd for use with EFnet"
9640     EXAMPLE_CONF=example.efnet.conf
9641 adx 248 NICKLEN=9
9642 adx 30 else
9643     EXAMPLE_CONF=example.conf
9644     fi
9645    
9646     # Check whether --enable-gline-voting or --disable-gline-voting was given.
9647     if test "${enable_gline_voting+set}" = set; then
9648     enableval="$enable_gline_voting"
9649     gline_voting=$enableval
9650     else
9651     gline_voting=yes
9652     fi;
9653    
9654     if test "$gline_voting" = yes; then
9655    
9656     cat >>confdefs.h <<\_ACEOF
9657     #define GLINE_VOTING 1
9658     _ACEOF
9659    
9660     echo "Building ircd with G-Line voting support"
9661     fi
9662    
9663     # Check whether --enable-halfops or --disable-halfops was given.
9664     if test "${enable_halfops+set}" = set; then
9665     enableval="$enable_halfops"
9666     halfops=$enableval
9667     else
9668     halfops=no
9669     fi;
9670    
9671     if test "$halfops" = yes; then
9672    
9673     cat >>confdefs.h <<\_ACEOF
9674     #define HALFOPS 1
9675     _ACEOF
9676    
9677     fi
9678    
9679    
9680    
9681     echo "$as_me:$LINENO: checking for syslog options" >&5
9682     echo $ECHO_N "checking for syslog options... $ECHO_C" >&6
9683    
9684     # Check whether --enable-syslog or --disable-syslog was given.
9685     if test "${enable_syslog+set}" = set; then
9686     enableval="$enable_syslog"
9687    
9688    
9689     if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then
9690    
9691     if test "$enableval" != no; then
9692     syslogstuff=core
9693    
9694     for option in $enableval; do
9695     case "$option" in
9696     kill)
9697     syslogstuff="$syslogstuff kill"
9698    
9699     cat >>confdefs.h <<\_ACEOF
9700     #define SYSLOG_KILL 1
9701     _ACEOF
9702    
9703     ;;
9704     squit)
9705     syslogstuff="$syslogstuff squit"
9706    
9707     cat >>confdefs.h <<\_ACEOF
9708     #define SYSLOG_SQUIT 1
9709     _ACEOF
9710    
9711     ;;
9712     connect)
9713     syslogstuff="$syslogstuff connect"
9714    
9715     cat >>confdefs.h <<\_ACEOF
9716     #define SYSLOG_CONNECT 1
9717     _ACEOF
9718    
9719     ;;
9720     users)
9721     syslogstuff="$syslogstuff users"
9722    
9723     cat >>confdefs.h <<\_ACEOF
9724     #define SYSLOG_USERS 1
9725     _ACEOF
9726    
9727     ;;
9728     oper)
9729     syslogstuff="$syslogstuff oper"
9730    
9731     cat >>confdefs.h <<\_ACEOF
9732     #define SYSLOG_OPER 1
9733     _ACEOF
9734    
9735     ;;
9736     yes)
9737     ;;
9738     *)
9739     { echo "$as_me:$LINENO: WARNING: unknown event $option" >&5
9740     echo "$as_me: WARNING: unknown event $option" >&2;}
9741     ;;
9742     esac
9743     done
9744    
9745     if test ! -z "$syslogstuff" -o "$enableval" = yes; then
9746    
9747     cat >>confdefs.h <<\_ACEOF
9748     #define USE_SYSLOG 1
9749     _ACEOF
9750    
9751     fi
9752     else syslogstuff=none
9753     fi
9754    
9755     else { echo "$as_me:$LINENO: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&5
9756     echo "$as_me: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&2;}
9757     syslogstuff=none
9758     fi
9759    
9760     else
9761     syslogstuff=none
9762     fi;
9763    
9764     echo "$as_me:$LINENO: result: $syslogstuff" >&5
9765     echo "${ECHO_T}$syslogstuff" >&6
9766    
9767    
9768     # Check whether --with-syslog-facility or --without-syslog-facility was given.
9769     if test "${with_syslog_facility+set}" = set; then
9770     withval="$with_syslog_facility"
9771     facility=$withval
9772     else
9773     facility="LOG_LOCAL4"
9774     fi;
9775    
9776     if test "$syslogstuff" != none; then
9777    
9778     cat >>confdefs.h <<_ACEOF
9779     #define LOG_FACILITY $facility
9780     _ACEOF
9781    
9782     fi
9783    
9784    
9785     # Check whether --with-topiclen or --without-topiclen was given.
9786     if test "${with_topiclen+set}" = set; then
9787     withval="$with_topiclen"
9788    
9789     if test $withval -ge 390; then
9790     TOPICLEN=390
9791     { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
9792     echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
9793     else
9794     TOPICLEN=$withval
9795     fi
9796    
9797     else
9798     TOPICLEN=160
9799     fi;
9800    
9801    
9802     cat >>confdefs.h <<_ACEOF
9803     #define TOPICLEN ${TOPICLEN}
9804     _ACEOF
9805    
9806    
9807     cat >>confdefs.h <<_ACEOF
9808     #define NICKLEN (${NICKLEN}+1)
9809     _ACEOF
9810    
9811    
9812 adx 64 cat >>confdefs.h <<_ACEOF
9813     #define USERLEN 10
9814     _ACEOF
9815    
9816    
9817     cat >>confdefs.h <<_ACEOF
9818     #define HOSTLEN 63
9819     _ACEOF
9820    
9821    
9822 adx 30 # Check whether --enable-shared-modules or --disable-shared-modules was given.
9823     if test "${enable_shared_modules+set}" = set; then
9824     enableval="$enable_shared_modules"
9825     shared_modules=$enableval
9826     else
9827     shared_modules="yes"
9828     fi;
9829    
9830     if test "$shared_modules" = yes; then
9831    
9832     if test "$profile" = "no"; then
9833     shared_modules="yes"
9834     else
9835     { echo "$as_me:$LINENO: WARNING: disabling shared modules; cannot coexist with profile builds" >&5
9836     echo "$as_me: WARNING: disabling shared modules; cannot coexist with profile builds" >&2;}
9837     shared_modules="no"
9838     fi
9839    
9840     if test "$CYGWIN" = yes; then
9841     { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
9842     echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
9843     shared_modules="no"
9844     fi
9845    
9846     if test "$CC" = tcc -a "$TenDRA" = "no"; then
9847     { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
9848     echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
9849     shared_modules="no"
9850     fi
9851     fi
9852    
9853     if test "$shared_modules" = yes; then
9854     DYNLINK_C=dynlink.c
9855    
9856     for ac_header in dlfcn.h
9857     do
9858     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9859     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9860     echo "$as_me:$LINENO: checking for $ac_header" >&5
9861     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9862     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9863     echo $ECHO_N "(cached) $ECHO_C" >&6
9864     fi
9865     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9866     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9867     else
9868     # Is the header compilable?
9869     echo "$as_me:$LINENO: checking $ac_header usability" >&5
9870     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9871     cat >conftest.$ac_ext <<_ACEOF
9872     /* confdefs.h. */
9873     _ACEOF
9874     cat confdefs.h >>conftest.$ac_ext
9875     cat >>conftest.$ac_ext <<_ACEOF
9876     /* end confdefs.h. */
9877     $ac_includes_default
9878     #include <$ac_header>
9879     _ACEOF
9880     rm -f conftest.$ac_objext
9881     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882     (eval $ac_compile) 2>conftest.er1
9883     ac_status=$?
9884     grep -v '^ *+' conftest.er1 >conftest.err
9885     rm -f conftest.er1
9886     cat conftest.err >&5
9887     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888     (exit $ac_status); } &&
9889     { ac_try='test -z "$ac_c_werror_flag"
9890     || test ! -s conftest.err'
9891     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892     (eval $ac_try) 2>&5
9893     ac_status=$?
9894     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895     (exit $ac_status); }; } &&
9896     { ac_try='test -s conftest.$ac_objext'
9897     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898     (eval $ac_try) 2>&5
9899     ac_status=$?
9900     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901     (exit $ac_status); }; }; then
9902     ac_header_compiler=yes
9903     else
9904     echo "$as_me: failed program was:" >&5
9905     sed 's/^/| /' conftest.$ac_ext >&5
9906    
9907     ac_header_compiler=no
9908     fi
9909     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9910     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9911     echo "${ECHO_T}$ac_header_compiler" >&6
9912    
9913     # Is the header present?
9914     echo "$as_me:$LINENO: checking $ac_header presence" >&5
9915     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9916     cat >conftest.$ac_ext <<_ACEOF
9917     /* confdefs.h. */
9918     _ACEOF
9919     cat confdefs.h >>conftest.$ac_ext
9920     cat >>conftest.$ac_ext <<_ACEOF
9921     /* end confdefs.h. */
9922     #include <$ac_header>
9923     _ACEOF
9924     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9925     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9926     ac_status=$?
9927     grep -v '^ *+' conftest.er1 >conftest.err
9928     rm -f conftest.er1
9929     cat conftest.err >&5
9930     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931     (exit $ac_status); } >/dev/null; then
9932     if test -s conftest.err; then
9933     ac_cpp_err=$ac_c_preproc_warn_flag
9934     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9935     else
9936     ac_cpp_err=
9937     fi
9938     else
9939     ac_cpp_err=yes
9940     fi
9941     if test -z "$ac_cpp_err"; then
9942     ac_header_preproc=yes
9943     else
9944     echo "$as_me: failed program was:" >&5
9945     sed 's/^/| /' conftest.$ac_ext >&5
9946    
9947     ac_header_preproc=no
9948     fi
9949     rm -f conftest.err conftest.$ac_ext
9950     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9951     echo "${ECHO_T}$ac_header_preproc" >&6
9952    
9953     # So? What about this header?
9954     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9955     yes:no: )
9956     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9957     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9959     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9960     ac_header_preproc=yes
9961     ;;
9962     no:yes:* )
9963     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9964     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9965     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9966     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9967     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9968     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9969     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9970     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9972     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9973     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9974     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9975     (
9976     cat <<\_ASBOX
9977     ## -------------------------------------- ##
9978     ## Report this to the ircd-hybrid lists. ##
9979     ## -------------------------------------- ##
9980     _ASBOX
9981     ) |
9982     sed "s/^/$as_me: WARNING: /" >&2
9983     ;;
9984     esac
9985     echo "$as_me:$LINENO: checking for $ac_header" >&5
9986     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9987     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9988     echo $ECHO_N "(cached) $ECHO_C" >&6
9989     else
9990     eval "$as_ac_Header=\$ac_header_preproc"
9991     fi
9992     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9993     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9994    
9995     fi
9996     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9997     cat >>confdefs.h <<_ACEOF
9998     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9999     _ACEOF
10000    
10001     fi
10002    
10003     done
10004    
10005     echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10006     echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
10007     if test "${ac_cv_search_shl_load+set}" = set; then
10008     echo $ECHO_N "(cached) $ECHO_C" >&6
10009     else
10010     ac_func_search_save_LIBS=$LIBS
10011     ac_cv_search_shl_load=no
10012     cat >conftest.$ac_ext <<_ACEOF
10013     /* confdefs.h. */
10014     _ACEOF
10015     cat confdefs.h >>conftest.$ac_ext
10016     cat >>conftest.$ac_ext <<_ACEOF
10017     /* end confdefs.h. */
10018    
10019     /* Override any gcc2 internal prototype to avoid an error. */
10020     #ifdef __cplusplus
10021     extern "C"
10022     #endif
10023     /* We use char because int might match the return type of a gcc2
10024     builtin and then its argument prototype would still apply. */
10025     char shl_load ();
10026     int
10027     main ()
10028     {
10029     shl_load ();
10030     ;
10031     return 0;
10032     }
10033     _ACEOF
10034     rm -f conftest.$ac_objext conftest$ac_exeext
10035     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036     (eval $ac_link) 2>conftest.er1
10037     ac_status=$?
10038     grep -v '^ *+' conftest.er1 >conftest.err
10039     rm -f conftest.er1
10040     cat conftest.err >&5
10041     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042     (exit $ac_status); } &&
10043     { ac_try='test -z "$ac_c_werror_flag"
10044     || test ! -s conftest.err'
10045     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046     (eval $ac_try) 2>&5
10047     ac_status=$?
10048     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049     (exit $ac_status); }; } &&
10050     { ac_try='test -s conftest$ac_exeext'
10051     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052     (eval $ac_try) 2>&5
10053     ac_status=$?
10054     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055     (exit $ac_status); }; }; then
10056     ac_cv_search_shl_load="none required"
10057     else
10058     echo "$as_me: failed program was:" >&5
10059     sed 's/^/| /' conftest.$ac_ext >&5
10060    
10061     fi
10062     rm -f conftest.err conftest.$ac_objext \
10063     conftest$ac_exeext conftest.$ac_ext
10064     if test "$ac_cv_search_shl_load" = no; then
10065     for ac_lib in dld; do
10066     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10067     cat >conftest.$ac_ext <<_ACEOF
10068     /* confdefs.h. */
10069     _ACEOF
10070     cat confdefs.h >>conftest.$ac_ext
10071     cat >>conftest.$ac_ext <<_ACEOF
10072     /* end confdefs.h. */
10073    
10074     /* Override any gcc2 internal prototype to avoid an error. */
10075     #ifdef __cplusplus
10076     extern "C"
10077     #endif
10078     /* We use char because int might match the return type of a gcc2
10079     builtin and then its argument prototype would still apply. */
10080     char shl_load ();
10081     int
10082     main ()
10083     {
10084     shl_load ();
10085     ;
10086     return 0;
10087     }
10088     _ACEOF
10089     rm -f conftest.$ac_objext conftest$ac_exeext
10090     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091     (eval $ac_link) 2>conftest.er1
10092     ac_status=$?
10093     grep -v '^ *+' conftest.er1 >conftest.err
10094     rm -f conftest.er1
10095     cat conftest.err >&5
10096     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097     (exit $ac_status); } &&
10098     { ac_try='test -z "$ac_c_werror_flag"
10099     || test ! -s conftest.err'
10100     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101     (eval $ac_try) 2>&5
10102     ac_status=$?
10103     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104     (exit $ac_status); }; } &&
10105     { ac_try='test -s conftest$ac_exeext'
10106     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107     (eval $ac_try) 2>&5
10108     ac_status=$?
10109     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110     (exit $ac_status); }; }; then
10111     ac_cv_search_shl_load="-l$ac_lib"
10112     break
10113     else
10114     echo "$as_me: failed program was:" >&5
10115     sed 's/^/| /' conftest.$ac_ext >&5
10116    
10117     fi
10118     rm -f conftest.err conftest.$ac_objext \
10119     conftest$ac_exeext conftest.$ac_ext
10120     done
10121     fi
10122     LIBS=$ac_func_search_save_LIBS
10123     fi
10124     echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
10125     echo "${ECHO_T}$ac_cv_search_shl_load" >&6
10126     if test "$ac_cv_search_shl_load" != no; then
10127     test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
10128    
10129    
10130     cat >>confdefs.h <<\_ACEOF
10131     #define HAVE_SHL_LOAD 1
10132     _ACEOF
10133    
10134     SUFFIX=".sl"
10135     MOD_TARGET=hpux_shared
10136     SEDOBJ="s/\.o/.sl/g"
10137    
10138     else
10139    
10140     echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10141     echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10142     if test "${ac_cv_search_dlopen+set}" = set; then
10143     echo $ECHO_N "(cached) $ECHO_C" >&6
10144     else
10145     ac_func_search_save_LIBS=$LIBS
10146     ac_cv_search_dlopen=no
10147     cat >conftest.$ac_ext <<_ACEOF
10148     /* confdefs.h. */
10149     _ACEOF
10150     cat confdefs.h >>conftest.$ac_ext
10151     cat >>conftest.$ac_ext <<_ACEOF
10152     /* end confdefs.h. */
10153    
10154     /* Override any gcc2 internal prototype to avoid an error. */
10155     #ifdef __cplusplus
10156     extern "C"
10157     #endif
10158     /* We use char because int might match the return type of a gcc2
10159     builtin and then its argument prototype would still apply. */
10160     char dlopen ();
10161     int
10162     main ()
10163     {
10164     dlopen ();
10165     ;
10166     return 0;
10167     }
10168     _ACEOF
10169     rm -f conftest.$ac_objext conftest$ac_exeext
10170     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171     (eval $ac_link) 2>conftest.er1
10172     ac_status=$?
10173     grep -v '^ *+' conftest.er1 >conftest.err
10174     rm -f conftest.er1
10175     cat conftest.err >&5
10176     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177     (exit $ac_status); } &&
10178     { ac_try='test -z "$ac_c_werror_flag"
10179     || test ! -s conftest.err'
10180     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181     (eval $ac_try) 2>&5
10182     ac_status=$?
10183     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184     (exit $ac_status); }; } &&
10185     { ac_try='test -s conftest$ac_exeext'
10186     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187     (eval $ac_try) 2>&5
10188     ac_status=$?
10189     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190     (exit $ac_status); }; }; then
10191     ac_cv_search_dlopen="none required"
10192     else
10193     echo "$as_me: failed program was:" >&5
10194     sed 's/^/| /' conftest.$ac_ext >&5
10195    
10196     fi
10197     rm -f conftest.err conftest.$ac_objext \
10198     conftest$ac_exeext conftest.$ac_ext
10199     if test "$ac_cv_search_dlopen" = no; then
10200     for ac_lib in dl c_r; do
10201     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10202     cat >conftest.$ac_ext <<_ACEOF
10203     /* confdefs.h. */
10204     _ACEOF
10205     cat confdefs.h >>conftest.$ac_ext
10206     cat >>conftest.$ac_ext <<_ACEOF
10207     /* end confdefs.h. */
10208    
10209     /* Override any gcc2 internal prototype to avoid an error. */
10210     #ifdef __cplusplus
10211     extern "C"
10212     #endif
10213     /* We use char because int might match the return type of a gcc2
10214     builtin and then its argument prototype would still apply. */
10215     char dlopen ();
10216     int
10217     main ()
10218     {
10219     dlopen ();
10220     ;
10221     return 0;
10222     }
10223     _ACEOF
10224     rm -f conftest.$ac_objext conftest$ac_exeext
10225     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226     (eval $ac_link) 2>conftest.er1
10227     ac_status=$?
10228     grep -v '^ *+' conftest.er1 >conftest.err
10229     rm -f conftest.er1
10230     cat conftest.err >&5
10231     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232     (exit $ac_status); } &&
10233     { ac_try='test -z "$ac_c_werror_flag"
10234     || test ! -s conftest.err'
10235     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236     (eval $ac_try) 2>&5
10237     ac_status=$?
10238     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239     (exit $ac_status); }; } &&
10240     { ac_try='test -s conftest$ac_exeext'
10241     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242     (eval $ac_try) 2>&5
10243     ac_status=$?
10244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245     (exit $ac_status); }; }; then
10246     ac_cv_search_dlopen="-l$ac_lib"
10247     break
10248     else
10249     echo "$as_me: failed program was:" >&5
10250     sed 's/^/| /' conftest.$ac_ext >&5
10251    
10252     fi
10253     rm -f conftest.err conftest.$ac_objext \
10254     conftest$ac_exeext conftest.$ac_ext
10255     done
10256     fi
10257     LIBS=$ac_func_search_save_LIBS
10258     fi
10259     echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10260     echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10261     if test "$ac_cv_search_dlopen" != no; then
10262     test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10263    
10264    
10265     cat >>confdefs.h <<\_ACEOF
10266     #define HAVE_DLOPEN 1
10267     _ACEOF
10268    
10269     SUFFIX=".so"
10270     MOD_TARGET=shared_modules
10271     SEDOBJ="s/\.o/.so/g"
10272     if test "$AppleGCC" = yes; then
10273    
10274     for ac_header in mach-o/dyld.h
10275     do
10276     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10278     echo "$as_me:$LINENO: checking for $ac_header" >&5
10279     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10280     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10281     echo $ECHO_N "(cached) $ECHO_C" >&6
10282     fi
10283     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10284     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10285     else
10286     # Is the header compilable?
10287     echo "$as_me:$LINENO: checking $ac_header usability" >&5
10288     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10289     cat >conftest.$ac_ext <<_ACEOF
10290     /* confdefs.h. */
10291     _ACEOF
10292     cat confdefs.h >>conftest.$ac_ext
10293     cat >>conftest.$ac_ext <<_ACEOF
10294     /* end confdefs.h. */
10295     $ac_includes_default
10296     #include <$ac_header>
10297     _ACEOF
10298     rm -f conftest.$ac_objext
10299     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300     (eval $ac_compile) 2>conftest.er1
10301     ac_status=$?
10302     grep -v '^ *+' conftest.er1 >conftest.err
10303     rm -f conftest.er1
10304     cat conftest.err >&5
10305     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306     (exit $ac_status); } &&
10307     { ac_try='test -z "$ac_c_werror_flag"
10308     || test ! -s conftest.err'
10309     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310     (eval $ac_try) 2>&5
10311     ac_status=$?
10312     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313     (exit $ac_status); }; } &&
10314     { ac_try='test -s conftest.$ac_objext'
10315     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316     (eval $ac_try) 2>&5
10317     ac_status=$?
10318     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319     (exit $ac_status); }; }; then
10320     ac_header_compiler=yes
10321     else
10322     echo "$as_me: failed program was:" >&5
10323     sed 's/^/| /' conftest.$ac_ext >&5
10324    
10325     ac_header_compiler=no
10326     fi
10327     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10328     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10329     echo "${ECHO_T}$ac_header_compiler" >&6
10330    
10331     # Is the header present?
10332     echo "$as_me:$LINENO: checking $ac_header presence" >&5
10333     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10334     cat >conftest.$ac_ext <<_ACEOF
10335     /* confdefs.h. */
10336     _ACEOF
10337     cat confdefs.h >>conftest.$ac_ext
10338     cat >>conftest.$ac_ext <<_ACEOF
10339     /* end confdefs.h. */
10340     #include <$ac_header>
10341     _ACEOF
10342     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10343     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10344     ac_status=$?
10345     grep -v '^ *+' conftest.er1 >conftest.err
10346     rm -f conftest.er1
10347     cat conftest.err >&5
10348     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349     (exit $ac_status); } >/dev/null; then
10350     if test -s conftest.err; then
10351     ac_cpp_err=$ac_c_preproc_warn_flag
10352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10353     else
10354     ac_cpp_err=
10355     fi
10356     else
10357     ac_cpp_err=yes
10358     fi
10359     if test -z "$ac_cpp_err"; then
10360     ac_header_preproc=yes
10361     else
10362     echo "$as_me: failed program was:" >&5
10363     sed 's/^/| /' conftest.$ac_ext >&5
10364    
10365     ac_header_preproc=no
10366     fi
10367     rm -f conftest.err conftest.$ac_ext
10368     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10369     echo "${ECHO_T}$ac_header_preproc" >&6
10370    
10371     # So? What about this header?
10372     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10373     yes:no: )
10374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10375     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10377     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10378     ac_header_preproc=yes
10379     ;;
10380     no:yes:* )
10381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10382     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10383     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10384     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10386     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10387     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10388     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10390     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10392     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10393     (
10394     cat <<\_ASBOX
10395     ## -------------------------------------- ##
10396     ## Report this to the ircd-hybrid lists. ##
10397     ## -------------------------------------- ##
10398     _ASBOX
10399     ) |
10400     sed "s/^/$as_me: WARNING: /" >&2
10401     ;;
10402     esac
10403     echo "$as_me:$LINENO: checking for $ac_header" >&5
10404     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10405     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10406     echo $ECHO_N "(cached) $ECHO_C" >&6
10407     else
10408     eval "$as_ac_Header=\$ac_header_preproc"
10409     fi
10410     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10411     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10412    
10413     fi
10414     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10415     cat >>confdefs.h <<_ACEOF
10416     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10417     _ACEOF
10418    
10419     fi
10420    
10421     done
10422    
10423     fi
10424     echo "$as_me:$LINENO: checking for dlsym" >&5
10425     echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
10426     if test "${ac_cv_func_dlsym+set}" = set; then
10427     echo $ECHO_N "(cached) $ECHO_C" >&6
10428     else
10429     cat >conftest.$ac_ext <<_ACEOF
10430     /* confdefs.h. */
10431     _ACEOF
10432     cat confdefs.h >>conftest.$ac_ext
10433     cat >>conftest.$ac_ext <<_ACEOF
10434     /* end confdefs.h. */
10435     /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
10436     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10437     #define dlsym innocuous_dlsym
10438    
10439     /* System header to define __stub macros and hopefully few prototypes,
10440     which can conflict with char dlsym (); below.
10441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10442     <limits.h> exists even on freestanding compilers. */
10443    
10444     #ifdef __STDC__
10445     # include <limits.h>
10446     #else
10447     # include <assert.h>
10448     #endif
10449    
10450     #undef dlsym
10451    
10452     /* Override any gcc2 internal prototype to avoid an error. */
10453     #ifdef __cplusplus
10454     extern "C"
10455     {
10456     #endif
10457     /* We use char because int might match the return type of a gcc2
10458     builtin and then its argument prototype would still apply. */
10459     char dlsym ();
10460     /* The GNU C library defines this for functions which it implements
10461     to always fail with ENOSYS. Some functions are actually named
10462     something starting with __ and the normal name is an alias. */
10463     #if defined (__stub_dlsym) || defined (__stub___dlsym)
10464     choke me
10465     #else
10466     char (*f) () = dlsym;
10467     #endif
10468     #ifdef __cplusplus
10469     }
10470     #endif
10471    
10472     int
10473     main ()
10474     {
10475     return f != dlsym;
10476     ;
10477     return 0;
10478     }
10479     _ACEOF
10480     rm -f conftest.$ac_objext conftest$ac_exeext
10481     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482     (eval $ac_link) 2>conftest.er1
10483     ac_status=$?
10484     grep -v '^ *+' conftest.er1 >conftest.err
10485     rm -f conftest.er1
10486     cat conftest.err >&5
10487     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488     (exit $ac_status); } &&
10489     { ac_try='test -z "$ac_c_werror_flag"
10490     || test ! -s conftest.err'
10491     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492     (eval $ac_try) 2>&5
10493     ac_status=$?
10494     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495     (exit $ac_status); }; } &&
10496     { ac_try='test -s conftest$ac_exeext'
10497     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498     (eval $ac_try) 2>&5
10499     ac_status=$?
10500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501     (exit $ac_status); }; }; then
10502     ac_cv_func_dlsym=yes
10503     else
10504     echo "$as_me: failed program was:" >&5
10505     sed 's/^/| /' conftest.$ac_ext >&5
10506    
10507     ac_cv_func_dlsym=no
10508     fi
10509     rm -f conftest.err conftest.$ac_objext \
10510     conftest$ac_exeext conftest.$ac_ext
10511     fi
10512     echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
10513     echo "${ECHO_T}$ac_cv_func_dlsym" >&6
10514     if test $ac_cv_func_dlsym = yes; then
10515     :
10516     else
10517    
10518     { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
10519     echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
10520     shared_modules=no
10521    
10522     fi
10523    
10524    
10525 db 165
10526     for ac_func in dlfunc dlinfo
10527 adx 30 do
10528     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10529     echo "$as_me:$LINENO: checking for $ac_func" >&5
10530     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10531     if eval "test \"\${$as_ac_var+set}\" = set"; then
10532     echo $ECHO_N "(cached) $ECHO_C" >&6
10533     else
10534     cat >conftest.$ac_ext <<_ACEOF
10535     /* confdefs.h. */
10536     _ACEOF
10537     cat confdefs.h >>conftest.$ac_ext
10538     cat >>conftest.$ac_ext <<_ACEOF
10539     /* end confdefs.h. */
10540     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10541     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10542     #define $ac_func innocuous_$ac_func
10543    
10544     /* System header to define __stub macros and hopefully few prototypes,
10545     which can conflict with char $ac_func (); below.
10546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10547     <limits.h> exists even on freestanding compilers. */
10548    
10549     #ifdef __STDC__
10550     # include <limits.h>
10551     #else
10552     # include <assert.h>
10553     #endif
10554    
10555     #undef $ac_func
10556    
10557     /* Override any gcc2 internal prototype to avoid an error. */
10558     #ifdef __cplusplus
10559     extern "C"
10560     {
10561     #endif
10562     /* We use char because int might match the return type of a gcc2
10563     builtin and then its argument prototype would still apply. */
10564     char $ac_func ();
10565     /* The GNU C library defines this for functions which it implements
10566     to always fail with ENOSYS. Some functions are actually named
10567     something starting with __ and the normal name is an alias. */
10568     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10569     choke me
10570     #else
10571     char (*f) () = $ac_func;
10572     #endif
10573     #ifdef __cplusplus
10574     }
10575     #endif
10576    
10577     int
10578     main ()
10579     {
10580     return f != $ac_func;
10581     ;
10582     return 0;
10583     }
10584     _ACEOF
10585     rm -f conftest.$ac_objext conftest$ac_exeext
10586     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587     (eval $ac_link) 2>conftest.er1
10588     ac_status=$?
10589     grep -v '^ *+' conftest.er1 >conftest.err
10590     rm -f conftest.er1
10591     cat conftest.err >&5
10592     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593     (exit $ac_status); } &&
10594     { ac_try='test -z "$ac_c_werror_flag"
10595     || test ! -s conftest.err'
10596     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597     (eval $ac_try) 2>&5
10598     ac_status=$?
10599     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600     (exit $ac_status); }; } &&
10601     { ac_try='test -s conftest$ac_exeext'
10602     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603     (eval $ac_try) 2>&5
10604     ac_status=$?
10605     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606     (exit $ac_status); }; }; then
10607     eval "$as_ac_var=yes"
10608     else
10609     echo "$as_me: failed program was:" >&5
10610     sed 's/^/| /' conftest.$ac_ext >&5
10611    
10612     eval "$as_ac_var=no"
10613     fi
10614     rm -f conftest.err conftest.$ac_objext \
10615     conftest$ac_exeext conftest.$ac_ext
10616     fi
10617     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10618     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10619     if test `eval echo '${'$as_ac_var'}'` = yes; then
10620     cat >>confdefs.h <<_ACEOF
10621     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10622     _ACEOF
10623    
10624     fi
10625     done
10626    
10627    
10628     else
10629    
10630     shared_modules=no
10631    
10632     fi
10633    
10634    
10635     fi
10636    
10637     fi
10638    
10639    
10640     cat >>confdefs.h <<_ACEOF
10641     #define SHARED_SUFFIX "$SUFFIX"
10642     _ACEOF
10643    
10644    
10645     if test "$shared_modules" = yes; then
10646     # The GNU linker requires the -export-dynamic option to make
10647     # all symbols visible in the dynamic symbol table.
10648     hold_ldflags=$LDFLAGS
10649     echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
10650     echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
10651     LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10652     cat >conftest.$ac_ext <<_ACEOF
10653     /* confdefs.h. */
10654     _ACEOF
10655     cat confdefs.h >>conftest.$ac_ext
10656     cat >>conftest.$ac_ext <<_ACEOF
10657     /* end confdefs.h. */
10658    
10659     int
10660     main ()
10661     {
10662     int i;
10663     ;
10664     return 0;
10665     }
10666     _ACEOF
10667     rm -f conftest.$ac_objext conftest$ac_exeext
10668     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669     (eval $ac_link) 2>conftest.er1
10670     ac_status=$?
10671     grep -v '^ *+' conftest.er1 >conftest.err
10672     rm -f conftest.er1
10673     cat conftest.err >&5
10674     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675     (exit $ac_status); } &&
10676     { ac_try='test -z "$ac_c_werror_flag"
10677     || test ! -s conftest.err'
10678     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679     (eval $ac_try) 2>&5
10680     ac_status=$?
10681     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682     (exit $ac_status); }; } &&
10683     { ac_try='test -s conftest$ac_exeext'
10684     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685     (eval $ac_try) 2>&5
10686     ac_status=$?
10687     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688     (exit $ac_status); }; }; then
10689     found=yes
10690     else
10691     echo "$as_me: failed program was:" >&5
10692     sed 's/^/| /' conftest.$ac_ext >&5
10693    
10694     found=no
10695     fi
10696     rm -f conftest.err conftest.$ac_objext \
10697     conftest$ac_exeext conftest.$ac_ext
10698     LDFLAGS=$hold_ldflags
10699    
10700     if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
10701     found="no, IRIX ld uses -B,dynamic"
10702     LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
10703     fi
10704    
10705     echo "$as_me:$LINENO: result: $found" >&5
10706     echo "${ECHO_T}$found" >&6
10707    
10708     if test "$found" = yes; then
10709     LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10710     fi
10711    
10712     echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
10713     echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
10714     if test "$SGS" = "yes"; then
10715     echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
10716     echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6
10717     PICFLAGS="-KPIC -DPIC -G"
10718     fi
10719    
10720     if test "$AppleGCC" = "yes"; then
10721     echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
10722     echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6
10723     PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
10724     fi
10725     if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then
10726     echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
10727     echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6
10728     PICFLAGS="+z -r -q -n -c"
10729     echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
10730     echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6
10731    
10732     if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
10733     echo "$as_me:$LINENO: result: no" >&5
10734     echo "${ECHO_T}no" >&6
10735     else
10736     echo "$as_me:$LINENO: result: yes" >&5
10737     echo "${ECHO_T}yes" >&6
10738     PICFLAGS="$PICFLAGS +ESfic"
10739     fi
10740    
10741     LDFLAGS="${LDFLAGS} -Wl,-E"
10742     fi
10743     if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then
10744     echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
10745     echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6
10746     PICFLAGS="-shared -expect_unresolved '*' "
10747     LDFLAGS="-call_shared"
10748     fi
10749     if test -z "$PICFLAGS"; then
10750     if test "$ac_cv_c_compiler_gnu" = "yes"; then
10751     echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
10752     echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6
10753     PICFLAGS="-fPIC -DPIC -shared"
10754     else
10755     echo "$as_me:$LINENO: result: no" >&5
10756     echo "${ECHO_T}no" >&6
10757     shared_modules=no
10758     fi
10759     fi
10760     fi
10761    
10762     if test "$shared_modules" = no; then
10763     DYNLINK_C=""
10764     MOD_TARGET="libmodules.a"
10765     MODULES_LIBS="../modules/libmodules.a"
10766     SEDOBJ=""
10767    
10768     cat >>confdefs.h <<\_ACEOF
10769     #define STATIC_MODULES 1
10770     _ACEOF
10771    
10772     { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
10773     echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
10774     fi
10775    
10776    
10777    
10778    
10779    
10780    
10781    
10782    
10783    
10784    
10785    
10786    
10787    
10788    
10789     if test "$prefix" = "NONE"; then
10790    
10791     cat >>confdefs.h <<_ACEOF
10792     #define IRCD_PREFIX "$ac_default_prefix"
10793     _ACEOF
10794    
10795    
10796     else
10797    
10798    
10799     prefix=`echo $prefix | sed 's/\/$//'`
10800    
10801     cat >>confdefs.h <<_ACEOF
10802     #define IRCD_PREFIX "$prefix"
10803     _ACEOF
10804    
10805    
10806     fi
10807    
10808 adx 61 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"
10809 adx 30
10810    
10811     cat >confcache <<\_ACEOF
10812     # This file is a shell script that caches the results of configure
10813     # tests run on this system so they can be shared between configure
10814     # scripts and configure runs, see configure's option --config-cache.
10815     # It is not useful on other systems. If it contains results you don't
10816     # want to keep, you may remove or edit it.
10817     #
10818     # config.status only pays attention to the cache file if you give it
10819     # the --recheck option to rerun configure.
10820     #
10821     # `ac_cv_env_foo' variables (set or unset) will be overridden when
10822     # loading this file, other *unset* `ac_cv_foo' will be assigned the
10823     # following values.
10824    
10825     _ACEOF
10826    
10827     # The following way of writing the cache mishandles newlines in values,
10828     # but we know of no workaround that is simple, portable, and efficient.
10829     # So, don't put newlines in cache variables' values.
10830     # Ultrix sh set writes to stderr and can't be redirected directly,
10831     # and sets the high bit in the cache file unless we assign to the vars.
10832     {
10833     (set) 2>&1 |
10834     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10835     *ac_space=\ *)
10836     # `set' does not quote correctly, so add quotes (double-quote
10837     # substitution turns \\\\ into \\, and sed turns \\ into \).
10838     sed -n \
10839     "s/'/'\\\\''/g;
10840     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10841     ;;
10842     *)
10843     # `set' quotes correctly as required by POSIX, so do not add quotes.
10844     sed -n \
10845     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10846     ;;
10847     esac;
10848     } |
10849     sed '
10850     t clear
10851     : clear
10852     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10853     t end
10854     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10855     : end' >>confcache
10856     if diff $cache_file confcache >/dev/null 2>&1; then :; else
10857     if test -w $cache_file; then
10858     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10859     cat confcache >$cache_file
10860     else
10861     echo "not updating unwritable cache $cache_file"
10862     fi
10863     fi
10864     rm -f confcache
10865    
10866     test "x$prefix" = xNONE && prefix=$ac_default_prefix
10867     # Let make expand exec_prefix.
10868     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10869    
10870     # VPATH may cause trouble with some makes, so we remove $(srcdir),
10871     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10872     # trailing colons and then remove the whole line if VPATH becomes empty
10873     # (actually we leave an empty line to preserve line numbers).
10874     if test "x$srcdir" = x.; then
10875     ac_vpsub='/^[ ]*VPATH[ ]*=/{
10876     s/:*\$(srcdir):*/:/;
10877     s/:*\${srcdir}:*/:/;
10878     s/:*@srcdir@:*/:/;
10879     s/^\([^=]*=[ ]*\):*/\1/;
10880     s/:*$//;
10881     s/^[^=]*=[ ]*$//;
10882     }'
10883     fi
10884    
10885     DEFS=-DHAVE_CONFIG_H
10886    
10887     ac_libobjs=
10888     ac_ltlibobjs=
10889     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10890     # 1. Remove the extension, and $U if already installed.
10891     ac_i=`echo "$ac_i" |
10892     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10893     # 2. Add them.
10894     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10895     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10896     done
10897     LIBOBJS=$ac_libobjs
10898    
10899     LTLIBOBJS=$ac_ltlibobjs
10900    
10901    
10902    
10903     : ${CONFIG_STATUS=./config.status}
10904     ac_clean_files_save=$ac_clean_files
10905     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10906     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10907     echo "$as_me: creating $CONFIG_STATUS" >&6;}
10908     cat >$CONFIG_STATUS <<_ACEOF
10909     #! $SHELL
10910     # Generated by $as_me.
10911     # Run this file to recreate the current configuration.
10912     # Compiler output produced by configure, useful for debugging
10913     # configure, is in config.log if it exists.
10914    
10915     debug=false
10916     ac_cs_recheck=false
10917     ac_cs_silent=false
10918     SHELL=\${CONFIG_SHELL-$SHELL}
10919     _ACEOF
10920    
10921     cat >>$CONFIG_STATUS <<\_ACEOF
10922     ## --------------------- ##
10923     ## M4sh Initialization. ##
10924     ## --------------------- ##
10925    
10926     # Be Bourne compatible
10927     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10928     emulate sh
10929     NULLCMD=:
10930     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10931     # is contrary to our usage. Disable this feature.
10932     alias -g '${1+"$@"}'='"$@"'
10933     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10934     set -o posix
10935     fi
10936     DUALCASE=1; export DUALCASE # for MKS sh
10937    
10938     # Support unset when possible.
10939     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10940     as_unset=unset
10941     else
10942     as_unset=false
10943     fi
10944    
10945    
10946     # Work around bugs in pre-3.0 UWIN ksh.
10947     $as_unset ENV MAIL MAILPATH
10948     PS1='$ '
10949     PS2='> '
10950     PS4='+ '
10951    
10952     # NLS nuisances.
10953     for as_var in \
10954     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10955     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10956     LC_TELEPHONE LC_TIME
10957     do
10958     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10959     eval $as_var=C; export $as_var
10960     else
10961     $as_unset $as_var
10962     fi
10963     done
10964    
10965     # Required to use basename.
10966     if expr a : '\(a\)' >/dev/null 2>&1; then
10967     as_expr=expr
10968     else
10969     as_expr=false
10970     fi
10971    
10972     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10973     as_basename=basename
10974     else
10975     as_basename=false
10976     fi
10977    
10978    
10979     # Name of the executable.
10980     as_me=`$as_basename "$0" ||
10981     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10982     X"$0" : 'X\(//\)$' \| \
10983     X"$0" : 'X\(/\)$' \| \
10984     . : '\(.\)' 2>/dev/null ||
10985     echo X/"$0" |
10986     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10987     /^X\/\(\/\/\)$/{ s//\1/; q; }
10988     /^X\/\(\/\).*/{ s//\1/; q; }
10989     s/.*/./; q'`
10990    
10991    
10992     # PATH needs CR, and LINENO needs CR and PATH.
10993     # Avoid depending upon Character Ranges.
10994     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10995     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10996     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10997     as_cr_digits='0123456789'
10998     as_cr_alnum=$as_cr_Letters$as_cr_digits
10999    
11000     # The user is always right.
11001     if test "${PATH_SEPARATOR+set}" != set; then
11002     echo "#! /bin/sh" >conf$$.sh
11003     echo "exit 0" >>conf$$.sh
11004     chmod +x conf$$.sh
11005     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11006     PATH_SEPARATOR=';'
11007     else
11008     PATH_SEPARATOR=:
11009     fi
11010     rm -f conf$$.sh
11011     fi
11012    
11013    
11014     as_lineno_1=$LINENO
11015     as_lineno_2=$LINENO
11016     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11017     test "x$as_lineno_1" != "x$as_lineno_2" &&
11018     test "x$as_lineno_3" = "x$as_lineno_2" || {
11019     # Find who we are. Look in the path if we contain no path at all
11020     # relative or not.
11021     case $0 in
11022     *[\\/]* ) as_myself=$0 ;;
11023     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024     for as_dir in $PATH
11025     do
11026     IFS=$as_save_IFS
11027     test -z "$as_dir" && as_dir=.
11028     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11029     done
11030    
11031     ;;
11032     esac
11033     # We did not find ourselves, most probably we were run as `sh COMMAND'
11034     # in which case we are not to be found in the path.
11035     if test "x$as_myself" = x; then
11036     as_myself=$0
11037     fi
11038     if test ! -f "$as_myself"; then
11039     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11040     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11041     { (exit 1); exit 1; }; }
11042     fi
11043     case $CONFIG_SHELL in
11044     '')
11045     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11047     do
11048     IFS=$as_save_IFS
11049     test -z "$as_dir" && as_dir=.
11050     for as_base in sh bash ksh sh5; do
11051     case $as_dir in
11052     /*)
11053     if ("$as_dir/$as_base" -c '
11054     as_lineno_1=$LINENO
11055     as_lineno_2=$LINENO
11056     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11057     test "x$as_lineno_1" != "x$as_lineno_2" &&
11058     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11059     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11060     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11061     CONFIG_SHELL=$as_dir/$as_base
11062     export CONFIG_SHELL
11063     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11064     fi;;
11065     esac
11066     done
11067     done
11068     ;;
11069     esac
11070    
11071     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11072     # uniformly replaced by the line number. The first 'sed' inserts a
11073     # line-number line before each line; the second 'sed' does the real
11074     # work. The second script uses 'N' to pair each line-number line
11075     # with the numbered line, and appends trailing '-' during
11076     # substitution so that $LINENO is not a special case at line end.
11077     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11078     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11079     sed '=' <$as_myself |
11080     sed '
11081     N
11082     s,$,-,
11083     : loop
11084     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11085     t loop
11086     s,-$,,
11087     s,^['$as_cr_digits']*\n,,
11088     ' >$as_me.lineno &&
11089     chmod +x $as_me.lineno ||
11090     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11091     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11092     { (exit 1); exit 1; }; }
11093    
11094     # Don't try to exec as it changes $[0], causing all sort of problems
11095     # (the dirname of $[0] is not the place where we might find the
11096     # original and so on. Autoconf is especially sensible to this).
11097     . ./$as_me.lineno
11098     # Exit status is that of the last command.
11099     exit
11100     }
11101    
11102    
11103     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11104     *c*,-n*) ECHO_N= ECHO_C='
11105     ' ECHO_T=' ' ;;
11106     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11107     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11108     esac
11109    
11110     if expr a : '\(a\)' >/dev/null 2>&1; then
11111     as_expr=expr
11112     else
11113     as_expr=false
11114     fi
11115    
11116     rm -f conf$$ conf$$.exe conf$$.file
11117     echo >conf$$.file
11118     if ln -s conf$$.file conf$$ 2>/dev/null; then
11119     # We could just check for DJGPP; but this test a) works b) is more generic
11120     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11121     if test -f conf$$.exe; then
11122     # Don't use ln at all; we don't have any links
11123     as_ln_s='cp -p'
11124     else
11125     as_ln_s='ln -s'
11126     fi
11127     elif ln conf$$.file conf$$ 2>/dev/null; then
11128     as_ln_s=ln
11129     else
11130     as_ln_s='cp -p'
11131     fi
11132     rm -f conf$$ conf$$.exe conf$$.file
11133    
11134     if mkdir -p . 2>/dev/null; then
11135     as_mkdir_p=:
11136     else
11137     test -d ./-p && rmdir ./-p
11138     as_mkdir_p=false
11139     fi
11140    
11141     as_executable_p="test -f"
11142    
11143     # Sed expression to map a string onto a valid CPP name.
11144     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11145    
11146     # Sed expression to map a string onto a valid variable name.
11147     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11148    
11149    
11150     # IFS
11151     # We need space, tab and new line, in precisely that order.
11152     as_nl='
11153     '
11154     IFS=" $as_nl"
11155    
11156     # CDPATH.
11157     $as_unset CDPATH
11158    
11159     exec 6>&1
11160    
11161     # Open the log real soon, to keep \$[0] and so on meaningful, and to
11162     # report actual input values of CONFIG_FILES etc. instead of their
11163     # values after options handling. Logging --version etc. is OK.
11164     exec 5>>config.log
11165     {
11166     echo
11167     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11168     ## Running $as_me. ##
11169     _ASBOX
11170     } >&5
11171     cat >&5 <<_CSEOF
11172    
11173 michael 244 This file was extended by ircd-hybrid $as_me 7.3, which was
11174 adx 30 generated by GNU Autoconf 2.59. Invocation command line was
11175    
11176     CONFIG_FILES = $CONFIG_FILES
11177     CONFIG_HEADERS = $CONFIG_HEADERS
11178     CONFIG_LINKS = $CONFIG_LINKS
11179     CONFIG_COMMANDS = $CONFIG_COMMANDS
11180     $ $0 $@
11181    
11182     _CSEOF
11183     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11184     echo >&5
11185     _ACEOF
11186    
11187     # Files that config.status was made for.
11188     if test -n "$ac_config_files"; then
11189     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11190     fi
11191    
11192     if test -n "$ac_config_headers"; then
11193     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11194     fi
11195    
11196     if test -n "$ac_config_links"; then
11197     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11198     fi
11199    
11200     if test -n "$ac_config_commands"; then
11201     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11202     fi
11203    
11204     cat >>$CONFIG_STATUS <<\_ACEOF
11205    
11206     ac_cs_usage="\
11207     \`$as_me' instantiates files from templates according to the
11208     current configuration.
11209    
11210     Usage: $0 [OPTIONS] [FILE]...
11211    
11212     -h, --help print this help, then exit
11213     -V, --version print version number, then exit
11214     -q, --quiet do not print progress messages
11215     -d, --debug don't remove temporary files
11216     --recheck update $as_me by reconfiguring in the same conditions
11217     --file=FILE[:TEMPLATE]
11218     instantiate the configuration file FILE
11219     --header=FILE[:TEMPLATE]
11220     instantiate the configuration header FILE
11221    
11222     Configuration files:
11223     $config_files
11224    
11225     Configuration headers:
11226     $config_headers
11227    
11228     Report bugs to <bug-autoconf@gnu.org>."
11229     _ACEOF
11230    
11231     cat >>$CONFIG_STATUS <<_ACEOF
11232     ac_cs_version="\\
11233 michael 244 ircd-hybrid config.status 7.3
11234 adx 30 configured by $0, generated by GNU Autoconf 2.59,
11235     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11236    
11237     Copyright (C) 2003 Free Software Foundation, Inc.
11238     This config.status script is free software; the Free Software Foundation
11239     gives unlimited permission to copy, distribute and modify it."
11240     srcdir=$srcdir
11241     INSTALL="$INSTALL"
11242     _ACEOF
11243    
11244     cat >>$CONFIG_STATUS <<\_ACEOF
11245     # If no file are specified by the user, then we need to provide default
11246     # value. By we need to know if files were specified by the user.
11247     ac_need_defaults=:
11248     while test $# != 0
11249     do
11250     case $1 in
11251     --*=*)
11252     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11253     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11254     ac_shift=:
11255     ;;
11256     -*)
11257     ac_option=$1
11258     ac_optarg=$2
11259     ac_shift=shift
11260     ;;
11261     *) # This is not an option, so the user has probably given explicit
11262     # arguments.
11263     ac_option=$1
11264     ac_need_defaults=false;;
11265     esac
11266    
11267     case $ac_option in
11268     # Handling of the options.
11269     _ACEOF
11270     cat >>$CONFIG_STATUS <<\_ACEOF
11271     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11272     ac_cs_recheck=: ;;
11273     --version | --vers* | -V )
11274     echo "$ac_cs_version"; exit 0 ;;
11275     --he | --h)
11276     # Conflict between --help and --header
11277     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11278     Try \`$0 --help' for more information." >&5
11279     echo "$as_me: error: ambiguous option: $1
11280     Try \`$0 --help' for more information." >&2;}
11281     { (exit 1); exit 1; }; };;
11282     --help | --hel | -h )
11283     echo "$ac_cs_usage"; exit 0 ;;
11284     --debug | --d* | -d )
11285     debug=: ;;
11286     --file | --fil | --fi | --f )
11287     $ac_shift
11288     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11289     ac_need_defaults=false;;
11290     --header | --heade | --head | --hea )
11291     $ac_shift
11292     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11293     ac_need_defaults=false;;
11294     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11295     | -silent | --silent | --silen | --sile | --sil | --si | --s)
11296     ac_cs_silent=: ;;
11297    
11298     # This is an error.
11299     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11300     Try \`$0 --help' for more information." >&5
11301     echo "$as_me: error: unrecognized option: $1
11302     Try \`$0 --help' for more information." >&2;}
11303     { (exit 1); exit 1; }; } ;;
11304    
11305     *) ac_config_targets="$ac_config_targets $1" ;;
11306    
11307     esac
11308     shift
11309     done
11310    
11311     ac_configure_extra_args=
11312    
11313     if $ac_cs_silent; then
11314     exec 6>/dev/null
11315     ac_configure_extra_args="$ac_configure_extra_args --silent"
11316     fi
11317    
11318     _ACEOF
11319     cat >>$CONFIG_STATUS <<_ACEOF
11320     if \$ac_cs_recheck; then
11321     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11322     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11323     fi
11324    
11325     _ACEOF
11326    
11327    
11328    
11329    
11330    
11331     cat >>$CONFIG_STATUS <<\_ACEOF
11332     for ac_config_target in $ac_config_targets
11333     do
11334     case "$ac_config_target" in
11335     # Handling of arguments.
11336     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11337     "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
11338     "servlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
11339     "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
11340     "contrib/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
11341     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11342     "messages/Makefile" ) CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
11343     "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
11344     "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11345     "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11346     "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
11347 adx 59 "libio/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/Makefile" ;;
11348 adx 61 "libio/comm/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/comm/Makefile" ;;
11349     "libio/mem/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/mem/Makefile" ;;
11350     "libio/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/misc/Makefile" ;;
11351     "libio/net/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/net/Makefile" ;;
11352     "libio/string/Makefile" ) CONFIG_FILES="$CONFIG_FILES libio/string/Makefile" ;;
11353 adx 30 "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
11354     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11355     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11356     { (exit 1); exit 1; }; };;
11357     esac
11358     done
11359    
11360     # If the user did not use the arguments to specify the items to instantiate,
11361     # then the envvar interface is used. Set only those that are not.
11362     # We use the long form for the default assignment because of an extremely
11363     # bizarre bug on SunOS 4.1.3.
11364     if $ac_need_defaults; then
11365     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11366     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11367     fi
11368    
11369     # Have a temporary directory for convenience. Make it in the build tree
11370     # simply because there is no reason to put it here, and in addition,
11371     # creating and moving files from /tmp can sometimes cause problems.
11372     # Create a temporary directory, and hook for its removal unless debugging.
11373     $debug ||
11374     {
11375     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11376     trap '{ (exit 1); exit 1; }' 1 2 13 15
11377     }
11378    
11379     # Create a (secure) tmp directory for tmp files.
11380    
11381     {
11382     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11383     test -n "$tmp" && test -d "$tmp"
11384     } ||
11385     {
11386     tmp=./confstat$$-$RANDOM
11387     (umask 077 && mkdir $tmp)
11388     } ||
11389     {
11390     echo "$me: cannot create a temporary directory in ." >&2
11391     { (exit 1); exit 1; }
11392     }
11393    
11394     _ACEOF
11395    
11396     cat >>$CONFIG_STATUS <<_ACEOF
11397    
11398     #
11399     # CONFIG_FILES section.
11400     #
11401    
11402     # No need to generate the scripts if there are no CONFIG_FILES.
11403     # This happens for instance when ./config.status config.h
11404     if test -n "\$CONFIG_FILES"; then
11405     # Protect against being on the right side of a sed subst in config.status.
11406     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11407     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11408     s,@SHELL@,$SHELL,;t t
11409     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11410     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11411     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11412     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11413     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11414     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11415     s,@exec_prefix@,$exec_prefix,;t t
11416     s,@prefix@,$prefix,;t t
11417     s,@program_transform_name@,$program_transform_name,;t t
11418     s,@bindir@,$bindir,;t t
11419     s,@sbindir@,$sbindir,;t t
11420     s,@libexecdir@,$libexecdir,;t t
11421     s,@datadir@,$datadir,;t t
11422     s,@sysconfdir@,$sysconfdir,;t t
11423     s,@sharedstatedir@,$sharedstatedir,;t t
11424     s,@localstatedir@,$localstatedir,;t t
11425     s,@libdir@,$libdir,;t t
11426     s,@includedir@,$includedir,;t t
11427     s,@oldincludedir@,$oldincludedir,;t t
11428     s,@infodir@,$infodir,;t t
11429     s,@mandir@,$mandir,;t t
11430     s,@build_alias@,$build_alias,;t t
11431     s,@host_alias@,$host_alias,;t t
11432     s,@target_alias@,$target_alias,;t t
11433     s,@DEFS@,$DEFS,;t t
11434     s,@ECHO_C@,$ECHO_C,;t t
11435     s,@ECHO_N@,$ECHO_N,;t t
11436     s,@ECHO_T@,$ECHO_T,;t t
11437     s,@LIBS@,$LIBS,;t t
11438     s,@CC@,$CC,;t t
11439     s,@CFLAGS@,$CFLAGS,;t t
11440     s,@LDFLAGS@,$LDFLAGS,;t t
11441     s,@CPPFLAGS@,$CPPFLAGS,;t t
11442     s,@ac_ct_CC@,$ac_ct_CC,;t t
11443     s,@EXEEXT@,$EXEEXT,;t t
11444     s,@OBJEXT@,$OBJEXT,;t t
11445     s,@MKDEP@,$MKDEP,;t t
11446     s,@MAKEDEPEND@,$MAKEDEPEND,;t t
11447     s,@STDOUT@,$STDOUT,;t t
11448     s,@CPP@,$CPP,;t t
11449     s,@EGREP@,$EGREP,;t t
11450     s,@SET_MAKE@,$SET_MAKE,;t t
11451     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11452     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11453     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11454     s,@RM@,$RM,;t t
11455     s,@CP@,$CP,;t t
11456     s,@MV@,$MV,;t t
11457     s,@LN@,$LN,;t t
11458     s,@SED@,$SED,;t t
11459     s,@AR@,$AR,;t t
11460     s,@LD@,$LD,;t t
11461     s,@TEST@,$TEST,;t t
11462     s,@INET_MISC@,$INET_MISC,;t t
11463     s,@CRYPT_C@,$CRYPT_C,;t t
11464     s,@CRYPT_LIB@,$CRYPT_LIB,;t t
11465     s,@SNPRINTF_C@,$SNPRINTF_C,;t t
11466     s,@ENCSPEED@,$ENCSPEED,;t t
11467     s,@ZLIB_LD@,$ZLIB_LD,;t t
11468     s,@SELECT_TYPE@,$SELECT_TYPE,;t t
11469     s,@CLOBBER@,$CLOBBER,;t t
11470     s,@BALLOC_C@,$BALLOC_C,;t t
11471     s,@EXAMPLE_CONF@,$EXAMPLE_CONF,;t t
11472     s,@MODULES_LIBS@,$MODULES_LIBS,;t t
11473     s,@MOD_TARGET@,$MOD_TARGET,;t t
11474     s,@SSL_SRCS_ENABLE@,$SSL_SRCS_ENABLE,;t t
11475     s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
11476     s,@SSL_LIBS@,$SSL_LIBS,;t t
11477     s,@PICFLAGS@,$PICFLAGS,;t t
11478     s,@IRC_CFLAGS@,$IRC_CFLAGS,;t t
11479     s,@SEDOBJ@,$SEDOBJ,;t t
11480     s,@DYNLINK_C@,$DYNLINK_C,;t t
11481     s,@LIBOBJS@,$LIBOBJS,;t t
11482     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11483     CEOF
11484    
11485     _ACEOF
11486    
11487     cat >>$CONFIG_STATUS <<\_ACEOF
11488     # Split the substitutions into bite-sized pieces for seds with
11489     # small command number limits, like on Digital OSF/1 and HP-UX.
11490     ac_max_sed_lines=48
11491     ac_sed_frag=1 # Number of current file.
11492     ac_beg=1 # First line for current file.
11493     ac_end=$ac_max_sed_lines # Line after last line for current file.
11494     ac_more_lines=:
11495     ac_sed_cmds=
11496     while $ac_more_lines; do
11497     if test $ac_beg -gt 1; then
11498     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11499     else
11500     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11501     fi
11502     if test ! -s $tmp/subs.frag; then
11503     ac_more_lines=false
11504     else
11505     # The purpose of the label and of the branching condition is to
11506     # speed up the sed processing (if there are no `@' at all, there
11507     # is no need to browse any of the substitutions).
11508     # These are the two extra sed commands mentioned above.
11509     (echo ':t
11510     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11511     if test -z "$ac_sed_cmds"; then
11512     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11513     else
11514     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11515     fi
11516     ac_sed_frag=`expr $ac_sed_frag + 1`
11517     ac_beg=$ac_end
11518     ac_end=`expr $ac_end + $ac_max_sed_lines`
11519     fi
11520     done
11521     if test -z "$ac_sed_cmds"; then
11522     ac_sed_cmds=cat
11523     fi
11524     fi # test -n "$CONFIG_FILES"
11525    
11526     _ACEOF
11527     cat >>$CONFIG_STATUS <<\_ACEOF
11528     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11529     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11530     case $ac_file in
11531     - | *:- | *:-:* ) # input from stdin
11532     cat >$tmp/stdin
11533     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11534     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11535     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11536     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11537     * ) ac_file_in=$ac_file.in ;;
11538     esac
11539    
11540     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11541     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11542     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11543     X"$ac_file" : 'X\(//\)[^/]' \| \
11544     X"$ac_file" : 'X\(//\)$' \| \
11545     X"$ac_file" : 'X\(/\)' \| \
11546     . : '\(.\)' 2>/dev/null ||
11547     echo X"$ac_file" |
11548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11549     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11550     /^X\(\/\/\)$/{ s//\1/; q; }
11551     /^X\(\/\).*/{ s//\1/; q; }
11552     s/.*/./; q'`
11553     { if $as_mkdir_p; then
11554     mkdir -p "$ac_dir"
11555     else
11556     as_dir="$ac_dir"
11557     as_dirs=
11558     while test ! -d "$as_dir"; do
11559     as_dirs="$as_dir $as_dirs"
11560     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11561     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11562     X"$as_dir" : 'X\(//\)[^/]' \| \
11563     X"$as_dir" : 'X\(//\)$' \| \
11564     X"$as_dir" : 'X\(/\)' \| \
11565     . : '\(.\)' 2>/dev/null ||
11566     echo X"$as_dir" |
11567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11568     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11569     /^X\(\/\/\)$/{ s//\1/; q; }
11570     /^X\(\/\).*/{ s//\1/; q; }
11571     s/.*/./; q'`
11572     done
11573     test ! -n "$as_dirs" || mkdir $as_dirs
11574     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11575     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11576     { (exit 1); exit 1; }; }; }
11577    
11578     ac_builddir=.
11579    
11580     if test "$ac_dir" != .; then
11581     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11582     # A "../" for each directory in $ac_dir_suffix.
11583     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11584     else
11585     ac_dir_suffix= ac_top_builddir=
11586     fi
11587    
11588     case $srcdir in
11589     .) # No --srcdir option. We are building in place.
11590     ac_srcdir=.
11591     if test -z "$ac_top_builddir"; then
11592     ac_top_srcdir=.
11593     else
11594     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11595     fi ;;
11596     [\\/]* | ?:[\\/]* ) # Absolute path.
11597     ac_srcdir=$srcdir$ac_dir_suffix;
11598     ac_top_srcdir=$srcdir ;;
11599     *) # Relative path.
11600     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11601     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11602     esac
11603    
11604     # Do not use `cd foo && pwd` to compute absolute paths, because
11605     # the directories may not exist.
11606     case `pwd` in
11607     .) ac_abs_builddir="$ac_dir";;
11608     *)
11609     case "$ac_dir" in
11610     .) ac_abs_builddir=`pwd`;;
11611     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11612     *) ac_abs_builddir=`pwd`/"$ac_dir";;
11613     esac;;
11614     esac
11615     case $ac_abs_builddir in
11616     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11617     *)
11618     case ${ac_top_builddir}. in
11619     .) ac_abs_top_builddir=$ac_abs_builddir;;
11620     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11621     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11622     esac;;
11623     esac
11624     case $ac_abs_builddir in
11625     .) ac_abs_srcdir=$ac_srcdir;;
11626     *)
11627     case $ac_srcdir in
11628     .) ac_abs_srcdir=$ac_abs_builddir;;
11629     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11630     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11631     esac;;
11632     esac
11633     case $ac_abs_builddir in
11634     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11635     *)
11636     case $ac_top_srcdir in
11637     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11638     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11639     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11640     esac;;
11641     esac
11642    
11643    
11644     case $INSTALL in
11645     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11646     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11647     esac
11648    
11649     if test x"$ac_file" != x-; then
11650     { echo "$as_me:$LINENO: creating $ac_file" >&5
11651     echo "$as_me: creating $ac_file" >&6;}
11652     rm -f "$ac_file"
11653     fi
11654     # Let's still pretend it is `configure' which instantiates (i.e., don't
11655     # use $as_me), people would be surprised to read:
11656     # /* config.h. Generated by config.status. */
11657     if test x"$ac_file" = x-; then
11658     configure_input=
11659     else
11660     configure_input="$ac_file. "
11661     fi
11662     configure_input=$configure_input"Generated from `echo $ac_file_in |
11663     sed 's,.*/,,'` by configure."
11664    
11665     # First look for the input files in the build tree, otherwise in the
11666     # src tree.
11667     ac_file_inputs=`IFS=:
11668     for f in $ac_file_in; do
11669     case $f in
11670     -) echo $tmp/stdin ;;
11671     [\\/$]*)
11672     # Absolute (can't be DOS-style, as IFS=:)
11673     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11674     echo "$as_me: error: cannot find input file: $f" >&2;}
11675     { (exit 1); exit 1; }; }
11676     echo "$f";;
11677     *) # Relative
11678     if test -f "$f"; then
11679     # Build tree
11680     echo "$f"
11681     elif test -f "$srcdir/$f"; then
11682     # Source tree
11683     echo "$srcdir/$f"
11684     else
11685     # /dev/null tree
11686     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11687     echo "$as_me: error: cannot find input file: $f" >&2;}
11688     { (exit 1); exit 1; }; }
11689     fi;;
11690     esac
11691     done` || { (exit 1); exit 1; }
11692     _ACEOF
11693     cat >>$CONFIG_STATUS <<_ACEOF
11694     sed "$ac_vpsub
11695     $extrasub
11696     _ACEOF
11697     cat >>$CONFIG_STATUS <<\_ACEOF
11698     :t
11699     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11700     s,@configure_input@,$configure_input,;t t
11701     s,@srcdir@,$ac_srcdir,;t t
11702     s,@abs_srcdir@,$ac_abs_srcdir,;t t
11703     s,@top_srcdir@,$ac_top_srcdir,;t t
11704     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11705     s,@builddir@,$ac_builddir,;t t
11706     s,@abs_builddir@,$ac_abs_builddir,;t t
11707     s,@top_builddir@,$ac_top_builddir,;t t
11708     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11709     s,@INSTALL@,$ac_INSTALL,;t t
11710     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11711     rm -f $tmp/stdin
11712     if test x"$ac_file" != x-; then
11713     mv $tmp/out $ac_file
11714     else
11715     cat $tmp/out
11716     rm -f $tmp/out
11717     fi
11718    
11719     done
11720     _ACEOF
11721     cat >>$CONFIG_STATUS <<\_ACEOF
11722    
11723     #
11724     # CONFIG_HEADER section.
11725     #
11726    
11727     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11728     # NAME is the cpp macro being defined and VALUE is the value it is being given.
11729     #
11730     # ac_d sets the value in "#define NAME VALUE" lines.
11731     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11732     ac_dB='[ ].*$,\1#\2'
11733     ac_dC=' '
11734     ac_dD=',;t'
11735     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11736     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11737     ac_uB='$,\1#\2define\3'
11738     ac_uC=' '
11739     ac_uD=',;t'
11740    
11741     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11742     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11743     case $ac_file in
11744     - | *:- | *:-:* ) # input from stdin
11745     cat >$tmp/stdin
11746     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11747     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11748     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11749     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11750     * ) ac_file_in=$ac_file.in ;;
11751     esac
11752    
11753     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11754     echo "$as_me: creating $ac_file" >&6;}
11755    
11756     # First look for the input files in the build tree, otherwise in the
11757     # src tree.
11758     ac_file_inputs=`IFS=:
11759     for f in $ac_file_in; do
11760     case $f in
11761     -) echo $tmp/stdin ;;
11762     [\\/$]*)
11763     # Absolute (can't be DOS-style, as IFS=:)
11764     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11765     echo "$as_me: error: cannot find input file: $f" >&2;}
11766     { (exit 1); exit 1; }; }
11767     # Do quote $f, to prevent DOS paths from being IFS'd.
11768     echo "$f";;
11769     *) # Relative
11770     if test -f "$f"; then
11771     # Build tree
11772     echo "$f"
11773     elif test -f "$srcdir/$f"; then
11774     # Source tree
11775     echo "$srcdir/$f"
11776     else
11777     # /dev/null tree
11778     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11779     echo "$as_me: error: cannot find input file: $f" >&2;}
11780     { (exit 1); exit 1; }; }
11781     fi;;
11782     esac
11783     done` || { (exit 1); exit 1; }
11784     # Remove the trailing spaces.
11785     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11786    
11787     _ACEOF
11788    
11789     # Transform confdefs.h into two sed scripts, `conftest.defines' and
11790     # `conftest.undefs', that substitutes the proper values into
11791     # config.h.in to produce config.h. The first handles `#define'
11792     # templates, and the second `#undef' templates.
11793     # And first: Protect against being on the right side of a sed subst in
11794     # config.status. Protect against being in an unquoted here document
11795     # in config.status.
11796     rm -f conftest.defines conftest.undefs
11797     # Using a here document instead of a string reduces the quoting nightmare.
11798     # Putting comments in sed scripts is not portable.
11799     #
11800     # `end' is used to avoid that the second main sed command (meant for
11801     # 0-ary CPP macros) applies to n-ary macro definitions.
11802     # See the Autoconf documentation for `clear'.
11803     cat >confdef2sed.sed <<\_ACEOF
11804     s/[\\&,]/\\&/g
11805     s,[\\$`],\\&,g
11806     t clear
11807     : clear
11808     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11809     t end
11810     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11811     : end
11812     _ACEOF
11813     # If some macros were called several times there might be several times
11814     # the same #defines, which is useless. Nevertheless, we may not want to
11815     # sort them, since we want the *last* AC-DEFINE to be honored.
11816     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11817     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11818     rm -f confdef2sed.sed
11819    
11820     # This sed command replaces #undef with comments. This is necessary, for
11821     # example, in the case of _POSIX_SOURCE, which is predefined and required
11822     # on some systems where configure will not decide to define it.
11823     cat >>conftest.undefs <<\_ACEOF
11824     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11825     _ACEOF
11826    
11827     # Break up conftest.defines because some shells have a limit on the size
11828     # of here documents, and old seds have small limits too (100 cmds).
11829     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11830     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11831     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11832     echo ' :' >>$CONFIG_STATUS
11833     rm -f conftest.tail
11834     while grep . conftest.defines >/dev/null
11835     do
11836     # Write a limited-size here document to $tmp/defines.sed.
11837     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11838     # Speed up: don't consider the non `#define' lines.
11839     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11840     # Work around the forget-to-reset-the-flag bug.
11841     echo 't clr' >>$CONFIG_STATUS
11842     echo ': clr' >>$CONFIG_STATUS
11843     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11844     echo 'CEOF
11845     sed -f $tmp/defines.sed $tmp/in >$tmp/out
11846     rm -f $tmp/in
11847     mv $tmp/out $tmp/in
11848     ' >>$CONFIG_STATUS
11849     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11850     rm -f conftest.defines
11851     mv conftest.tail conftest.defines
11852     done
11853     rm -f conftest.defines
11854     echo ' fi # grep' >>$CONFIG_STATUS
11855     echo >>$CONFIG_STATUS
11856    
11857     # Break up conftest.undefs because some shells have a limit on the size
11858     # of here documents, and old seds have small limits too (100 cmds).
11859     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11860     rm -f conftest.tail
11861     while grep . conftest.undefs >/dev/null
11862     do
11863     # Write a limited-size here document to $tmp/undefs.sed.
11864     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11865     # Speed up: don't consider the non `#undef'
11866     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11867     # Work around the forget-to-reset-the-flag bug.
11868     echo 't clr' >>$CONFIG_STATUS
11869     echo ': clr' >>$CONFIG_STATUS
11870     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11871     echo 'CEOF
11872     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11873     rm -f $tmp/in
11874     mv $tmp/out $tmp/in
11875     ' >>$CONFIG_STATUS
11876     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11877     rm -f conftest.undefs
11878     mv conftest.tail conftest.undefs
11879     done
11880     rm -f conftest.undefs
11881    
11882     cat >>$CONFIG_STATUS <<\_ACEOF
11883     # Let's still pretend it is `configure' which instantiates (i.e., don't
11884     # use $as_me), people would be surprised to read:
11885     # /* config.h. Generated by config.status. */
11886     if test x"$ac_file" = x-; then
11887     echo "/* Generated by configure. */" >$tmp/config.h
11888     else
11889     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11890     fi
11891     cat $tmp/in >>$tmp/config.h
11892     rm -f $tmp/in
11893     if test x"$ac_file" != x-; then
11894     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11895     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11896     echo "$as_me: $ac_file is unchanged" >&6;}
11897     else
11898     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11899     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11900     X"$ac_file" : 'X\(//\)[^/]' \| \
11901     X"$ac_file" : 'X\(//\)$' \| \
11902     X"$ac_file" : 'X\(/\)' \| \
11903     . : '\(.\)' 2>/dev/null ||
11904     echo X"$ac_file" |
11905     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11906     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11907     /^X\(\/\/\)$/{ s//\1/; q; }
11908     /^X\(\/\).*/{ s//\1/; q; }
11909     s/.*/./; q'`
11910     { if $as_mkdir_p; then
11911     mkdir -p "$ac_dir"
11912     else
11913     as_dir="$ac_dir"
11914     as_dirs=
11915     while test ! -d "$as_dir"; do
11916     as_dirs="$as_dir $as_dirs"
11917     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11918     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11919     X"$as_dir" : 'X\(//\)[^/]' \| \
11920     X"$as_dir" : 'X\(//\)$' \| \
11921     X"$as_dir" : 'X\(/\)' \| \
11922     . : '\(.\)' 2>/dev/null ||
11923     echo X"$as_dir" |
11924     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11925     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11926     /^X\(\/\/\)$/{ s//\1/; q; }
11927     /^X\(\/\).*/{ s//\1/; q; }
11928     s/.*/./; q'`
11929     done
11930     test ! -n "$as_dirs" || mkdir $as_dirs
11931     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11932     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11933     { (exit 1); exit 1; }; }; }
11934    
11935     rm -f $ac_file
11936     mv $tmp/config.h $ac_file
11937     fi
11938     else
11939     cat $tmp/config.h
11940     rm -f $tmp/config.h
11941     fi
11942     done
11943     _ACEOF
11944    
11945     cat >>$CONFIG_STATUS <<\_ACEOF
11946    
11947     { (exit 0); exit 0; }
11948     _ACEOF
11949     chmod +x $CONFIG_STATUS
11950     ac_clean_files=$ac_clean_files_save
11951    
11952    
11953     # configure is writing to config.log, and then calls config.status.
11954     # config.status does its own redirection, appending to config.log.
11955     # Unfortunately, on DOS this fails, as config.log is still kept open
11956     # by configure, so config.status won't be able to write to it; its
11957     # output is simply discarded. So we exec the FD to /dev/null,
11958     # effectively closing config.log, so it can be properly (re)opened and
11959     # appended to by config.status. When coming back to configure, we
11960     # need to make the FD available again.
11961     if test "$no_create" != yes; then
11962     ac_cs_success=:
11963     ac_config_status_args=
11964     test "$silent" = yes &&
11965     ac_config_status_args="$ac_config_status_args --quiet"
11966     exec 5>/dev/null
11967     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11968     exec 5>>config.log
11969     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11970     # would make configure fail if this is the last instruction.
11971     $ac_cs_success || { (exit 1); exit 1; }
11972     fi
11973    
11974    
11975     rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend
11976    
11977    
11978     echo
11979     echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
11980     echo
11981    
11982     echo "Installing into: $prefix"
11983    
11984     echo "Ziplinks ................ $zlib"
11985    
11986     if test ! -z "$cf_openssl_ciphers"; then
11987     tmpresult="yes - ${cf_openssl_ciphers}"
11988     else
11989     tmpresult=no
11990     fi
11991    
11992     echo "OpenSSL ................. $tmpresult"
11993    
11994     if test "$shared_modules" = yes; then
11995     tmpresult=shared
11996     else
11997     tmpresult=static
11998     fi
11999    
12000     echo "Modules ................. $tmpresult"
12001     echo "IPv6 support ............ $have_v6"
12002     echo "Net I/O implementation .. $SELECT_TYPE"
12003    
12004     if test "$efnet" = "yes"; then
12005     tmpresult="yes (use example.efnet.conf)"
12006     else
12007     tmpresult="no (use example.conf)"
12008     fi
12009    
12010     echo "EFnet server ............ $tmpresult"
12011     echo "Halfops support ......... $halfops"
12012     echo "Small network ........... $small_net"
12013     echo "G-Line voting ........... $gline_voting"
12014     echo
12015     echo "Configured limits:"
12016     echo "NICKLEN ................. $NICKLEN"
12017     echo "TOPICLEN ................ $TOPICLEN"
12018     echo

Properties

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