]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/tcpdump/configure
This commit was generated by cvs2svn to compensate for changes in r145479,
[FreeBSD/FreeBSD.git] / contrib / tcpdump / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.169.2.3 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # 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
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tcpdump.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
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-smb            enable possibly-buggy SMB printer default=yes
848   --disable-smb           disable possibly-buggy SMB printer
849   --enable-ipv6           enable ipv6 (with ipv4) support
850   --disable-ipv6          disable ipv6 support
851
852 Optional Packages:
853   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
854   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
855   --without-gcc           don't use gcc
856   --without-crypto        disable crypto support
857
858 Some influential environment variables:
859   CC          C compiler command
860   CFLAGS      C compiler flags
861   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
862               nonstandard directory <lib dir>
863   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
864               headers in a nonstandard directory <include dir>
865   CPP         C preprocessor
866
867 Use these variables to override the choices made by `configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
869
870 _ACEOF
871 fi
872
873 if test "$ac_init_help" = "recursive"; then
874   # If there are subdirs, report their specific --help.
875   ac_popdir=`pwd`
876   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877     test -d $ac_dir || continue
878     ac_builddir=.
879
880 if test "$ac_dir" != .; then
881   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882   # A "../" for each directory in $ac_dir_suffix.
883   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 else
885   ac_dir_suffix= ac_top_builddir=
886 fi
887
888 case $srcdir in
889   .)  # No --srcdir option.  We are building in place.
890     ac_srcdir=.
891     if test -z "$ac_top_builddir"; then
892        ac_top_srcdir=.
893     else
894        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895     fi ;;
896   [\\/]* | ?:[\\/]* )  # Absolute path.
897     ac_srcdir=$srcdir$ac_dir_suffix;
898     ac_top_srcdir=$srcdir ;;
899   *) # Relative path.
900     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901     ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 esac
903 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904 # absolute.
905 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909
910     cd $ac_dir
911     # Check for guested configure; otherwise get Cygnus style configure.
912     if test -f $ac_srcdir/configure.gnu; then
913       echo
914       $SHELL $ac_srcdir/configure.gnu  --help=recursive
915     elif test -f $ac_srcdir/configure; then
916       echo
917       $SHELL $ac_srcdir/configure  --help=recursive
918     elif test -f $ac_srcdir/configure.ac ||
919            test -f $ac_srcdir/configure.in; then
920       echo
921       $ac_configure --help
922     else
923       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924     fi
925     cd $ac_popdir
926   done
927 fi
928
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
931   cat <<\_ACEOF
932
933 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934 Free Software Foundation, Inc.
935 This configure script is free software; the Free Software Foundation
936 gives unlimited permission to copy, distribute and modify it.
937 _ACEOF
938   exit 0
939 fi
940 exec 5>config.log
941 cat >&5 <<_ACEOF
942 This file contains any messages produced by compilers while
943 running configure, to aid debugging if configure makes a mistake.
944
945 It was created by $as_me, which was
946 generated by GNU Autoconf 2.57.  Invocation command line was
947
948   $ $0 $@
949
950 _ACEOF
951 {
952 cat <<_ASUNAME
953 ## --------- ##
954 ## Platform. ##
955 ## --------- ##
956
957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962
963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
965
966 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
967 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
970 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
971 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
972 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
973
974 _ASUNAME
975
976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977 for as_dir in $PATH
978 do
979   IFS=$as_save_IFS
980   test -z "$as_dir" && as_dir=.
981   echo "PATH: $as_dir"
982 done
983
984 } >&5
985
986 cat >&5 <<_ACEOF
987
988
989 ## ----------- ##
990 ## Core tests. ##
991 ## ----------- ##
992
993 _ACEOF
994
995
996 # Keep a trace of the command line.
997 # Strip out --no-create and --no-recursion so they do not pile up.
998 # Strip out --silent because we don't want to record it for future runs.
999 # Also quote any args containing shell meta-characters.
1000 # Make two passes to allow for proper duplicate-argument suppression.
1001 ac_configure_args=
1002 ac_configure_args0=
1003 ac_configure_args1=
1004 ac_sep=
1005 ac_must_keep_next=false
1006 for ac_pass in 1 2
1007 do
1008   for ac_arg
1009   do
1010     case $ac_arg in
1011     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013     | -silent | --silent | --silen | --sile | --sil)
1014       continue ;;
1015     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017     esac
1018     case $ac_pass in
1019     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020     2)
1021       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022       if test $ac_must_keep_next = true; then
1023         ac_must_keep_next=false # Got value, back to normal.
1024       else
1025         case $ac_arg in
1026           *=* | --config-cache | -C | -disable-* | --disable-* \
1027           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029           | -with-* | --with-* | -without-* | --without-* | --x)
1030             case "$ac_configure_args0 " in
1031               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1032             esac
1033             ;;
1034           -* ) ac_must_keep_next=true ;;
1035         esac
1036       fi
1037       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038       # Get rid of the leading space.
1039       ac_sep=" "
1040       ;;
1041     esac
1042   done
1043 done
1044 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log.  We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053   # Save into config.log some information that might help in debugging.
1054   {
1055     echo
1056
1057     cat <<\_ASBOX
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1061 _ASBOX
1062     echo
1063     # The following way of writing the cache mishandles newlines in values,
1064 {
1065   (set) 2>&1 |
1066     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067     *ac_space=\ *)
1068       sed -n \
1069         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071       ;;
1072     *)
1073       sed -n \
1074         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075       ;;
1076     esac;
1077 }
1078     echo
1079
1080     cat <<\_ASBOX
1081 ## ----------------- ##
1082 ## Output variables. ##
1083 ## ----------------- ##
1084 _ASBOX
1085     echo
1086     for ac_var in $ac_subst_vars
1087     do
1088       eval ac_val=$`echo $ac_var`
1089       echo "$ac_var='"'"'$ac_val'"'"'"
1090     done | sort
1091     echo
1092
1093     if test -n "$ac_subst_files"; then
1094       cat <<\_ASBOX
1095 ## ------------- ##
1096 ## Output files. ##
1097 ## ------------- ##
1098 _ASBOX
1099       echo
1100       for ac_var in $ac_subst_files
1101       do
1102         eval ac_val=$`echo $ac_var`
1103         echo "$ac_var='"'"'$ac_val'"'"'"
1104       done | sort
1105       echo
1106     fi
1107
1108     if test -s confdefs.h; then
1109       cat <<\_ASBOX
1110 ## ----------- ##
1111 ## confdefs.h. ##
1112 ## ----------- ##
1113 _ASBOX
1114       echo
1115       sed "/^$/d" confdefs.h | sort
1116       echo
1117     fi
1118     test "$ac_signal" != 0 &&
1119       echo "$as_me: caught signal $ac_signal"
1120     echo "$as_me: exit $exit_status"
1121   } >&5
1122   rm -f core core.* *.core &&
1123   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1124     exit $exit_status
1125      ' 0
1126 for ac_signal in 1 2 13 15; do
1127   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128 done
1129 ac_signal=0
1130
1131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132 rm -rf conftest* confdefs.h
1133 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134 echo >confdefs.h
1135
1136 # Predefined preprocessor variables.
1137
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_NAME "$PACKAGE_NAME"
1140 _ACEOF
1141
1142
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145 _ACEOF
1146
1147
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1150 _ACEOF
1151
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_STRING "$PACKAGE_STRING"
1155 _ACEOF
1156
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160 _ACEOF
1161
1162
1163 # Let the site file select an alternate cache file if it wants to.
1164 # Prefer explicitly selected file to automatically selected ones.
1165 if test -z "$CONFIG_SITE"; then
1166   if test "x$prefix" != xNONE; then
1167     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168   else
1169     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1170   fi
1171 fi
1172 for ac_site_file in $CONFIG_SITE; do
1173   if test -r "$ac_site_file"; then
1174     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175 echo "$as_me: loading site script $ac_site_file" >&6;}
1176     sed 's/^/| /' "$ac_site_file" >&5
1177     . "$ac_site_file"
1178   fi
1179 done
1180
1181 if test -r "$cache_file"; then
1182   # Some versions of bash will fail to source /dev/null (special
1183   # files actually), so we avoid doing that.
1184   if test -f "$cache_file"; then
1185     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186 echo "$as_me: loading cache $cache_file" >&6;}
1187     case $cache_file in
1188       [\\/]* | ?:[\\/]* ) . $cache_file;;
1189       *)                      . ./$cache_file;;
1190     esac
1191   fi
1192 else
1193   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194 echo "$as_me: creating cache $cache_file" >&6;}
1195   >$cache_file
1196 fi
1197
1198 # Check that the precious variables saved in the cache have kept the same
1199 # value.
1200 ac_cache_corrupted=false
1201 for ac_var in `(set) 2>&1 |
1202                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204   eval ac_new_set=\$ac_env_${ac_var}_set
1205   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206   eval ac_new_val="\$ac_env_${ac_var}_value"
1207   case $ac_old_set,$ac_new_set in
1208     set,)
1209       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211       ac_cache_corrupted=: ;;
1212     ,set)
1213       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215       ac_cache_corrupted=: ;;
1216     ,);;
1217     *)
1218       if test "x$ac_old_val" != "x$ac_new_val"; then
1219         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1222 echo "$as_me:   former value:  $ac_old_val" >&2;}
1223         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1224 echo "$as_me:   current value: $ac_new_val" >&2;}
1225         ac_cache_corrupted=:
1226       fi;;
1227   esac
1228   # Pass precious variables to config.status.
1229   if test "$ac_new_set" = set; then
1230     case $ac_new_val in
1231     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233     *) ac_arg=$ac_var=$ac_new_val ;;
1234     esac
1235     case " $ac_configure_args " in
1236       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1237       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238     esac
1239   fi
1240 done
1241 if $ac_cache_corrupted; then
1242   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246    { (exit 1); exit 1; }; }
1247 fi
1248
1249 ac_ext=c
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274 ac_aux_dir=
1275 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1276   if test -f $ac_dir/install-sh; then
1277     ac_aux_dir=$ac_dir
1278     ac_install_sh="$ac_aux_dir/install-sh -c"
1279     break
1280   elif test -f $ac_dir/install.sh; then
1281     ac_aux_dir=$ac_dir
1282     ac_install_sh="$ac_aux_dir/install.sh -c"
1283     break
1284   elif test -f $ac_dir/shtool; then
1285     ac_aux_dir=$ac_dir
1286     ac_install_sh="$ac_aux_dir/shtool install -c"
1287     break
1288   fi
1289 done
1290 if test -z "$ac_aux_dir"; then
1291   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1293    { (exit 1); exit 1; }; }
1294 fi
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1298
1299 # Make sure we can run config.sub.
1300 $ac_config_sub sun4 >/dev/null 2>&1 ||
1301   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1302 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1303    { (exit 1); exit 1; }; }
1304
1305 echo "$as_me:$LINENO: checking build system type" >&5
1306 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1307 if test "${ac_cv_build+set}" = set; then
1308   echo $ECHO_N "(cached) $ECHO_C" >&6
1309 else
1310   ac_cv_build_alias=$build_alias
1311 test -z "$ac_cv_build_alias" &&
1312   ac_cv_build_alias=`$ac_config_guess`
1313 test -z "$ac_cv_build_alias" &&
1314   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1315 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1316    { (exit 1); exit 1; }; }
1317 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1318   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1319 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1320    { (exit 1); exit 1; }; }
1321
1322 fi
1323 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1324 echo "${ECHO_T}$ac_cv_build" >&6
1325 build=$ac_cv_build
1326 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1327 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1328 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1329
1330
1331 echo "$as_me:$LINENO: checking host system type" >&5
1332 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1333 if test "${ac_cv_host+set}" = set; then
1334   echo $ECHO_N "(cached) $ECHO_C" >&6
1335 else
1336   ac_cv_host_alias=$host_alias
1337 test -z "$ac_cv_host_alias" &&
1338   ac_cv_host_alias=$ac_cv_build_alias
1339 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1340   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1341 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1342    { (exit 1); exit 1; }; }
1343
1344 fi
1345 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1346 echo "${ECHO_T}$ac_cv_host" >&6
1347 host=$ac_cv_host
1348 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1351
1352
1353
1354
1355
1356
1357
1358
1359 # Check whether --with-gcc or --without-gcc was given.
1360 if test "${with_gcc+set}" = set; then
1361   withval="$with_gcc"
1362
1363 fi;
1364     V_CCOPT="-O"
1365     V_INCLS=""
1366     if test "${srcdir}" != "." ; then
1367             V_INCLS="-I\$(srcdir)"
1368     fi
1369     if test "${CFLAGS+set}" = set; then
1370             LBL_CFLAGS="$CFLAGS"
1371     fi
1372     if test -z "$CC" ; then
1373             case "$host_os" in
1374
1375             bsdi*)
1376                     # Extract the first word of "shlicc2", so it can be a program name with args.
1377 set dummy shlicc2; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1381   echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383   if test -n "$SHLICC2"; then
1384   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1385 else
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   for ac_exec_ext in '' $ac_executable_extensions; do
1392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393     ac_cv_prog_SHLICC2="yes"
1394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395     break 2
1396   fi
1397 done
1398 done
1399
1400   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1401 fi
1402 fi
1403 SHLICC2=$ac_cv_prog_SHLICC2
1404 if test -n "$SHLICC2"; then
1405   echo "$as_me:$LINENO: result: $SHLICC2" >&5
1406 echo "${ECHO_T}$SHLICC2" >&6
1407 else
1408   echo "$as_me:$LINENO: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1410 fi
1411
1412                     if test $SHLICC2 = yes ; then
1413                             CC=shlicc2
1414                             export CC
1415                     fi
1416                     ;;
1417             esac
1418     fi
1419     if test -z "$CC" -a "$with_gcc" = no ; then
1420             CC=cc
1421             export CC
1422     fi
1423     ac_ext=c
1424 ac_cpp='$CPP $CPPFLAGS'
1425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 if test -n "$ac_tool_prefix"; then
1429   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CC+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   if test -n "$CC"; then
1437   ac_cv_prog_CC="$CC" # Let the user override the test.
1438 else
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 for as_dir in $PATH
1441 do
1442   IFS=$as_save_IFS
1443   test -z "$as_dir" && as_dir=.
1444   for ac_exec_ext in '' $ac_executable_extensions; do
1445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448     break 2
1449   fi
1450 done
1451 done
1452
1453 fi
1454 fi
1455 CC=$ac_cv_prog_CC
1456 if test -n "$CC"; then
1457   echo "$as_me:$LINENO: result: $CC" >&5
1458 echo "${ECHO_T}$CC" >&6
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464 fi
1465 if test -z "$ac_cv_prog_CC"; then
1466   ac_ct_CC=$CC
1467   # Extract the first word of "gcc", so it can be a program name with args.
1468 set dummy gcc; ac_word=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1472   echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474   if test -n "$ac_ct_CC"; then
1475   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1476 else
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1479 do
1480   IFS=$as_save_IFS
1481   test -z "$as_dir" && as_dir=.
1482   for ac_exec_ext in '' $ac_executable_extensions; do
1483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484     ac_cv_prog_ac_ct_CC="gcc"
1485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486     break 2
1487   fi
1488 done
1489 done
1490
1491 fi
1492 fi
1493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1494 if test -n "$ac_ct_CC"; then
1495   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1496 echo "${ECHO_T}$ac_ct_CC" >&6
1497 else
1498   echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1500 fi
1501
1502   CC=$ac_ct_CC
1503 else
1504   CC="$ac_cv_prog_CC"
1505 fi
1506
1507 if test -z "$CC"; then
1508   if test -n "$ac_tool_prefix"; then
1509   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1510 set dummy ${ac_tool_prefix}cc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_CC+set}" = set; then
1514   echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516   if test -n "$CC"; then
1517   ac_cv_prog_CC="$CC" # Let the user override the test.
1518 else
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1521 do
1522   IFS=$as_save_IFS
1523   test -z "$as_dir" && as_dir=.
1524   for ac_exec_ext in '' $ac_executable_extensions; do
1525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526     ac_cv_prog_CC="${ac_tool_prefix}cc"
1527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528     break 2
1529   fi
1530 done
1531 done
1532
1533 fi
1534 fi
1535 CC=$ac_cv_prog_CC
1536 if test -n "$CC"; then
1537   echo "$as_me:$LINENO: result: $CC" >&5
1538 echo "${ECHO_T}$CC" >&6
1539 else
1540   echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 fi
1543
1544 fi
1545 if test -z "$ac_cv_prog_CC"; then
1546   ac_ct_CC=$CC
1547   # Extract the first word of "cc", so it can be a program name with args.
1548 set dummy cc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   if test -n "$ac_ct_CC"; then
1555   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1556 else
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 for as_dir in $PATH
1559 do
1560   IFS=$as_save_IFS
1561   test -z "$as_dir" && as_dir=.
1562   for ac_exec_ext in '' $ac_executable_extensions; do
1563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564     ac_cv_prog_ac_ct_CC="cc"
1565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566     break 2
1567   fi
1568 done
1569 done
1570
1571 fi
1572 fi
1573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1574 if test -n "$ac_ct_CC"; then
1575   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1576 echo "${ECHO_T}$ac_ct_CC" >&6
1577 else
1578   echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 fi
1581
1582   CC=$ac_ct_CC
1583 else
1584   CC="$ac_cv_prog_CC"
1585 fi
1586
1587 fi
1588 if test -z "$CC"; then
1589   # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   if test -n "$CC"; then
1597   ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else
1599   ac_prog_rejected=no
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603   IFS=$as_save_IFS
1604   test -z "$as_dir" && as_dir=.
1605   for ac_exec_ext in '' $ac_executable_extensions; do
1606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1608        ac_prog_rejected=yes
1609        continue
1610      fi
1611     ac_cv_prog_CC="cc"
1612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613     break 2
1614   fi
1615 done
1616 done
1617
1618 if test $ac_prog_rejected = yes; then
1619   # We found a bogon in the path, so make sure we never use it.
1620   set dummy $ac_cv_prog_CC
1621   shift
1622   if test $# != 0; then
1623     # We chose a different compiler from the bogus one.
1624     # However, it has the same basename, so the bogon will be chosen
1625     # first if we set CC to just the basename; use the full file name.
1626     shift
1627     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1628   fi
1629 fi
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634   echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637   echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$CC"; then
1643   if test -n "$ac_tool_prefix"; then
1644   for ac_prog in cl
1645   do
1646     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CC+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   if test -n "$CC"; then
1654   ac_cv_prog_CC="$CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   for ac_exec_ext in '' $ac_executable_extensions; do
1662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665     break 2
1666   fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 CC=$ac_cv_prog_CC
1673 if test -n "$CC"; then
1674   echo "$as_me:$LINENO: result: $CC" >&5
1675 echo "${ECHO_T}$CC" >&6
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681     test -n "$CC" && break
1682   done
1683 fi
1684 if test -z "$CC"; then
1685   ac_ct_CC=$CC
1686   for ac_prog in cl
1687 do
1688   # Extract the first word of "$ac_prog", so it can be a program name with args.
1689 set dummy $ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$ac_ct_CC"; then
1696   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     ac_cv_prog_ac_ct_CC="$ac_prog"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708   fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723   test -n "$ac_ct_CC" && break
1724 done
1725
1726   CC=$ac_ct_CC
1727 fi
1728
1729 fi
1730
1731
1732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1733 See \`config.log' for more details." >&5
1734 echo "$as_me: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&2;}
1736    { (exit 1); exit 1; }; }
1737
1738 # Provide some information about the compiler.
1739 echo "$as_me:$LINENO:" \
1740      "checking for C compiler version" >&5
1741 ac_compiler=`set X $ac_compile; echo $2`
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1743   (eval $ac_compiler --version </dev/null >&5) 2>&5
1744   ac_status=$?
1745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746   (exit $ac_status); }
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1748   (eval $ac_compiler -v </dev/null >&5) 2>&5
1749   ac_status=$?
1750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751   (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1753   (eval $ac_compiler -V </dev/null >&5) 2>&5
1754   ac_status=$?
1755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756   (exit $ac_status); }
1757
1758 cat >conftest.$ac_ext <<_ACEOF
1759 #line $LINENO "configure"
1760 /* confdefs.h.  */
1761 _ACEOF
1762 cat confdefs.h >>conftest.$ac_ext
1763 cat >>conftest.$ac_ext <<_ACEOF
1764 /* end confdefs.h.  */
1765
1766 int
1767 main ()
1768 {
1769
1770   ;
1771   return 0;
1772 }
1773 _ACEOF
1774 ac_clean_files_save=$ac_clean_files
1775 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1776 # Try to create an executable without -o first, disregard a.out.
1777 # It will help us diagnose broken compilers, and finding out an intuition
1778 # of exeext.
1779 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1780 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1781 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1783   (eval $ac_link_default) 2>&5
1784   ac_status=$?
1785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786   (exit $ac_status); }; then
1787   # Find the output, starting from the most likely.  This scheme is
1788 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1789 # resort.
1790
1791 # Be careful to initialize this variable, since it used to be cached.
1792 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1793 ac_cv_exeext=
1794 # b.out is created by i960 compilers.
1795 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1796 do
1797   test -f "$ac_file" || continue
1798   case $ac_file in
1799     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1800         ;;
1801     conftest.$ac_ext )
1802         # This is the source file.
1803         ;;
1804     [ab].out )
1805         # We found the default executable, but exeext='' is most
1806         # certainly right.
1807         break;;
1808     *.* )
1809         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1810         # FIXME: I believe we export ac_cv_exeext for Libtool,
1811         # but it would be cool to find out if it's true.  Does anybody
1812         # maintain Libtool? --akim.
1813         export ac_cv_exeext
1814         break;;
1815     * )
1816         break;;
1817   esac
1818 done
1819 else
1820   echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&2;}
1827    { (exit 77); exit 77; }; }
1828 fi
1829
1830 ac_exeext=$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_file" >&5
1832 echo "${ECHO_T}$ac_file" >&6
1833
1834 # Check the compiler produces executables we can run.  If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839 # If not cross compiling, check that we can run a simple program.
1840 if test "$cross_compiling" != yes; then
1841   if { ac_try='./$ac_file'
1842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1843   (eval $ac_try) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }; }; then
1847     cross_compiling=no
1848   else
1849     if test "$cross_compiling" = maybe; then
1850         cross_compiling=yes
1851     else
1852         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1853 If you meant to cross compile, use \`--host'.
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot run C compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&2;}
1858    { (exit 1); exit 1; }; }
1859     fi
1860   fi
1861 fi
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1864
1865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1866 ac_clean_files=$ac_clean_files_save
1867 # Check the compiler produces executables we can run.  If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1871 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1872 echo "${ECHO_T}$cross_compiling" >&6
1873
1874 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1877   (eval $ac_link) 2>&5
1878   ac_status=$?
1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880   (exit $ac_status); }; then
1881   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1882 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1883 # work properly (i.e., refer to `conftest.exe'), while it won't with
1884 # `rm'.
1885 for ac_file in conftest.exe conftest conftest.*; do
1886   test -f "$ac_file" || continue
1887   case $ac_file in
1888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1889     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890           export ac_cv_exeext
1891           break;;
1892     * ) break;;
1893   esac
1894 done
1895 else
1896   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&2;}
1900    { (exit 1); exit 1; }; }
1901 fi
1902
1903 rm -f conftest$ac_cv_exeext
1904 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1905 echo "${ECHO_T}$ac_cv_exeext" >&6
1906
1907 rm -f conftest.$ac_ext
1908 EXEEXT=$ac_cv_exeext
1909 ac_exeext=$EXEEXT
1910 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1911 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1912 if test "${ac_cv_objext+set}" = set; then
1913   echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915   cat >conftest.$ac_ext <<_ACEOF
1916 #line $LINENO "configure"
1917 /* confdefs.h.  */
1918 _ACEOF
1919 cat confdefs.h >>conftest.$ac_ext
1920 cat >>conftest.$ac_ext <<_ACEOF
1921 /* end confdefs.h.  */
1922
1923 int
1924 main ()
1925 {
1926
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 rm -f conftest.o conftest.obj
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933   (eval $ac_compile) 2>&5
1934   ac_status=$?
1935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936   (exit $ac_status); }; then
1937   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1938   case $ac_file in
1939     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1940     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1941        break;;
1942   esac
1943 done
1944 else
1945   echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&2;}
1952    { (exit 1); exit 1; }; }
1953 fi
1954
1955 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1956 fi
1957 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1958 echo "${ECHO_T}$ac_cv_objext" >&6
1959 OBJEXT=$ac_cv_objext
1960 ac_objext=$OBJEXT
1961 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1964   echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966   cat >conftest.$ac_ext <<_ACEOF
1967 #line $LINENO "configure"
1968 /* confdefs.h.  */
1969 _ACEOF
1970 cat confdefs.h >>conftest.$ac_ext
1971 cat >>conftest.$ac_ext <<_ACEOF
1972 /* end confdefs.h.  */
1973
1974 int
1975 main ()
1976 {
1977 #ifndef __GNUC__
1978        choke me
1979 #endif
1980
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987   (eval $ac_compile) 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_compiler_gnu=yes
1998 else
1999   echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002 ac_compiler_gnu=no
2003 fi
2004 rm -f conftest.$ac_objext conftest.$ac_ext
2005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2006
2007 fi
2008 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2009 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2010 GCC=`test $ac_compiler_gnu = yes && echo yes`
2011 ac_test_CFLAGS=${CFLAGS+set}
2012 ac_save_CFLAGS=$CFLAGS
2013 CFLAGS="-g"
2014 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2015 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2016 if test "${ac_cv_prog_cc_g+set}" = set; then
2017   echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019   cat >conftest.$ac_ext <<_ACEOF
2020 #line $LINENO "configure"
2021 /* confdefs.h.  */
2022 _ACEOF
2023 cat confdefs.h >>conftest.$ac_ext
2024 cat >>conftest.$ac_ext <<_ACEOF
2025 /* end confdefs.h.  */
2026
2027 int
2028 main ()
2029 {
2030
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037   (eval $ac_compile) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); } &&
2041          { ac_try='test -s conftest.$ac_objext'
2042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043   (eval $ac_try) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }; }; then
2047   ac_cv_prog_cc_g=yes
2048 else
2049   echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_cv_prog_cc_g=no
2053 fi
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059   CFLAGS=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061   if test "$GCC" = yes; then
2062     CFLAGS="-g -O2"
2063   else
2064     CFLAGS="-g"
2065   fi
2066 else
2067   if test "$GCC" = yes; then
2068     CFLAGS="-O2"
2069   else
2070     CFLAGS=
2071   fi
2072 fi
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   ac_cv_prog_cc_stdc=no
2079 ac_save_CC=$CC
2080 cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 /* confdefs.h.  */
2083 _ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h.  */
2087 #include <stdarg.h>
2088 #include <stdio.h>
2089 #include <sys/types.h>
2090 #include <sys/stat.h>
2091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2092 struct buf { int x; };
2093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2094 static char *e (p, i)
2095      char **p;
2096      int i;
2097 {
2098   return p[i];
2099 }
2100 static char *f (char * (*g) (char **, int), char **p, ...)
2101 {
2102   char *s;
2103   va_list v;
2104   va_start (v,p);
2105   s = g (p, va_arg (v,int));
2106   va_end (v);
2107   return s;
2108 }
2109 int test (int i, double x);
2110 struct s1 {int (*f) (int a);};
2111 struct s2 {int (*f) (double a);};
2112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2113 int argc;
2114 char **argv;
2115 int
2116 main ()
2117 {
2118 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 # Don't try gcc -ansi; that turns off useful extensions and
2124 # breaks some systems' header files.
2125 # AIX                   -qlanglvl=ansi
2126 # Ultrix and OSF/1      -std1
2127 # HP-UX 10.20 and later -Ae
2128 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2129 # SVR4                  -Xc -D__EXTENSIONS__
2130 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2131 do
2132   CC="$ac_save_CC $ac_arg"
2133   rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135   (eval $ac_compile) 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); } &&
2139          { ac_try='test -s conftest.$ac_objext'
2140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141   (eval $ac_try) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }; }; then
2145   ac_cv_prog_cc_stdc=$ac_arg
2146 break
2147 else
2148   echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 fi
2152 rm -f conftest.$ac_objext
2153 done
2154 rm -f conftest.$ac_ext conftest.$ac_objext
2155 CC=$ac_save_CC
2156
2157 fi
2158
2159 case "x$ac_cv_prog_cc_stdc" in
2160   x|xno)
2161     echo "$as_me:$LINENO: result: none needed" >&5
2162 echo "${ECHO_T}none needed" >&6 ;;
2163   *)
2164     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2166     CC="$CC $ac_cv_prog_cc_stdc" ;;
2167 esac
2168
2169 # Some people use a C++ compiler to compile C.  Since we use `exit',
2170 # in C++ we need to declare it.  In case someone uses the same compiler
2171 # for both compiling C and C++ we need to have the C++ compiler decide
2172 # the declaration of exit, since it's the most demanding environment.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #ifndef __cplusplus
2175   choke me
2176 #endif
2177 _ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   for ac_declaration in \
2191    ''\
2192    '#include <stdlib.h>' \
2193    'extern "C" void std::exit (int) throw (); using std::exit;' \
2194    'extern "C" void std::exit (int); using std::exit;' \
2195    'extern "C" void exit (int) throw ();' \
2196    'extern "C" void exit (int);' \
2197    'void exit (int);'
2198 do
2199   cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2201 /* confdefs.h.  */
2202 _ACEOF
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h.  */
2206 #include <stdlib.h>
2207 $ac_declaration
2208 int
2209 main ()
2210 {
2211 exit (42);
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218   (eval $ac_compile) 2>&5
2219   ac_status=$?
2220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221   (exit $ac_status); } &&
2222          { ac_try='test -s conftest.$ac_objext'
2223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224   (eval $ac_try) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }; }; then
2228   :
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 continue
2234 fi
2235 rm -f conftest.$ac_objext conftest.$ac_ext
2236   cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 /* confdefs.h.  */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h.  */
2243 $ac_declaration
2244 int
2245 main ()
2246 {
2247 exit (42);
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); } &&
2258          { ac_try='test -s conftest.$ac_objext'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264   break
2265 else
2266   echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 fi
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 done
2272 rm -f conftest*
2273 if test -n "$ac_declaration"; then
2274   echo '#ifdef __cplusplus' >>confdefs.h
2275   echo $ac_declaration      >>confdefs.h
2276   echo '#endif'             >>confdefs.h
2277 fi
2278
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 fi
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285 ac_ext=c
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290
2291     if test "$GCC" = yes ; then
2292             if test "$SHLICC2" = yes ; then
2293                     ac_cv_lbl_gcc_vers=2
2294                     V_CCOPT="-O2"
2295             else
2296                     echo "$as_me:$LINENO: checking gcc version" >&5
2297 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2298                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2302                             sed -e '/^gcc version /!d' \
2303                                 -e 's/^gcc version //' \
2304                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2305                                 -e 's/\..*//'`
2306 fi
2307
2308                     echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2309 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2310                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2311                             V_CCOPT="-O2"
2312                     fi
2313             fi
2314     else
2315             echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2316 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2317             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320
2321 cat >conftest.$ac_ext <<_ACEOF
2322 #line $LINENO "configure"
2323 /* confdefs.h.  */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h.  */
2328 #include <sys/types.h>
2329 int
2330 main ()
2331 {
2332 int frob(int, char *)
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339   (eval $ac_compile) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); } &&
2343          { ac_try='test -s conftest.$ac_objext'
2344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345   (eval $ac_try) 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }; }; then
2349   ac_cv_lbl_cc_ansi_prototypes=yes
2350 else
2351   echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 ac_cv_lbl_cc_ansi_prototypes=no
2355 fi
2356 rm -f conftest.$ac_objext conftest.$ac_ext
2357 fi
2358
2359             echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2360 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2361             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2362                     case "$host_os" in
2363
2364                     hpux*)
2365                             echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2366 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2367                             savedcflags="$CFLAGS"
2368                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2369                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   cat >conftest.$ac_ext <<_ACEOF
2373 #line $LINENO "configure"
2374 /* confdefs.h.  */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h.  */
2379 #include <sys/types.h>
2380 int
2381 main ()
2382 {
2383 int frob(int, char *)
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390   (eval $ac_compile) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); } &&
2394          { ac_try='test -s conftest.$ac_objext'
2395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396   (eval $ac_try) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; }; then
2400   ac_cv_lbl_cc_hpux_cc_aa=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_cv_lbl_cc_hpux_cc_aa=no
2406 fi
2407 rm -f conftest.$ac_objext conftest.$ac_ext
2408 fi
2409
2410                             echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2411 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2412                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2413                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2414 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2415    { (exit 1); exit 1; }; }
2416                             fi
2417                             CFLAGS="$savedcflags"
2418                             V_CCOPT="-Aa $V_CCOPT"
2419                             cat >>confdefs.h <<\_ACEOF
2420 #define _HPUX_SOURCE 1
2421 _ACEOF
2422
2423                             ;;
2424
2425                     *)
2426                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2427 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2428    { (exit 1); exit 1; }; }
2429                             ;;
2430                     esac
2431             fi
2432             V_INCLS="$V_INCLS -I/usr/local/include"
2433             LDFLAGS="$LDFLAGS -L/usr/local/lib"
2434
2435             case "$host_os" in
2436
2437             irix*)
2438                     V_CCOPT="$V_CCOPT -xansi -signed -O"
2439                     ;;
2440
2441             osf*)
2442                     V_CCOPT="$V_CCOPT -std1 -O"
2443                     ;;
2444
2445             ultrix*)
2446                     echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2447 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2448                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 /* confdefs.h.  */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h.  */
2458 #include <sys/types.h>
2459 int
2460 main ()
2461 {
2462 struct a { int b; };
2463                             void c(const struct a *)
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470   (eval $ac_compile) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -s conftest.$ac_objext'
2475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476   (eval $ac_try) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; }; then
2480   ac_cv_lbl_cc_const_proto=yes
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 ac_cv_lbl_cc_const_proto=no
2486 fi
2487 rm -f conftest.$ac_objext conftest.$ac_ext
2488 fi
2489
2490                     echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2491 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2492                     if test $ac_cv_lbl_cc_const_proto = no ; then
2493                             cat >>confdefs.h <<\_ACEOF
2494 #define const
2495 _ACEOF
2496
2497                     fi
2498                     ;;
2499             esac
2500     fi
2501
2502 echo "$as_me:$LINENO: checking for inline" >&5
2503 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2504     if test "${ac_cv_lbl_inline+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507
2508         ac_cv_lbl_inline=""
2509         ac_lbl_cc_inline=no
2510         for ac_lbl_inline in inline __inline__ __inline
2511         do
2512             cat >conftest.$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2514 /* confdefs.h.  */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h.  */
2519 #define inline $ac_lbl_inline
2520                 static inline struct iltest *foo(void);
2521                 struct iltest {
2522                     int iltest1;
2523                     int iltest2;
2524                 };
2525
2526                 static inline struct iltest *
2527                 foo()
2528                 {
2529                     static struct iltest xxx;
2530
2531                     return &xxx;
2532                 }
2533 int
2534 main ()
2535 {
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543   (eval $ac_compile) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); } &&
2547          { ac_try='test -s conftest.$ac_objext'
2548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; }; then
2553   ac_lbl_cc_inline=yes
2554 else
2555   echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 fi
2559 rm -f conftest.$ac_objext conftest.$ac_ext
2560             if test "$ac_lbl_cc_inline" = yes ; then
2561                 break;
2562             fi
2563         done
2564         if test "$ac_lbl_cc_inline" = yes ; then
2565             ac_cv_lbl_inline=$ac_lbl_inline
2566         fi
2567 fi
2568
2569     if test ! -z "$ac_cv_lbl_inline" ; then
2570         echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2571 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2572     else
2573         echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575     fi
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define inline $ac_cv_lbl_inline
2579 _ACEOF
2580
2581
2582 echo "$as_me:$LINENO: checking for __attribute__" >&5
2583 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2584 if test "${ac_cv___attribute__+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587
2588 cat >conftest.$ac_ext <<_ACEOF
2589 #line $LINENO "configure"
2590 /* confdefs.h.  */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h.  */
2595
2596 #include <stdlib.h>
2597
2598 int
2599 main ()
2600 {
2601
2602 static void foo(void) __attribute__ ((noreturn));
2603
2604 static void
2605 foo(void)
2606 {
2607   exit(1);
2608 }
2609
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616   (eval $ac_compile) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   ac_cv___attribute__=yes
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 ac_cv___attribute__=no
2632 fi
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 if test "$ac_cv___attribute__" = "yes"; then
2637
2638 cat >>confdefs.h <<\_ACEOF
2639 #define HAVE___ATTRIBUTE__ 1
2640 _ACEOF
2641
2642   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2643 else
2644   V_DEFS="$V_DEFS -D_U_=\"\""
2645 fi
2646 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2647 echo "${ECHO_T}$ac_cv___attribute__" >&6
2648
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2657 # On Suns, sometimes $CPP names a directory.
2658 if test -n "$CPP" && test -d "$CPP"; then
2659   CPP=
2660 fi
2661 if test -z "$CPP"; then
2662   if test "${ac_cv_prog_CPP+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665       # Double quotes because CPP needs to be expanded
2666     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2667     do
2668       ac_preproc_ok=false
2669 for ac_c_preproc_warn_flag in '' yes
2670 do
2671   # Use a header file that comes with gcc, so configuring glibc
2672   # with a fresh cross-compiler works.
2673   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674   # <limits.h> exists even on freestanding compilers.
2675   # On the NeXT, cc -E runs the code through the compiler's parser,
2676   # not just through cpp. "Syntax error" is here to catch this case.
2677   cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684 #ifdef __STDC__
2685 # include <limits.h>
2686 #else
2687 # include <assert.h>
2688 #endif
2689                      Syntax error
2690 _ACEOF
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } >/dev/null; then
2699   if test -s conftest.err; then
2700     ac_cpp_err=$ac_c_preproc_warn_flag
2701   else
2702     ac_cpp_err=
2703   fi
2704 else
2705   ac_cpp_err=yes
2706 fi
2707 if test -z "$ac_cpp_err"; then
2708   :
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713   # Broken: fails on valid input.
2714 continue
2715 fi
2716 rm -f conftest.err conftest.$ac_ext
2717
2718   # OK, works on sane cases.  Now check whether non-existent headers
2719   # can be detected and how.
2720   cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727 #include <ac_nonexistent.h>
2728 _ACEOF
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2731   ac_status=$?
2732   grep -v '^ *+' conftest.er1 >conftest.err
2733   rm -f conftest.er1
2734   cat conftest.err >&5
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); } >/dev/null; then
2737   if test -s conftest.err; then
2738     ac_cpp_err=$ac_c_preproc_warn_flag
2739   else
2740     ac_cpp_err=
2741   fi
2742 else
2743   ac_cpp_err=yes
2744 fi
2745 if test -z "$ac_cpp_err"; then
2746   # Broken: success on invalid input.
2747 continue
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752   # Passes both tests.
2753 ac_preproc_ok=:
2754 break
2755 fi
2756 rm -f conftest.err conftest.$ac_ext
2757
2758 done
2759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760 rm -f conftest.err conftest.$ac_ext
2761 if $ac_preproc_ok; then
2762   break
2763 fi
2764
2765     done
2766     ac_cv_prog_CPP=$CPP
2767
2768 fi
2769   CPP=$ac_cv_prog_CPP
2770 else
2771   ac_cv_prog_CPP=$CPP
2772 fi
2773 echo "$as_me:$LINENO: result: $CPP" >&5
2774 echo "${ECHO_T}$CPP" >&6
2775 ac_preproc_ok=false
2776 for ac_c_preproc_warn_flag in '' yes
2777 do
2778   # Use a header file that comes with gcc, so configuring glibc
2779   # with a fresh cross-compiler works.
2780   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781   # <limits.h> exists even on freestanding compilers.
2782   # On the NeXT, cc -E runs the code through the compiler's parser,
2783   # not just through cpp. "Syntax error" is here to catch this case.
2784   cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2786 /* confdefs.h.  */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h.  */
2791 #ifdef __STDC__
2792 # include <limits.h>
2793 #else
2794 # include <assert.h>
2795 #endif
2796                      Syntax error
2797 _ACEOF
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } >/dev/null; then
2806   if test -s conftest.err; then
2807     ac_cpp_err=$ac_c_preproc_warn_flag
2808   else
2809     ac_cpp_err=
2810   fi
2811 else
2812   ac_cpp_err=yes
2813 fi
2814 if test -z "$ac_cpp_err"; then
2815   :
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820   # Broken: fails on valid input.
2821 continue
2822 fi
2823 rm -f conftest.err conftest.$ac_ext
2824
2825   # OK, works on sane cases.  Now check whether non-existent headers
2826   # can be detected and how.
2827   cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834 #include <ac_nonexistent.h>
2835 _ACEOF
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } >/dev/null; then
2844   if test -s conftest.err; then
2845     ac_cpp_err=$ac_c_preproc_warn_flag
2846   else
2847     ac_cpp_err=
2848   fi
2849 else
2850   ac_cpp_err=yes
2851 fi
2852 if test -z "$ac_cpp_err"; then
2853   # Broken: success on invalid input.
2854 continue
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859   # Passes both tests.
2860 ac_preproc_ok=:
2861 break
2862 fi
2863 rm -f conftest.err conftest.$ac_ext
2864
2865 done
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.$ac_ext
2868 if $ac_preproc_ok; then
2869   :
2870 else
2871   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2874 See \`config.log' for more details." >&2;}
2875    { (exit 1); exit 1; }; }
2876 fi
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884
2885 echo "$as_me:$LINENO: checking for egrep" >&5
2886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2887 if test "${ac_cv_prog_egrep+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2891     then ac_cv_prog_egrep='grep -E'
2892     else ac_cv_prog_egrep='egrep'
2893     fi
2894 fi
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2896 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2897  EGREP=$ac_cv_prog_egrep
2898
2899
2900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902 if test "${ac_cv_header_stdc+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905   cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 #include <stdlib.h>
2913 #include <stdarg.h>
2914 #include <string.h>
2915 #include <float.h>
2916
2917 int
2918 main ()
2919 {
2920
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } &&
2931          { ac_try='test -s conftest.$ac_objext'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; }; then
2937   ac_cv_header_stdc=yes
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 ac_cv_header_stdc=no
2943 fi
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2945
2946 if test $ac_cv_header_stdc = yes; then
2947   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948   cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955 #include <string.h>
2956
2957 _ACEOF
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959   $EGREP "memchr" >/dev/null 2>&1; then
2960   :
2961 else
2962   ac_cv_header_stdc=no
2963 fi
2964 rm -f conftest*
2965
2966 fi
2967
2968 if test $ac_cv_header_stdc = yes; then
2969   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2970   cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977 #include <stdlib.h>
2978
2979 _ACEOF
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981   $EGREP "free" >/dev/null 2>&1; then
2982   :
2983 else
2984   ac_cv_header_stdc=no
2985 fi
2986 rm -f conftest*
2987
2988 fi
2989
2990 if test $ac_cv_header_stdc = yes; then
2991   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992   if test "$cross_compiling" = yes; then
2993   :
2994 else
2995   cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002 #include <ctype.h>
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006 #else
3007 # define ISLOWER(c) \
3008                    (('a' <= (c) && (c) <= 'i') \
3009                      || ('j' <= (c) && (c) <= 'r') \
3010                      || ('s' <= (c) && (c) <= 'z'))
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3012 #endif
3013
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015 int
3016 main ()
3017 {
3018   int i;
3019   for (i = 0; i < 256; i++)
3020     if (XOR (islower (i), ISLOWER (i))
3021         || toupper (i) != TOUPPER (i))
3022       exit(2);
3023   exit (0);
3024 }
3025 _ACEOF
3026 rm -f conftest$ac_exeext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028   (eval $ac_link) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033   (eval $ac_try) 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; }; then
3037   :
3038 else
3039   echo "$as_me: program exited with status $ac_status" >&5
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 ( exit $ac_status )
3044 ac_cv_header_stdc=no
3045 fi
3046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3047 fi
3048 fi
3049 fi
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052 if test $ac_cv_header_stdc = yes; then
3053
3054 cat >>confdefs.h <<\_ACEOF
3055 #define STDC_HEADERS 1
3056 _ACEOF
3057
3058 fi
3059
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071                   inttypes.h stdint.h unistd.h
3072 do
3073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086 $ac_includes_default
3087
3088 #include <$ac_header>
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092   (eval $ac_compile) 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } &&
3096          { ac_try='test -s conftest.$ac_objext'
3097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098   (eval $ac_try) 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; }; then
3102   eval "$as_ac_Header=yes"
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 eval "$as_ac_Header=no"
3108 fi
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3110 fi
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3114   cat >>confdefs.h <<_ACEOF
3115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3116 _ACEOF
3117
3118 fi
3119
3120 done
3121
3122
3123
3124
3125
3126
3127 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
3128 do
3129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3131   echo "$as_me:$LINENO: checking for $ac_header" >&5
3132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 fi
3136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3138 else
3139   # Is the header compilable?
3140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3142 cat >conftest.$ac_ext <<_ACEOF
3143 #line $LINENO "configure"
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149 $ac_includes_default
3150 #include <$ac_header>
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154   (eval $ac_compile) 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); } &&
3158          { ac_try='test -s conftest.$ac_objext'
3159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160   (eval $ac_try) 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }; }; then
3164   ac_header_compiler=yes
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 ac_header_compiler=no
3170 fi
3171 rm -f conftest.$ac_objext conftest.$ac_ext
3172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3173 echo "${ECHO_T}$ac_header_compiler" >&6
3174
3175 # Is the header present?
3176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3178 cat >conftest.$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3180 /* confdefs.h.  */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h.  */
3185 #include <$ac_header>
3186 _ACEOF
3187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3189   ac_status=$?
3190   grep -v '^ *+' conftest.er1 >conftest.err
3191   rm -f conftest.er1
3192   cat conftest.err >&5
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); } >/dev/null; then
3195   if test -s conftest.err; then
3196     ac_cpp_err=$ac_c_preproc_warn_flag
3197   else
3198     ac_cpp_err=
3199   fi
3200 else
3201   ac_cpp_err=yes
3202 fi
3203 if test -z "$ac_cpp_err"; then
3204   ac_header_preproc=yes
3205 else
3206   echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209   ac_header_preproc=no
3210 fi
3211 rm -f conftest.err conftest.$ac_ext
3212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3213 echo "${ECHO_T}$ac_header_preproc" >&6
3214
3215 # So?  What about this header?
3216 case $ac_header_compiler:$ac_header_preproc in
3217   yes:no )
3218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3222     (
3223       cat <<\_ASBOX
3224 ## ------------------------------------ ##
3225 ## Report this to bug-autoconf@gnu.org. ##
3226 ## ------------------------------------ ##
3227 _ASBOX
3228     ) |
3229       sed "s/^/$as_me: WARNING:     /" >&2
3230     ;;
3231   no:yes )
3232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3234     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3238     (
3239       cat <<\_ASBOX
3240 ## ------------------------------------ ##
3241 ## Report this to bug-autoconf@gnu.org. ##
3242 ## ------------------------------------ ##
3243 _ASBOX
3244     ) |
3245       sed "s/^/$as_me: WARNING:     /" >&2
3246     ;;
3247 esac
3248 echo "$as_me:$LINENO: checking for $ac_header" >&5
3249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   eval "$as_ac_Header=$ac_header_preproc"
3254 fi
3255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3257
3258 fi
3259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3260   cat >>confdefs.h <<_ACEOF
3261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3262 _ACEOF
3263
3264 fi
3265
3266 done
3267
3268
3269 for ac_header in netinet/if_ether.h
3270 do
3271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3272 echo "$as_me:$LINENO: checking for $ac_header" >&5
3273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   cat >conftest.$ac_ext <<_ACEOF
3278 #line $LINENO "configure"
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <sys/types.h>
3285 #include <sys/socket.h>
3286
3287 #include <$ac_header>
3288 _ACEOF
3289 rm -f conftest.$ac_objext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291   (eval $ac_compile) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297   (eval $ac_try) 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; }; then
3301   eval "$as_ac_Header=yes"
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 eval "$as_ac_Header=no"
3307 fi
3308 rm -f conftest.$ac_objext conftest.$ac_ext
3309 fi
3310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3313   cat >>confdefs.h <<_ACEOF
3314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3315 _ACEOF
3316
3317 fi
3318
3319 done
3320
3321 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3322 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3323 if test "${ac_cv_header_time+set}" = set; then
3324   echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326   cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333 #include <sys/types.h>
3334 #include <sys/time.h>
3335 #include <time.h>
3336
3337 int
3338 main ()
3339 {
3340 if ((struct tm *) 0)
3341 return 0;
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348   (eval $ac_compile) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; }; then
3358   ac_cv_header_time=yes
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 ac_cv_header_time=no
3364 fi
3365 rm -f conftest.$ac_objext conftest.$ac_ext
3366 fi
3367 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3368 echo "${ECHO_T}$ac_cv_header_time" >&6
3369 if test $ac_cv_header_time = yes; then
3370
3371 cat >>confdefs.h <<\_ACEOF
3372 #define TIME_WITH_SYS_TIME 1
3373 _ACEOF
3374
3375 fi
3376
3377
3378 case "$host_os" in
3379
3380 linux*)
3381         echo "$as_me:$LINENO: checking Linux kernel version" >&5
3382 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3383         if test "$cross_compiling" = yes; then
3384                 if test "${ac_cv_linux_vers+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   ac_cv_linux_vers=unknown
3388 fi
3389
3390         else
3391                 if test "${ac_cv_linux_vers+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   ac_cv_linux_vers=`uname -r 2>&1 | \
3395                         sed -n -e '$s/.* //' -e '$s/\..*//p'`
3396 fi
3397
3398         fi
3399         echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3400 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3401         if test $ac_cv_linux_vers = unknown ; then
3402                 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3403 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3404    { (exit 1); exit 1; }; }
3405         fi
3406         if test $ac_cv_linux_vers -lt 2 ; then
3407                 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3408 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3409    { (exit 1); exit 1; }; }
3410         fi
3411         ;;
3412
3413 *)
3414         ;;
3415 esac
3416
3417
3418
3419 for ac_header in smi.h
3420 do
3421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3423   echo "$as_me:$LINENO: checking for $ac_header" >&5
3424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 fi
3428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3430 else
3431   # Is the header compilable?
3432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3434 cat >conftest.$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441 $ac_includes_default
3442 #include <$ac_header>
3443 _ACEOF
3444 rm -f conftest.$ac_objext
3445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446   (eval $ac_compile) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -s conftest.$ac_objext'
3451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452   (eval $ac_try) 2>&5
3453   ac_status=$?
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); }; }; then
3456   ac_header_compiler=yes
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 ac_header_compiler=no
3462 fi
3463 rm -f conftest.$ac_objext conftest.$ac_ext
3464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3465 echo "${ECHO_T}$ac_header_compiler" >&6
3466
3467 # Is the header present?
3468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #line $LINENO "configure"
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 #include <$ac_header>
3478 _ACEOF
3479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } >/dev/null; then
3487   if test -s conftest.err; then
3488     ac_cpp_err=$ac_c_preproc_warn_flag
3489   else
3490     ac_cpp_err=
3491   fi
3492 else
3493   ac_cpp_err=yes
3494 fi
3495 if test -z "$ac_cpp_err"; then
3496   ac_header_preproc=yes
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501   ac_header_preproc=no
3502 fi
3503 rm -f conftest.err conftest.$ac_ext
3504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3505 echo "${ECHO_T}$ac_header_preproc" >&6
3506
3507 # So?  What about this header?
3508 case $ac_header_compiler:$ac_header_preproc in
3509   yes:no )
3510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3514     (
3515       cat <<\_ASBOX
3516 ## ------------------------------------ ##
3517 ## Report this to bug-autoconf@gnu.org. ##
3518 ## ------------------------------------ ##
3519 _ASBOX
3520     ) |
3521       sed "s/^/$as_me: WARNING:     /" >&2
3522     ;;
3523   no:yes )
3524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3526     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3530     (
3531       cat <<\_ASBOX
3532 ## ------------------------------------ ##
3533 ## Report this to bug-autoconf@gnu.org. ##
3534 ## ------------------------------------ ##
3535 _ASBOX
3536     ) |
3537       sed "s/^/$as_me: WARNING:     /" >&2
3538     ;;
3539 esac
3540 echo "$as_me:$LINENO: checking for $ac_header" >&5
3541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   eval "$as_ac_Header=$ac_header_preproc"
3546 fi
3547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3549
3550 fi
3551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3552   cat >>confdefs.h <<_ACEOF
3553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3554 _ACEOF
3555
3556 fi
3557
3558 done
3559
3560
3561 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3562 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3563 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   ac_check_lib_save_LIBS=$LIBS
3567 LIBS="-lsmi  $LIBS"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3570 /* confdefs.h.  */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h.  */
3575
3576 /* Override any gcc2 internal prototype to avoid an error.  */
3577 #ifdef __cplusplus
3578 extern "C"
3579 #endif
3580 /* We use char because int might match the return type of a gcc2
3581    builtin and then its argument prototype would still apply.  */
3582 char smiInit ();
3583 int
3584 main ()
3585 {
3586 smiInit ();
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 rm -f conftest.$ac_objext conftest$ac_exeext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593   (eval $ac_link) 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          { ac_try='test -s conftest$ac_exeext'
3598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599   (eval $ac_try) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); }; }; then
3603   ac_cv_lib_smi_smiInit=yes
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 ac_cv_lib_smi_smiInit=no
3609 fi
3610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3611 LIBS=$ac_check_lib_save_LIBS
3612 fi
3613 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3614 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3615 if test $ac_cv_lib_smi_smiInit = yes; then
3616   cat >>confdefs.h <<_ACEOF
3617 #define HAVE_LIBSMI 1
3618 _ACEOF
3619
3620   LIBS="-lsmi $LIBS"
3621
3622 fi
3623
3624 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3625 then
3626 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3627 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3628         if test "$cross_compiling" = yes; then
3629    echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3630 echo "${ECHO_T}not when cross-compiling" >&6
3631   libsmi=no
3632
3633 else
3634   cat >conftest.$ac_ext <<_ACEOF
3635 #line $LINENO "configure"
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641  /* libsmi available check */
3642 #include <smi.h>
3643 main()
3644 {
3645   int current, revision, age, n;
3646   const int required = 2;
3647   if (smiInit(""))
3648     exit(1);
3649   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3650     exit(2);
3651   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3652   if (n != 3)
3653     exit(3);
3654   if (required < current - age || required > current)
3655     exit(4);
3656   exit(0);
3657 }
3658
3659 _ACEOF
3660 rm -f conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662   (eval $ac_link) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667   (eval $ac_try) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; }; then
3671    echo "$as_me:$LINENO: result: yes" >&5
3672 echo "${ECHO_T}yes" >&6
3673   cat >>confdefs.h <<\_ACEOF
3674 #define LIBSMI 1
3675 _ACEOF
3676
3677   libsmi=yes
3678 else
3679   echo "$as_me: program exited with status $ac_status" >&5
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 ( exit $ac_status )
3684  case $? in
3685   1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3686 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3687   2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3688 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3689   3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3690 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3691   4) echo "$as_me:$LINENO: result: no - too old" >&5
3692 echo "${ECHO_T}no - too old" >&6 ;;
3693   *) echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6 ;;
3695   esac
3696   libsmi=no
3697 fi
3698 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3699 fi
3700 fi
3701
3702 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3703 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3704 # Check whether --enable-smb or --disable-smb was given.
3705 if test "${enable_smb+set}" = set; then
3706   enableval="$enable_smb"
3707
3708 else
3709   enableval=yes
3710 fi;
3711 case "$enableval" in
3712 yes)    echo "$as_me:$LINENO: result: yes" >&5
3713 echo "${ECHO_T}yes" >&6
3714         { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3715 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3716         cat >>confdefs.h <<\_ACEOF
3717 #define TCPDUMP_DO_SMB 1
3718 _ACEOF
3719
3720         LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3721         ;;
3722 *)      echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3724         ;;
3725 esac
3726
3727 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3728 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3729 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3730 if test "${enable_ipv6+set}" = set; then
3731   enableval="$enable_ipv6"
3732    case "$enableval" in
3733 yes)   echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6
3735        LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3736        cat >>confdefs.h <<\_ACEOF
3737 #define INET6 1
3738 _ACEOF
3739
3740        ipv6=yes
3741        ;;
3742 *)
3743        echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3745        ipv6=no
3746        ;;
3747   esac
3748 else
3749   if test "$cross_compiling" = yes; then
3750    echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3752   ipv6=no
3753
3754 else
3755   cat >conftest.$ac_ext <<_ACEOF
3756 #line $LINENO "configure"
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762  /* AF_INET6 available check */
3763 #include <sys/types.h>
3764 #include <sys/socket.h>
3765 main()
3766 {
3767  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3768    exit(1);
3769  else
3770    exit(0);
3771 }
3772
3773 _ACEOF
3774 rm -f conftest$ac_exeext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776   (eval $ac_link) 2>&5
3777   ac_status=$?
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781   (eval $ac_try) 2>&5
3782   ac_status=$?
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); }; }; then
3785    echo "$as_me:$LINENO: result: yes" >&5
3786 echo "${ECHO_T}yes" >&6
3787   LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3788   cat >>confdefs.h <<\_ACEOF
3789 #define INET6 1
3790 _ACEOF
3791
3792   ipv6=yes
3793 else
3794   echo "$as_me: program exited with status $ac_status" >&5
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 ( exit $ac_status )
3799  echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801   ipv6=no
3802 fi
3803 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 fi;
3806
3807 ipv6type=unknown
3808 ipv6lib=none
3809 ipv6trylibc=no
3810
3811 if test "$ipv6" = "yes"; then
3812         echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3813 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3814         for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3815                 case $i in
3816                 inria)
3817                                                 cat >conftest.$ac_ext <<_ACEOF
3818 #line $LINENO "configure"
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824 #include <netinet/in.h>
3825 #ifdef IPV6_INRIA_VERSION
3826 yes
3827 #endif
3828 _ACEOF
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830   $EGREP "yes" >/dev/null 2>&1; then
3831   ipv6type=$i;
3832                                 CFLAGS="-DINET6 $CFLAGS"
3833 fi
3834 rm -f conftest*
3835
3836                         ;;
3837                 kame)
3838                                                 cat >conftest.$ac_ext <<_ACEOF
3839 #line $LINENO "configure"
3840 /* confdefs.h.  */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h.  */
3845 #include <netinet/in.h>
3846 #ifdef __KAME__
3847 yes
3848 #endif
3849 _ACEOF
3850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851   $EGREP "yes" >/dev/null 2>&1; then
3852   ipv6type=$i;
3853                                 ipv6lib=inet6;
3854                                 ipv6libdir=/usr/local/v6/lib;
3855                                 ipv6trylibc=yes;
3856                                 CFLAGS="-DINET6 $CFLAGS"
3857 fi
3858 rm -f conftest*
3859
3860                         ;;
3861                 linux-glibc)
3862                                                 cat >conftest.$ac_ext <<_ACEOF
3863 #line $LINENO "configure"
3864 /* confdefs.h.  */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h.  */
3869 #include <features.h>
3870 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3871 yes
3872 #endif
3873 _ACEOF
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875   $EGREP "yes" >/dev/null 2>&1; then
3876   ipv6type=$i;
3877                                 CFLAGS="-DINET6 $CFLAGS"
3878 fi
3879 rm -f conftest*
3880
3881                         ;;
3882                 linux-libinet6)
3883                                                                                                                                                 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3884                                 ipv6type=$i
3885                                 ipv6lib=inet6
3886                                 ipv6libdir=/usr/inet6/lib
3887                                 ipv6trylibc=yes;
3888                                 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3889                         fi
3890                         ;;
3891                 toshiba)
3892                         cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3894 /* confdefs.h.  */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h.  */
3899 #include <sys/param.h>
3900 #ifdef _TOSHIBA_INET6
3901 yes
3902 #endif
3903 _ACEOF
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905   $EGREP "yes" >/dev/null 2>&1; then
3906   ipv6type=$i;
3907                                 ipv6lib=inet6;
3908                                 ipv6libdir=/usr/local/v6/lib;
3909                                 CFLAGS="-DINET6 $CFLAGS"
3910 fi
3911 rm -f conftest*
3912
3913                         ;;
3914                 v6d)
3915                         cat >conftest.$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922 #include </usr/local/v6/include/sys/v6config.h>
3923 #ifdef __V6D__
3924 yes
3925 #endif
3926 _ACEOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928   $EGREP "yes" >/dev/null 2>&1; then
3929   ipv6type=$i;
3930                                 ipv6lib=v6;
3931                                 ipv6libdir=/usr/local/v6/lib;
3932                                 CFLAGS="-I/usr/local/v6/include $CFLAGS"
3933 fi
3934 rm -f conftest*
3935
3936                         ;;
3937                 zeta)
3938                         cat >conftest.$ac_ext <<_ACEOF
3939 #line $LINENO "configure"
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945 #include <sys/param.h>
3946 #ifdef _ZETA_MINAMI_INET6
3947 yes
3948 #endif
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951   $EGREP "yes" >/dev/null 2>&1; then
3952   ipv6type=$i;
3953                                 ipv6lib=inet6;
3954                                 ipv6libdir=/usr/local/v6/lib;
3955                                 CFLAGS="-DINET6 $CFLAGS"
3956 fi
3957 rm -f conftest*
3958
3959                         ;;
3960                 esac
3961                 if test "$ipv6type" != "unknown"; then
3962                         break
3963                 fi
3964         done
3965         echo "$as_me:$LINENO: result: $ipv6type" >&5
3966 echo "${ECHO_T}$ipv6type" >&6
3967 fi
3968
3969 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
3970         if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
3971                 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
3972                 echo "You have $ipv6lib library, using it"
3973         else
3974                 if test "$ipv6trylibc" = "yes"; then
3975                         echo "You do not have $ipv6lib library, using libc"
3976                 else
3977                         echo 'Fatal: no $ipv6lib library found.  cannot continue.'
3978                         echo "You need to fetch lib$ipv6lib.a from appropriate"
3979                         echo 'ipv6 kit and compile beforehand.'
3980                         exit 1
3981                 fi
3982         fi
3983 fi
3984
3985
3986 if test "$ipv6" = "yes"; then
3987         #
3988         # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
3989         # function in libc; there are "ngetaddrinfo()" and
3990         # "ogetaddrinfo()" functions, and <netdb.h> #defines
3991         # "getaddrinfo" to be either "ngetaddrinfo" or
3992         # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
3993         # or _XOPEN_SOURCE_EXTENDED are defined or not.
3994         #
3995         # So this test doesn't work on Tru64 5.1, and possibly
3996         # on other 5.x releases.  This causes the configure
3997         # script to become confused, and results in libpcap
3998         # being unbuildable.
3999         #
4000         echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4001 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4002 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   ac_func_search_save_LIBS=$LIBS
4006 ac_cv_search_getaddrinfo=no
4007 cat >conftest.$ac_ext <<_ACEOF
4008 #line $LINENO "configure"
4009 /* confdefs.h.  */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h.  */
4014
4015 /* Override any gcc2 internal prototype to avoid an error.  */
4016 #ifdef __cplusplus
4017 extern "C"
4018 #endif
4019 /* We use char because int might match the return type of a gcc2
4020    builtin and then its argument prototype would still apply.  */
4021 char getaddrinfo ();
4022 int
4023 main ()
4024 {
4025 getaddrinfo ();
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext conftest$ac_exeext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4032   (eval $ac_link) 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } &&
4036          { ac_try='test -s conftest$ac_exeext'
4037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038   (eval $ac_try) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }; }; then
4042   ac_cv_search_getaddrinfo="none required"
4043 else
4044   echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 fi
4048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4049 if test "$ac_cv_search_getaddrinfo" = no; then
4050   for ac_lib in socket; do
4051     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4052     cat >conftest.$ac_ext <<_ACEOF
4053 #line $LINENO "configure"
4054 /* confdefs.h.  */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h.  */
4059
4060 /* Override any gcc2 internal prototype to avoid an error.  */
4061 #ifdef __cplusplus
4062 extern "C"
4063 #endif
4064 /* We use char because int might match the return type of a gcc2
4065    builtin and then its argument prototype would still apply.  */
4066 char getaddrinfo ();
4067 int
4068 main ()
4069 {
4070 getaddrinfo ();
4071   ;
4072   return 0;
4073 }
4074 _ACEOF
4075 rm -f conftest.$ac_objext conftest$ac_exeext
4076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4077   (eval $ac_link) 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } &&
4081          { ac_try='test -s conftest$ac_exeext'
4082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083   (eval $ac_try) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; }; then
4087   ac_cv_search_getaddrinfo="-l$ac_lib"
4088 break
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 fi
4094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4095   done
4096 fi
4097 LIBS=$ac_func_search_save_LIBS
4098 fi
4099 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4100 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4101 if test "$ac_cv_search_getaddrinfo" != no; then
4102   test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4103         echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4104 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4105         if test "${td_cv_buggygetaddrinfo+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   if test "$cross_compiling" = yes; then
4109   td_cv_buggygetaddrinfo=yes
4110 else
4111   cat >conftest.$ac_ext <<_ACEOF
4112 #line $LINENO "configure"
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118
4119 #include <sys/types.h>
4120 #include <netdb.h>
4121 #include <string.h>
4122 #include <sys/socket.h>
4123 #include <netinet/in.h>
4124
4125 main()
4126 {
4127   int passive, gaierr, inet4 = 0, inet6 = 0;
4128   struct addrinfo hints, *ai, *aitop;
4129   char straddr[INET6_ADDRSTRLEN], strport[16];
4130
4131   for (passive = 0; passive <= 1; passive++) {
4132     memset(&hints, 0, sizeof(hints));
4133     hints.ai_family = AF_UNSPEC;
4134     hints.ai_flags = passive ? AI_PASSIVE : 0;
4135     hints.ai_socktype = SOCK_STREAM;
4136     hints.ai_protocol = IPPROTO_TCP;
4137     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4138       (void)gai_strerror(gaierr);
4139       goto bad;
4140     }
4141     for (ai = aitop; ai; ai = ai->ai_next) {
4142       if (ai->ai_addr == NULL ||
4143           ai->ai_addrlen == 0 ||
4144           getnameinfo(ai->ai_addr, ai->ai_addrlen,
4145                       straddr, sizeof(straddr), strport, sizeof(strport),
4146                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4147         goto bad;
4148       }
4149       switch (ai->ai_family) {
4150       case AF_INET:
4151         if (strcmp(strport, "54321") != 0) {
4152           goto bad;
4153         }
4154         if (passive) {
4155           if (strcmp(straddr, "0.0.0.0") != 0) {
4156             goto bad;
4157           }
4158         } else {
4159           if (strcmp(straddr, "127.0.0.1") != 0) {
4160             goto bad;
4161           }
4162         }
4163         inet4++;
4164         break;
4165       case AF_INET6:
4166         if (strcmp(strport, "54321") != 0) {
4167           goto bad;
4168         }
4169         if (passive) {
4170           if (strcmp(straddr, "::") != 0) {
4171             goto bad;
4172           }
4173         } else {
4174           if (strcmp(straddr, "::1") != 0) {
4175             goto bad;
4176           }
4177         }
4178         inet6++;
4179         break;
4180       case AF_UNSPEC:
4181         goto bad;
4182         break;
4183 #ifdef AF_UNIX
4184       case AF_UNIX:
4185 #else
4186 #ifdef AF_LOCAL
4187       case AF_LOCAL:
4188 #endif
4189 #endif
4190       default:
4191         /* another family support? */
4192         break;
4193       }
4194     }
4195   }
4196
4197   /* supported family should be 2, unsupported family should be 0 */
4198   if (!(inet4 == 0 || inet4 == 2))
4199     goto bad;
4200   if (!(inet6 == 0 || inet6 == 2))
4201     goto bad;
4202
4203   if (aitop)
4204     freeaddrinfo(aitop);
4205   exit(0);
4206
4207  bad:
4208   if (aitop)
4209     freeaddrinfo(aitop);
4210   exit(1);
4211 }
4212
4213 _ACEOF
4214 rm -f conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216   (eval $ac_link) 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4225   td_cv_buggygetaddrinfo=no
4226 else
4227   echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 ( exit $ac_status )
4232 td_cv_buggygetaddrinfo=yes
4233 fi
4234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235 fi
4236 fi
4237
4238         if test "$td_cv_buggygetaddrinfo" = no; then
4239                 echo "$as_me:$LINENO: result: good" >&5
4240 echo "${ECHO_T}good" >&6
4241         else
4242                 echo "$as_me:$LINENO: result: buggy" >&5
4243 echo "${ECHO_T}buggy" >&6
4244         fi
4245
4246         if test "$td_cv_buggygetaddrinfo" = "yes"; then
4247                 #
4248                 # XXX - it doesn't appear that "ipv6type" can ever be
4249                 # set to "linux".  Should this be testing for
4250                 # "linux-glibc", or for that *or* "linux-libinet6"?
4251                 # If the latter, note that "linux-libinet6" is also
4252                 # the type given to some non-Linux OSes.
4253                 #
4254                 if test "$ipv6type" != "linux"; then
4255                         echo 'Fatal: You must get working getaddrinfo() function.'
4256                         echo '       or you can specify "--disable-ipv6"'.
4257                         exit 1
4258                 else
4259                         echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4260                         echo '         Better upgrade your system library to newest version'
4261                         echo '         of GNU C library (aka glibc).'
4262                 fi
4263         fi
4264
4265 fi
4266
4267
4268
4269 for ac_func in getaddrinfo getnameinfo
4270 do
4271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4272 echo "$as_me:$LINENO: checking for $ac_func" >&5
4273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4274 if eval "test \"\${$as_ac_var+set}\" = set"; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   cat >conftest.$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284 /* System header to define __stub macros and hopefully few prototypes,
4285     which can conflict with char $ac_func (); below.
4286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287     <limits.h> exists even on freestanding compilers.  */
4288 #ifdef __STDC__
4289 # include <limits.h>
4290 #else
4291 # include <assert.h>
4292 #endif
4293 /* Override any gcc2 internal prototype to avoid an error.  */
4294 #ifdef __cplusplus
4295 extern "C"
4296 {
4297 #endif
4298 /* We use char because int might match the return type of a gcc2
4299    builtin and then its argument prototype would still apply.  */
4300 char $ac_func ();
4301 /* The GNU C library defines this for functions which it implements
4302     to always fail with ENOSYS.  Some functions are actually named
4303     something starting with __ and the normal name is an alias.  */
4304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4305 choke me
4306 #else
4307 char (*f) () = $ac_func;
4308 #endif
4309 #ifdef __cplusplus
4310 }
4311 #endif
4312
4313 int
4314 main ()
4315 {
4316 return f != $ac_func;
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323   (eval $ac_link) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -s conftest$ac_exeext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   eval "$as_ac_var=yes"
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 eval "$as_ac_var=no"
4339 fi
4340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4341 fi
4342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4344 if test `eval echo '${'$as_ac_var'}'` = yes; then
4345   cat >>confdefs.h <<_ACEOF
4346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4347 _ACEOF
4348
4349 else
4350   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4351 fi
4352 done
4353
4354
4355 fi
4356
4357 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4358 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4359 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   cat >conftest.$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <netdnet/dnetdb.h>
4370
4371 _ACEOF
4372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4373   $EGREP "dnet_htoa" >/dev/null 2>&1; then
4374   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4375 else
4376   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4377 fi
4378 rm -f conftest*
4379
4380 fi
4381 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4382 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4383 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4384         cat >>confdefs.h <<\_ACEOF
4385 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4386 _ACEOF
4387
4388 fi
4389
4390 echo "$as_me:$LINENO: checking for char" >&5
4391 echo $ECHO_N "checking for char... $ECHO_C" >&6
4392 if test "${ac_cv_type_char+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   cat >conftest.$ac_ext <<_ACEOF
4396 #line $LINENO "configure"
4397 /* confdefs.h.  */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h.  */
4402 $ac_includes_default
4403 int
4404 main ()
4405 {
4406 if ((char *) 0)
4407   return 0;
4408 if (sizeof (char))
4409   return 0;
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 rm -f conftest.$ac_objext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416   (eval $ac_compile) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); } &&
4420          { ac_try='test -s conftest.$ac_objext'
4421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422   (eval $ac_try) 2>&5
4423   ac_status=$?
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); }; }; then
4426   ac_cv_type_char=yes
4427 else
4428   echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 ac_cv_type_char=no
4432 fi
4433 rm -f conftest.$ac_objext conftest.$ac_ext
4434 fi
4435 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4436 echo "${ECHO_T}$ac_cv_type_char" >&6
4437
4438 echo "$as_me:$LINENO: checking size of char" >&5
4439 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4440 if test "${ac_cv_sizeof_char+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test "$ac_cv_type_char" = yes; then
4444   # The cast to unsigned long works around a bug in the HP C Compiler
4445   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4446   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4447   # This bug is HP SR number 8606223364.
4448   if test "$cross_compiling" = yes; then
4449   # Depending upon the size, compute the lo and hi bounds.
4450 cat >conftest.$ac_ext <<_ACEOF
4451 #line $LINENO "configure"
4452 /* confdefs.h.  */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h.  */
4457 $ac_includes_default
4458 int
4459 main ()
4460 {
4461 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4462 test_array [0] = 0
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470   (eval $ac_compile) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } &&
4474          { ac_try='test -s conftest.$ac_objext'
4475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476   (eval $ac_try) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }; }; then
4480   ac_lo=0 ac_mid=0
4481   while :; do
4482     cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4484 /* confdefs.h.  */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h.  */
4489 $ac_includes_default
4490 int
4491 main ()
4492 {
4493 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4494 test_array [0] = 0
4495
4496   ;
4497   return 0;
4498 }
4499 _ACEOF
4500 rm -f conftest.$ac_objext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502   (eval $ac_compile) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); } &&
4506          { ac_try='test -s conftest.$ac_objext'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; }; then
4512   ac_hi=$ac_mid; break
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 ac_lo=`expr $ac_mid + 1`
4518                     if test $ac_lo -le $ac_mid; then
4519                       ac_lo= ac_hi=
4520                       break
4521                     fi
4522                     ac_mid=`expr 2 '*' $ac_mid + 1`
4523 fi
4524 rm -f conftest.$ac_objext conftest.$ac_ext
4525   done
4526 else
4527   echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 $ac_includes_default
4538 int
4539 main ()
4540 {
4541 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4542 test_array [0] = 0
4543
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550   (eval $ac_compile) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -s conftest.$ac_objext'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   ac_hi=-1 ac_mid=-1
4561   while :; do
4562     cat >conftest.$ac_ext <<_ACEOF
4563 #line $LINENO "configure"
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 $ac_includes_default
4570 int
4571 main ()
4572 {
4573 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4574 test_array [0] = 0
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582   (eval $ac_compile) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } &&
4586          { ac_try='test -s conftest.$ac_objext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   ac_lo=$ac_mid; break
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 ac_hi=`expr '(' $ac_mid ')' - 1`
4598                        if test $ac_mid -le $ac_hi; then
4599                          ac_lo= ac_hi=
4600                          break
4601                        fi
4602                        ac_mid=`expr 2 '*' $ac_mid`
4603 fi
4604 rm -f conftest.$ac_objext conftest.$ac_ext
4605   done
4606 else
4607   echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 ac_lo= ac_hi=
4611 fi
4612 rm -f conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f conftest.$ac_objext conftest.$ac_ext
4615 # Binary search between lo and hi bounds.
4616 while test "x$ac_lo" != "x$ac_hi"; do
4617   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4618   cat >conftest.$ac_ext <<_ACEOF
4619 #line $LINENO "configure"
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625 $ac_includes_default
4626 int
4627 main ()
4628 {
4629 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4630 test_array [0] = 0
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638   (eval $ac_compile) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); } &&
4642          { ac_try='test -s conftest.$ac_objext'
4643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648   ac_hi=$ac_mid
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653 ac_lo=`expr '(' $ac_mid ')' + 1`
4654 fi
4655 rm -f conftest.$ac_objext conftest.$ac_ext
4656 done
4657 case $ac_lo in
4658 ?*) ac_cv_sizeof_char=$ac_lo;;
4659 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4660 See \`config.log' for more details." >&5
4661 echo "$as_me: error: cannot compute sizeof (char), 77
4662 See \`config.log' for more details." >&2;}
4663    { (exit 1); exit 1; }; } ;;
4664 esac
4665 else
4666   if test "$cross_compiling" = yes; then
4667   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4668 See \`config.log' for more details." >&5
4669 echo "$as_me: error: cannot run test program while cross compiling
4670 See \`config.log' for more details." >&2;}
4671    { (exit 1); exit 1; }; }
4672 else
4673   cat >conftest.$ac_ext <<_ACEOF
4674 #line $LINENO "configure"
4675 /* confdefs.h.  */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h.  */
4680 $ac_includes_default
4681 long longval () { return (long) (sizeof (char)); }
4682 unsigned long ulongval () { return (long) (sizeof (char)); }
4683 #include <stdio.h>
4684 #include <stdlib.h>
4685 int
4686 main ()
4687 {
4688
4689   FILE *f = fopen ("conftest.val", "w");
4690   if (! f)
4691     exit (1);
4692   if (((long) (sizeof (char))) < 0)
4693     {
4694       long i = longval ();
4695       if (i != ((long) (sizeof (char))))
4696         exit (1);
4697       fprintf (f, "%ld\n", i);
4698     }
4699   else
4700     {
4701       unsigned long i = ulongval ();
4702       if (i != ((long) (sizeof (char))))
4703         exit (1);
4704       fprintf (f, "%lu\n", i);
4705     }
4706   exit (ferror (f) || fclose (f) != 0);
4707
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714   (eval $ac_link) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719   (eval $ac_try) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; }; then
4723   ac_cv_sizeof_char=`cat conftest.val`
4724 else
4725   echo "$as_me: program exited with status $ac_status" >&5
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ( exit $ac_status )
4730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4731 See \`config.log' for more details." >&5
4732 echo "$as_me: error: cannot compute sizeof (char), 77
4733 See \`config.log' for more details." >&2;}
4734    { (exit 1); exit 1; }; }
4735 fi
4736 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4737 fi
4738 fi
4739 rm -f conftest.val
4740 else
4741   ac_cv_sizeof_char=0
4742 fi
4743 fi
4744 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4745 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4746 cat >>confdefs.h <<_ACEOF
4747 #define SIZEOF_CHAR $ac_cv_sizeof_char
4748 _ACEOF
4749
4750
4751 echo "$as_me:$LINENO: checking for short" >&5
4752 echo $ECHO_N "checking for short... $ECHO_C" >&6
4753 if test "${ac_cv_type_short+set}" = set; then
4754   echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756   cat >conftest.$ac_ext <<_ACEOF
4757 #line $LINENO "configure"
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763 $ac_includes_default
4764 int
4765 main ()
4766 {
4767 if ((short *) 0)
4768   return 0;
4769 if (sizeof (short))
4770   return 0;
4771   ;
4772   return 0;
4773 }
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777   (eval $ac_compile) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   ac_cv_type_short=yes
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 ac_cv_type_short=no
4793 fi
4794 rm -f conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4797 echo "${ECHO_T}$ac_cv_type_short" >&6
4798
4799 echo "$as_me:$LINENO: checking size of short" >&5
4800 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4801 if test "${ac_cv_sizeof_short+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   if test "$ac_cv_type_short" = yes; then
4805   # The cast to unsigned long works around a bug in the HP C Compiler
4806   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4807   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4808   # This bug is HP SR number 8606223364.
4809   if test "$cross_compiling" = yes; then
4810   # Depending upon the size, compute the lo and hi bounds.
4811 cat >conftest.$ac_ext <<_ACEOF
4812 #line $LINENO "configure"
4813 /* confdefs.h.  */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h.  */
4818 $ac_includes_default
4819 int
4820 main ()
4821 {
4822 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4823 test_array [0] = 0
4824
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831   (eval $ac_compile) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } &&
4835          { ac_try='test -s conftest.$ac_objext'
4836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837   (eval $ac_try) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; }; then
4841   ac_lo=0 ac_mid=0
4842   while :; do
4843     cat >conftest.$ac_ext <<_ACEOF
4844 #line $LINENO "configure"
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 $ac_includes_default
4851 int
4852 main ()
4853 {
4854 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4855 test_array [0] = 0
4856
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863   (eval $ac_compile) 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   ac_hi=$ac_mid; break
4874 else
4875   echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 ac_lo=`expr $ac_mid + 1`
4879                     if test $ac_lo -le $ac_mid; then
4880                       ac_lo= ac_hi=
4881                       break
4882                     fi
4883                     ac_mid=`expr 2 '*' $ac_mid + 1`
4884 fi
4885 rm -f conftest.$ac_objext conftest.$ac_ext
4886   done
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898 $ac_includes_default
4899 int
4900 main ()
4901 {
4902 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4903 test_array [0] = 0
4904
4905   ;
4906   return 0;
4907 }
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911   (eval $ac_compile) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); } &&
4915          { ac_try='test -s conftest.$ac_objext'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; }; then
4921   ac_hi=-1 ac_mid=-1
4922   while :; do
4923     cat >conftest.$ac_ext <<_ACEOF
4924 #line $LINENO "configure"
4925 /* confdefs.h.  */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h.  */
4930 $ac_includes_default
4931 int
4932 main ()
4933 {
4934 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4935 test_array [0] = 0
4936
4937   ;
4938   return 0;
4939 }
4940 _ACEOF
4941 rm -f conftest.$ac_objext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943   (eval $ac_compile) 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); } &&
4947          { ac_try='test -s conftest.$ac_objext'
4948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949   (eval $ac_try) 2>&5
4950   ac_status=$?
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); }; }; then
4953   ac_lo=$ac_mid; break
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 ac_hi=`expr '(' $ac_mid ')' - 1`
4959                        if test $ac_mid -le $ac_hi; then
4960                          ac_lo= ac_hi=
4961                          break
4962                        fi
4963                        ac_mid=`expr 2 '*' $ac_mid`
4964 fi
4965 rm -f conftest.$ac_objext conftest.$ac_ext
4966   done
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 ac_lo= ac_hi=
4972 fi
4973 rm -f conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 rm -f conftest.$ac_objext conftest.$ac_ext
4976 # Binary search between lo and hi bounds.
4977 while test "x$ac_lo" != "x$ac_hi"; do
4978   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4979   cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986 $ac_includes_default
4987 int
4988 main ()
4989 {
4990 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4991 test_array [0] = 0
4992
4993   ;
4994   return 0;
4995 }
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999   (eval $ac_compile) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); } &&
5003          { ac_try='test -s conftest.$ac_objext'
5004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005   (eval $ac_try) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); }; }; then
5009   ac_hi=$ac_mid
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_lo=`expr '(' $ac_mid ')' + 1`
5015 fi
5016 rm -f conftest.$ac_objext conftest.$ac_ext
5017 done
5018 case $ac_lo in
5019 ?*) ac_cv_sizeof_short=$ac_lo;;
5020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5021 See \`config.log' for more details." >&5
5022 echo "$as_me: error: cannot compute sizeof (short), 77
5023 See \`config.log' for more details." >&2;}
5024    { (exit 1); exit 1; }; } ;;
5025 esac
5026 else
5027   if test "$cross_compiling" = yes; then
5028   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5029 See \`config.log' for more details." >&5
5030 echo "$as_me: error: cannot run test program while cross compiling
5031 See \`config.log' for more details." >&2;}
5032    { (exit 1); exit 1; }; }
5033 else
5034   cat >conftest.$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 $ac_includes_default
5042 long longval () { return (long) (sizeof (short)); }
5043 unsigned long ulongval () { return (long) (sizeof (short)); }
5044 #include <stdio.h>
5045 #include <stdlib.h>
5046 int
5047 main ()
5048 {
5049
5050   FILE *f = fopen ("conftest.val", "w");
5051   if (! f)
5052     exit (1);
5053   if (((long) (sizeof (short))) < 0)
5054     {
5055       long i = longval ();
5056       if (i != ((long) (sizeof (short))))
5057         exit (1);
5058       fprintf (f, "%ld\n", i);
5059     }
5060   else
5061     {
5062       unsigned long i = ulongval ();
5063       if (i != ((long) (sizeof (short))))
5064         exit (1);
5065       fprintf (f, "%lu\n", i);
5066     }
5067   exit (ferror (f) || fclose (f) != 0);
5068
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest$ac_exeext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075   (eval $ac_link) 2>&5
5076   ac_status=$?
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080   (eval $ac_try) 2>&5
5081   ac_status=$?
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); }; }; then
5084   ac_cv_sizeof_short=`cat conftest.val`
5085 else
5086   echo "$as_me: program exited with status $ac_status" >&5
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 ( exit $ac_status )
5091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5092 See \`config.log' for more details." >&5
5093 echo "$as_me: error: cannot compute sizeof (short), 77
5094 See \`config.log' for more details." >&2;}
5095    { (exit 1); exit 1; }; }
5096 fi
5097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5098 fi
5099 fi
5100 rm -f conftest.val
5101 else
5102   ac_cv_sizeof_short=0
5103 fi
5104 fi
5105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5106 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5107 cat >>confdefs.h <<_ACEOF
5108 #define SIZEOF_SHORT $ac_cv_sizeof_short
5109 _ACEOF
5110
5111
5112 echo "$as_me:$LINENO: checking for int" >&5
5113 echo $ECHO_N "checking for int... $ECHO_C" >&6
5114 if test "${ac_cv_type_int+set}" = set; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 $ac_includes_default
5125 int
5126 main ()
5127 {
5128 if ((int *) 0)
5129   return 0;
5130 if (sizeof (int))
5131   return 0;
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138   (eval $ac_compile) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } &&
5142          { ac_try='test -s conftest.$ac_objext'
5143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144   (eval $ac_try) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; }; then
5148   ac_cv_type_int=yes
5149 else
5150   echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_cv_type_int=no
5154 fi
5155 rm -f conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5158 echo "${ECHO_T}$ac_cv_type_int" >&6
5159
5160 echo "$as_me:$LINENO: checking size of int" >&5
5161 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5162 if test "${ac_cv_sizeof_int+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test "$ac_cv_type_int" = yes; then
5166   # The cast to unsigned long works around a bug in the HP C Compiler
5167   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5168   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5169   # This bug is HP SR number 8606223364.
5170   if test "$cross_compiling" = yes; then
5171   # Depending upon the size, compute the lo and hi bounds.
5172 cat >conftest.$ac_ext <<_ACEOF
5173 #line $LINENO "configure"
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 $ac_includes_default
5180 int
5181 main ()
5182 {
5183 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5184 test_array [0] = 0
5185
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192   (eval $ac_compile) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -s conftest.$ac_objext'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; }; then
5202   ac_lo=0 ac_mid=0
5203   while :; do
5204     cat >conftest.$ac_ext <<_ACEOF
5205 #line $LINENO "configure"
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 $ac_includes_default
5212 int
5213 main ()
5214 {
5215 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5216 test_array [0] = 0
5217
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224   (eval $ac_compile) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); } &&
5228          { ac_try='test -s conftest.$ac_objext'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; }; then
5234   ac_hi=$ac_mid; break
5235 else
5236   echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239 ac_lo=`expr $ac_mid + 1`
5240                     if test $ac_lo -le $ac_mid; then
5241                       ac_lo= ac_hi=
5242                       break
5243                     fi
5244                     ac_mid=`expr 2 '*' $ac_mid + 1`
5245 fi
5246 rm -f conftest.$ac_objext conftest.$ac_ext
5247   done
5248 else
5249   echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259 $ac_includes_default
5260 int
5261 main ()
5262 {
5263 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5264 test_array [0] = 0
5265
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272   (eval $ac_compile) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } &&
5276          { ac_try='test -s conftest.$ac_objext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_hi=-1 ac_mid=-1
5283   while :; do
5284     cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291 $ac_includes_default
5292 int
5293 main ()
5294 {
5295 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5296 test_array [0] = 0
5297
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304   (eval $ac_compile) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -s conftest.$ac_objext'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; }; then
5314   ac_lo=$ac_mid; break
5315 else
5316   echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 ac_hi=`expr '(' $ac_mid ')' - 1`
5320                        if test $ac_mid -le $ac_hi; then
5321                          ac_lo= ac_hi=
5322                          break
5323                        fi
5324                        ac_mid=`expr 2 '*' $ac_mid`
5325 fi
5326 rm -f conftest.$ac_objext conftest.$ac_ext
5327   done
5328 else
5329   echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332 ac_lo= ac_hi=
5333 fi
5334 rm -f conftest.$ac_objext conftest.$ac_ext
5335 fi
5336 rm -f conftest.$ac_objext conftest.$ac_ext
5337 # Binary search between lo and hi bounds.
5338 while test "x$ac_lo" != "x$ac_hi"; do
5339   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5340   cat >conftest.$ac_ext <<_ACEOF
5341 #line $LINENO "configure"
5342 /* confdefs.h.  */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h.  */
5347 $ac_includes_default
5348 int
5349 main ()
5350 {
5351 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5352 test_array [0] = 0
5353
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360   (eval $ac_compile) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } &&
5364          { ac_try='test -s conftest.$ac_objext'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; }; then
5370   ac_hi=$ac_mid
5371 else
5372   echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_lo=`expr '(' $ac_mid ')' + 1`
5376 fi
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5378 done
5379 case $ac_lo in
5380 ?*) ac_cv_sizeof_int=$ac_lo;;
5381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5382 See \`config.log' for more details." >&5
5383 echo "$as_me: error: cannot compute sizeof (int), 77
5384 See \`config.log' for more details." >&2;}
5385    { (exit 1); exit 1; }; } ;;
5386 esac
5387 else
5388   if test "$cross_compiling" = yes; then
5389   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5390 See \`config.log' for more details." >&5
5391 echo "$as_me: error: cannot run test program while cross compiling
5392 See \`config.log' for more details." >&2;}
5393    { (exit 1); exit 1; }; }
5394 else
5395   cat >conftest.$ac_ext <<_ACEOF
5396 #line $LINENO "configure"
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402 $ac_includes_default
5403 long longval () { return (long) (sizeof (int)); }
5404 unsigned long ulongval () { return (long) (sizeof (int)); }
5405 #include <stdio.h>
5406 #include <stdlib.h>
5407 int
5408 main ()
5409 {
5410
5411   FILE *f = fopen ("conftest.val", "w");
5412   if (! f)
5413     exit (1);
5414   if (((long) (sizeof (int))) < 0)
5415     {
5416       long i = longval ();
5417       if (i != ((long) (sizeof (int))))
5418         exit (1);
5419       fprintf (f, "%ld\n", i);
5420     }
5421   else
5422     {
5423       unsigned long i = ulongval ();
5424       if (i != ((long) (sizeof (int))))
5425         exit (1);
5426       fprintf (f, "%lu\n", i);
5427     }
5428   exit (ferror (f) || fclose (f) != 0);
5429
5430   ;
5431   return 0;
5432 }
5433 _ACEOF
5434 rm -f conftest$ac_exeext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5436   (eval $ac_link) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   ac_cv_sizeof_int=`cat conftest.val`
5446 else
5447   echo "$as_me: program exited with status $ac_status" >&5
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 ( exit $ac_status )
5452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5453 See \`config.log' for more details." >&5
5454 echo "$as_me: error: cannot compute sizeof (int), 77
5455 See \`config.log' for more details." >&2;}
5456    { (exit 1); exit 1; }; }
5457 fi
5458 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5459 fi
5460 fi
5461 rm -f conftest.val
5462 else
5463   ac_cv_sizeof_int=0
5464 fi
5465 fi
5466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5467 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5468 cat >>confdefs.h <<_ACEOF
5469 #define SIZEOF_INT $ac_cv_sizeof_int
5470 _ACEOF
5471
5472
5473 echo "$as_me:$LINENO: checking for long" >&5
5474 echo $ECHO_N "checking for long... $ECHO_C" >&6
5475 if test "${ac_cv_type_long+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   cat >conftest.$ac_ext <<_ACEOF
5479 #line $LINENO "configure"
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 $ac_includes_default
5486 int
5487 main ()
5488 {
5489 if ((long *) 0)
5490   return 0;
5491 if (sizeof (long))
5492   return 0;
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 rm -f conftest.$ac_objext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5499   (eval $ac_compile) 2>&5
5500   ac_status=$?
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); } &&
5503          { ac_try='test -s conftest.$ac_objext'
5504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505   (eval $ac_try) 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); }; }; then
5509   ac_cv_type_long=yes
5510 else
5511   echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5513
5514 ac_cv_type_long=no
5515 fi
5516 rm -f conftest.$ac_objext conftest.$ac_ext
5517 fi
5518 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5519 echo "${ECHO_T}$ac_cv_type_long" >&6
5520
5521 echo "$as_me:$LINENO: checking size of long" >&5
5522 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5523 if test "${ac_cv_sizeof_long+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   if test "$ac_cv_type_long" = yes; then
5527   # The cast to unsigned long works around a bug in the HP C Compiler
5528   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5529   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5530   # This bug is HP SR number 8606223364.
5531   if test "$cross_compiling" = yes; then
5532   # Depending upon the size, compute the lo and hi bounds.
5533 cat >conftest.$ac_ext <<_ACEOF
5534 #line $LINENO "configure"
5535 /* confdefs.h.  */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h.  */
5540 $ac_includes_default
5541 int
5542 main ()
5543 {
5544 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5545 test_array [0] = 0
5546
5547   ;
5548   return 0;
5549 }
5550 _ACEOF
5551 rm -f conftest.$ac_objext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553   (eval $ac_compile) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); } &&
5557          { ac_try='test -s conftest.$ac_objext'
5558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559   (eval $ac_try) 2>&5
5560   ac_status=$?
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); }; }; then
5563   ac_lo=0 ac_mid=0
5564   while :; do
5565     cat >conftest.$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 /* confdefs.h.  */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h.  */
5572 $ac_includes_default
5573 int
5574 main ()
5575 {
5576 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5577 test_array [0] = 0
5578
5579   ;
5580   return 0;
5581 }
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585   (eval $ac_compile) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); } &&
5589          { ac_try='test -s conftest.$ac_objext'
5590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591   (eval $ac_try) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); }; }; then
5595   ac_hi=$ac_mid; break
5596 else
5597   echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 ac_lo=`expr $ac_mid + 1`
5601                     if test $ac_lo -le $ac_mid; then
5602                       ac_lo= ac_hi=
5603                       break
5604                     fi
5605                     ac_mid=`expr 2 '*' $ac_mid + 1`
5606 fi
5607 rm -f conftest.$ac_objext conftest.$ac_ext
5608   done
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 cat >conftest.$ac_ext <<_ACEOF
5614 #line $LINENO "configure"
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 $ac_includes_default
5621 int
5622 main ()
5623 {
5624 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5625 test_array [0] = 0
5626
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633   (eval $ac_compile) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -s conftest.$ac_objext'
5638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639   (eval $ac_try) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; }; then
5643   ac_hi=-1 ac_mid=-1
5644   while :; do
5645     cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 /* confdefs.h.  */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h.  */
5652 $ac_includes_default
5653 int
5654 main ()
5655 {
5656 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5657 test_array [0] = 0
5658
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665   (eval $ac_compile) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -s conftest.$ac_objext'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; }; then
5675   ac_lo=$ac_mid; break
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 ac_hi=`expr '(' $ac_mid ')' - 1`
5681                        if test $ac_mid -le $ac_hi; then
5682                          ac_lo= ac_hi=
5683                          break
5684                        fi
5685                        ac_mid=`expr 2 '*' $ac_mid`
5686 fi
5687 rm -f conftest.$ac_objext conftest.$ac_ext
5688   done
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 ac_lo= ac_hi=
5694 fi
5695 rm -f conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 rm -f conftest.$ac_objext conftest.$ac_ext
5698 # Binary search between lo and hi bounds.
5699 while test "x$ac_lo" != "x$ac_hi"; do
5700   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5701   cat >conftest.$ac_ext <<_ACEOF
5702 #line $LINENO "configure"
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708 $ac_includes_default
5709 int
5710 main ()
5711 {
5712 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5713 test_array [0] = 0
5714
5715   ;
5716   return 0;
5717 }
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5721   (eval $ac_compile) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); } &&
5725          { ac_try='test -s conftest.$ac_objext'
5726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727   (eval $ac_try) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }; }; then
5731   ac_hi=$ac_mid
5732 else
5733   echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 ac_lo=`expr '(' $ac_mid ')' + 1`
5737 fi
5738 rm -f conftest.$ac_objext conftest.$ac_ext
5739 done
5740 case $ac_lo in
5741 ?*) ac_cv_sizeof_long=$ac_lo;;
5742 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5743 See \`config.log' for more details." >&5
5744 echo "$as_me: error: cannot compute sizeof (long), 77
5745 See \`config.log' for more details." >&2;}
5746    { (exit 1); exit 1; }; } ;;
5747 esac
5748 else
5749   if test "$cross_compiling" = yes; then
5750   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5751 See \`config.log' for more details." >&5
5752 echo "$as_me: error: cannot run test program while cross compiling
5753 See \`config.log' for more details." >&2;}
5754    { (exit 1); exit 1; }; }
5755 else
5756   cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 $ac_includes_default
5764 long longval () { return (long) (sizeof (long)); }
5765 unsigned long ulongval () { return (long) (sizeof (long)); }
5766 #include <stdio.h>
5767 #include <stdlib.h>
5768 int
5769 main ()
5770 {
5771
5772   FILE *f = fopen ("conftest.val", "w");
5773   if (! f)
5774     exit (1);
5775   if (((long) (sizeof (long))) < 0)
5776     {
5777       long i = longval ();
5778       if (i != ((long) (sizeof (long))))
5779         exit (1);
5780       fprintf (f, "%ld\n", i);
5781     }
5782   else
5783     {
5784       unsigned long i = ulongval ();
5785       if (i != ((long) (sizeof (long))))
5786         exit (1);
5787       fprintf (f, "%lu\n", i);
5788     }
5789   exit (ferror (f) || fclose (f) != 0);
5790
5791   ;
5792   return 0;
5793 }
5794 _ACEOF
5795 rm -f conftest$ac_exeext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5797   (eval $ac_link) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_cv_sizeof_long=`cat conftest.val`
5807 else
5808   echo "$as_me: program exited with status $ac_status" >&5
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5811
5812 ( exit $ac_status )
5813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5814 See \`config.log' for more details." >&5
5815 echo "$as_me: error: cannot compute sizeof (long), 77
5816 See \`config.log' for more details." >&2;}
5817    { (exit 1); exit 1; }; }
5818 fi
5819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5820 fi
5821 fi
5822 rm -f conftest.val
5823 else
5824   ac_cv_sizeof_long=0
5825 fi
5826 fi
5827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5828 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5829 cat >>confdefs.h <<_ACEOF
5830 #define SIZEOF_LONG $ac_cv_sizeof_long
5831 _ACEOF
5832
5833
5834
5835
5836
5837         echo "$as_me:$LINENO: checking for addrinfo" >&5
5838 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
5839         if test "${ac_cv_addrinfo+set}" = set; then
5840   echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842   cat >conftest.$ac_ext <<_ACEOF
5843 #line $LINENO "configure"
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849
5850 #               include <netdb.h>
5851 int
5852 main ()
5853 {
5854 struct addrinfo a
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -s conftest.$ac_objext'
5866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; }; then
5871   ac_cv_addrinfo=yes
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876 ac_cv_addrinfo=no
5877 fi
5878 rm -f conftest.$ac_objext conftest.$ac_ext
5879 fi
5880
5881         echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5882 echo "${ECHO_T}$ac_cv_addrinfo" >&6
5883         if test $ac_cv_addrinfo = yes; then
5884                 cat >>confdefs.h <<\_ACEOF
5885 #define HAVE_ADDRINFO 1
5886 _ACEOF
5887
5888         else
5889                 cat >>confdefs.h <<\_ACEOF
5890 #define NEED_ADDRINFO_H 1
5891 _ACEOF
5892
5893         fi
5894
5895 if test "$ac_cv_addrinfo" = no; then
5896         missing_includes=yes
5897 fi
5898
5899
5900         echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5901 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
5902         if test "${ac_cv_maxserv+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   cat >conftest.$ac_ext <<_ACEOF
5906 #line $LINENO "configure"
5907 /* confdefs.h.  */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h.  */
5912 #include <netdb.h>
5913 #ifdef NI_MAXSERV
5914 yes
5915 #endif
5916 _ACEOF
5917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5918   $EGREP "yes" >/dev/null 2>&1; then
5919   ac_cv_maxserv=yes
5920 else
5921   ac_cv_maxserv=no
5922 fi
5923 rm -f conftest*
5924
5925 fi
5926
5927         echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5928 echo "${ECHO_T}$ac_cv_maxserv" >&6
5929         if test $ac_cv_maxserv != yes; then
5930                 cat >>confdefs.h <<\_ACEOF
5931 #define NEED_ADDRINFO_H 1
5932 _ACEOF
5933
5934         fi
5935
5936 if test "$ac_cv_maxserv" = no; then
5937         missing_includes=yes
5938 fi
5939
5940
5941         echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5942 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
5943         if test "${ac_cv_namereqd+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   cat >conftest.$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5948 /* confdefs.h.  */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h.  */
5953 #include <netdb.h>
5954 #ifdef NI_NOFQDN
5955 yes
5956 #endif
5957 _ACEOF
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959   $EGREP "yes" >/dev/null 2>&1; then
5960   ac_cv_namereqd=yes
5961 else
5962   ac_cv_namereqd=no
5963 fi
5964 rm -f conftest*
5965
5966 fi
5967
5968         echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5969 echo "${ECHO_T}$ac_cv_namereqd" >&6
5970         if test $ac_cv_namereqd != yes; then
5971                 cat >>confdefs.h <<\_ACEOF
5972 #define NEED_ADDRINFO_H 1
5973 _ACEOF
5974
5975         fi
5976
5977 if test "$ac_cv_namereqd" = no; then
5978         missing_includes=yes
5979 fi
5980
5981
5982         echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5983 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
5984         if test "${ac_cv_sa_storage+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5989 /* confdefs.h.  */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h.  */
5994
5995 #               include <sys/types.h>
5996 #               include <sys/socket.h>
5997 int
5998 main ()
5999 {
6000 struct sockaddr_storage s
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007   (eval $ac_compile) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); } &&
6011          { ac_try='test -s conftest.$ac_objext'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; }; then
6017   ac_cv_sa_storage=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 ac_cv_sa_storage=no
6023 fi
6024 rm -f conftest.$ac_objext conftest.$ac_ext
6025 fi
6026
6027         echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6028 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6029         if test $ac_cv_sa_storage = yes; then
6030                 cat >>confdefs.h <<\_ACEOF
6031 #define HAVE_SOCKADDR_STORAGE 1
6032 _ACEOF
6033
6034         fi
6035
6036 if test "$ac_cv_sa_storage" = no; then
6037         missing_includes=yes
6038 fi
6039
6040
6041         ac_cv_addrsz=yes
6042         echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6043 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6044         if test "${ac_cv_inaddrsz+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   cat >conftest.$ac_ext <<_ACEOF
6048 #line $LINENO "configure"
6049 /* confdefs.h.  */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h.  */
6054
6055 #               include <arpa/nameser.h>
6056 int
6057 main ()
6058 {
6059 int a = INADDRSZ
6060   ;
6061   return 0;
6062 }
6063 _ACEOF
6064 rm -f conftest.$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066   (eval $ac_compile) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); } &&
6070          { ac_try='test -s conftest.$ac_objext'
6071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072   (eval $ac_try) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; }; then
6076   ac_cv_inaddrsz=yes
6077 else
6078   echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 ac_cv_inaddrsz=no
6082 fi
6083 rm -f conftest.$ac_objext conftest.$ac_ext
6084 fi
6085
6086         echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6087 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6088         if test $ac_cv_inaddrsz = yes; then
6089                 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_INADDRSZ 1
6091 _ACEOF
6092
6093         else
6094                 ac_cv_addrsz=no
6095         fi
6096         echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6097 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6098         if test "${ac_cv_in6addrsz+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108
6109 #               include <arpa/nameser.h>
6110 int
6111 main ()
6112 {
6113 int a = IN6ADDRSZ
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120   (eval $ac_compile) 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -s conftest.$ac_objext'
6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126   (eval $ac_try) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; }; then
6130   ac_cv_in6addrsz=yes
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135 ac_cv_in6addrsz=no
6136 fi
6137 rm -f conftest.$ac_objext conftest.$ac_ext
6138 fi
6139
6140         echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6141 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6142         if test $ac_cv_in6addrsz = yes; then
6143                 cat >>confdefs.h <<\_ACEOF
6144 #define HAVE_IN6ADDRSZ 1
6145 _ACEOF
6146
6147         else
6148                 ac_cv_addrsz=no
6149         fi
6150
6151 if test "$ac_cv_addrsz" = no; then
6152         missing_includes=yes
6153 fi
6154
6155
6156         echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6157 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6158         if test "${ac_cv_res_inet6+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168
6169 #               include <sys/types.h>
6170 #               include <netinet/in.h>
6171 #               include <resolv.h>
6172 int
6173 main ()
6174 {
6175 int a = RES_USE_INET6
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182   (eval $ac_compile) 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -s conftest.$ac_objext'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; }; then
6192   ac_cv_res_inet6=yes
6193 else
6194   echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197 ac_cv_res_inet6=no
6198 fi
6199 rm -f conftest.$ac_objext conftest.$ac_ext
6200 fi
6201
6202         echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6203 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6204         if test $ac_cv_res_inet6 = yes; then
6205                 cat >>confdefs.h <<\_ACEOF
6206 #define HAVE_RES_USE_INET6 1
6207 _ACEOF
6208
6209         fi
6210
6211 if test "$ac_cv_res_inet6" = no; then
6212         missing_includes=yes
6213 fi
6214
6215
6216         echo "$as_me:$LINENO: checking for res_state_ext" >&5
6217 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6218         if test "${ac_cv_res_state_ext+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228
6229 #               include <sys/types.h>
6230 #               include <netinet/in.h>
6231 #               include <netinet6/in6.h>
6232 #               include <resolv.h>
6233 int
6234 main ()
6235 {
6236 struct __res_state_ext e
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243   (eval $ac_compile) 2>&5
6244   ac_status=$?
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } &&
6247          { ac_try='test -s conftest.$ac_objext'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; }; then
6253   ac_cv_res_state_ext=yes
6254 else
6255   echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 ac_cv_res_state_ext=no
6259 fi
6260 rm -f conftest.$ac_objext conftest.$ac_ext
6261 fi
6262
6263         echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6264 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6265         if test $ac_cv_res_state_ext = yes; then
6266                 cat >>confdefs.h <<\_ACEOF
6267 #define HAVE_RES_STATE_EXT 1
6268 _ACEOF
6269
6270         fi
6271
6272 if test "$ac_cv_res_state_ext" = no; then
6273         missing_includes=yes
6274 fi
6275
6276
6277         echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6278 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6279         if test "${ac_cv_res_state+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   cat >conftest.$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289
6290 #               include <sys/types.h>
6291 #               include <netinet/in.h>
6292 #               include <netinet6/in6.h>
6293 #               include <resolv.h>
6294 int
6295 main ()
6296 {
6297 struct __res_state e; e.nsort = 0
6298   ;
6299   return 0;
6300 }
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304   (eval $ac_compile) 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); } &&
6308          { ac_try='test -s conftest.$ac_objext'
6309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310   (eval $ac_try) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; }; then
6314   ac_cv_res_state=yes
6315 else
6316   echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 ac_cv_res_state=no
6320 fi
6321 rm -f conftest.$ac_objext conftest.$ac_ext
6322 fi
6323
6324         echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6325 echo "${ECHO_T}$ac_cv_res_state" >&6
6326         if test $ac_cv_res_state = yes; then
6327                 cat >>confdefs.h <<\_ACEOF
6328 #define HAVE_NEW_RES_STATE 1
6329 _ACEOF
6330
6331         fi
6332
6333
6334 if test "$missing_includes" = "yes"; then
6335         CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
6336         V_INCLS="$V_INCLS -I\$(srcdir)/missing"
6337 fi
6338
6339
6340
6341
6342
6343
6344
6345
6346 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6347 do
6348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6349 echo "$as_me:$LINENO: checking for $ac_func" >&5
6350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6351 if eval "test \"\${$as_ac_var+set}\" = set"; then
6352   echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354   cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361 /* System header to define __stub macros and hopefully few prototypes,
6362     which can conflict with char $ac_func (); below.
6363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6364     <limits.h> exists even on freestanding compilers.  */
6365 #ifdef __STDC__
6366 # include <limits.h>
6367 #else
6368 # include <assert.h>
6369 #endif
6370 /* Override any gcc2 internal prototype to avoid an error.  */
6371 #ifdef __cplusplus
6372 extern "C"
6373 {
6374 #endif
6375 /* We use char because int might match the return type of a gcc2
6376    builtin and then its argument prototype would still apply.  */
6377 char $ac_func ();
6378 /* The GNU C library defines this for functions which it implements
6379     to always fail with ENOSYS.  Some functions are actually named
6380     something starting with __ and the normal name is an alias.  */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6382 choke me
6383 #else
6384 char (*f) () = $ac_func;
6385 #endif
6386 #ifdef __cplusplus
6387 }
6388 #endif
6389
6390 int
6391 main ()
6392 {
6393 return f != $ac_func;
6394   ;
6395   return 0;
6396 }
6397 _ACEOF
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400   (eval $ac_link) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } &&
6404          { ac_try='test -s conftest$ac_exeext'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; }; then
6410   eval "$as_ac_var=yes"
6411 else
6412   echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 eval "$as_ac_var=no"
6416 fi
6417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6418 fi
6419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6421 if test `eval echo '${'$as_ac_var'}'` = yes; then
6422   cat >>confdefs.h <<_ACEOF
6423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6424 _ACEOF
6425
6426 else
6427   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6428 fi
6429 done
6430
6431
6432
6433 for ac_func in strftime
6434 do
6435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6436 echo "$as_me:$LINENO: checking for $ac_func" >&5
6437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6438 if eval "test \"\${$as_ac_var+set}\" = set"; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   cat >conftest.$ac_ext <<_ACEOF
6442 #line $LINENO "configure"
6443 /* confdefs.h.  */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h.  */
6448 /* System header to define __stub macros and hopefully few prototypes,
6449     which can conflict with char $ac_func (); below.
6450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6451     <limits.h> exists even on freestanding compilers.  */
6452 #ifdef __STDC__
6453 # include <limits.h>
6454 #else
6455 # include <assert.h>
6456 #endif
6457 /* Override any gcc2 internal prototype to avoid an error.  */
6458 #ifdef __cplusplus
6459 extern "C"
6460 {
6461 #endif
6462 /* We use char because int might match the return type of a gcc2
6463    builtin and then its argument prototype would still apply.  */
6464 char $ac_func ();
6465 /* The GNU C library defines this for functions which it implements
6466     to always fail with ENOSYS.  Some functions are actually named
6467     something starting with __ and the normal name is an alias.  */
6468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6469 choke me
6470 #else
6471 char (*f) () = $ac_func;
6472 #endif
6473 #ifdef __cplusplus
6474 }
6475 #endif
6476
6477 int
6478 main ()
6479 {
6480 return f != $ac_func;
6481   ;
6482   return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext conftest$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487   (eval $ac_link) 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } &&
6491          { ac_try='test -s conftest$ac_exeext'
6492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493   (eval $ac_try) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; }; then
6497   eval "$as_ac_var=yes"
6498 else
6499   echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 eval "$as_ac_var=no"
6503 fi
6504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6505 fi
6506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6508 if test `eval echo '${'$as_ac_var'}'` = yes; then
6509   cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6511 _ACEOF
6512
6513 fi
6514 done
6515
6516
6517 for ac_func in ether_ntohost
6518 do
6519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6520 echo "$as_me:$LINENO: checking for $ac_func" >&5
6521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_var+set}\" = set"; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532 /* System header to define __stub macros and hopefully few prototypes,
6533     which can conflict with char $ac_func (); below.
6534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6535     <limits.h> exists even on freestanding compilers.  */
6536 #ifdef __STDC__
6537 # include <limits.h>
6538 #else
6539 # include <assert.h>
6540 #endif
6541 /* Override any gcc2 internal prototype to avoid an error.  */
6542 #ifdef __cplusplus
6543 extern "C"
6544 {
6545 #endif
6546 /* We use char because int might match the return type of a gcc2
6547    builtin and then its argument prototype would still apply.  */
6548 char $ac_func ();
6549 /* The GNU C library defines this for functions which it implements
6550     to always fail with ENOSYS.  Some functions are actually named
6551     something starting with __ and the normal name is an alias.  */
6552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6553 choke me
6554 #else
6555 char (*f) () = $ac_func;
6556 #endif
6557 #ifdef __cplusplus
6558 }
6559 #endif
6560
6561 int
6562 main ()
6563 {
6564 return f != $ac_func;
6565   ;
6566   return 0;
6567 }
6568 _ACEOF
6569 rm -f conftest.$ac_objext conftest$ac_exeext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6571   (eval $ac_link) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } &&
6575          { ac_try='test -s conftest$ac_exeext'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; }; then
6581   eval "$as_ac_var=yes"
6582 else
6583   echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 eval "$as_ac_var=no"
6587 fi
6588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6589 fi
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6592 if test `eval echo '${'$as_ac_var'}'` = yes; then
6593   cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6595 _ACEOF
6596
6597     echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6598 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6599 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602
6603         if test "$cross_compiling" = yes; then
6604   ac_cv_buggy_ether_ntohost="not while cross-compiling"
6605 else
6606   cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 /* confdefs.h.  */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h.  */
6613
6614                 #include <netdb.h>
6615                 #include <sys/types.h>
6616                 #include <sys/param.h>
6617                 #include <sys/socket.h>
6618
6619                 int
6620                 main(int argc, char **argv)
6621                 {
6622                         u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6623                         char name[MAXHOSTNAMELEN];
6624
6625                         ether_ntohost(name, (struct ether_addr *)ea);
6626                         exit(0);
6627                 }
6628
6629 _ACEOF
6630 rm -f conftest$ac_exeext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6632   (eval $ac_link) 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_buggy_ether_ntohost=no
6642 else
6643   echo "$as_me: program exited with status $ac_status" >&5
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 ( exit $ac_status )
6648 ac_cv_buggy_ether_ntohost=yes
6649 fi
6650 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6651 fi
6652 fi
6653 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
6654 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
6655     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6656         cat >>confdefs.h <<\_ACEOF
6657 #define USE_ETHER_NTOHOST 1
6658 _ACEOF
6659
6660     fi
6661
6662 fi
6663 done
6664
6665
6666 for ac_func in setlinebuf
6667 do
6668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_func" >&5
6670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_var+set}\" = set"; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681 /* System header to define __stub macros and hopefully few prototypes,
6682     which can conflict with char $ac_func (); below.
6683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6684     <limits.h> exists even on freestanding compilers.  */
6685 #ifdef __STDC__
6686 # include <limits.h>
6687 #else
6688 # include <assert.h>
6689 #endif
6690 /* Override any gcc2 internal prototype to avoid an error.  */
6691 #ifdef __cplusplus
6692 extern "C"
6693 {
6694 #endif
6695 /* We use char because int might match the return type of a gcc2
6696    builtin and then its argument prototype would still apply.  */
6697 char $ac_func ();
6698 /* The GNU C library defines this for functions which it implements
6699     to always fail with ENOSYS.  Some functions are actually named
6700     something starting with __ and the normal name is an alias.  */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 choke me
6703 #else
6704 char (*f) () = $ac_func;
6705 #endif
6706 #ifdef __cplusplus
6707 }
6708 #endif
6709
6710 int
6711 main ()
6712 {
6713 return f != $ac_func;
6714   ;
6715   return 0;
6716 }
6717 _ACEOF
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720   (eval $ac_link) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); } &&
6724          { ac_try='test -s conftest$ac_exeext'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; }; then
6730   eval "$as_ac_var=yes"
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 eval "$as_ac_var=no"
6736 fi
6737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6738 fi
6739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6741 if test `eval echo '${'$as_ac_var'}'` = yes; then
6742   cat >>confdefs.h <<_ACEOF
6743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6744 _ACEOF
6745
6746 fi
6747 done
6748
6749
6750 needsnprintf=no
6751
6752
6753 for ac_func in vsnprintf snprintf
6754 do
6755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 echo "$as_me:$LINENO: checking for $ac_func" >&5
6757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6758 if eval "test \"\${$as_ac_var+set}\" = set"; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768 /* System header to define __stub macros and hopefully few prototypes,
6769     which can conflict with char $ac_func (); below.
6770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6771     <limits.h> exists even on freestanding compilers.  */
6772 #ifdef __STDC__
6773 # include <limits.h>
6774 #else
6775 # include <assert.h>
6776 #endif
6777 /* Override any gcc2 internal prototype to avoid an error.  */
6778 #ifdef __cplusplus
6779 extern "C"
6780 {
6781 #endif
6782 /* We use char because int might match the return type of a gcc2
6783    builtin and then its argument prototype would still apply.  */
6784 char $ac_func ();
6785 /* The GNU C library defines this for functions which it implements
6786     to always fail with ENOSYS.  Some functions are actually named
6787     something starting with __ and the normal name is an alias.  */
6788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6789 choke me
6790 #else
6791 char (*f) () = $ac_func;
6792 #endif
6793 #ifdef __cplusplus
6794 }
6795 #endif
6796
6797 int
6798 main ()
6799 {
6800 return f != $ac_func;
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807   (eval $ac_link) 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } &&
6811          { ac_try='test -s conftest$ac_exeext'
6812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813   (eval $ac_try) 2>&5
6814   ac_status=$?
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); }; }; then
6817   eval "$as_ac_var=yes"
6818 else
6819   echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6821
6822 eval "$as_ac_var=no"
6823 fi
6824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6825 fi
6826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6828 if test `eval echo '${'$as_ac_var'}'` = yes; then
6829   cat >>confdefs.h <<_ACEOF
6830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6831 _ACEOF
6832
6833 else
6834   needsnprintf=yes
6835 fi
6836 done
6837
6838 if test $needsnprintf = yes; then
6839         LIBOBJS="$LIBOBJS snprintf.o.$ac_objext"
6840 fi
6841
6842
6843     echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6845 if test "${ac_cv_type_signal+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   cat >conftest.$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6850 /* confdefs.h.  */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h.  */
6855 #include <sys/types.h>
6856 #include <signal.h>
6857 #ifdef signal
6858 # undef signal
6859 #endif
6860 #ifdef __cplusplus
6861 extern "C" void (*signal (int, void (*)(int)))(int);
6862 #else
6863 void (*signal ()) ();
6864 #endif
6865
6866 int
6867 main ()
6868 {
6869 int i;
6870   ;
6871   return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876   (eval $ac_compile) 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); } &&
6880          { ac_try='test -s conftest.$ac_objext'
6881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882   (eval $ac_try) 2>&5
6883   ac_status=$?
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); }; }; then
6886   ac_cv_type_signal=void
6887 else
6888   echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6890
6891 ac_cv_type_signal=int
6892 fi
6893 rm -f conftest.$ac_objext conftest.$ac_ext
6894 fi
6895 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6896 echo "${ECHO_T}$ac_cv_type_signal" >&6
6897
6898 cat >>confdefs.h <<_ACEOF
6899 #define RETSIGTYPE $ac_cv_type_signal
6900 _ACEOF
6901
6902
6903     if test "$ac_cv_type_signal" = void ; then
6904             cat >>confdefs.h <<\_ACEOF
6905 #define RETSIGVAL
6906 _ACEOF
6907
6908     else
6909             cat >>confdefs.h <<\_ACEOF
6910 #define RETSIGVAL (0)
6911 _ACEOF
6912
6913     fi
6914     case "$host_os" in
6915
6916     irix*)
6917             cat >>confdefs.h <<\_ACEOF
6918 #define _BSD_SIGNALS 1
6919 _ACEOF
6920
6921             ;;
6922
6923     *)
6924
6925 for ac_func in sigaction
6926 do
6927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6928 echo "$as_me:$LINENO: checking for $ac_func" >&5
6929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6930 if eval "test \"\${$as_ac_var+set}\" = set"; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   cat >conftest.$ac_ext <<_ACEOF
6934 #line $LINENO "configure"
6935 /* confdefs.h.  */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h.  */
6940 /* System header to define __stub macros and hopefully few prototypes,
6941     which can conflict with char $ac_func (); below.
6942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6943     <limits.h> exists even on freestanding compilers.  */
6944 #ifdef __STDC__
6945 # include <limits.h>
6946 #else
6947 # include <assert.h>
6948 #endif
6949 /* Override any gcc2 internal prototype to avoid an error.  */
6950 #ifdef __cplusplus
6951 extern "C"
6952 {
6953 #endif
6954 /* We use char because int might match the return type of a gcc2
6955    builtin and then its argument prototype would still apply.  */
6956 char $ac_func ();
6957 /* The GNU C library defines this for functions which it implements
6958     to always fail with ENOSYS.  Some functions are actually named
6959     something starting with __ and the normal name is an alias.  */
6960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6961 choke me
6962 #else
6963 char (*f) () = $ac_func;
6964 #endif
6965 #ifdef __cplusplus
6966 }
6967 #endif
6968
6969 int
6970 main ()
6971 {
6972 return f != $ac_func;
6973   ;
6974   return 0;
6975 }
6976 _ACEOF
6977 rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979   (eval $ac_link) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); } &&
6983          { ac_try='test -s conftest$ac_exeext'
6984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985   (eval $ac_try) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; }; then
6989   eval "$as_ac_var=yes"
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 eval "$as_ac_var=no"
6995 fi
6996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6997 fi
6998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7000 if test `eval echo '${'$as_ac_var'}'` = yes; then
7001   cat >>confdefs.h <<_ACEOF
7002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7003 _ACEOF
7004
7005 fi
7006 done
7007
7008             if test $ac_cv_func_sigaction = no ; then
7009
7010 for ac_func in sigset
7011 do
7012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7013 echo "$as_me:$LINENO: checking for $ac_func" >&5
7014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7015 if eval "test \"\${$as_ac_var+set}\" = set"; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   cat >conftest.$ac_ext <<_ACEOF
7019 #line $LINENO "configure"
7020 /* confdefs.h.  */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h.  */
7025 /* System header to define __stub macros and hopefully few prototypes,
7026     which can conflict with char $ac_func (); below.
7027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028     <limits.h> exists even on freestanding compilers.  */
7029 #ifdef __STDC__
7030 # include <limits.h>
7031 #else
7032 # include <assert.h>
7033 #endif
7034 /* Override any gcc2 internal prototype to avoid an error.  */
7035 #ifdef __cplusplus
7036 extern "C"
7037 {
7038 #endif
7039 /* We use char because int might match the return type of a gcc2
7040    builtin and then its argument prototype would still apply.  */
7041 char $ac_func ();
7042 /* The GNU C library defines this for functions which it implements
7043     to always fail with ENOSYS.  Some functions are actually named
7044     something starting with __ and the normal name is an alias.  */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7046 choke me
7047 #else
7048 char (*f) () = $ac_func;
7049 #endif
7050 #ifdef __cplusplus
7051 }
7052 #endif
7053
7054 int
7055 main ()
7056 {
7057 return f != $ac_func;
7058   ;
7059   return 0;
7060 }
7061 _ACEOF
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064   (eval $ac_link) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); } &&
7068          { ac_try='test -s conftest$ac_exeext'
7069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070   (eval $ac_try) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); }; }; then
7074   eval "$as_ac_var=yes"
7075 else
7076   echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 eval "$as_ac_var=no"
7080 fi
7081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7082 fi
7083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7085 if test `eval echo '${'$as_ac_var'}'` = yes; then
7086   cat >>confdefs.h <<_ACEOF
7087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7088 _ACEOF
7089
7090 fi
7091 done
7092
7093             fi
7094             ;;
7095     esac
7096
7097 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7098 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7099 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   ac_func_search_save_LIBS=$LIBS
7103 ac_cv_search_dnet_htoa=no
7104 cat >conftest.$ac_ext <<_ACEOF
7105 #line $LINENO "configure"
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111
7112 /* Override any gcc2 internal prototype to avoid an error.  */
7113 #ifdef __cplusplus
7114 extern "C"
7115 #endif
7116 /* We use char because int might match the return type of a gcc2
7117    builtin and then its argument prototype would still apply.  */
7118 char dnet_htoa ();
7119 int
7120 main ()
7121 {
7122 dnet_htoa ();
7123   ;
7124   return 0;
7125 }
7126 _ACEOF
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129   (eval $ac_link) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } &&
7133          { ac_try='test -s conftest$ac_exeext'
7134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135   (eval $ac_try) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); }; }; then
7139   ac_cv_search_dnet_htoa="none required"
7140 else
7141   echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144 fi
7145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7146 if test "$ac_cv_search_dnet_htoa" = no; then
7147   for ac_lib in dnet; do
7148     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7149     cat >conftest.$ac_ext <<_ACEOF
7150 #line $LINENO "configure"
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156
7157 /* Override any gcc2 internal prototype to avoid an error.  */
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 /* We use char because int might match the return type of a gcc2
7162    builtin and then its argument prototype would still apply.  */
7163 char dnet_htoa ();
7164 int
7165 main ()
7166 {
7167 dnet_htoa ();
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174   (eval $ac_link) 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); } &&
7178          { ac_try='test -s conftest$ac_exeext'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; }; then
7184   ac_cv_search_dnet_htoa="-l$ac_lib"
7185 break
7186 else
7187   echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 fi
7191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7192   done
7193 fi
7194 LIBS=$ac_func_search_save_LIBS
7195 fi
7196 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7197 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7198 if test "$ac_cv_search_dnet_htoa" != no; then
7199   test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7200   cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_DNET_HTOA 1
7202 _ACEOF
7203
7204 fi
7205
7206
7207
7208 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7209 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7210 if test "${ac_cv_lib_rpc_main+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   ac_check_lib_save_LIBS=$LIBS
7214 LIBS="-lrpc  $LIBS"
7215 cat >conftest.$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222
7223
7224 int
7225 main ()
7226 {
7227 main ();
7228   ;
7229   return 0;
7230 }
7231 _ACEOF
7232 rm -f conftest.$ac_objext conftest$ac_exeext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7234   (eval $ac_link) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } &&
7238          { ac_try='test -s conftest$ac_exeext'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; }; then
7244   ac_cv_lib_rpc_main=yes
7245 else
7246   echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7248
7249 ac_cv_lib_rpc_main=no
7250 fi
7251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7252 LIBS=$ac_check_lib_save_LIBS
7253 fi
7254 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7255 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7256 if test $ac_cv_lib_rpc_main = yes; then
7257   cat >>confdefs.h <<_ACEOF
7258 #define HAVE_LIBRPC 1
7259 _ACEOF
7260
7261   LIBS="-lrpc $LIBS"
7262
7263 fi
7264
7265 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7266 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7267 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   ac_func_search_save_LIBS=$LIBS
7271 ac_cv_search_getrpcbynumber=no
7272 cat >conftest.$ac_ext <<_ACEOF
7273 #line $LINENO "configure"
7274 /* confdefs.h.  */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h.  */
7279
7280 /* Override any gcc2 internal prototype to avoid an error.  */
7281 #ifdef __cplusplus
7282 extern "C"
7283 #endif
7284 /* We use char because int might match the return type of a gcc2
7285    builtin and then its argument prototype would still apply.  */
7286 char getrpcbynumber ();
7287 int
7288 main ()
7289 {
7290 getrpcbynumber ();
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297   (eval $ac_link) 2>&5
7298   ac_status=$?
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); } &&
7301          { ac_try='test -s conftest$ac_exeext'
7302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303   (eval $ac_try) 2>&5
7304   ac_status=$?
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); }; }; then
7307   ac_cv_search_getrpcbynumber="none required"
7308 else
7309   echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7311
7312 fi
7313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7314 if test "$ac_cv_search_getrpcbynumber" = no; then
7315   for ac_lib in nsl; do
7316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7317     cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324
7325 /* Override any gcc2 internal prototype to avoid an error.  */
7326 #ifdef __cplusplus
7327 extern "C"
7328 #endif
7329 /* We use char because int might match the return type of a gcc2
7330    builtin and then its argument prototype would still apply.  */
7331 char getrpcbynumber ();
7332 int
7333 main ()
7334 {
7335 getrpcbynumber ();
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342   (eval $ac_link) 2>&5
7343   ac_status=$?
7344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345   (exit $ac_status); } &&
7346          { ac_try='test -s conftest$ac_exeext'
7347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); }; }; then
7352   ac_cv_search_getrpcbynumber="-l$ac_lib"
7353 break
7354 else
7355   echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.$ac_ext >&5
7357
7358 fi
7359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7360   done
7361 fi
7362 LIBS=$ac_func_search_save_LIBS
7363 fi
7364 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7365 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7366 if test "$ac_cv_search_getrpcbynumber" != no; then
7367   test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7368
7369 fi
7370
7371
7372
7373
7374     # Most operating systems have gethostbyname() in the default searched
7375     # libraries (i.e. libc):
7376     # Some OSes (eg. Solaris) place it in libnsl
7377     # Some strange OSes (SINIX) have it in libsocket:
7378     echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7379 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7380 if test "${ac_cv_search_gethostbyname+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   ac_func_search_save_LIBS=$LIBS
7384 ac_cv_search_gethostbyname=no
7385 cat >conftest.$ac_ext <<_ACEOF
7386 #line $LINENO "configure"
7387 /* confdefs.h.  */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h.  */
7392
7393 /* Override any gcc2 internal prototype to avoid an error.  */
7394 #ifdef __cplusplus
7395 extern "C"
7396 #endif
7397 /* We use char because int might match the return type of a gcc2
7398    builtin and then its argument prototype would still apply.  */
7399 char gethostbyname ();
7400 int
7401 main ()
7402 {
7403 gethostbyname ();
7404   ;
7405   return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410   (eval $ac_link) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); } &&
7414          { ac_try='test -s conftest$ac_exeext'
7415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416   (eval $ac_try) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); }; }; then
7420   ac_cv_search_gethostbyname="none required"
7421 else
7422   echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425 fi
7426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7427 if test "$ac_cv_search_gethostbyname" = no; then
7428   for ac_lib in nsl socket resolv; do
7429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7430     cat >conftest.$ac_ext <<_ACEOF
7431 #line $LINENO "configure"
7432 /* confdefs.h.  */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h.  */
7437
7438 /* Override any gcc2 internal prototype to avoid an error.  */
7439 #ifdef __cplusplus
7440 extern "C"
7441 #endif
7442 /* We use char because int might match the return type of a gcc2
7443    builtin and then its argument prototype would still apply.  */
7444 char gethostbyname ();
7445 int
7446 main ()
7447 {
7448 gethostbyname ();
7449   ;
7450   return 0;
7451 }
7452 _ACEOF
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7455   (eval $ac_link) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); } &&
7459          { ac_try='test -s conftest$ac_exeext'
7460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461   (eval $ac_try) 2>&5
7462   ac_status=$?
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); }; }; then
7465   ac_cv_search_gethostbyname="-l$ac_lib"
7466 break
7467 else
7468   echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471 fi
7472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7473   done
7474 fi
7475 LIBS=$ac_func_search_save_LIBS
7476 fi
7477 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7478 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7479 if test "$ac_cv_search_gethostbyname" != no; then
7480   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7481
7482 fi
7483
7484     # Unfortunately libsocket sometimes depends on libnsl and
7485     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7486     if test "$ac_cv_search_gethostbyname" = "no"
7487     then
7488         echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7489 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7490 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   ac_check_lib_save_LIBS=$LIBS
7494 LIBS="-lsocket -lnsl $LIBS"
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7497 /* confdefs.h.  */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h.  */
7502
7503 /* Override any gcc2 internal prototype to avoid an error.  */
7504 #ifdef __cplusplus
7505 extern "C"
7506 #endif
7507 /* We use char because int might match the return type of a gcc2
7508    builtin and then its argument prototype would still apply.  */
7509 char gethostbyname ();
7510 int
7511 main ()
7512 {
7513 gethostbyname ();
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext conftest$ac_exeext
7519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7520   (eval $ac_link) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); } &&
7524          { ac_try='test -s conftest$ac_exeext'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; }; then
7530   ac_cv_lib_socket_gethostbyname=yes
7531 else
7532   echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ac_cv_lib_socket_gethostbyname=no
7536 fi
7537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7538 LIBS=$ac_check_lib_save_LIBS
7539 fi
7540 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7541 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7542 if test $ac_cv_lib_socket_gethostbyname = yes; then
7543   LIBS="-lsocket -lnsl $LIBS"
7544 fi
7545
7546     fi
7547     echo "$as_me:$LINENO: checking for library containing socket" >&5
7548 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7549 if test "${ac_cv_search_socket+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   ac_func_search_save_LIBS=$LIBS
7553 ac_cv_search_socket=no
7554 cat >conftest.$ac_ext <<_ACEOF
7555 #line $LINENO "configure"
7556 /* confdefs.h.  */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h.  */
7561
7562 /* Override any gcc2 internal prototype to avoid an error.  */
7563 #ifdef __cplusplus
7564 extern "C"
7565 #endif
7566 /* We use char because int might match the return type of a gcc2
7567    builtin and then its argument prototype would still apply.  */
7568 char socket ();
7569 int
7570 main ()
7571 {
7572 socket ();
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 rm -f conftest.$ac_objext conftest$ac_exeext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7579   (eval $ac_link) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); } &&
7583          { ac_try='test -s conftest$ac_exeext'
7584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585   (eval $ac_try) 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); }; }; then
7589   ac_cv_search_socket="none required"
7590 else
7591   echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 fi
7595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7596 if test "$ac_cv_search_socket" = no; then
7597   for ac_lib in socket; do
7598     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7599     cat >conftest.$ac_ext <<_ACEOF
7600 #line $LINENO "configure"
7601 /* confdefs.h.  */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h.  */
7606
7607 /* Override any gcc2 internal prototype to avoid an error.  */
7608 #ifdef __cplusplus
7609 extern "C"
7610 #endif
7611 /* We use char because int might match the return type of a gcc2
7612    builtin and then its argument prototype would still apply.  */
7613 char socket ();
7614 int
7615 main ()
7616 {
7617 socket ();
7618   ;
7619   return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624   (eval $ac_link) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); } &&
7628          { ac_try='test -s conftest$ac_exeext'
7629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630   (eval $ac_try) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; }; then
7634   ac_cv_search_socket="-l$ac_lib"
7635 break
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640 fi
7641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7642   done
7643 fi
7644 LIBS=$ac_func_search_save_LIBS
7645 fi
7646 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7647 echo "${ECHO_T}$ac_cv_search_socket" >&6
7648 if test "$ac_cv_search_socket" != no; then
7649   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7650
7651 else
7652   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7653 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7654 if test "${ac_cv_lib_socket_socket+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   ac_check_lib_save_LIBS=$LIBS
7658 LIBS="-lsocket -lnsl $LIBS"
7659 cat >conftest.$ac_ext <<_ACEOF
7660 #line $LINENO "configure"
7661 /* confdefs.h.  */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h.  */
7666
7667 /* Override any gcc2 internal prototype to avoid an error.  */
7668 #ifdef __cplusplus
7669 extern "C"
7670 #endif
7671 /* We use char because int might match the return type of a gcc2
7672    builtin and then its argument prototype would still apply.  */
7673 char socket ();
7674 int
7675 main ()
7676 {
7677 socket ();
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 rm -f conftest.$ac_objext conftest$ac_exeext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7684   (eval $ac_link) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } &&
7688          { ac_try='test -s conftest$ac_exeext'
7689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690   (eval $ac_try) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; }; then
7694   ac_cv_lib_socket_socket=yes
7695 else
7696   echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7698
7699 ac_cv_lib_socket_socket=no
7700 fi
7701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7702 LIBS=$ac_check_lib_save_LIBS
7703 fi
7704 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7705 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7706 if test $ac_cv_lib_socket_socket = yes; then
7707   LIBS="-lsocket -lnsl $LIBS"
7708 fi
7709
7710 fi
7711
7712     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
7713     echo "$as_me:$LINENO: checking for library containing putmsg" >&5
7714 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
7715 if test "${ac_cv_search_putmsg+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   ac_func_search_save_LIBS=$LIBS
7719 ac_cv_search_putmsg=no
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line $LINENO "configure"
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727
7728 /* Override any gcc2 internal prototype to avoid an error.  */
7729 #ifdef __cplusplus
7730 extern "C"
7731 #endif
7732 /* We use char because int might match the return type of a gcc2
7733    builtin and then its argument prototype would still apply.  */
7734 char putmsg ();
7735 int
7736 main ()
7737 {
7738 putmsg ();
7739   ;
7740   return 0;
7741 }
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745   (eval $ac_link) 2>&5
7746   ac_status=$?
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); } &&
7749          { ac_try='test -s conftest$ac_exeext'
7750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751   (eval $ac_try) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; }; then
7755   ac_cv_search_putmsg="none required"
7756 else
7757   echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 fi
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7762 if test "$ac_cv_search_putmsg" = no; then
7763   for ac_lib in str; do
7764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7765     cat >conftest.$ac_ext <<_ACEOF
7766 #line $LINENO "configure"
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772
7773 /* Override any gcc2 internal prototype to avoid an error.  */
7774 #ifdef __cplusplus
7775 extern "C"
7776 #endif
7777 /* We use char because int might match the return type of a gcc2
7778    builtin and then its argument prototype would still apply.  */
7779 char putmsg ();
7780 int
7781 main ()
7782 {
7783 putmsg ();
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext conftest$ac_exeext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790   (eval $ac_link) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } &&
7794          { ac_try='test -s conftest$ac_exeext'
7795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796   (eval $ac_try) 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; }; then
7800   ac_cv_search_putmsg="-l$ac_lib"
7801 break
7802 else
7803   echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806 fi
7807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7808   done
7809 fi
7810 LIBS=$ac_func_search_save_LIBS
7811 fi
7812 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7813 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
7814 if test "$ac_cv_search_putmsg" != no; then
7815   test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
7816
7817 fi
7818
7819
7820
7821                 LBL_LIBS="$LIBS"
7822     pfopen=/usr/examples/packetfilter/pfopen.c
7823     if test -f $pfopen ; then
7824
7825 for ac_func in pfopen
7826 do
7827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7828 echo "$as_me:$LINENO: checking for $ac_func" >&5
7829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7830 if eval "test \"\${$as_ac_var+set}\" = set"; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833   cat >conftest.$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840 /* System header to define __stub macros and hopefully few prototypes,
7841     which can conflict with char $ac_func (); below.
7842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7843     <limits.h> exists even on freestanding compilers.  */
7844 #ifdef __STDC__
7845 # include <limits.h>
7846 #else
7847 # include <assert.h>
7848 #endif
7849 /* Override any gcc2 internal prototype to avoid an error.  */
7850 #ifdef __cplusplus
7851 extern "C"
7852 {
7853 #endif
7854 /* We use char because int might match the return type of a gcc2
7855    builtin and then its argument prototype would still apply.  */
7856 char $ac_func ();
7857 /* The GNU C library defines this for functions which it implements
7858     to always fail with ENOSYS.  Some functions are actually named
7859     something starting with __ and the normal name is an alias.  */
7860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7861 choke me
7862 #else
7863 char (*f) () = $ac_func;
7864 #endif
7865 #ifdef __cplusplus
7866 }
7867 #endif
7868
7869 int
7870 main ()
7871 {
7872 return f != $ac_func;
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879   (eval $ac_link) 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -s conftest$ac_exeext'
7884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885   (eval $ac_try) 2>&5
7886   ac_status=$?
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); }; }; then
7889   eval "$as_ac_var=yes"
7890 else
7891   echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 eval "$as_ac_var=no"
7895 fi
7896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7897 fi
7898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7900 if test `eval echo '${'$as_ac_var'}'` = yes; then
7901   cat >>confdefs.h <<_ACEOF
7902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7903 _ACEOF
7904
7905 fi
7906 done
7907
7908             if test $ac_cv_func_pfopen = "no" ; then
7909                     echo "$as_me:$LINENO: result: Using $pfopen" >&5
7910 echo "${ECHO_T}Using $pfopen" >&6
7911                     LIBS="$LIBS $pfopen"
7912             fi
7913     fi
7914     echo "$as_me:$LINENO: checking for local pcap library" >&5
7915 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
7916     libpcap=FAIL
7917     lastdir=FAIL
7918     places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7919         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7920     for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7921             basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
7922             if test $lastdir = $basedir ; then
7923                                     continue;
7924             fi
7925             lastdir=$dir
7926             if test -r $dir/libpcap.a ; then
7927                     libpcap=$dir/libpcap.a
7928                     d=$dir
7929                             fi
7930     done
7931     if test $libpcap = FAIL ; then
7932             echo "$as_me:$LINENO: result: not found" >&5
7933 echo "${ECHO_T}not found" >&6
7934             echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7935 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
7936 if test "${ac_cv_lib_pcap_main+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   ac_check_lib_save_LIBS=$LIBS
7940 LIBS="-lpcap  $LIBS"
7941 cat >conftest.$ac_ext <<_ACEOF
7942 #line $LINENO "configure"
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948
7949
7950 int
7951 main ()
7952 {
7953 main ();
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960   (eval $ac_link) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } &&
7964          { ac_try='test -s conftest$ac_exeext'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_cv_lib_pcap_main=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_lib_pcap_main=no
7976 fi
7977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7978 LIBS=$ac_check_lib_save_LIBS
7979 fi
7980 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7981 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
7982 if test $ac_cv_lib_pcap_main = yes; then
7983   libpcap="-lpcap"
7984 fi
7985
7986             if test $libpcap = FAIL ; then
7987                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7988 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7989    { (exit 1); exit 1; }; }
7990             fi
7991                                                                                                                                     echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7992 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
7993             if test \( ! -r /usr/local/include/pcap.h \) -a \
7994                         \( ! -r /usr/include/pcap.h \); then
7995                 if test -r /usr/local/include/pcap/pcap.h; then
7996                     d="/usr/local/include/pcap"
7997                 elif test -r /usr/include/pcap/pcap.h; then
7998                     d="/usr/include/pcap"
7999                 fi
8000             fi
8001             if test -z "$d" ; then
8002                 echo "$as_me:$LINENO: result: not found" >&5
8003 echo "${ECHO_T}not found" >&6
8004             else
8005                 V_INCLS="-I$d $V_INCLS"
8006                 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8007 echo "${ECHO_T}found -- -I$d added" >&6
8008             fi
8009     else
8010             V_PCAPDEP=$libpcap
8011             places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8012                         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8013             if test -r $d/pcap.h; then
8014                     V_INCLS="-I$d $V_INCLS"
8015             elif test -r $places/pcap.h; then
8016                     V_INCLS="-I$places $V_INCLS"
8017             else
8018                     { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8019 echo "$as_me: error: cannot find pcap.h" >&2;}
8020    { (exit see INSTALL); exit see INSTALL; }; }
8021             fi
8022             echo "$as_me:$LINENO: result: $libpcap" >&5
8023 echo "${ECHO_T}$libpcap" >&6
8024     fi
8025     LIBS="$libpcap $LIBS"
8026     case "$host_os" in
8027
8028     aix*)
8029             pseexe="/lib/pse.exp"
8030             echo "$as_me:$LINENO: checking for $pseexe" >&5
8031 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8032             if test -f $pseexe ; then
8033                     echo "$as_me:$LINENO: result: yes" >&5
8034 echo "${ECHO_T}yes" >&6
8035                     LIBS="$LIBS -I:$pseexe"
8036             fi
8037             #
8038             # We need "-lodm" and "-lcfg", as libpcap requires them on
8039             # AIX, and we just build a static libpcap.a and thus can't
8040             # arrange that when you link with libpcap you automatically
8041             # link with those libraries.
8042             #
8043             LIBS="$LIBS -lodm -lcfg"
8044             ;;
8045     esac
8046
8047                         echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8048 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8049 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   cat >conftest.$ac_ext <<_ACEOF
8053 #line $LINENO "configure"
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059 /* System header to define __stub macros and hopefully few prototypes,
8060     which can conflict with char pcap_list_datalinks (); below.
8061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8062     <limits.h> exists even on freestanding compilers.  */
8063 #ifdef __STDC__
8064 # include <limits.h>
8065 #else
8066 # include <assert.h>
8067 #endif
8068 /* Override any gcc2 internal prototype to avoid an error.  */
8069 #ifdef __cplusplus
8070 extern "C"
8071 {
8072 #endif
8073 /* We use char because int might match the return type of a gcc2
8074    builtin and then its argument prototype would still apply.  */
8075 char pcap_list_datalinks ();
8076 /* The GNU C library defines this for functions which it implements
8077     to always fail with ENOSYS.  Some functions are actually named
8078     something starting with __ and the normal name is an alias.  */
8079 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8080 choke me
8081 #else
8082 char (*f) () = pcap_list_datalinks;
8083 #endif
8084 #ifdef __cplusplus
8085 }
8086 #endif
8087
8088 int
8089 main ()
8090 {
8091 return f != pcap_list_datalinks;
8092   ;
8093   return 0;
8094 }
8095 _ACEOF
8096 rm -f conftest.$ac_objext conftest$ac_exeext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8098   (eval $ac_link) 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); } &&
8102          { ac_try='test -s conftest$ac_exeext'
8103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104   (eval $ac_try) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); }; }; then
8108   ac_cv_func_pcap_list_datalinks=yes
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 ac_cv_func_pcap_list_datalinks=no
8114 fi
8115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8116 fi
8117 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8118 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8119 if test $ac_cv_func_pcap_list_datalinks = yes; then
8120   cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_PCAP_LIST_DATALINKS 1
8122 _ACEOF
8123
8124 else
8125   LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8126 fi
8127
8128     echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8129 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8130 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   cat >conftest.$ac_ext <<_ACEOF
8134 #line $LINENO "configure"
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 /* System header to define __stub macros and hopefully few prototypes,
8141     which can conflict with char pcap_set_datalink (); below.
8142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8143     <limits.h> exists even on freestanding compilers.  */
8144 #ifdef __STDC__
8145 # include <limits.h>
8146 #else
8147 # include <assert.h>
8148 #endif
8149 /* Override any gcc2 internal prototype to avoid an error.  */
8150 #ifdef __cplusplus
8151 extern "C"
8152 {
8153 #endif
8154 /* We use char because int might match the return type of a gcc2
8155    builtin and then its argument prototype would still apply.  */
8156 char pcap_set_datalink ();
8157 /* The GNU C library defines this for functions which it implements
8158     to always fail with ENOSYS.  Some functions are actually named
8159     something starting with __ and the normal name is an alias.  */
8160 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8161 choke me
8162 #else
8163 char (*f) () = pcap_set_datalink;
8164 #endif
8165 #ifdef __cplusplus
8166 }
8167 #endif
8168
8169 int
8170 main ()
8171 {
8172 return f != pcap_set_datalink;
8173   ;
8174   return 0;
8175 }
8176 _ACEOF
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179   (eval $ac_link) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); } &&
8183          { ac_try='test -s conftest$ac_exeext'
8184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185   (eval $ac_try) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   ac_cv_func_pcap_set_datalink=yes
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_cv_func_pcap_set_datalink=no
8195 fi
8196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8197 fi
8198 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8199 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8200 if test $ac_cv_func_pcap_set_datalink = yes; then
8201   cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_PCAP_SET_DATALINK 1
8203 _ACEOF
8204
8205 fi
8206
8207     echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8208 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8209 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8214 /* confdefs.h.  */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h.  */
8219 /* System header to define __stub macros and hopefully few prototypes,
8220     which can conflict with char pcap_datalink_name_to_val (); below.
8221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8222     <limits.h> exists even on freestanding compilers.  */
8223 #ifdef __STDC__
8224 # include <limits.h>
8225 #else
8226 # include <assert.h>
8227 #endif
8228 /* Override any gcc2 internal prototype to avoid an error.  */
8229 #ifdef __cplusplus
8230 extern "C"
8231 {
8232 #endif
8233 /* We use char because int might match the return type of a gcc2
8234    builtin and then its argument prototype would still apply.  */
8235 char pcap_datalink_name_to_val ();
8236 /* The GNU C library defines this for functions which it implements
8237     to always fail with ENOSYS.  Some functions are actually named
8238     something starting with __ and the normal name is an alias.  */
8239 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8240 choke me
8241 #else
8242 char (*f) () = pcap_datalink_name_to_val;
8243 #endif
8244 #ifdef __cplusplus
8245 }
8246 #endif
8247
8248 int
8249 main ()
8250 {
8251 return f != pcap_datalink_name_to_val;
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258   (eval $ac_link) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } &&
8262          { ac_try='test -s conftest$ac_exeext'
8263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264   (eval $ac_try) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   ac_cv_func_pcap_datalink_name_to_val=yes
8269 else
8270   echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 ac_cv_func_pcap_datalink_name_to_val=no
8274 fi
8275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8276 fi
8277 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8278 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8279 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8280
8281             cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8283 _ACEOF
8284
8285             echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8286 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8287 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   cat >conftest.$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297 /* System header to define __stub macros and hopefully few prototypes,
8298     which can conflict with char pcap_datalink_val_to_description (); below.
8299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8300     <limits.h> exists even on freestanding compilers.  */
8301 #ifdef __STDC__
8302 # include <limits.h>
8303 #else
8304 # include <assert.h>
8305 #endif
8306 /* Override any gcc2 internal prototype to avoid an error.  */
8307 #ifdef __cplusplus
8308 extern "C"
8309 {
8310 #endif
8311 /* We use char because int might match the return type of a gcc2
8312    builtin and then its argument prototype would still apply.  */
8313 char pcap_datalink_val_to_description ();
8314 /* The GNU C library defines this for functions which it implements
8315     to always fail with ENOSYS.  Some functions are actually named
8316     something starting with __ and the normal name is an alias.  */
8317 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8318 choke me
8319 #else
8320 char (*f) () = pcap_datalink_val_to_description;
8321 #endif
8322 #ifdef __cplusplus
8323 }
8324 #endif
8325
8326 int
8327 main ()
8328 {
8329 return f != pcap_datalink_val_to_description;
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336   (eval $ac_link) 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -s conftest$ac_exeext'
8341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342   (eval $ac_try) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); }; }; then
8346   ac_cv_func_pcap_datalink_val_to_description=yes
8347 else
8348   echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351 ac_cv_func_pcap_datalink_val_to_description=no
8352 fi
8353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8354 fi
8355 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8356 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8357 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8358   cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8360 _ACEOF
8361
8362 else
8363   LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8364 fi
8365
8366
8367 else
8368   LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8369 fi
8370
8371
8372
8373 for ac_func in pcap_breakloop
8374 do
8375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8376 echo "$as_me:$LINENO: checking for $ac_func" >&5
8377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8378 if eval "test \"\${$as_ac_var+set}\" = set"; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   cat >conftest.$ac_ext <<_ACEOF
8382 #line $LINENO "configure"
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388 /* System header to define __stub macros and hopefully few prototypes,
8389     which can conflict with char $ac_func (); below.
8390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391     <limits.h> exists even on freestanding compilers.  */
8392 #ifdef __STDC__
8393 # include <limits.h>
8394 #else
8395 # include <assert.h>
8396 #endif
8397 /* Override any gcc2 internal prototype to avoid an error.  */
8398 #ifdef __cplusplus
8399 extern "C"
8400 {
8401 #endif
8402 /* We use char because int might match the return type of a gcc2
8403    builtin and then its argument prototype would still apply.  */
8404 char $ac_func ();
8405 /* The GNU C library defines this for functions which it implements
8406     to always fail with ENOSYS.  Some functions are actually named
8407     something starting with __ and the normal name is an alias.  */
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8409 choke me
8410 #else
8411 char (*f) () = $ac_func;
8412 #endif
8413 #ifdef __cplusplus
8414 }
8415 #endif
8416
8417 int
8418 main ()
8419 {
8420 return f != $ac_func;
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427   (eval $ac_link) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -s conftest$ac_exeext'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; }; then
8437   eval "$as_ac_var=yes"
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442 eval "$as_ac_var=no"
8443 fi
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8445 fi
8446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8448 if test `eval echo '${'$as_ac_var'}'` = yes; then
8449   cat >>confdefs.h <<_ACEOF
8450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8451 _ACEOF
8452
8453 fi
8454 done
8455
8456
8457
8458 #
8459 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8460 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8461 #
8462 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8463 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8464 # to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
8465 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8466 # it does not ship with a libc symbol "inet_ntop()", it ships with
8467 # "_inet_ntop()", and has a #define macro in one of the system headers
8468 # to rename it.
8469 #
8470 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8471 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line $LINENO "configure"
8474 /* confdefs.h.  */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h.  */
8479 #include <sys/types.h>
8480 #include <sys/socket.h>
8481 #include <netinet/in.h>
8482 #include <arpa/inet.h>
8483 int
8484 main ()
8485 {
8486 char src[4], dst[128];
8487 inet_ntop(AF_INET, src, dst, sizeof(dst));
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494   (eval $ac_link) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } &&
8498          { ac_try='test -s conftest$ac_exeext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6
8512         LIBOBJS="$LIBOBJS inet_ntop.o.$ac_objext"
8513 fi
8514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8515 echo "$as_me:$LINENO: checking for inet_pton" >&5
8516 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8518 #line $LINENO "configure"
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524 #include <sys/types.h>
8525 #include <sys/socket.h>
8526 #include <netinet/in.h>
8527 #include <arpa/inet.h>
8528 int
8529 main ()
8530 {
8531 char src[128], dst[4];
8532 inet_pton(AF_INET, src, dst);
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539   (eval $ac_link) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); } &&
8543          { ac_try='test -s conftest$ac_exeext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   echo "$as_me:$LINENO: result: yes" >&5
8550 echo "${ECHO_T}yes" >&6
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555 echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6
8557         LIBOBJS="$LIBOBJS inet_pton.o.$ac_objext"
8558 fi
8559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8560 echo "$as_me:$LINENO: checking for inet_aton" >&5
8561 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569 #include <sys/types.h>
8570 #include <netinet/in.h>
8571 #include <arpa/inet.h>
8572 int
8573 main ()
8574 {
8575 char src[128];
8576 struct in_addr dst;
8577 inet_aton(src, &dst);
8578   ;
8579   return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest.$ac_objext conftest$ac_exeext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584   (eval $ac_link) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } &&
8588          { ac_try='test -s conftest$ac_exeext'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; }; then
8594   echo "$as_me:$LINENO: result: yes" >&5
8595 echo "${ECHO_T}yes" >&6
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600 echo "$as_me:$LINENO: result: no" >&5
8601 echo "${ECHO_T}no" >&6
8602         LIBOBJS="$LIBOBJS inet_aton.o.$ac_objext"
8603 fi
8604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8605
8606
8607         echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8608 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
8609         if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612   cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619
8620 #               include <sys/types.h>
8621 #               include <sys/socket.h>
8622 int
8623 main ()
8624 {
8625 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632   (eval $ac_compile) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } &&
8636          { ac_try='test -s conftest.$ac_objext'
8637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638   (eval $ac_try) 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; }; then
8642   ac_cv_sockaddr_has_sa_len=yes
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647 ac_cv_sockaddr_has_sa_len=no
8648 fi
8649 rm -f conftest.$ac_objext conftest.$ac_ext
8650 fi
8651
8652         echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
8653 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
8654                 if test $ac_cv_sockaddr_has_sa_len = yes ; then
8655                         cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_SOCKADDR_SA_LEN 1
8657 _ACEOF
8658
8659         fi
8660
8661 if test "$ac_cv_sockaddr_has_sa_len" = no; then
8662         missing_includes=yes
8663 fi
8664
8665
8666
8667
8668 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
8669 do
8670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8671 echo "$as_me:$LINENO: checking for $ac_func" >&5
8672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_var+set}\" = set"; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   cat >conftest.$ac_ext <<_ACEOF
8677 #line $LINENO "configure"
8678 /* confdefs.h.  */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h.  */
8683 /* System header to define __stub macros and hopefully few prototypes,
8684     which can conflict with char $ac_func (); below.
8685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8686     <limits.h> exists even on freestanding compilers.  */
8687 #ifdef __STDC__
8688 # include <limits.h>
8689 #else
8690 # include <assert.h>
8691 #endif
8692 /* Override any gcc2 internal prototype to avoid an error.  */
8693 #ifdef __cplusplus
8694 extern "C"
8695 {
8696 #endif
8697 /* We use char because int might match the return type of a gcc2
8698    builtin and then its argument prototype would still apply.  */
8699 char $ac_func ();
8700 /* The GNU C library defines this for functions which it implements
8701     to always fail with ENOSYS.  Some functions are actually named
8702     something starting with __ and the normal name is an alias.  */
8703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8704 choke me
8705 #else
8706 char (*f) () = $ac_func;
8707 #endif
8708 #ifdef __cplusplus
8709 }
8710 #endif
8711
8712 int
8713 main ()
8714 {
8715 return f != $ac_func;
8716   ;
8717   return 0;
8718 }
8719 _ACEOF
8720 rm -f conftest.$ac_objext conftest$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722   (eval $ac_link) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732   eval "$as_ac_var=yes"
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 eval "$as_ac_var=no"
8738 fi
8739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8740 fi
8741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8743 if test `eval echo '${'$as_ac_var'}'` = yes; then
8744   cat >>confdefs.h <<_ACEOF
8745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8746 _ACEOF
8747
8748 fi
8749 done
8750
8751 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
8752     echo "$as_me:$LINENO: checking for pcap_if_t" >&5
8753 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
8754 if test "${ac_cv_type_pcap_if_t+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   cat >conftest.$ac_ext <<_ACEOF
8758 #line $LINENO "configure"
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764 #include <pcap.h>
8765
8766 int
8767 main ()
8768 {
8769 if ((pcap_if_t *) 0)
8770   return 0;
8771 if (sizeof (pcap_if_t))
8772   return 0;
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779   (eval $ac_compile) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } &&
8783          { ac_try='test -s conftest.$ac_objext'
8784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785   (eval $ac_try) 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }; }; then
8789   ac_cv_type_pcap_if_t=yes
8790 else
8791   echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 ac_cv_type_pcap_if_t=no
8795 fi
8796 rm -f conftest.$ac_objext conftest.$ac_ext
8797 fi
8798 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
8799 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
8800 if test $ac_cv_type_pcap_if_t = yes; then
8801
8802 cat >>confdefs.h <<_ACEOF
8803 #define HAVE_PCAP_IF_T 1
8804 _ACEOF
8805
8806
8807 fi
8808
8809 fi
8810 if test $ac_cv_func_pcap_lib_version = "no" ; then
8811     echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
8812 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
8813     cat >conftest.$ac_ext <<_ACEOF
8814 #line $LINENO "configure"
8815 /* confdefs.h.  */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h.  */
8820
8821 int
8822 main ()
8823 {
8824
8825 char *
8826 return_pcap_version(void)
8827 {
8828         extern char pcap_version[];
8829
8830         return pcap_version;
8831 }
8832
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839   (eval $ac_link) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } &&
8843          { ac_try='test -s conftest$ac_exeext'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   ac_lbl_cv_pcap_version_defined=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ac_lbl_cv_pcap_version_defined=no
8855 fi
8856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8857     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
8858         echo "$as_me:$LINENO: result: yes" >&5
8859 echo "${ECHO_T}yes" >&6
8860         cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_PCAP_VERSION 1
8862 _ACEOF
8863
8864     else
8865         echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6
8867     fi
8868 fi
8869 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
8870 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
8871 cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878
8879 int
8880 main ()
8881 {
8882
8883 int
8884 return_pcap_debug(void)
8885 {
8886         extern int pcap_debug;
8887
8888         return pcap_debug;
8889 }
8890
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 rm -f conftest.$ac_objext conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897   (eval $ac_link) 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); } &&
8901          { ac_try='test -s conftest$ac_exeext'
8902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903   (eval $ac_try) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); }; }; then
8907   ac_lbl_cv_pcap_debug_defined=yes
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 ac_lbl_cv_pcap_debug_defined=no
8913 fi
8914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8915 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
8916         echo "$as_me:$LINENO: result: yes" >&5
8917 echo "${ECHO_T}yes" >&6
8918         cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_PCAP_DEBUG 1
8920 _ACEOF
8921
8922 else
8923         echo "$as_me:$LINENO: result: no" >&5
8924 echo "${ECHO_T}no" >&6
8925         #
8926         # OK, what about "yydebug"?
8927         #
8928         echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
8929 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
8930         cat >conftest.$ac_ext <<_ACEOF
8931 #line $LINENO "configure"
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937
8938 int
8939 main ()
8940 {
8941
8942         int
8943         return_yydebug(void)
8944         {
8945                 extern int yydebug;
8946
8947                 return yydebug;
8948         }
8949
8950   ;
8951   return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956   (eval $ac_link) 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } &&
8960          { ac_try='test -s conftest$ac_exeext'
8961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962   (eval $ac_try) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); }; }; then
8966   ac_lbl_cv_yydebug_defined=yes
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971 ac_lbl_cv_yydebug_defined=no
8972 fi
8973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8974         if test "$ac_lbl_cv_yydebug_defined" = yes ; then
8975                 echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6
8977                 cat >>confdefs.h <<\_ACEOF
8978 #define HAVE_YYDEBUG 1
8979 _ACEOF
8980
8981         else
8982                 echo "$as_me:$LINENO: result: no" >&5
8983 echo "${ECHO_T}no" >&6
8984         fi
8985 fi
8986
8987 for ac_func in bpf_dump
8988 do
8989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8990 echo "$as_me:$LINENO: checking for $ac_func" >&5
8991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8992 if eval "test \"\${$as_ac_var+set}\" = set"; then
8993   echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995   cat >conftest.$ac_ext <<_ACEOF
8996 #line $LINENO "configure"
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002 /* System header to define __stub macros and hopefully few prototypes,
9003     which can conflict with char $ac_func (); below.
9004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9005     <limits.h> exists even on freestanding compilers.  */
9006 #ifdef __STDC__
9007 # include <limits.h>
9008 #else
9009 # include <assert.h>
9010 #endif
9011 /* Override any gcc2 internal prototype to avoid an error.  */
9012 #ifdef __cplusplus
9013 extern "C"
9014 {
9015 #endif
9016 /* We use char because int might match the return type of a gcc2
9017    builtin and then its argument prototype would still apply.  */
9018 char $ac_func ();
9019 /* The GNU C library defines this for functions which it implements
9020     to always fail with ENOSYS.  Some functions are actually named
9021     something starting with __ and the normal name is an alias.  */
9022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9023 choke me
9024 #else
9025 char (*f) () = $ac_func;
9026 #endif
9027 #ifdef __cplusplus
9028 }
9029 #endif
9030
9031 int
9032 main ()
9033 {
9034 return f != $ac_func;
9035   ;
9036   return 0;
9037 }
9038 _ACEOF
9039 rm -f conftest.$ac_objext conftest$ac_exeext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9041   (eval $ac_link) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } &&
9045          { ac_try='test -s conftest$ac_exeext'
9046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047   (eval $ac_try) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; }; then
9051   eval "$as_ac_var=yes"
9052 else
9053   echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9055
9056 eval "$as_ac_var=no"
9057 fi
9058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9059 fi
9060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9062 if test `eval echo '${'$as_ac_var'}'` = yes; then
9063   cat >>confdefs.h <<_ACEOF
9064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9065 _ACEOF
9066
9067 else
9068   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9069 fi
9070 done
9071
9072
9073 V_GROUP=0
9074 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9075         V_GROUP=wheel
9076 fi
9077 case "$host_os" in
9078
9079 aix*)
9080                 cat >>confdefs.h <<\_ACEOF
9081 #define _SUN 1
9082 _ACEOF
9083
9084         ;;
9085
9086 irix*)
9087         V_GROUP=sys
9088         ;;
9089
9090 osf*)
9091         V_GROUP=system
9092         ;;
9093
9094 solaris*)
9095         V_GROUP=sys
9096         ;;
9097 esac
9098
9099 if test -f /dev/bpf0 ; then
9100         V_GROUP=bpf
9101 fi
9102
9103 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9104 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9105     if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   cat >conftest.$ac_ext <<_ACEOF
9109 #line $LINENO "configure"
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115
9116 #       include "confdefs.h"
9117 #       include <sys/types.h>
9118 #       if STDC_HEADERS
9119 #       include <stdlib.h>
9120 #       include <stddef.h>
9121 #       endif
9122 int
9123 main ()
9124 {
9125 int8_t i
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 rm -f conftest.$ac_objext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9132   (eval $ac_compile) 2>&5
9133   ac_status=$?
9134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); } &&
9136          { ac_try='test -s conftest.$ac_objext'
9137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138   (eval $ac_try) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; }; then
9142   ac_cv_lbl_have_int8_t=yes
9143 else
9144   echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147 ac_cv_lbl_have_int8_t=no
9148 fi
9149 rm -f conftest.$ac_objext conftest.$ac_ext
9150 fi
9151
9152     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9153 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9154     if test $ac_cv_lbl_have_int8_t = no ; then
9155             cat >>confdefs.h <<\_ACEOF
9156 #define int8_t signed char
9157 _ACEOF
9158
9159     fi
9160 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9161 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9162     if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 /* confdefs.h.  */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h.  */
9172
9173 #       include "confdefs.h"
9174 #       include <sys/types.h>
9175 #       if STDC_HEADERS
9176 #       include <stdlib.h>
9177 #       include <stddef.h>
9178 #       endif
9179 int
9180 main ()
9181 {
9182 u_int8_t i
9183   ;
9184   return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189   (eval $ac_compile) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } &&
9193          { ac_try='test -s conftest.$ac_objext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   ac_cv_lbl_have_u_int8_t=yes
9200 else
9201   echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ac_cv_lbl_have_u_int8_t=no
9205 fi
9206 rm -f conftest.$ac_objext conftest.$ac_ext
9207 fi
9208
9209     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
9210 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
9211     if test $ac_cv_lbl_have_u_int8_t = no ; then
9212             cat >>confdefs.h <<\_ACEOF
9213 #define u_int8_t u_char
9214 _ACEOF
9215
9216     fi
9217 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
9218 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
9219     if test "${ac_cv_lbl_have_int16_t+set}" = set; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   cat >conftest.$ac_ext <<_ACEOF
9223 #line $LINENO "configure"
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229
9230 #       include "confdefs.h"
9231 #       include <sys/types.h>
9232 #       if STDC_HEADERS
9233 #       include <stdlib.h>
9234 #       include <stddef.h>
9235 #       endif
9236 int
9237 main ()
9238 {
9239 int16_t i
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246   (eval $ac_compile) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); } &&
9250          { ac_try='test -s conftest.$ac_objext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   ac_cv_lbl_have_int16_t=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 ac_cv_lbl_have_int16_t=no
9262 fi
9263 rm -f conftest.$ac_objext conftest.$ac_ext
9264 fi
9265
9266     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
9267 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
9268     if test $ac_cv_lbl_have_int16_t = no ; then
9269             cat >>confdefs.h <<\_ACEOF
9270 #define int16_t short
9271 _ACEOF
9272
9273     fi
9274 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
9275 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
9276     if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
9277   echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279   cat >conftest.$ac_ext <<_ACEOF
9280 #line $LINENO "configure"
9281 /* confdefs.h.  */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h.  */
9286
9287 #       include "confdefs.h"
9288 #       include <sys/types.h>
9289 #       if STDC_HEADERS
9290 #       include <stdlib.h>
9291 #       include <stddef.h>
9292 #       endif
9293 int
9294 main ()
9295 {
9296 u_int16_t i
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303   (eval $ac_compile) 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); } &&
9307          { ac_try='test -s conftest.$ac_objext'
9308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309   (eval $ac_try) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); }; }; then
9313   ac_cv_lbl_have_u_int16_t=yes
9314 else
9315   echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 ac_cv_lbl_have_u_int16_t=no
9319 fi
9320 rm -f conftest.$ac_objext conftest.$ac_ext
9321 fi
9322
9323     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
9324 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
9325     if test $ac_cv_lbl_have_u_int16_t = no ; then
9326             cat >>confdefs.h <<\_ACEOF
9327 #define u_int16_t u_short
9328 _ACEOF
9329
9330     fi
9331 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
9332 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
9333     if test "${ac_cv_lbl_have_int32_t+set}" = set; then
9334   echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336   cat >conftest.$ac_ext <<_ACEOF
9337 #line $LINENO "configure"
9338 /* confdefs.h.  */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h.  */
9343
9344 #       include "confdefs.h"
9345 #       include <sys/types.h>
9346 #       if STDC_HEADERS
9347 #       include <stdlib.h>
9348 #       include <stddef.h>
9349 #       endif
9350 int
9351 main ()
9352 {
9353 int32_t i
9354   ;
9355   return 0;
9356 }
9357 _ACEOF
9358 rm -f conftest.$ac_objext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360   (eval $ac_compile) 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } &&
9364          { ac_try='test -s conftest.$ac_objext'
9365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366   (eval $ac_try) 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); }; }; then
9370   ac_cv_lbl_have_int32_t=yes
9371 else
9372   echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 ac_cv_lbl_have_int32_t=no
9376 fi
9377 rm -f conftest.$ac_objext conftest.$ac_ext
9378 fi
9379
9380     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
9381 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
9382     if test $ac_cv_lbl_have_int32_t = no ; then
9383             cat >>confdefs.h <<\_ACEOF
9384 #define int32_t int
9385 _ACEOF
9386
9387     fi
9388 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
9389 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
9390     if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   cat >conftest.$ac_ext <<_ACEOF
9394 #line $LINENO "configure"
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400
9401 #       include "confdefs.h"
9402 #       include <sys/types.h>
9403 #       if STDC_HEADERS
9404 #       include <stdlib.h>
9405 #       include <stddef.h>
9406 #       endif
9407 int
9408 main ()
9409 {
9410 u_int32_t i
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 rm -f conftest.$ac_objext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417   (eval $ac_compile) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } &&
9421          { ac_try='test -s conftest.$ac_objext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   ac_cv_lbl_have_u_int32_t=yes
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_cv_lbl_have_u_int32_t=no
9433 fi
9434 rm -f conftest.$ac_objext conftest.$ac_ext
9435 fi
9436
9437     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9438 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9439     if test $ac_cv_lbl_have_u_int32_t = no ; then
9440             cat >>confdefs.h <<\_ACEOF
9441 #define u_int32_t u_int
9442 _ACEOF
9443
9444     fi
9445
9446 rm -f os-proto.h
9447     if test "${LBL_CFLAGS+set}" = set; then
9448             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9449     fi
9450     if test -f .devel ; then
9451             if test "$GCC" = yes ; then
9452                     if test "${LBL_CFLAGS+set}" != set; then
9453                             if test "$ac_cv_prog_cc_g" = yes ; then
9454                                     V_CCOPT="-g $V_CCOPT"
9455                             fi
9456                             V_CCOPT="$V_CCOPT -Wall"
9457                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9458                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
9459                             fi
9460                     fi
9461             else
9462                     case "$host_os" in
9463
9464                     irix6*)
9465                             V_CCOPT="$V_CCOPT -n32"
9466                             ;;
9467
9468                     *)
9469                             ;;
9470                     esac
9471             fi
9472             os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9473             name="lbl/os-$os.h"
9474             if test -f $name ; then
9475                     ln -s $name os-proto.h
9476                     cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_OS_PROTO_H 1
9478 _ACEOF
9479
9480             else
9481                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9482 echo "$as_me: WARNING: can't find $name" >&2;}
9483             fi
9484     fi
9485
9486 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9487 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9488     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 /* confdefs.h.  */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h.  */
9498
9499 #       include <sys/types.h>
9500 #       include <sys/socket.h>
9501 int
9502 main ()
9503 {
9504 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511   (eval $ac_compile) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } &&
9515          { ac_try='test -s conftest.$ac_objext'
9516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517   (eval $ac_try) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; }; then
9521   ac_cv_lbl_sockaddr_has_sa_len=yes
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_cv_lbl_sockaddr_has_sa_len=no
9527 fi
9528 rm -f conftest.$ac_objext conftest.$ac_ext
9529 fi
9530
9531     echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9532 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
9533     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9534             cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_SOCKADDR_SA_LEN 1
9536 _ACEOF
9537
9538     fi
9539
9540 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9541 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
9542     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   case "$host_cpu" in
9546
9547         #
9548         # These are CPU types where:
9549         #
9550         #       the CPU faults on an unaligned access, but at least some
9551         #       OSes that support that CPU catch the fault and simulate
9552         #       the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9553         #       the simulation is slow, so we don't want to use it;
9554         #
9555         #       the CPU, I infer (from the old
9556         #
9557         # XXX: should also check that they don't do weird things (like on arm)
9558         #
9559         #       comment) doesn't fault on unaligned accesses, but doesn't
9560         #       do a normal unaligned fetch, either (e.g., presumably, ARM);
9561         #
9562         #       for whatever reason, the test program doesn't work
9563         #       (this has been claimed to be the case for several of those
9564         #       CPUs - I don't know what the problem is; the problem
9565         #       was reported as "the test program dumps core" for SuperH,
9566         #       but that's what the test program is *supposed* to do -
9567         #       it dumps core before it writes anything, so the test
9568         #       for an empty output file should find an empty output
9569         #       file and conclude that unaligned accesses don't work).
9570         #
9571         # This run-time test won't work if you're cross-compiling, so
9572         # in order to support cross-compiling for a particular CPU,
9573         # we have to wire in the list of CPU types anyway, as far as
9574         # I know, so perhaps we should just have a set of CPUs on
9575         # which we know it doesn't work, a set of CPUs on which we
9576         # know it does work, and have the script just fail on other
9577         # cpu types and update it when such a failure occurs.
9578         #
9579         alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
9580                 ac_cv_lbl_unaligned_fail=yes
9581                 ;;
9582
9583         *)
9584                 cat >conftest.c <<EOF
9585 #               include <sys/types.h>
9586 #               include <sys/wait.h>
9587 #               include <stdio.h>
9588                 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9589                 main() {
9590                 unsigned int i;
9591                 pid_t pid;
9592                 int status;
9593                 /* avoid "core dumped" message */
9594                 pid = fork();
9595                 if (pid <  0)
9596                         exit(2);
9597                 if (pid > 0) {
9598                         /* parent */
9599                         pid = waitpid(pid, &status, 0);
9600                         if (pid < 0)
9601                                 exit(3);
9602                         exit(!WIFEXITED(status));
9603                 }
9604                 /* child */
9605                 i = *(unsigned int *)&a[1];
9606                 printf("%d\n", i);
9607                 exit(0);
9608                 }
9609 EOF
9610                 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9611                     conftest.c $LIBS >/dev/null 2>&1
9612                 if test ! -x conftest ; then
9613                                                 ac_cv_lbl_unaligned_fail=yes
9614                 else
9615                         ./conftest >conftest.out
9616                         if test ! -s conftest.out ; then
9617                                 ac_cv_lbl_unaligned_fail=yes
9618                         else
9619                                 ac_cv_lbl_unaligned_fail=no
9620                         fi
9621                 fi
9622                 rm -f conftest* core core.conftest
9623                 ;;
9624         esac
9625 fi
9626
9627     echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9628 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
9629     if test $ac_cv_lbl_unaligned_fail = yes ; then
9630             cat >>confdefs.h <<\_ACEOF
9631 #define LBL_ALIGN 1
9632 _ACEOF
9633
9634     fi
9635
9636
9637         echo "$as_me:$LINENO: checking for h_errno" >&5
9638 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
9639         if test "${ac_cv_var_h_errno+set}" = set; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   cat >conftest.$ac_ext <<_ACEOF
9643 #line $LINENO "configure"
9644 /* confdefs.h.  */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h.  */
9649
9650 #               include <sys/types.h>
9651 #               include <netdb.h>
9652 int
9653 main ()
9654 {
9655 int foo = h_errno;
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 rm -f conftest.$ac_objext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9662   (eval $ac_compile) 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -s conftest.$ac_objext'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; }; then
9672   ac_cv_var_h_errno=yes
9673 else
9674   echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ac_cv_var_h_errno=no
9678 fi
9679 rm -f conftest.$ac_objext conftest.$ac_ext
9680 fi
9681
9682         echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
9683 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
9684         if test "$ac_cv_var_h_errno" = "yes"; then
9685                 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_H_ERRNO 1
9687 _ACEOF
9688
9689         fi
9690
9691
9692
9693 # Check whether --with-crypto or --without-crypto was given.
9694 if test "${with_crypto+set}" = set; then
9695   withval="$with_crypto"
9696
9697 else
9698
9699 echo "$as_me:$LINENO: checking for SSLeay" >&5
9700 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
9701 ac_cv_ssleay_path=no
9702 incdir=no
9703 for dir in /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
9704         #
9705         # XXX - is there a better way to check if a given library is
9706         # in a given directory than checking each of the possible
9707         # shared library suffixes?
9708         #
9709         # Are there any other suffixes we need to look for?  Do we have to
9710         # worry about ".so.{version}"?
9711         #
9712         # Or should we just look for "libcrypto.*"?
9713         #
9714         if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
9715                                   -f $dir/lib/libcrypto.so -o \
9716                                   -f $dir/lib/libcrypto.sl -o \
9717                                   -f $dir/lib/libcrypto.dylib \); then
9718                 ac_cv_ssleay_path=$dir
9719         fi
9720         if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
9721                 incdir="-I$dir/include"
9722         fi
9723         if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
9724                 break;
9725         else
9726                 ac_cv_ssleay_path=no
9727                 incdir=no
9728         fi
9729 done
9730 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
9731 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
9732 if test "$ac_cv_ssleay_path" != no; then
9733         V_INCLS="$V_INCLS $incdir"
9734         LDFLAGS="-L$dir/lib $LDFLAGS"
9735         if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
9736                 LIBS="$LIBS -lRSAglue"
9737         fi
9738         if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
9739                 LIBS="$LIBS -lrsaref"
9740         fi
9741
9742 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
9743 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
9744 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
9745   echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747   ac_check_lib_save_LIBS=$LIBS
9748 LIBS="-lcrypto  $LIBS"
9749 cat >conftest.$ac_ext <<_ACEOF
9750 #line $LINENO "configure"
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756
9757 /* Override any gcc2 internal prototype to avoid an error.  */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 /* We use char because int might match the return type of a gcc2
9762    builtin and then its argument prototype would still apply.  */
9763 char des_cbc_encrypt ();
9764 int
9765 main ()
9766 {
9767 des_cbc_encrypt ();
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774   (eval $ac_link) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); } &&
9778          { ac_try='test -s conftest$ac_exeext'
9779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780   (eval $ac_try) 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); }; }; then
9784   ac_cv_lib_crypto_des_cbc_encrypt=yes
9785 else
9786   echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789 ac_cv_lib_crypto_des_cbc_encrypt=no
9790 fi
9791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_lib_save_LIBS
9793 fi
9794 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
9795 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
9796 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
9797   cat >>confdefs.h <<_ACEOF
9798 #define HAVE_LIBCRYPTO 1
9799 _ACEOF
9800
9801   LIBS="-lcrypto $LIBS"
9802
9803 fi
9804
9805
9806         CPPFLAGS="$CPPFLAGS $V_INCLS"
9807
9808 for ac_header in openssl/evp.h
9809 do
9810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812   echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 fi
9817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9819 else
9820   # Is the header compilable?
9821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9823 cat >conftest.$ac_ext <<_ACEOF
9824 #line $LINENO "configure"
9825 /* confdefs.h.  */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h.  */
9830 $ac_includes_default
9831 #include <$ac_header>
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835   (eval $ac_compile) 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } &&
9839          { ac_try='test -s conftest.$ac_objext'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   ac_header_compiler=yes
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850 ac_header_compiler=no
9851 fi
9852 rm -f conftest.$ac_objext conftest.$ac_ext
9853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9854 echo "${ECHO_T}$ac_header_compiler" >&6
9855
9856 # Is the header present?
9857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9859 cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9861 /* confdefs.h.  */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h.  */
9866 #include <$ac_header>
9867 _ACEOF
9868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } >/dev/null; then
9876   if test -s conftest.err; then
9877     ac_cpp_err=$ac_c_preproc_warn_flag
9878   else
9879     ac_cpp_err=
9880   fi
9881 else
9882   ac_cpp_err=yes
9883 fi
9884 if test -z "$ac_cpp_err"; then
9885   ac_header_preproc=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890   ac_header_preproc=no
9891 fi
9892 rm -f conftest.err conftest.$ac_ext
9893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894 echo "${ECHO_T}$ac_header_preproc" >&6
9895
9896 # So?  What about this header?
9897 case $ac_header_compiler:$ac_header_preproc in
9898   yes:no )
9899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9903     (
9904       cat <<\_ASBOX
9905 ## ------------------------------------ ##
9906 ## Report this to bug-autoconf@gnu.org. ##
9907 ## ------------------------------------ ##
9908 _ASBOX
9909     ) |
9910       sed "s/^/$as_me: WARNING:     /" >&2
9911     ;;
9912   no:yes )
9913     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9915     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9919     (
9920       cat <<\_ASBOX
9921 ## ------------------------------------ ##
9922 ## Report this to bug-autoconf@gnu.org. ##
9923 ## ------------------------------------ ##
9924 _ASBOX
9925     ) |
9926       sed "s/^/$as_me: WARNING:     /" >&2
9927     ;;
9928 esac
9929 echo "$as_me:$LINENO: checking for $ac_header" >&5
9930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9932   echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934   eval "$as_ac_Header=$ac_header_preproc"
9935 fi
9936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9938
9939 fi
9940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9941   cat >>confdefs.h <<_ACEOF
9942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9943 _ACEOF
9944
9945 fi
9946
9947 done
9948
9949 fi
9950
9951 fi;
9952
9953
9954
9955
9956
9957
9958
9959
9960 # Find a good install program.  We prefer a C program (faster),
9961 # so one script is as good as another.  But avoid the broken or
9962 # incompatible versions:
9963 # SysV /etc/install, /usr/sbin/install
9964 # SunOS /usr/etc/install
9965 # IRIX /sbin/install
9966 # AIX /bin/install
9967 # AmigaOS /C/install, which installs bootblocks on floppy discs
9968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9971 # ./install, which can be erroneously created by make from ./install.sh.
9972 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9973 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9974 if test -z "$INSTALL"; then
9975 if test "${ac_cv_path_install+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9980 do
9981   IFS=$as_save_IFS
9982   test -z "$as_dir" && as_dir=.
9983   # Account for people who put trailing slashes in PATH elements.
9984 case $as_dir/ in
9985   ./ | .// | /cC/* | \
9986   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9987   /usr/ucb/* ) ;;
9988   *)
9989     # OSF1 and SCO ODT 3.0 have their own names for install.
9990     # Don't use installbsd from OSF since it installs stuff as root
9991     # by default.
9992     for ac_prog in ginstall scoinst install; do
9993       for ac_exec_ext in '' $ac_executable_extensions; do
9994         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9995           if test $ac_prog = install &&
9996             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9997             # AIX install.  It has an incompatible calling convention.
9998             :
9999           elif test $ac_prog = install &&
10000             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10001             # program-specific install script used by HP pwplus--don't use.
10002             :
10003           else
10004             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10005             break 3
10006           fi
10007         fi
10008       done
10009     done
10010     ;;
10011 esac
10012 done
10013
10014
10015 fi
10016   if test "${ac_cv_path_install+set}" = set; then
10017     INSTALL=$ac_cv_path_install
10018   else
10019     # As a last resort, use the slow shell script.  We don't cache a
10020     # path for INSTALL within a source directory, because that will
10021     # break other packages using the cache if that directory is
10022     # removed, or if the path is relative.
10023     INSTALL=$ac_install_sh
10024   fi
10025 fi
10026 echo "$as_me:$LINENO: result: $INSTALL" >&5
10027 echo "${ECHO_T}$INSTALL" >&6
10028
10029 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10030 # It thinks the first close brace ends the variable substitution.
10031 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10032
10033 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10034
10035 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10036
10037
10038           ac_config_headers="$ac_config_headers config.h"
10039
10040
10041           ac_config_commands="$ac_config_commands default-1"
10042
10043           ac_config_files="$ac_config_files Makefile"
10044 cat >confcache <<\_ACEOF
10045 # This file is a shell script that caches the results of configure
10046 # tests run on this system so they can be shared between configure
10047 # scripts and configure runs, see configure's option --config-cache.
10048 # It is not useful on other systems.  If it contains results you don't
10049 # want to keep, you may remove or edit it.
10050 #
10051 # config.status only pays attention to the cache file if you give it
10052 # the --recheck option to rerun configure.
10053 #
10054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10056 # following values.
10057
10058 _ACEOF
10059
10060 # The following way of writing the cache mishandles newlines in values,
10061 # but we know of no workaround that is simple, portable, and efficient.
10062 # So, don't put newlines in cache variables' values.
10063 # Ultrix sh set writes to stderr and can't be redirected directly,
10064 # and sets the high bit in the cache file unless we assign to the vars.
10065 {
10066   (set) 2>&1 |
10067     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10068     *ac_space=\ *)
10069       # `set' does not quote correctly, so add quotes (double-quote
10070       # substitution turns \\\\ into \\, and sed turns \\ into \).
10071       sed -n \
10072         "s/'/'\\\\''/g;
10073           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10074       ;;
10075     *)
10076       # `set' quotes correctly as required by POSIX, so do not add quotes.
10077       sed -n \
10078         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10079       ;;
10080     esac;
10081 } |
10082   sed '
10083      t clear
10084      : clear
10085      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10086      t end
10087      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10088      : end' >>confcache
10089 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10090   if test -w $cache_file; then
10091     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10092     cat confcache >$cache_file
10093   else
10094     echo "not updating unwritable cache $cache_file"
10095   fi
10096 fi
10097 rm -f confcache
10098
10099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10100 # Let make expand exec_prefix.
10101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10102
10103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10105 # trailing colons and then remove the whole line if VPATH becomes empty
10106 # (actually we leave an empty line to preserve line numbers).
10107 if test "x$srcdir" = x.; then
10108   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10109 s/:*\$(srcdir):*/:/;
10110 s/:*\${srcdir}:*/:/;
10111 s/:*@srcdir@:*/:/;
10112 s/^\([^=]*=[    ]*\):*/\1/;
10113 s/:*$//;
10114 s/^[^=]*=[      ]*$//;
10115 }'
10116 fi
10117
10118 DEFS=-DHAVE_CONFIG_H
10119
10120 ac_libobjs=
10121 ac_ltlibobjs=
10122 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10123   # 1. Remove the extension, and $U if already installed.
10124   ac_i=`echo "$ac_i" |
10125          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10126   # 2. Add them.
10127   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10128   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10129 done
10130 LIBOBJS=$ac_libobjs
10131
10132 LTLIBOBJS=$ac_ltlibobjs
10133
10134
10135
10136 : ${CONFIG_STATUS=./config.status}
10137 ac_clean_files_save=$ac_clean_files
10138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10139 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10140 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10141 cat >$CONFIG_STATUS <<_ACEOF
10142 #! $SHELL
10143 # Generated by $as_me.
10144 # Run this file to recreate the current configuration.
10145 # Compiler output produced by configure, useful for debugging
10146 # configure, is in config.log if it exists.
10147
10148 debug=false
10149 ac_cs_recheck=false
10150 ac_cs_silent=false
10151 SHELL=\${CONFIG_SHELL-$SHELL}
10152 _ACEOF
10153
10154 cat >>$CONFIG_STATUS <<\_ACEOF
10155 ## --------------------- ##
10156 ## M4sh Initialization.  ##
10157 ## --------------------- ##
10158
10159 # Be Bourne compatible
10160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10161   emulate sh
10162   NULLCMD=:
10163   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10164   # is contrary to our usage.  Disable this feature.
10165   alias -g '${1+"$@"}'='"$@"'
10166 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10167   set -o posix
10168 fi
10169
10170 # Support unset when possible.
10171 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10172   as_unset=unset
10173 else
10174   as_unset=false
10175 fi
10176
10177
10178 # Work around bugs in pre-3.0 UWIN ksh.
10179 $as_unset ENV MAIL MAILPATH
10180 PS1='$ '
10181 PS2='> '
10182 PS4='+ '
10183
10184 # NLS nuisances.
10185 for as_var in \
10186   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10187   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10188   LC_TELEPHONE LC_TIME
10189 do
10190   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10191     eval $as_var=C; export $as_var
10192   else
10193     $as_unset $as_var
10194   fi
10195 done
10196
10197 # Required to use basename.
10198 if expr a : '\(a\)' >/dev/null 2>&1; then
10199   as_expr=expr
10200 else
10201   as_expr=false
10202 fi
10203
10204 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10205   as_basename=basename
10206 else
10207   as_basename=false
10208 fi
10209
10210
10211 # Name of the executable.
10212 as_me=`$as_basename "$0" ||
10213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10214          X"$0" : 'X\(//\)$' \| \
10215          X"$0" : 'X\(/\)$' \| \
10216          .     : '\(.\)' 2>/dev/null ||
10217 echo X/"$0" |
10218     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10219           /^X\/\(\/\/\)$/{ s//\1/; q; }
10220           /^X\/\(\/\).*/{ s//\1/; q; }
10221           s/.*/./; q'`
10222
10223
10224 # PATH needs CR, and LINENO needs CR and PATH.
10225 # Avoid depending upon Character Ranges.
10226 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10227 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10228 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10229 as_cr_digits='0123456789'
10230 as_cr_alnum=$as_cr_Letters$as_cr_digits
10231
10232 # The user is always right.
10233 if test "${PATH_SEPARATOR+set}" != set; then
10234   echo "#! /bin/sh" >conf$$.sh
10235   echo  "exit 0"   >>conf$$.sh
10236   chmod +x conf$$.sh
10237   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10238     PATH_SEPARATOR=';'
10239   else
10240     PATH_SEPARATOR=:
10241   fi
10242   rm -f conf$$.sh
10243 fi
10244
10245
10246   as_lineno_1=$LINENO
10247   as_lineno_2=$LINENO
10248   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10249   test "x$as_lineno_1" != "x$as_lineno_2" &&
10250   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10251   # Find who we are.  Look in the path if we contain no path at all
10252   # relative or not.
10253   case $0 in
10254     *[\\/]* ) as_myself=$0 ;;
10255     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10257 do
10258   IFS=$as_save_IFS
10259   test -z "$as_dir" && as_dir=.
10260   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10261 done
10262
10263        ;;
10264   esac
10265   # We did not find ourselves, most probably we were run as `sh COMMAND'
10266   # in which case we are not to be found in the path.
10267   if test "x$as_myself" = x; then
10268     as_myself=$0
10269   fi
10270   if test ! -f "$as_myself"; then
10271     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10272 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10273    { (exit 1); exit 1; }; }
10274   fi
10275   case $CONFIG_SHELL in
10276   '')
10277     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10279 do
10280   IFS=$as_save_IFS
10281   test -z "$as_dir" && as_dir=.
10282   for as_base in sh bash ksh sh5; do
10283          case $as_dir in
10284          /*)
10285            if ("$as_dir/$as_base" -c '
10286   as_lineno_1=$LINENO
10287   as_lineno_2=$LINENO
10288   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10289   test "x$as_lineno_1" != "x$as_lineno_2" &&
10290   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10291              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10292              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10293              CONFIG_SHELL=$as_dir/$as_base
10294              export CONFIG_SHELL
10295              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10296            fi;;
10297          esac
10298        done
10299 done
10300 ;;
10301   esac
10302
10303   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10304   # uniformly replaced by the line number.  The first 'sed' inserts a
10305   # line-number line before each line; the second 'sed' does the real
10306   # work.  The second script uses 'N' to pair each line-number line
10307   # with the numbered line, and appends trailing '-' during
10308   # substitution so that $LINENO is not a special case at line end.
10309   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10310   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10311   sed '=' <$as_myself |
10312     sed '
10313       N
10314       s,$,-,
10315       : loop
10316       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10317       t loop
10318       s,-$,,
10319       s,^['$as_cr_digits']*\n,,
10320     ' >$as_me.lineno &&
10321   chmod +x $as_me.lineno ||
10322     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10323 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10324    { (exit 1); exit 1; }; }
10325
10326   # Don't try to exec as it changes $[0], causing all sort of problems
10327   # (the dirname of $[0] is not the place where we might find the
10328   # original and so on.  Autoconf is especially sensible to this).
10329   . ./$as_me.lineno
10330   # Exit status is that of the last command.
10331   exit
10332 }
10333
10334
10335 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10336   *c*,-n*) ECHO_N= ECHO_C='
10337 ' ECHO_T='      ' ;;
10338   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10339   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10340 esac
10341
10342 if expr a : '\(a\)' >/dev/null 2>&1; then
10343   as_expr=expr
10344 else
10345   as_expr=false
10346 fi
10347
10348 rm -f conf$$ conf$$.exe conf$$.file
10349 echo >conf$$.file
10350 if ln -s conf$$.file conf$$ 2>/dev/null; then
10351   # We could just check for DJGPP; but this test a) works b) is more generic
10352   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10353   if test -f conf$$.exe; then
10354     # Don't use ln at all; we don't have any links
10355     as_ln_s='cp -p'
10356   else
10357     as_ln_s='ln -s'
10358   fi
10359 elif ln conf$$.file conf$$ 2>/dev/null; then
10360   as_ln_s=ln
10361 else
10362   as_ln_s='cp -p'
10363 fi
10364 rm -f conf$$ conf$$.exe conf$$.file
10365
10366 if mkdir -p . 2>/dev/null; then
10367   as_mkdir_p=:
10368 else
10369   as_mkdir_p=false
10370 fi
10371
10372 as_executable_p="test -f"
10373
10374 # Sed expression to map a string onto a valid CPP name.
10375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10376
10377 # Sed expression to map a string onto a valid variable name.
10378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10379
10380
10381 # IFS
10382 # We need space, tab and new line, in precisely that order.
10383 as_nl='
10384 '
10385 IFS="   $as_nl"
10386
10387 # CDPATH.
10388 $as_unset CDPATH
10389
10390 exec 6>&1
10391
10392 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10393 # report actual input values of CONFIG_FILES etc. instead of their
10394 # values after options handling.  Logging --version etc. is OK.
10395 exec 5>>config.log
10396 {
10397   echo
10398   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10399 ## Running $as_me. ##
10400 _ASBOX
10401 } >&5
10402 cat >&5 <<_CSEOF
10403
10404 This file was extended by $as_me, which was
10405 generated by GNU Autoconf 2.57.  Invocation command line was
10406
10407   CONFIG_FILES    = $CONFIG_FILES
10408   CONFIG_HEADERS  = $CONFIG_HEADERS
10409   CONFIG_LINKS    = $CONFIG_LINKS
10410   CONFIG_COMMANDS = $CONFIG_COMMANDS
10411   $ $0 $@
10412
10413 _CSEOF
10414 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10415 echo >&5
10416 _ACEOF
10417
10418 # Files that config.status was made for.
10419 if test -n "$ac_config_files"; then
10420   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10421 fi
10422
10423 if test -n "$ac_config_headers"; then
10424   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10425 fi
10426
10427 if test -n "$ac_config_links"; then
10428   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10429 fi
10430
10431 if test -n "$ac_config_commands"; then
10432   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10433 fi
10434
10435 cat >>$CONFIG_STATUS <<\_ACEOF
10436
10437 ac_cs_usage="\
10438 \`$as_me' instantiates files from templates according to the
10439 current configuration.
10440
10441 Usage: $0 [OPTIONS] [FILE]...
10442
10443   -h, --help       print this help, then exit
10444   -V, --version    print version number, then exit
10445   -q, --quiet      do not print progress messages
10446   -d, --debug      don't remove temporary files
10447       --recheck    update $as_me by reconfiguring in the same conditions
10448   --file=FILE[:TEMPLATE]
10449                    instantiate the configuration file FILE
10450   --header=FILE[:TEMPLATE]
10451                    instantiate the configuration header FILE
10452
10453 Configuration files:
10454 $config_files
10455
10456 Configuration headers:
10457 $config_headers
10458
10459 Configuration commands:
10460 $config_commands
10461
10462 Report bugs to <bug-autoconf@gnu.org>."
10463 _ACEOF
10464
10465 cat >>$CONFIG_STATUS <<_ACEOF
10466 ac_cs_version="\\
10467 config.status
10468 configured by $0, generated by GNU Autoconf 2.57,
10469   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10470
10471 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10472 Free Software Foundation, Inc.
10473 This config.status script is free software; the Free Software Foundation
10474 gives unlimited permission to copy, distribute and modify it."
10475 srcdir=$srcdir
10476 INSTALL="$INSTALL"
10477 _ACEOF
10478
10479 cat >>$CONFIG_STATUS <<\_ACEOF
10480 # If no file are specified by the user, then we need to provide default
10481 # value.  By we need to know if files were specified by the user.
10482 ac_need_defaults=:
10483 while test $# != 0
10484 do
10485   case $1 in
10486   --*=*)
10487     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10488     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10489     ac_shift=:
10490     ;;
10491   -*)
10492     ac_option=$1
10493     ac_optarg=$2
10494     ac_shift=shift
10495     ;;
10496   *) # This is not an option, so the user has probably given explicit
10497      # arguments.
10498      ac_option=$1
10499      ac_need_defaults=false;;
10500   esac
10501
10502   case $ac_option in
10503   # Handling of the options.
10504 _ACEOF
10505 cat >>$CONFIG_STATUS <<\_ACEOF
10506   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10507     ac_cs_recheck=: ;;
10508   --version | --vers* | -V )
10509     echo "$ac_cs_version"; exit 0 ;;
10510   --he | --h)
10511     # Conflict between --help and --header
10512     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10513 Try \`$0 --help' for more information." >&5
10514 echo "$as_me: error: ambiguous option: $1
10515 Try \`$0 --help' for more information." >&2;}
10516    { (exit 1); exit 1; }; };;
10517   --help | --hel | -h )
10518     echo "$ac_cs_usage"; exit 0 ;;
10519   --debug | --d* | -d )
10520     debug=: ;;
10521   --file | --fil | --fi | --f )
10522     $ac_shift
10523     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10524     ac_need_defaults=false;;
10525   --header | --heade | --head | --hea )
10526     $ac_shift
10527     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10528     ac_need_defaults=false;;
10529   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10530   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10531     ac_cs_silent=: ;;
10532
10533   # This is an error.
10534   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10535 Try \`$0 --help' for more information." >&5
10536 echo "$as_me: error: unrecognized option: $1
10537 Try \`$0 --help' for more information." >&2;}
10538    { (exit 1); exit 1; }; } ;;
10539
10540   *) ac_config_targets="$ac_config_targets $1" ;;
10541
10542   esac
10543   shift
10544 done
10545
10546 ac_configure_extra_args=
10547
10548 if $ac_cs_silent; then
10549   exec 6>/dev/null
10550   ac_configure_extra_args="$ac_configure_extra_args --silent"
10551 fi
10552
10553 _ACEOF
10554 cat >>$CONFIG_STATUS <<_ACEOF
10555 if \$ac_cs_recheck; then
10556   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10557   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10558 fi
10559
10560 _ACEOF
10561
10562 cat >>$CONFIG_STATUS <<_ACEOF
10563 #
10564 # INIT-COMMANDS section.
10565 #
10566
10567
10568
10569 _ACEOF
10570
10571
10572
10573 cat >>$CONFIG_STATUS <<\_ACEOF
10574 for ac_config_target in $ac_config_targets
10575 do
10576   case "$ac_config_target" in
10577   # Handling of arguments.
10578   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10579   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10580   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10581   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10582 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10583    { (exit 1); exit 1; }; };;
10584   esac
10585 done
10586
10587 # If the user did not use the arguments to specify the items to instantiate,
10588 # then the envvar interface is used.  Set only those that are not.
10589 # We use the long form for the default assignment because of an extremely
10590 # bizarre bug on SunOS 4.1.3.
10591 if $ac_need_defaults; then
10592   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10593   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10594   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10595 fi
10596
10597 # Have a temporary directory for convenience.  Make it in the build tree
10598 # simply because there is no reason to put it here, and in addition,
10599 # creating and moving files from /tmp can sometimes cause problems.
10600 # Create a temporary directory, and hook for its removal unless debugging.
10601 $debug ||
10602 {
10603   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10604   trap '{ (exit 1); exit 1; }' 1 2 13 15
10605 }
10606
10607 # Create a (secure) tmp directory for tmp files.
10608
10609 {
10610   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10611   test -n "$tmp" && test -d "$tmp"
10612 }  ||
10613 {
10614   tmp=./confstat$$-$RANDOM
10615   (umask 077 && mkdir $tmp)
10616 } ||
10617 {
10618    echo "$me: cannot create a temporary directory in ." >&2
10619    { (exit 1); exit 1; }
10620 }
10621
10622 _ACEOF
10623
10624 cat >>$CONFIG_STATUS <<_ACEOF
10625
10626 #
10627 # CONFIG_FILES section.
10628 #
10629
10630 # No need to generate the scripts if there are no CONFIG_FILES.
10631 # This happens for instance when ./config.status config.h
10632 if test -n "\$CONFIG_FILES"; then
10633   # Protect against being on the right side of a sed subst in config.status.
10634   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10635    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10636 s,@SHELL@,$SHELL,;t t
10637 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10638 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10639 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10640 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10641 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10642 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10643 s,@exec_prefix@,$exec_prefix,;t t
10644 s,@prefix@,$prefix,;t t
10645 s,@program_transform_name@,$program_transform_name,;t t
10646 s,@bindir@,$bindir,;t t
10647 s,@sbindir@,$sbindir,;t t
10648 s,@libexecdir@,$libexecdir,;t t
10649 s,@datadir@,$datadir,;t t
10650 s,@sysconfdir@,$sysconfdir,;t t
10651 s,@sharedstatedir@,$sharedstatedir,;t t
10652 s,@localstatedir@,$localstatedir,;t t
10653 s,@libdir@,$libdir,;t t
10654 s,@includedir@,$includedir,;t t
10655 s,@oldincludedir@,$oldincludedir,;t t
10656 s,@infodir@,$infodir,;t t
10657 s,@mandir@,$mandir,;t t
10658 s,@build_alias@,$build_alias,;t t
10659 s,@host_alias@,$host_alias,;t t
10660 s,@target_alias@,$target_alias,;t t
10661 s,@DEFS@,$DEFS,;t t
10662 s,@ECHO_C@,$ECHO_C,;t t
10663 s,@ECHO_N@,$ECHO_N,;t t
10664 s,@ECHO_T@,$ECHO_T,;t t
10665 s,@LIBS@,$LIBS,;t t
10666 s,@build@,$build,;t t
10667 s,@build_cpu@,$build_cpu,;t t
10668 s,@build_vendor@,$build_vendor,;t t
10669 s,@build_os@,$build_os,;t t
10670 s,@host@,$host,;t t
10671 s,@host_cpu@,$host_cpu,;t t
10672 s,@host_vendor@,$host_vendor,;t t
10673 s,@host_os@,$host_os,;t t
10674 s,@SHLICC2@,$SHLICC2,;t t
10675 s,@CC@,$CC,;t t
10676 s,@CFLAGS@,$CFLAGS,;t t
10677 s,@LDFLAGS@,$LDFLAGS,;t t
10678 s,@CPPFLAGS@,$CPPFLAGS,;t t
10679 s,@ac_ct_CC@,$ac_ct_CC,;t t
10680 s,@EXEEXT@,$EXEEXT,;t t
10681 s,@OBJEXT@,$OBJEXT,;t t
10682 s,@CPP@,$CPP,;t t
10683 s,@EGREP@,$EGREP,;t t
10684 s,@LIBOBJS@,$LIBOBJS,;t t
10685 s,@V_CCOPT@,$V_CCOPT,;t t
10686 s,@V_DEFS@,$V_DEFS,;t t
10687 s,@V_GROUP@,$V_GROUP,;t t
10688 s,@V_INCLS@,$V_INCLS,;t t
10689 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
10690 s,@LOCALSRC@,$LOCALSRC,;t t
10691 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10692 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10693 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10694 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10695 CEOF
10696
10697 _ACEOF
10698
10699   cat >>$CONFIG_STATUS <<\_ACEOF
10700   # Split the substitutions into bite-sized pieces for seds with
10701   # small command number limits, like on Digital OSF/1 and HP-UX.
10702   ac_max_sed_lines=48
10703   ac_sed_frag=1 # Number of current file.
10704   ac_beg=1 # First line for current file.
10705   ac_end=$ac_max_sed_lines # Line after last line for current file.
10706   ac_more_lines=:
10707   ac_sed_cmds=
10708   while $ac_more_lines; do
10709     if test $ac_beg -gt 1; then
10710       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10711     else
10712       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10713     fi
10714     if test ! -s $tmp/subs.frag; then
10715       ac_more_lines=false
10716     else
10717       # The purpose of the label and of the branching condition is to
10718       # speed up the sed processing (if there are no `@' at all, there
10719       # is no need to browse any of the substitutions).
10720       # These are the two extra sed commands mentioned above.
10721       (echo ':t
10722   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10723       if test -z "$ac_sed_cmds"; then
10724         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10725       else
10726         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10727       fi
10728       ac_sed_frag=`expr $ac_sed_frag + 1`
10729       ac_beg=$ac_end
10730       ac_end=`expr $ac_end + $ac_max_sed_lines`
10731     fi
10732   done
10733   if test -z "$ac_sed_cmds"; then
10734     ac_sed_cmds=cat
10735   fi
10736 fi # test -n "$CONFIG_FILES"
10737
10738 _ACEOF
10739 cat >>$CONFIG_STATUS <<\_ACEOF
10740 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10741   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10742   case $ac_file in
10743   - | *:- | *:-:* ) # input from stdin
10744         cat >$tmp/stdin
10745         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10746         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10747   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10748         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10749   * )   ac_file_in=$ac_file.in ;;
10750   esac
10751
10752   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10753   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10755          X"$ac_file" : 'X\(//\)[^/]' \| \
10756          X"$ac_file" : 'X\(//\)$' \| \
10757          X"$ac_file" : 'X\(/\)' \| \
10758          .     : '\(.\)' 2>/dev/null ||
10759 echo X"$ac_file" |
10760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10761           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10762           /^X\(\/\/\)$/{ s//\1/; q; }
10763           /^X\(\/\).*/{ s//\1/; q; }
10764           s/.*/./; q'`
10765   { if $as_mkdir_p; then
10766     mkdir -p "$ac_dir"
10767   else
10768     as_dir="$ac_dir"
10769     as_dirs=
10770     while test ! -d "$as_dir"; do
10771       as_dirs="$as_dir $as_dirs"
10772       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10774          X"$as_dir" : 'X\(//\)[^/]' \| \
10775          X"$as_dir" : 'X\(//\)$' \| \
10776          X"$as_dir" : 'X\(/\)' \| \
10777          .     : '\(.\)' 2>/dev/null ||
10778 echo X"$as_dir" |
10779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10781           /^X\(\/\/\)$/{ s//\1/; q; }
10782           /^X\(\/\).*/{ s//\1/; q; }
10783           s/.*/./; q'`
10784     done
10785     test ! -n "$as_dirs" || mkdir $as_dirs
10786   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10788    { (exit 1); exit 1; }; }; }
10789
10790   ac_builddir=.
10791
10792 if test "$ac_dir" != .; then
10793   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10794   # A "../" for each directory in $ac_dir_suffix.
10795   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10796 else
10797   ac_dir_suffix= ac_top_builddir=
10798 fi
10799
10800 case $srcdir in
10801   .)  # No --srcdir option.  We are building in place.
10802     ac_srcdir=.
10803     if test -z "$ac_top_builddir"; then
10804        ac_top_srcdir=.
10805     else
10806        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10807     fi ;;
10808   [\\/]* | ?:[\\/]* )  # Absolute path.
10809     ac_srcdir=$srcdir$ac_dir_suffix;
10810     ac_top_srcdir=$srcdir ;;
10811   *) # Relative path.
10812     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10813     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10814 esac
10815 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10816 # absolute.
10817 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10818 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10819 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10820 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10821
10822
10823   case $INSTALL in
10824   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10825   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10826   esac
10827
10828   if test x"$ac_file" != x-; then
10829     { echo "$as_me:$LINENO: creating $ac_file" >&5
10830 echo "$as_me: creating $ac_file" >&6;}
10831     rm -f "$ac_file"
10832   fi
10833   # Let's still pretend it is `configure' which instantiates (i.e., don't
10834   # use $as_me), people would be surprised to read:
10835   #    /* config.h.  Generated by config.status.  */
10836   if test x"$ac_file" = x-; then
10837     configure_input=
10838   else
10839     configure_input="$ac_file.  "
10840   fi
10841   configure_input=$configure_input"Generated from `echo $ac_file_in |
10842                                      sed 's,.*/,,'` by configure."
10843
10844   # First look for the input files in the build tree, otherwise in the
10845   # src tree.
10846   ac_file_inputs=`IFS=:
10847     for f in $ac_file_in; do
10848       case $f in
10849       -) echo $tmp/stdin ;;
10850       [\\/$]*)
10851          # Absolute (can't be DOS-style, as IFS=:)
10852          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10853 echo "$as_me: error: cannot find input file: $f" >&2;}
10854    { (exit 1); exit 1; }; }
10855          echo $f;;
10856       *) # Relative
10857          if test -f "$f"; then
10858            # Build tree
10859            echo $f
10860          elif test -f "$srcdir/$f"; then
10861            # Source tree
10862            echo $srcdir/$f
10863          else
10864            # /dev/null tree
10865            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10866 echo "$as_me: error: cannot find input file: $f" >&2;}
10867    { (exit 1); exit 1; }; }
10868          fi;;
10869       esac
10870     done` || { (exit 1); exit 1; }
10871 _ACEOF
10872 cat >>$CONFIG_STATUS <<_ACEOF
10873   sed "$ac_vpsub
10874 $extrasub
10875 _ACEOF
10876 cat >>$CONFIG_STATUS <<\_ACEOF
10877 :t
10878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10879 s,@configure_input@,$configure_input,;t t
10880 s,@srcdir@,$ac_srcdir,;t t
10881 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10882 s,@top_srcdir@,$ac_top_srcdir,;t t
10883 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10884 s,@builddir@,$ac_builddir,;t t
10885 s,@abs_builddir@,$ac_abs_builddir,;t t
10886 s,@top_builddir@,$ac_top_builddir,;t t
10887 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10888 s,@INSTALL@,$ac_INSTALL,;t t
10889 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10890   rm -f $tmp/stdin
10891   if test x"$ac_file" != x-; then
10892     mv $tmp/out $ac_file
10893   else
10894     cat $tmp/out
10895     rm -f $tmp/out
10896   fi
10897
10898 done
10899 _ACEOF
10900 cat >>$CONFIG_STATUS <<\_ACEOF
10901
10902 #
10903 # CONFIG_HEADER section.
10904 #
10905
10906 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10907 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10908 #
10909 # ac_d sets the value in "#define NAME VALUE" lines.
10910 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10911 ac_dB='[        ].*$,\1#\2'
10912 ac_dC=' '
10913 ac_dD=',;t'
10914 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10915 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10916 ac_uB='$,\1#\2define\3'
10917 ac_uC=' '
10918 ac_uD=',;t'
10919
10920 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10921   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10922   case $ac_file in
10923   - | *:- | *:-:* ) # input from stdin
10924         cat >$tmp/stdin
10925         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10926         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10927   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10928         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10929   * )   ac_file_in=$ac_file.in ;;
10930   esac
10931
10932   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10933 echo "$as_me: creating $ac_file" >&6;}
10934
10935   # First look for the input files in the build tree, otherwise in the
10936   # src tree.
10937   ac_file_inputs=`IFS=:
10938     for f in $ac_file_in; do
10939       case $f in
10940       -) echo $tmp/stdin ;;
10941       [\\/$]*)
10942          # Absolute (can't be DOS-style, as IFS=:)
10943          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10944 echo "$as_me: error: cannot find input file: $f" >&2;}
10945    { (exit 1); exit 1; }; }
10946          echo $f;;
10947       *) # Relative
10948          if test -f "$f"; then
10949            # Build tree
10950            echo $f
10951          elif test -f "$srcdir/$f"; then
10952            # Source tree
10953            echo $srcdir/$f
10954          else
10955            # /dev/null tree
10956            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10957 echo "$as_me: error: cannot find input file: $f" >&2;}
10958    { (exit 1); exit 1; }; }
10959          fi;;
10960       esac
10961     done` || { (exit 1); exit 1; }
10962   # Remove the trailing spaces.
10963   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10964
10965 _ACEOF
10966
10967 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10968 # `conftest.undefs', that substitutes the proper values into
10969 # config.h.in to produce config.h.  The first handles `#define'
10970 # templates, and the second `#undef' templates.
10971 # And first: Protect against being on the right side of a sed subst in
10972 # config.status.  Protect against being in an unquoted here document
10973 # in config.status.
10974 rm -f conftest.defines conftest.undefs
10975 # Using a here document instead of a string reduces the quoting nightmare.
10976 # Putting comments in sed scripts is not portable.
10977 #
10978 # `end' is used to avoid that the second main sed command (meant for
10979 # 0-ary CPP macros) applies to n-ary macro definitions.
10980 # See the Autoconf documentation for `clear'.
10981 cat >confdef2sed.sed <<\_ACEOF
10982 s/[\\&,]/\\&/g
10983 s,[\\$`],\\&,g
10984 t clear
10985 : clear
10986 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10987 t end
10988 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10989 : end
10990 _ACEOF
10991 # If some macros were called several times there might be several times
10992 # the same #defines, which is useless.  Nevertheless, we may not want to
10993 # sort them, since we want the *last* AC-DEFINE to be honored.
10994 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10995 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10996 rm -f confdef2sed.sed
10997
10998 # This sed command replaces #undef with comments.  This is necessary, for
10999 # example, in the case of _POSIX_SOURCE, which is predefined and required
11000 # on some systems where configure will not decide to define it.
11001 cat >>conftest.undefs <<\_ACEOF
11002 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11003 _ACEOF
11004
11005 # Break up conftest.defines because some shells have a limit on the size
11006 # of here documents, and old seds have small limits too (100 cmds).
11007 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11008 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11009 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11010 echo '  :' >>$CONFIG_STATUS
11011 rm -f conftest.tail
11012 while grep . conftest.defines >/dev/null
11013 do
11014   # Write a limited-size here document to $tmp/defines.sed.
11015   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11016   # Speed up: don't consider the non `#define' lines.
11017   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11018   # Work around the forget-to-reset-the-flag bug.
11019   echo 't clr' >>$CONFIG_STATUS
11020   echo ': clr' >>$CONFIG_STATUS
11021   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11022   echo 'CEOF
11023   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11024   rm -f $tmp/in
11025   mv $tmp/out $tmp/in
11026 ' >>$CONFIG_STATUS
11027   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11028   rm -f conftest.defines
11029   mv conftest.tail conftest.defines
11030 done
11031 rm -f conftest.defines
11032 echo '  fi # grep' >>$CONFIG_STATUS
11033 echo >>$CONFIG_STATUS
11034
11035 # Break up conftest.undefs because some shells have a limit on the size
11036 # of here documents, and old seds have small limits too (100 cmds).
11037 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11038 rm -f conftest.tail
11039 while grep . conftest.undefs >/dev/null
11040 do
11041   # Write a limited-size here document to $tmp/undefs.sed.
11042   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11043   # Speed up: don't consider the non `#undef'
11044   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11045   # Work around the forget-to-reset-the-flag bug.
11046   echo 't clr' >>$CONFIG_STATUS
11047   echo ': clr' >>$CONFIG_STATUS
11048   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11049   echo 'CEOF
11050   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11051   rm -f $tmp/in
11052   mv $tmp/out $tmp/in
11053 ' >>$CONFIG_STATUS
11054   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11055   rm -f conftest.undefs
11056   mv conftest.tail conftest.undefs
11057 done
11058 rm -f conftest.undefs
11059
11060 cat >>$CONFIG_STATUS <<\_ACEOF
11061   # Let's still pretend it is `configure' which instantiates (i.e., don't
11062   # use $as_me), people would be surprised to read:
11063   #    /* config.h.  Generated by config.status.  */
11064   if test x"$ac_file" = x-; then
11065     echo "/* Generated by configure.  */" >$tmp/config.h
11066   else
11067     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11068   fi
11069   cat $tmp/in >>$tmp/config.h
11070   rm -f $tmp/in
11071   if test x"$ac_file" != x-; then
11072     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11073       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11074 echo "$as_me: $ac_file is unchanged" >&6;}
11075     else
11076       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11078          X"$ac_file" : 'X\(//\)[^/]' \| \
11079          X"$ac_file" : 'X\(//\)$' \| \
11080          X"$ac_file" : 'X\(/\)' \| \
11081          .     : '\(.\)' 2>/dev/null ||
11082 echo X"$ac_file" |
11083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11084           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11085           /^X\(\/\/\)$/{ s//\1/; q; }
11086           /^X\(\/\).*/{ s//\1/; q; }
11087           s/.*/./; q'`
11088       { if $as_mkdir_p; then
11089     mkdir -p "$ac_dir"
11090   else
11091     as_dir="$ac_dir"
11092     as_dirs=
11093     while test ! -d "$as_dir"; do
11094       as_dirs="$as_dir $as_dirs"
11095       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11097          X"$as_dir" : 'X\(//\)[^/]' \| \
11098          X"$as_dir" : 'X\(//\)$' \| \
11099          X"$as_dir" : 'X\(/\)' \| \
11100          .     : '\(.\)' 2>/dev/null ||
11101 echo X"$as_dir" |
11102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11103           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11104           /^X\(\/\/\)$/{ s//\1/; q; }
11105           /^X\(\/\).*/{ s//\1/; q; }
11106           s/.*/./; q'`
11107     done
11108     test ! -n "$as_dirs" || mkdir $as_dirs
11109   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11111    { (exit 1); exit 1; }; }; }
11112
11113       rm -f $ac_file
11114       mv $tmp/config.h $ac_file
11115     fi
11116   else
11117     cat $tmp/config.h
11118     rm -f $tmp/config.h
11119   fi
11120 done
11121 _ACEOF
11122 cat >>$CONFIG_STATUS <<\_ACEOF
11123
11124 #
11125 # CONFIG_COMMANDS section.
11126 #
11127 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11128   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11129   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11130   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11131 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11132          X"$ac_dest" : 'X\(//\)[^/]' \| \
11133          X"$ac_dest" : 'X\(//\)$' \| \
11134          X"$ac_dest" : 'X\(/\)' \| \
11135          .     : '\(.\)' 2>/dev/null ||
11136 echo X"$ac_dest" |
11137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11139           /^X\(\/\/\)$/{ s//\1/; q; }
11140           /^X\(\/\).*/{ s//\1/; q; }
11141           s/.*/./; q'`
11142   ac_builddir=.
11143
11144 if test "$ac_dir" != .; then
11145   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11146   # A "../" for each directory in $ac_dir_suffix.
11147   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11148 else
11149   ac_dir_suffix= ac_top_builddir=
11150 fi
11151
11152 case $srcdir in
11153   .)  # No --srcdir option.  We are building in place.
11154     ac_srcdir=.
11155     if test -z "$ac_top_builddir"; then
11156        ac_top_srcdir=.
11157     else
11158        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11159     fi ;;
11160   [\\/]* | ?:[\\/]* )  # Absolute path.
11161     ac_srcdir=$srcdir$ac_dir_suffix;
11162     ac_top_srcdir=$srcdir ;;
11163   *) # Relative path.
11164     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11165     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11166 esac
11167 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11168 # absolute.
11169 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11170 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11171 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11172 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11173
11174
11175   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11176 echo "$as_me: executing $ac_dest commands" >&6;}
11177   case $ac_dest in
11178     default-1 ) if test -f .devel; then
11179         echo timestamp > stamp-h
11180         cat Makefile-devel-adds >> Makefile
11181         make depend
11182 fi ;;
11183   esac
11184 done
11185 _ACEOF
11186
11187 cat >>$CONFIG_STATUS <<\_ACEOF
11188
11189 { (exit 0); exit 0; }
11190 _ACEOF
11191 chmod +x $CONFIG_STATUS
11192 ac_clean_files=$ac_clean_files_save
11193
11194
11195 # configure is writing to config.log, and then calls config.status.
11196 # config.status does its own redirection, appending to config.log.
11197 # Unfortunately, on DOS this fails, as config.log is still kept open
11198 # by configure, so config.status won't be able to write to it; its
11199 # output is simply discarded.  So we exec the FD to /dev/null,
11200 # effectively closing config.log, so it can be properly (re)opened and
11201 # appended to by config.status.  When coming back to configure, we
11202 # need to make the FD available again.
11203 if test "$no_create" != yes; then
11204   ac_cs_success=:
11205   ac_config_status_args=
11206   test "$silent" = yes &&
11207     ac_config_status_args="$ac_config_status_args --quiet"
11208   exec 5>/dev/null
11209   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11210   exec 5>>config.log
11211   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11212   # would make configure fail if this is the last instruction.
11213   $ac_cs_success || { (exit 1); exit 1; }
11214 fi
11215
11216 exit 0