]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Get rid of an unused variable.
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.188.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 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858 --without-crypto disable crypto support
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912 cd $ac_dir
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
918 echo
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926 fi
927 cd $ac_popdir
928 done
929 fi
930
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933 cat <<\_ACEOF
934
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940 exit 0
941 fi
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
946
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
949
950 $ $0 $@
951
952 _ACEOF
953 {
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
958
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
976 _ASUNAME
977
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
980 do
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984 done
985
986 } >&5
987
988 cat >&5 <<_ACEOF
989
990
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
994
995 _ACEOF
996
997
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_configure_args=
1004 ac_configure_args0=
1005 ac_configure_args1=
1006 ac_sep=
1007 ac_must_keep_next=false
1008 for ac_pass in 1 2
1009 do
1010 for ac_arg
1011 do
1012 case $ac_arg in
1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 continue ;;
1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 esac
1020 case $ac_pass in
1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 2)
1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true; then
1025 ac_must_keep_next=false # Got value, back to normal.
1026 else
1027 case $ac_arg in
1028 *=* | --config-cache | -C | -disable-* | --disable-* \
1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031 | -with-* | --with-* | -without-* | --without-* | --x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 esac
1035 ;;
1036 -* ) ac_must_keep_next=true ;;
1037 esac
1038 fi
1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1041 ac_sep=" "
1042 ;;
1043 esac
1044 done
1045 done
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1056 {
1057 echo
1058
1059 cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064 echo
1065 # The following way of writing the cache mishandles newlines in values,
1066 {
1067 (set) 2>&1 |
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 *ac_space=\ *)
1070 sed -n \
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 ;;
1074 *)
1075 sed -n \
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 ;;
1078 esac;
1079 }
1080 echo
1081
1082 cat <<\_ASBOX
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1086 _ASBOX
1087 echo
1088 for ac_var in $ac_subst_vars
1089 do
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1092 done | sort
1093 echo
1094
1095 if test -n "$ac_subst_files"; then
1096 cat <<\_ASBOX
1097 ## ------------- ##
1098 ## Output files. ##
1099 ## ------------- ##
1100 _ASBOX
1101 echo
1102 for ac_var in $ac_subst_files
1103 do
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1106 done | sort
1107 echo
1108 fi
1109
1110 if test -s confdefs.h; then
1111 cat <<\_ASBOX
1112 ## ----------- ##
1113 ## confdefs.h. ##
1114 ## ----------- ##
1115 _ASBOX
1116 echo
1117 sed "/^$/d" confdefs.h | sort
1118 echo
1119 fi
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1123 } >&5
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 exit $exit_status
1127 ' 0
1128 for ac_signal in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 done
1131 ac_signal=0
1132
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 echo >confdefs.h
1137
1138 # Predefined preprocessor variables.
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 _ACEOF
1148
1149
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 _ACEOF
1153
1154
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 _ACEOF
1158
1159
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 _ACEOF
1163
1164
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE; then
1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 else
1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172 fi
1173 fi
1174 for ac_site_file in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1179 . "$ac_site_file"
1180 fi
1181 done
1182
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1189 case $cache_file in
1190 [\\/]* | ?:[\\/]* ) . $cache_file;;
1191 *) . ./$cache_file;;
1192 esac
1193 fi
1194 else
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1197 >$cache_file
1198 fi
1199
1200 # Check that the precious variables saved in the cache have kept the same
1201 # value.
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206 eval ac_new_set=\$ac_env_${ac_var}_set
1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1210 set,)
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1214 ,set)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,);;
1219 *)
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted=:
1228 fi;;
1229 esac
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1232 case $ac_new_val in
1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg=$ac_var=$ac_new_val ;;
1236 esac
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 esac
1241 fi
1242 done
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1249 fi
1250
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1286 elif test -f $ac_dir/shtool; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 break
1290 fi
1291 done
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1296 fi
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4 >/dev/null 2>&1 ||
1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305 { (exit 1); exit 1; }; }
1306
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312 ac_cv_build_alias=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314 ac_cv_build_alias=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318 { (exit 1); exit 1; }; }
1319 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1323
1324 fi
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1327 build=$ac_cv_build
1328 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331
1332
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338 ac_cv_host_alias=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340 ac_cv_host_alias=$ac_cv_build_alias
1341 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1345
1346 fi
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1349 host=$ac_cv_host
1350 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353
1354
1355
1356
1357
1358
1359
1360
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1363 withval="$with_gcc"
1364
1365 fi;
1366 V_CCOPT="-O"
1367 V_INCLS=""
1368 if test "${srcdir}" != "." ; then
1369 V_INCLS="-I\$(srcdir)"
1370 fi
1371 if test "${CFLAGS+set}" = set; then
1372 LBL_CFLAGS="$CFLAGS"
1373 fi
1374 if test -z "$CC" ; then
1375 case "$host_os" in
1376
1377 bsdi*)
1378 # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 if test -n "$SHLICC2"; then
1386 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_SHLICC2="yes"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399 done
1400 done
1401
1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1403 fi
1404 fi
1405 SHLICC2=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1409 else
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414 if test $SHLICC2 = yes ; then
1415 CC=shlicc2
1416 export CC
1417 fi
1418 ;;
1419 esac
1420 fi
1421 if test -z "$CC" -a "$with_gcc" = no ; then
1422 CC=cc
1423 export CC
1424 fi
1425 ac_ext=c
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1451 fi
1452 done
1453 done
1454
1455 fi
1456 fi
1457 CC=$ac_cv_prog_CC
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1461 else
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1465
1466 fi
1467 if test -z "$ac_cv_prog_CC"; then
1468 ac_ct_CC=$CC
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490 done
1491 done
1492
1493 fi
1494 fi
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504 CC=$ac_ct_CC
1505 else
1506 CC="$ac_cv_prog_CC"
1507 fi
1508
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546 fi
1547 if test -z "$ac_cv_prog_CC"; then
1548 ac_ct_CC=$CC
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1569 fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 CC=$ac_ct_CC
1585 else
1586 CC="$ac_cv_prog_CC"
1587 fi
1588
1589 fi
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 ac_prog_rejected=no
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected=yes
1611 continue
1612 fi
1613 ac_cv_prog_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617 done
1618 done
1619
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1623 shift
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1628 shift
1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1630 fi
1631 fi
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1646 for ac_prog in cl
1647 do
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 test -n "$CC" && break
1684 done
1685 fi
1686 if test -z "$CC"; then
1687 ac_ct_CC=$CC
1688 for ac_prog in cl
1689 do
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 test -n "$ac_ct_CC" && break
1726 done
1727
1728 CC=$ac_ct_CC
1729 fi
1730
1731 fi
1732
1733
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1762 /* confdefs.h. */
1763 _ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1767
1768 int
1769 main ()
1770 {
1771
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1780 # of exeext.
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # resort.
1792
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795 ac_cv_exeext=
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798 do
1799 test -f "$ac_file" || continue
1800 case $ac_file in
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802 ;;
1803 conftest.$ac_ext )
1804 # This is the source file.
1805 ;;
1806 [ab].out )
1807 # We found the default executable, but exeext='' is most
1808 # certainly right.
1809 break;;
1810 *.* )
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1815 export ac_cv_exeext
1816 break;;
1817 * )
1818 break;;
1819 esac
1820 done
1821 else
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1830 fi
1831
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1835
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1849 cross_compiling=no
1850 else
1851 if test "$cross_compiling" = maybe; then
1852 cross_compiling=yes
1853 else
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1861 fi
1862 fi
1863 fi
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1866
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1875
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1886 # `rm'.
1887 for ac_file in conftest.exe conftest conftest.*; do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1892 export ac_cv_exeext
1893 break;;
1894 * ) break;;
1895 esac
1896 done
1897 else
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1904
1905 rm -f conftest$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1908
1909 rm -f conftest.$ac_ext
1910 EXEEXT=$ac_cv_exeext
1911 ac_exeext=$EXEEXT
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1924
1925 int
1926 main ()
1927 {
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 case $ac_file in
1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1955 fi
1956
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1958 fi
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1962 ac_objext=$OBJEXT
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980 choke me
1981 #endif
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_compiler_gnu=yes
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_compiler_gnu=no
2005 fi
2006 rm -f conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009 fi
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2015 CFLAGS="-g"
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 /* confdefs.h. */
2024 _ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2028
2029 int
2030 main ()
2031 {
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2049 ac_cv_prog_cc_g=yes
2050 else
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_cv_prog_cc_g=no
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2064 CFLAGS="-g -O2"
2065 else
2066 CFLAGS="-g"
2067 fi
2068 else
2069 if test "$GCC" = yes; then
2070 CFLAGS="-O2"
2071 else
2072 CFLAGS=
2073 fi
2074 fi
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 ac_cv_prog_cc_stdc=no
2081 ac_save_CC=$CC
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 /* confdefs.h. */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2089 #include <stdarg.h>
2090 #include <stdio.h>
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2097 char **p;
2098 int i;
2099 {
2100 return p[i];
2101 }
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2103 {
2104 char *s;
2105 va_list v;
2106 va_start (v,p);
2107 s = g (p, va_arg (v,int));
2108 va_end (v);
2109 return s;
2110 }
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2115 int argc;
2116 char **argv;
2117 int
2118 main ()
2119 {
2120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX -qlanglvl=ansi
2128 # Ultrix and OSF/1 -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions -Aa -D_HPUX_SOURCE
2131 # SVR4 -Xc -D__EXTENSIONS__
2132 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2133 do
2134 CC="$ac_save_CC $ac_arg"
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc=$ac_arg
2148 break
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 fi
2154 rm -f conftest.$ac_objext
2155 done
2156 rm -f conftest.$ac_ext conftest.$ac_objext
2157 CC=$ac_save_CC
2158
2159 fi
2160
2161 case "x$ac_cv_prog_cc_stdc" in
2162 x|xno)
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2165 *)
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC="$CC $ac_cv_prog_cc_stdc" ;;
2169 esac
2170
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #ifndef __cplusplus
2177 choke me
2178 #endif
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2193 ''\
2194 '#include <stdlib.h>' \
2195 'extern "C" void std::exit (int) throw (); using std::exit;' \
2196 'extern "C" void std::exit (int); using std::exit;' \
2197 'extern "C" void exit (int) throw ();' \
2198 'extern "C" void exit (int);' \
2199 'void exit (int);'
2200 do
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2208 #include <stdlib.h>
2209 $ac_declaration
2210 int
2211 main ()
2212 {
2213 exit (42);
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 continue
2236 fi
2237 rm -f conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 /* confdefs.h. */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2245 $ac_declaration
2246 int
2247 main ()
2248 {
2249 exit (42);
2250 ;
2251 return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2266 break
2267 else
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 fi
2272 rm -f conftest.$ac_objext conftest.$ac_ext
2273 done
2274 rm -f conftest*
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2279 fi
2280
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 fi
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293 if test "$GCC" = yes ; then
2294 if test "$SHLICC2" = yes ; then
2295 ac_cv_lbl_gcc_vers=2
2296 V_CCOPT="-O2"
2297 else
2298 echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2304 sed -e '/^gcc version /!d' \
2305 -e 's/^gcc version //' \
2306 -e 's/ .*//' -e 's/^[^0-9]*//' \
2307 -e 's/\..*//'`
2308 fi
2309
2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2313 V_CCOPT="-O2"
2314 fi
2315 fi
2316 else
2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 #include <sys/types.h>
2331 int
2332 main ()
2333 {
2334 int frob(int, char *)
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lbl_cc_ansi_prototypes=yes
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_cv_lbl_cc_ansi_prototypes=no
2357 fi
2358 rm -f conftest.$ac_objext conftest.$ac_ext
2359 fi
2360
2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2364 case "$host_os" in
2365
2366 hpux*)
2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369 savedcflags="$CFLAGS"
2370 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <sys/types.h>
2382 int
2383 main ()
2384 {
2385 int frob(int, char *)
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_lbl_cc_hpux_cc_aa=yes
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_cv_lbl_cc_hpux_cc_aa=no
2408 fi
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2410 fi
2411
2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417 { (exit 1); exit 1; }; }
2418 fi
2419 CFLAGS="$savedcflags"
2420 V_CCOPT="-Aa $V_CCOPT"
2421 cat >>confdefs.h <<\_ACEOF
2422 #define _HPUX_SOURCE 1
2423 _ACEOF
2424
2425 ;;
2426
2427 *)
2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430 { (exit 1); exit 1; }; }
2431 ;;
2432 esac
2433 fi
2434 V_INCLS="$V_INCLS -I/usr/local/include"
2435 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2436
2437 case "$host_os" in
2438
2439 irix*)
2440 V_CCOPT="$V_CCOPT -xansi -signed -O"
2441 ;;
2442
2443 osf*)
2444 V_CCOPT="$V_CCOPT -std1 -O"
2445 ;;
2446
2447 ultrix*)
2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <sys/types.h>
2461 int
2462 main ()
2463 {
2464 struct a { int b; };
2465 void c(const struct a *)
2466 ;
2467 return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 ac_cv_lbl_cc_const_proto=yes
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_cv_lbl_cc_const_proto=no
2488 fi
2489 rm -f conftest.$ac_objext conftest.$ac_ext
2490 fi
2491
2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494 if test $ac_cv_lbl_cc_const_proto = no ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define const
2497 _ACEOF
2498
2499 fi
2500 ;;
2501 esac
2502 fi
2503
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 if test "${ac_cv_c_inline+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 ac_cv_c_inline=no
2510 for ac_kw in inline __inline__ __inline; do
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 /* confdefs.h. */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2518 #ifndef __cplusplus
2519 typedef int foo_t;
2520 static $ac_kw foo_t static_foo () {return 0; }
2521 $ac_kw foo_t foo () {return 0; }
2522 #endif
2523
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_cv_c_inline=$ac_kw; break
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 fi
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 done
2545
2546 fi
2547 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2548 echo "${ECHO_T}$ac_cv_c_inline" >&6
2549 case $ac_cv_c_inline in
2550 inline | yes) ;;
2551 no)
2552 cat >>confdefs.h <<\_ACEOF
2553 #define inline
2554 _ACEOF
2555 ;;
2556 *) cat >>confdefs.h <<_ACEOF
2557 #define inline $ac_cv_c_inline
2558 _ACEOF
2559 ;;
2560 esac
2561
2562
2563 echo "$as_me:$LINENO: checking for __attribute__" >&5
2564 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2565 if test "${ac_cv___attribute__+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568
2569 cat >conftest.$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2571 /* confdefs.h. */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2576
2577 #include <stdlib.h>
2578
2579 int
2580 main ()
2581 {
2582
2583 static void foo(void) __attribute__ ((noreturn));
2584
2585 static void
2586 foo(void)
2587 {
2588 exit(1);
2589 }
2590
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 ac_cv___attribute__=yes
2608 else
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 ac_cv___attribute__=no
2613 fi
2614 rm -f conftest.$ac_objext conftest.$ac_ext
2615 fi
2616
2617 if test "$ac_cv___attribute__" = "yes"; then
2618
2619 cat >>confdefs.h <<\_ACEOF
2620 #define HAVE___ATTRIBUTE__ 1
2621 _ACEOF
2622
2623 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2624 else
2625 V_DEFS="$V_DEFS -D_U_=\"\""
2626 fi
2627 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2628 echo "${ECHO_T}$ac_cv___attribute__" >&6
2629
2630 ac_ext=c
2631 ac_cpp='$CPP $CPPFLAGS'
2632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2636 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2637 # On Suns, sometimes $CPP names a directory.
2638 if test -n "$CPP" && test -d "$CPP"; then
2639 CPP=
2640 fi
2641 if test -z "$CPP"; then
2642 if test "${ac_cv_prog_CPP+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 # Double quotes because CPP needs to be expanded
2646 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2647 do
2648 ac_preproc_ok=false
2649 for ac_c_preproc_warn_flag in '' yes
2650 do
2651 # Use a header file that comes with gcc, so configuring glibc
2652 # with a fresh cross-compiler works.
2653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654 # <limits.h> exists even on freestanding compilers.
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp. "Syntax error" is here to catch this case.
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2664 #ifdef __STDC__
2665 # include <limits.h>
2666 #else
2667 # include <assert.h>
2668 #endif
2669 Syntax error
2670 _ACEOF
2671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } >/dev/null; then
2679 if test -s conftest.err; then
2680 ac_cpp_err=$ac_c_preproc_warn_flag
2681 else
2682 ac_cpp_err=
2683 fi
2684 else
2685 ac_cpp_err=yes
2686 fi
2687 if test -z "$ac_cpp_err"; then
2688 :
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 # Broken: fails on valid input.
2694 continue
2695 fi
2696 rm -f conftest.err conftest.$ac_ext
2697
2698 # OK, works on sane cases. Now check whether non-existent headers
2699 # can be detected and how.
2700 cat >conftest.$ac_ext <<_ACEOF
2701 #line $LINENO "configure"
2702 /* confdefs.h. */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707 #include <ac_nonexistent.h>
2708 _ACEOF
2709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2711 ac_status=$?
2712 grep -v '^ *+' conftest.er1 >conftest.err
2713 rm -f conftest.er1
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } >/dev/null; then
2717 if test -s conftest.err; then
2718 ac_cpp_err=$ac_c_preproc_warn_flag
2719 else
2720 ac_cpp_err=
2721 fi
2722 else
2723 ac_cpp_err=yes
2724 fi
2725 if test -z "$ac_cpp_err"; then
2726 # Broken: success on invalid input.
2727 continue
2728 else
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 # Passes both tests.
2733 ac_preproc_ok=:
2734 break
2735 fi
2736 rm -f conftest.err conftest.$ac_ext
2737
2738 done
2739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2740 rm -f conftest.err conftest.$ac_ext
2741 if $ac_preproc_ok; then
2742 break
2743 fi
2744
2745 done
2746 ac_cv_prog_CPP=$CPP
2747
2748 fi
2749 CPP=$ac_cv_prog_CPP
2750 else
2751 ac_cv_prog_CPP=$CPP
2752 fi
2753 echo "$as_me:$LINENO: result: $CPP" >&5
2754 echo "${ECHO_T}$CPP" >&6
2755 ac_preproc_ok=false
2756 for ac_c_preproc_warn_flag in '' yes
2757 do
2758 # Use a header file that comes with gcc, so configuring glibc
2759 # with a fresh cross-compiler works.
2760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761 # <limits.h> exists even on freestanding compilers.
2762 # On the NeXT, cc -E runs the code through the compiler's parser,
2763 # not just through cpp. "Syntax error" is here to catch this case.
2764 cat >conftest.$ac_ext <<_ACEOF
2765 #line $LINENO "configure"
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 #ifdef __STDC__
2772 # include <limits.h>
2773 #else
2774 # include <assert.h>
2775 #endif
2776 Syntax error
2777 _ACEOF
2778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } >/dev/null; then
2786 if test -s conftest.err; then
2787 ac_cpp_err=$ac_c_preproc_warn_flag
2788 else
2789 ac_cpp_err=
2790 fi
2791 else
2792 ac_cpp_err=yes
2793 fi
2794 if test -z "$ac_cpp_err"; then
2795 :
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 # Broken: fails on valid input.
2801 continue
2802 fi
2803 rm -f conftest.err conftest.$ac_ext
2804
2805 # OK, works on sane cases. Now check whether non-existent headers
2806 # can be detected and how.
2807 cat >conftest.$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814 #include <ac_nonexistent.h>
2815 _ACEOF
2816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } >/dev/null; then
2824 if test -s conftest.err; then
2825 ac_cpp_err=$ac_c_preproc_warn_flag
2826 else
2827 ac_cpp_err=
2828 fi
2829 else
2830 ac_cpp_err=yes
2831 fi
2832 if test -z "$ac_cpp_err"; then
2833 # Broken: success on invalid input.
2834 continue
2835 else
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 # Passes both tests.
2840 ac_preproc_ok=:
2841 break
2842 fi
2843 rm -f conftest.err conftest.$ac_ext
2844
2845 done
2846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2847 rm -f conftest.err conftest.$ac_ext
2848 if $ac_preproc_ok; then
2849 :
2850 else
2851 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2854 See \`config.log' for more details." >&2;}
2855 { (exit 1); exit 1; }; }
2856 fi
2857
2858 ac_ext=c
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863
2864
2865 echo "$as_me:$LINENO: checking for egrep" >&5
2866 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2867 if test "${ac_cv_prog_egrep+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2871 then ac_cv_prog_egrep='grep -E'
2872 else ac_cv_prog_egrep='egrep'
2873 fi
2874 fi
2875 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2876 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2877 EGREP=$ac_cv_prog_egrep
2878
2879
2880 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2881 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2882 if test "${ac_cv_header_stdc+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 #include <stdlib.h>
2893 #include <stdarg.h>
2894 #include <string.h>
2895 #include <float.h>
2896
2897 int
2898 main ()
2899 {
2900
2901 ;
2902 return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_header_stdc=yes
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 ac_cv_header_stdc=no
2923 fi
2924 rm -f conftest.$ac_objext conftest.$ac_ext
2925
2926 if test $ac_cv_header_stdc = yes; then
2927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <string.h>
2936
2937 _ACEOF
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 $EGREP "memchr" >/dev/null 2>&1; then
2940 :
2941 else
2942 ac_cv_header_stdc=no
2943 fi
2944 rm -f conftest*
2945
2946 fi
2947
2948 if test $ac_cv_header_stdc = yes; then
2949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2950 cat >conftest.$ac_ext <<_ACEOF
2951 #line $LINENO "configure"
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957 #include <stdlib.h>
2958
2959 _ACEOF
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 $EGREP "free" >/dev/null 2>&1; then
2962 :
2963 else
2964 ac_cv_header_stdc=no
2965 fi
2966 rm -f conftest*
2967
2968 fi
2969
2970 if test $ac_cv_header_stdc = yes; then
2971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2972 if test "$cross_compiling" = yes; then
2973 :
2974 else
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2982 #include <ctype.h>
2983 #if ((' ' & 0x0FF) == 0x020)
2984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2986 #else
2987 # define ISLOWER(c) \
2988 (('a' <= (c) && (c) <= 'i') \
2989 || ('j' <= (c) && (c) <= 'r') \
2990 || ('s' <= (c) && (c) <= 'z'))
2991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2992 #endif
2993
2994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2995 int
2996 main ()
2997 {
2998 int i;
2999 for (i = 0; i < 256; i++)
3000 if (XOR (islower (i), ISLOWER (i))
3001 || toupper (i) != TOUPPER (i))
3002 exit(2);
3003 exit (0);
3004 }
3005 _ACEOF
3006 rm -f conftest$ac_exeext
3007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3008 (eval $ac_link) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 :
3018 else
3019 echo "$as_me: program exited with status $ac_status" >&5
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 ( exit $ac_status )
3024 ac_cv_header_stdc=no
3025 fi
3026 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3027 fi
3028 fi
3029 fi
3030 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3031 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3032 if test $ac_cv_header_stdc = yes; then
3033
3034 cat >>confdefs.h <<\_ACEOF
3035 #define STDC_HEADERS 1
3036 _ACEOF
3037
3038 fi
3039
3040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3051 inttypes.h stdint.h unistd.h
3052 do
3053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3054 echo "$as_me:$LINENO: checking for $ac_header" >&5
3055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 $ac_includes_default
3067
3068 #include <$ac_header>
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072 (eval $ac_compile) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -s conftest.$ac_objext'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 eval "$as_ac_Header=yes"
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 eval "$as_ac_Header=no"
3088 fi
3089 rm -f conftest.$ac_objext conftest.$ac_ext
3090 fi
3091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3094 cat >>confdefs.h <<_ACEOF
3095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3096 _ACEOF
3097
3098 fi
3099
3100 done
3101
3102
3103
3104
3105
3106 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3107 do
3108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3110 echo "$as_me:$LINENO: checking for $ac_header" >&5
3111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 fi
3115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3117 else
3118 # Is the header compilable?
3119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3121 cat >conftest.$ac_ext <<_ACEOF
3122 #line $LINENO "configure"
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 $ac_includes_default
3129 #include <$ac_header>
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 ac_header_compiler=yes
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 ac_header_compiler=no
3149 fi
3150 rm -f conftest.$ac_objext conftest.$ac_ext
3151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3152 echo "${ECHO_T}$ac_header_compiler" >&6
3153
3154 # Is the header present?
3155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3157 cat >conftest.$ac_ext <<_ACEOF
3158 #line $LINENO "configure"
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164 #include <$ac_header>
3165 _ACEOF
3166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } >/dev/null; then
3174 if test -s conftest.err; then
3175 ac_cpp_err=$ac_c_preproc_warn_flag
3176 else
3177 ac_cpp_err=
3178 fi
3179 else
3180 ac_cpp_err=yes
3181 fi
3182 if test -z "$ac_cpp_err"; then
3183 ac_header_preproc=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 ac_header_preproc=no
3189 fi
3190 rm -f conftest.err conftest.$ac_ext
3191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3192 echo "${ECHO_T}$ac_header_preproc" >&6
3193
3194 # So? What about this header?
3195 case $ac_header_compiler:$ac_header_preproc in
3196 yes:no )
3197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3201 (
3202 cat <<\_ASBOX
3203 ## ------------------------------------ ##
3204 ## Report this to bug-autoconf@gnu.org. ##
3205 ## ------------------------------------ ##
3206 _ASBOX
3207 ) |
3208 sed "s/^/$as_me: WARNING: /" >&2
3209 ;;
3210 no:yes )
3211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3217 (
3218 cat <<\_ASBOX
3219 ## ------------------------------------ ##
3220 ## Report this to bug-autoconf@gnu.org. ##
3221 ## ------------------------------------ ##
3222 _ASBOX
3223 ) |
3224 sed "s/^/$as_me: WARNING: /" >&2
3225 ;;
3226 esac
3227 echo "$as_me:$LINENO: checking for $ac_header" >&5
3228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 eval "$as_ac_Header=$ac_header_preproc"
3233 fi
3234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3236
3237 fi
3238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3239 cat >>confdefs.h <<_ACEOF
3240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3241 _ACEOF
3242
3243 fi
3244
3245 done
3246
3247
3248 for ac_header in netinet/if_ether.h
3249 do
3250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3251 echo "$as_me:$LINENO: checking for $ac_header" >&5
3252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 cat >conftest.$ac_ext <<_ACEOF
3257 #line $LINENO "configure"
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 #include <sys/types.h>
3264 #include <sys/socket.h>
3265
3266 #include <$ac_header>
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 eval "$as_ac_Header=yes"
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 eval "$as_ac_Header=no"
3286 fi
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3288 fi
3289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3292 cat >>confdefs.h <<_ACEOF
3293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3294 _ACEOF
3295
3296 fi
3297
3298 done
3299
3300 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3301 #
3302 # The simple test didn't work.
3303 # Do we need to include <net/if.h> first?
3304 # Unset ac_cv_header_netinet_if_ether_h so we don't
3305 # treat the previous failure as a cached value and
3306 # suppress the next test.
3307 #
3308 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3309 echo "$as_me: Rechecking with some additional includes" >&6;}
3310 unset ac_cv_header_netinet_if_ether_h
3311
3312 for ac_header in netinet/if_ether.h
3313 do
3314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3315 echo "$as_me:$LINENO: checking for $ac_header" >&5
3316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <sys/types.h>
3328 #include <sys/socket.h>
3329 #include <netinet/in.h>
3330 struct mbuf;
3331 struct rtentry;
3332 #include <net/if.h>
3333
3334 #include <$ac_header>
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -s conftest.$ac_objext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 eval "$as_ac_Header=yes"
3349 else
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 eval "$as_ac_Header=no"
3354 fi
3355 rm -f conftest.$ac_objext conftest.$ac_ext
3356 fi
3357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3360 cat >>confdefs.h <<_ACEOF
3361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3362 _ACEOF
3363
3364 fi
3365
3366 done
3367
3368 fi
3369
3370 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3371 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3372 if test "${ac_cv_header_time+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 cat >conftest.$ac_ext <<_ACEOF
3376 #line $LINENO "configure"
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 #include <sys/types.h>
3383 #include <sys/time.h>
3384 #include <time.h>
3385
3386 int
3387 main ()
3388 {
3389 if ((struct tm *) 0)
3390 return 0;
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 ac_cv_header_time=yes
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411
3412 ac_cv_header_time=no
3413 fi
3414 rm -f conftest.$ac_objext conftest.$ac_ext
3415 fi
3416 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3417 echo "${ECHO_T}$ac_cv_header_time" >&6
3418 if test $ac_cv_header_time = yes; then
3419
3420 cat >>confdefs.h <<\_ACEOF
3421 #define TIME_WITH_SYS_TIME 1
3422 _ACEOF
3423
3424 fi
3425
3426
3427 case "$host_os" in
3428
3429 linux*)
3430 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3431 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3432 if test "$cross_compiling" = yes; then
3433 if test "${ac_cv_linux_vers+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 ac_cv_linux_vers=unknown
3437 fi
3438
3439 else
3440 if test "${ac_cv_linux_vers+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 ac_cv_linux_vers=`uname -r 2>&1 | \
3444 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3445 fi
3446
3447 fi
3448 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3449 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3450 if test $ac_cv_linux_vers = unknown ; then
3451 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3452 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3453 { (exit 1); exit 1; }; }
3454 fi
3455 if test $ac_cv_linux_vers -lt 2 ; then
3456 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3457 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3458 { (exit 1); exit 1; }; }
3459 fi
3460 ;;
3461
3462 *)
3463 ;;
3464 esac
3465
3466
3467
3468 for ac_header in smi.h
3469 do
3470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3472 echo "$as_me:$LINENO: checking for $ac_header" >&5
3473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 fi
3477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3479 else
3480 # Is the header compilable?
3481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3483 cat >conftest.$ac_ext <<_ACEOF
3484 #line $LINENO "configure"
3485 /* confdefs.h. */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 $ac_includes_default
3491 #include <$ac_header>
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_header_compiler=yes
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 ac_header_compiler=no
3511 fi
3512 rm -f conftest.$ac_objext conftest.$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3514 echo "${ECHO_T}$ac_header_compiler" >&6
3515
3516 # Is the header present?
3517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3519 cat >conftest.$ac_ext <<_ACEOF
3520 #line $LINENO "configure"
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <$ac_header>
3527 _ACEOF
3528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev/null; then
3536 if test -s conftest.err; then
3537 ac_cpp_err=$ac_c_preproc_warn_flag
3538 else
3539 ac_cpp_err=
3540 fi
3541 else
3542 ac_cpp_err=yes
3543 fi
3544 if test -z "$ac_cpp_err"; then
3545 ac_header_preproc=yes
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 ac_header_preproc=no
3551 fi
3552 rm -f conftest.err conftest.$ac_ext
3553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3554 echo "${ECHO_T}$ac_header_preproc" >&6
3555
3556 # So? What about this header?
3557 case $ac_header_compiler:$ac_header_preproc in
3558 yes:no )
3559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3563 (
3564 cat <<\_ASBOX
3565 ## ------------------------------------ ##
3566 ## Report this to bug-autoconf@gnu.org. ##
3567 ## ------------------------------------ ##
3568 _ASBOX
3569 ) |
3570 sed "s/^/$as_me: WARNING: /" >&2
3571 ;;
3572 no:yes )
3573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3579 (
3580 cat <<\_ASBOX
3581 ## ------------------------------------ ##
3582 ## Report this to bug-autoconf@gnu.org. ##
3583 ## ------------------------------------ ##
3584 _ASBOX
3585 ) |
3586 sed "s/^/$as_me: WARNING: /" >&2
3587 ;;
3588 esac
3589 echo "$as_me:$LINENO: checking for $ac_header" >&5
3590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594 eval "$as_ac_Header=$ac_header_preproc"
3595 fi
3596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3598
3599 fi
3600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3601 cat >>confdefs.h <<_ACEOF
3602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3603 _ACEOF
3604
3605 fi
3606
3607 done
3608
3609
3610 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3611 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3612 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 ac_check_lib_save_LIBS=$LIBS
3616 LIBS="-lsmi $LIBS"
3617 cat >conftest.$ac_ext <<_ACEOF
3618 #line $LINENO "configure"
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 #ifdef __cplusplus
3627 extern "C"
3628 #endif
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3631 char smiInit ();
3632 int
3633 main ()
3634 {
3635 smiInit ();
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.$ac_objext conftest$ac_exeext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -s conftest$ac_exeext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_cv_lib_smi_smiInit=yes
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657 ac_cv_lib_smi_smiInit=no
3658 fi
3659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3660 LIBS=$ac_check_lib_save_LIBS
3661 fi
3662 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3663 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3664 if test $ac_cv_lib_smi_smiInit = yes; then
3665 cat >>confdefs.h <<_ACEOF
3666 #define HAVE_LIBSMI 1
3667 _ACEOF
3668
3669 LIBS="-lsmi $LIBS"
3670
3671 fi
3672
3673 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3674 then
3675 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3676 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3677 if test "$cross_compiling" = yes; then
3678 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3679 echo "${ECHO_T}not when cross-compiling" >&6
3680 libsmi=no
3681
3682 else
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 /* libsmi available check */
3691 #include <smi.h>
3692 main()
3693 {
3694 int current, revision, age, n;
3695 const int required = 2;
3696 if (smiInit(""))
3697 exit(1);
3698 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3699 exit(2);
3700 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3701 if (n != 3)
3702 exit(3);
3703 if (required < current - age || required > current)
3704 exit(4);
3705 exit(0);
3706 }
3707
3708 _ACEOF
3709 rm -f conftest$ac_exeext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3711 (eval $ac_link) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6
3722 cat >>confdefs.h <<\_ACEOF
3723 #define LIBSMI 1
3724 _ACEOF
3725
3726 libsmi=yes
3727 else
3728 echo "$as_me: program exited with status $ac_status" >&5
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 ( exit $ac_status )
3733 case $? in
3734 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3735 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3736 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3737 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3738 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3739 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3740 4) echo "$as_me:$LINENO: result: no - too old" >&5
3741 echo "${ECHO_T}no - too old" >&6 ;;
3742 *) echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6 ;;
3744 esac
3745 libsmi=no
3746 fi
3747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3748 fi
3749 fi
3750
3751 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3752 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3753 # Check whether --enable-smb or --disable-smb was given.
3754 if test "${enable_smb+set}" = set; then
3755 enableval="$enable_smb"
3756
3757 else
3758 enableval=yes
3759 fi;
3760 case "$enableval" in
3761 yes) echo "$as_me:$LINENO: result: yes" >&5
3762 echo "${ECHO_T}yes" >&6
3763 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3764 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3765 cat >>confdefs.h <<\_ACEOF
3766 #define TCPDUMP_DO_SMB 1
3767 _ACEOF
3768
3769 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3770 ;;
3771 *) echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3773 ;;
3774 esac
3775
3776
3777 # Check whether --with-user or --without-user was given.
3778 if test "${with_user+set}" = set; then
3779 withval="$with_user"
3780
3781 fi;
3782 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3783 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3784 if test ! -z "$with_user" ; then
3785 cat >>confdefs.h <<_ACEOF
3786 #define WITH_USER "$withval"
3787 _ACEOF
3788
3789 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3790 echo "${ECHO_T}to \"$withval\"" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3794 fi
3795
3796
3797 # Check whether --with-chroot or --without-chroot was given.
3798 if test "${with_chroot+set}" = set; then
3799 withval="$with_chroot"
3800
3801 fi;
3802 echo "$as_me:$LINENO: checking whether to chroot" >&5
3803 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3804 if test ! -z "$with_chroot" ; then
3805 cat >>confdefs.h <<_ACEOF
3806 #define WITH_CHROOT "$withval"
3807 _ACEOF
3808
3809 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3810 echo "${ECHO_T}to \"$withval\"" >&6
3811 else
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3814 fi
3815
3816 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3817 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3818 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3819 if test "${enable_ipv6+set}" = set; then
3820 enableval="$enable_ipv6"
3821 case "$enableval" in
3822 yes) echo "$as_me:$LINENO: result: yes" >&5
3823 echo "${ECHO_T}yes" >&6
3824 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"
3825 cat >>confdefs.h <<\_ACEOF
3826 #define INET6 1
3827 _ACEOF
3828
3829 ipv6=yes
3830 ;;
3831 *)
3832 echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3834 ipv6=no
3835 ;;
3836 esac
3837 else
3838 if test "$cross_compiling" = yes; then
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3841 ipv6=no
3842
3843 else
3844 cat >conftest.$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 /* AF_INET6 available check */
3852 #include <sys/types.h>
3853 #include <sys/socket.h>
3854 main()
3855 {
3856 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3857 exit(1);
3858 else
3859 exit(0);
3860 }
3861
3862 _ACEOF
3863 rm -f conftest$ac_exeext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865 (eval $ac_link) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875 echo "${ECHO_T}yes" >&6
3876 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"
3877 cat >>confdefs.h <<\_ACEOF
3878 #define INET6 1
3879 _ACEOF
3880
3881 ipv6=yes
3882 else
3883 echo "$as_me: program exited with status $ac_status" >&5
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887 ( exit $ac_status )
3888 echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6
3890 ipv6=no
3891 fi
3892 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3893 fi
3894 fi;
3895
3896 ipv6type=unknown
3897 ipv6lib=none
3898 ipv6trylibc=no
3899
3900 if test "$ipv6" = "yes"; then
3901 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3902 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3903 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3904 case $i in
3905 inria)
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #include <netinet/in.h>
3914 #ifdef IPV6_INRIA_VERSION
3915 yes
3916 #endif
3917 _ACEOF
3918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919 $EGREP "yes" >/dev/null 2>&1; then
3920 ipv6type=$i;
3921 CFLAGS="-DINET6 $CFLAGS"
3922 fi
3923 rm -f conftest*
3924
3925 ;;
3926 kame)
3927 cat >conftest.$ac_ext <<_ACEOF
3928 #line $LINENO "configure"
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #include <netinet/in.h>
3935 #ifdef __KAME__
3936 yes
3937 #endif
3938 _ACEOF
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "yes" >/dev/null 2>&1; then
3941 ipv6type=$i;
3942 ipv6lib=inet6;
3943 ipv6libdir=/usr/local/v6/lib;
3944 ipv6trylibc=yes;
3945 CFLAGS="-DINET6 $CFLAGS"
3946 fi
3947 rm -f conftest*
3948
3949 ;;
3950 linux-glibc)
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <features.h>
3959 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3960 yes
3961 #endif
3962 _ACEOF
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "yes" >/dev/null 2>&1; then
3965 ipv6type=$i;
3966 CFLAGS="-DINET6 $CFLAGS"
3967 fi
3968 rm -f conftest*
3969
3970 ;;
3971 linux-libinet6)
3972 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3973 ipv6type=$i
3974 ipv6lib=inet6
3975 ipv6libdir=/usr/inet6/lib
3976 ipv6trylibc=yes;
3977 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3978 fi
3979 ;;
3980 toshiba)
3981 cat >conftest.$ac_ext <<_ACEOF
3982 #line $LINENO "configure"
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 #include <sys/param.h>
3989 #ifdef _TOSHIBA_INET6
3990 yes
3991 #endif
3992 _ACEOF
3993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994 $EGREP "yes" >/dev/null 2>&1; then
3995 ipv6type=$i;
3996 ipv6lib=inet6;
3997 ipv6libdir=/usr/local/v6/lib;
3998 CFLAGS="-DINET6 $CFLAGS"
3999 fi
4000 rm -f conftest*
4001
4002 ;;
4003 v6d)
4004 cat >conftest.$ac_ext <<_ACEOF
4005 #line $LINENO "configure"
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 #include </usr/local/v6/include/sys/v6config.h>
4012 #ifdef __V6D__
4013 yes
4014 #endif
4015 _ACEOF
4016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4017 $EGREP "yes" >/dev/null 2>&1; then
4018 ipv6type=$i;
4019 ipv6lib=v6;
4020 ipv6libdir=/usr/local/v6/lib;
4021 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4022 fi
4023 rm -f conftest*
4024
4025 ;;
4026 zeta)
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 #include <sys/param.h>
4035 #ifdef _ZETA_MINAMI_INET6
4036 yes
4037 #endif
4038 _ACEOF
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "yes" >/dev/null 2>&1; then
4041 ipv6type=$i;
4042 ipv6lib=inet6;
4043 ipv6libdir=/usr/local/v6/lib;
4044 CFLAGS="-DINET6 $CFLAGS"
4045 fi
4046 rm -f conftest*
4047
4048 ;;
4049 esac
4050 if test "$ipv6type" != "unknown"; then
4051 break
4052 fi
4053 done
4054 echo "$as_me:$LINENO: result: $ipv6type" >&5
4055 echo "${ECHO_T}$ipv6type" >&6
4056 fi
4057
4058 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4059 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4060 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4061 echo "You have $ipv6lib library, using it"
4062 else
4063 if test "$ipv6trylibc" = "yes"; then
4064 echo "You do not have $ipv6lib library, using libc"
4065 else
4066 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4067 echo "You need to fetch lib$ipv6lib.a from appropriate"
4068 echo 'ipv6 kit and compile beforehand.'
4069 exit 1
4070 fi
4071 fi
4072 fi
4073
4074
4075 if test "$ipv6" = "yes"; then
4076 #
4077 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4078 # function in libc; there are "ngetaddrinfo()" and
4079 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4080 # "getaddrinfo" to be either "ngetaddrinfo" or
4081 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4082 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4083 #
4084 # So this test doesn't work on Tru64 5.1, and possibly
4085 # on other 5.x releases. This causes the configure
4086 # script to become confused, and results in libpcap
4087 # being unbuildable.
4088 #
4089 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4090 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4091 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 ac_func_search_save_LIBS=$LIBS
4095 ac_cv_search_getaddrinfo=no
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103
4104 /* Override any gcc2 internal prototype to avoid an error. */
4105 #ifdef __cplusplus
4106 extern "C"
4107 #endif
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4110 char getaddrinfo ();
4111 int
4112 main ()
4113 {
4114 getaddrinfo ();
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.$ac_objext conftest$ac_exeext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121 (eval $ac_link) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -s conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_search_getaddrinfo="none required"
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 fi
4137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4138 if test "$ac_cv_search_getaddrinfo" = no; then
4139 for ac_lib in socket; do
4140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148
4149 /* Override any gcc2 internal prototype to avoid an error. */
4150 #ifdef __cplusplus
4151 extern "C"
4152 #endif
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4155 char getaddrinfo ();
4156 int
4157 main ()
4158 {
4159 getaddrinfo ();
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166 (eval $ac_link) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_search_getaddrinfo="-l$ac_lib"
4177 break
4178 else
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 fi
4183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4184 done
4185 fi
4186 LIBS=$ac_func_search_save_LIBS
4187 fi
4188 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4189 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4190 if test "$ac_cv_search_getaddrinfo" != no; then
4191 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4192 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4193 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4194 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if test "$cross_compiling" = yes; then
4198 td_cv_buggygetaddrinfo=yes
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 #line $LINENO "configure"
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207
4208 #include <sys/types.h>
4209 #include <netdb.h>
4210 #include <string.h>
4211 #include <sys/socket.h>
4212 #include <netinet/in.h>
4213
4214 main()
4215 {
4216 int passive, gaierr, inet4 = 0, inet6 = 0;
4217 struct addrinfo hints, *ai, *aitop;
4218 char straddr[INET6_ADDRSTRLEN], strport[16];
4219
4220 for (passive = 0; passive <= 1; passive++) {
4221 memset(&hints, 0, sizeof(hints));
4222 hints.ai_family = AF_UNSPEC;
4223 hints.ai_flags = passive ? AI_PASSIVE : 0;
4224 hints.ai_socktype = SOCK_STREAM;
4225 hints.ai_protocol = IPPROTO_TCP;
4226 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4227 (void)gai_strerror(gaierr);
4228 goto bad;
4229 }
4230 for (ai = aitop; ai; ai = ai->ai_next) {
4231 if (ai->ai_addr == NULL ||
4232 ai->ai_addrlen == 0 ||
4233 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4234 straddr, sizeof(straddr), strport, sizeof(strport),
4235 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4236 goto bad;
4237 }
4238 switch (ai->ai_family) {
4239 case AF_INET:
4240 if (strcmp(strport, "54321") != 0) {
4241 goto bad;
4242 }
4243 if (passive) {
4244 if (strcmp(straddr, "0.0.0.0") != 0) {
4245 goto bad;
4246 }
4247 } else {
4248 if (strcmp(straddr, "127.0.0.1") != 0) {
4249 goto bad;
4250 }
4251 }
4252 inet4++;
4253 break;
4254 case AF_INET6:
4255 if (strcmp(strport, "54321") != 0) {
4256 goto bad;
4257 }
4258 if (passive) {
4259 if (strcmp(straddr, "::") != 0) {
4260 goto bad;
4261 }
4262 } else {
4263 if (strcmp(straddr, "::1") != 0) {
4264 goto bad;
4265 }
4266 }
4267 inet6++;
4268 break;
4269 case AF_UNSPEC:
4270 goto bad;
4271 break;
4272 #ifdef AF_UNIX
4273 case AF_UNIX:
4274 #else
4275 #ifdef AF_LOCAL
4276 case AF_LOCAL:
4277 #endif
4278 #endif
4279 default:
4280 /* another family support? */
4281 break;
4282 }
4283 }
4284 }
4285
4286 /* supported family should be 2, unsupported family should be 0 */
4287 if (!(inet4 == 0 || inet4 == 2))
4288 goto bad;
4289 if (!(inet6 == 0 || inet6 == 2))
4290 goto bad;
4291
4292 if (aitop)
4293 freeaddrinfo(aitop);
4294 exit(0);
4295
4296 bad:
4297 if (aitop)
4298 freeaddrinfo(aitop);
4299 exit(1);
4300 }
4301
4302 _ACEOF
4303 rm -f conftest$ac_exeext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 td_cv_buggygetaddrinfo=no
4315 else
4316 echo "$as_me: program exited with status $ac_status" >&5
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320 ( exit $ac_status )
4321 td_cv_buggygetaddrinfo=yes
4322 fi
4323 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4324 fi
4325 fi
4326
4327 if test "$td_cv_buggygetaddrinfo" = no; then
4328 echo "$as_me:$LINENO: result: good" >&5
4329 echo "${ECHO_T}good" >&6
4330 else
4331 echo "$as_me:$LINENO: result: buggy" >&5
4332 echo "${ECHO_T}buggy" >&6
4333 fi
4334
4335 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4336 #
4337 # XXX - it doesn't appear that "ipv6type" can ever be
4338 # set to "linux". Should this be testing for
4339 # "linux-glibc", or for that *or* "linux-libinet6"?
4340 # If the latter, note that "linux-libinet6" is also
4341 # the type given to some non-Linux OSes.
4342 #
4343 if test "$ipv6type" != "linux"; then
4344 echo 'Fatal: You must get working getaddrinfo() function.'
4345 echo ' or you can specify "--disable-ipv6"'.
4346 exit 1
4347 else
4348 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4349 echo ' Better upgrade your system library to newest version'
4350 echo ' of GNU C library (aka glibc).'
4351 fi
4352 fi
4353
4354 fi
4355
4356
4357
4358 for ac_func in getaddrinfo getnameinfo
4359 do
4360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4361 echo "$as_me:$LINENO: checking for $ac_func" >&5
4362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4363 if eval "test \"\${$as_ac_var+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 cat >conftest.$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 /* System header to define __stub macros and hopefully few prototypes,
4374 which can conflict with char $ac_func (); below.
4375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376 <limits.h> exists even on freestanding compilers. */
4377 #ifdef __STDC__
4378 # include <limits.h>
4379 #else
4380 # include <assert.h>
4381 #endif
4382 /* Override any gcc2 internal prototype to avoid an error. */
4383 #ifdef __cplusplus
4384 extern "C"
4385 {
4386 #endif
4387 /* We use char because int might match the return type of a gcc2
4388 builtin and then its argument prototype would still apply. */
4389 char $ac_func ();
4390 /* The GNU C library defines this for functions which it implements
4391 to always fail with ENOSYS. Some functions are actually named
4392 something starting with __ and the normal name is an alias. */
4393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4394 choke me
4395 #else
4396 char (*f) () = $ac_func;
4397 #endif
4398 #ifdef __cplusplus
4399 }
4400 #endif
4401
4402 int
4403 main ()
4404 {
4405 return f != $ac_func;
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 rm -f conftest.$ac_objext conftest$ac_exeext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4412 (eval $ac_link) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -s conftest$ac_exeext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 eval "$as_ac_var=yes"
4423 else
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 eval "$as_ac_var=no"
4428 fi
4429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4430 fi
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4433 if test `eval echo '${'$as_ac_var'}'` = yes; then
4434 cat >>confdefs.h <<_ACEOF
4435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4436 _ACEOF
4437
4438 else
4439 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4440 fi
4441 done
4442
4443
4444 fi
4445
4446 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4447 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4448 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <netdnet/dnetdb.h>
4459
4460 _ACEOF
4461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4463 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4464 else
4465 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4466 fi
4467 rm -f conftest*
4468
4469 fi
4470 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4471 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4472 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4473 cat >>confdefs.h <<\_ACEOF
4474 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4475 _ACEOF
4476
4477 fi
4478
4479 echo "$as_me:$LINENO: checking for char" >&5
4480 echo $ECHO_N "checking for char... $ECHO_C" >&6
4481 if test "${ac_cv_type_char+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line $LINENO "configure"
4486 /* confdefs.h. */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 $ac_includes_default
4492 int
4493 main ()
4494 {
4495 if ((char *) 0)
4496 return 0;
4497 if (sizeof (char))
4498 return 0;
4499 ;
4500 return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try='test -s conftest.$ac_objext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_type_char=yes
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520 ac_cv_type_char=no
4521 fi
4522 rm -f conftest.$ac_objext conftest.$ac_ext
4523 fi
4524 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4525 echo "${ECHO_T}$ac_cv_type_char" >&6
4526
4527 echo "$as_me:$LINENO: checking size of char" >&5
4528 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4529 if test "${ac_cv_sizeof_char+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 if test "$ac_cv_type_char" = yes; then
4533 # The cast to unsigned long works around a bug in the HP C Compiler
4534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4536 # This bug is HP SR number 8606223364.
4537 if test "$cross_compiling" = yes; then
4538 # Depending upon the size, compute the lo and hi bounds.
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4541 /* confdefs.h. */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546 $ac_includes_default
4547 int
4548 main ()
4549 {
4550 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4551 test_array [0] = 0
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 ac_lo=0 ac_mid=0
4570 while :; do
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4579 int
4580 main ()
4581 {
4582 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4583 test_array [0] = 0
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 ac_hi=$ac_mid; break
4602 else
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ac_lo=`expr $ac_mid + 1`
4607 if test $ac_lo -le $ac_mid; then
4608 ac_lo= ac_hi=
4609 break
4610 fi
4611 ac_mid=`expr 2 '*' $ac_mid + 1`
4612 fi
4613 rm -f conftest.$ac_objext conftest.$ac_ext
4614 done
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 cat >conftest.$ac_ext <<_ACEOF
4620 #line $LINENO "configure"
4621 /* confdefs.h. */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4626 $ac_includes_default
4627 int
4628 main ()
4629 {
4630 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4631 test_array [0] = 0
4632
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 rm -f conftest.$ac_objext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639 (eval $ac_compile) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_hi=-1 ac_mid=-1
4650 while :; do
4651 cat >conftest.$ac_ext <<_ACEOF
4652 #line $LINENO "configure"
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4659 int
4660 main ()
4661 {
4662 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4663 test_array [0] = 0
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_lo=$ac_mid; break
4682 else
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 ac_hi=`expr '(' $ac_mid ')' - 1`
4687 if test $ac_mid -le $ac_hi; then
4688 ac_lo= ac_hi=
4689 break
4690 fi
4691 ac_mid=`expr 2 '*' $ac_mid`
4692 fi
4693 rm -f conftest.$ac_objext conftest.$ac_ext
4694 done
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 ac_lo= ac_hi=
4700 fi
4701 rm -f conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 rm -f conftest.$ac_objext conftest.$ac_ext
4704 # Binary search between lo and hi bounds.
4705 while test "x$ac_lo" != "x$ac_hi"; do
4706 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4715 int
4716 main ()
4717 {
4718 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4719 test_array [0] = 0
4720
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -s conftest.$ac_objext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_hi=$ac_mid
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 ac_lo=`expr '(' $ac_mid ')' + 1`
4743 fi
4744 rm -f conftest.$ac_objext conftest.$ac_ext
4745 done
4746 case $ac_lo in
4747 ?*) ac_cv_sizeof_char=$ac_lo;;
4748 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4749 See \`config.log' for more details." >&5
4750 echo "$as_me: error: cannot compute sizeof (char), 77
4751 See \`config.log' for more details." >&2;}
4752 { (exit 1); exit 1; }; } ;;
4753 esac
4754 else
4755 if test "$cross_compiling" = yes; then
4756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4757 See \`config.log' for more details." >&5
4758 echo "$as_me: error: cannot run test program while cross compiling
4759 See \`config.log' for more details." >&2;}
4760 { (exit 1); exit 1; }; }
4761 else
4762 cat >conftest.$ac_ext <<_ACEOF
4763 #line $LINENO "configure"
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4770 long longval () { return (long) (sizeof (char)); }
4771 unsigned long ulongval () { return (long) (sizeof (char)); }
4772 #include <stdio.h>
4773 #include <stdlib.h>
4774 int
4775 main ()
4776 {
4777
4778 FILE *f = fopen ("conftest.val", "w");
4779 if (! f)
4780 exit (1);
4781 if (((long) (sizeof (char))) < 0)
4782 {
4783 long i = longval ();
4784 if (i != ((long) (sizeof (char))))
4785 exit (1);
4786 fprintf (f, "%ld\n", i);
4787 }
4788 else
4789 {
4790 unsigned long i = ulongval ();
4791 if (i != ((long) (sizeof (char))))
4792 exit (1);
4793 fprintf (f, "%lu\n", i);
4794 }
4795 exit (ferror (f) || fclose (f) != 0);
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_cv_sizeof_char=`cat conftest.val`
4813 else
4814 echo "$as_me: program exited with status $ac_status" >&5
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818 ( exit $ac_status )
4819 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4820 See \`config.log' for more details." >&5
4821 echo "$as_me: error: cannot compute sizeof (char), 77
4822 See \`config.log' for more details." >&2;}
4823 { (exit 1); exit 1; }; }
4824 fi
4825 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4826 fi
4827 fi
4828 rm -f conftest.val
4829 else
4830 ac_cv_sizeof_char=0
4831 fi
4832 fi
4833 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4834 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4835 cat >>confdefs.h <<_ACEOF
4836 #define SIZEOF_CHAR $ac_cv_sizeof_char
4837 _ACEOF
4838
4839
4840 echo "$as_me:$LINENO: checking for short" >&5
4841 echo $ECHO_N "checking for short... $ECHO_C" >&6
4842 if test "${ac_cv_type_short+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 cat >conftest.$ac_ext <<_ACEOF
4846 #line $LINENO "configure"
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4853 int
4854 main ()
4855 {
4856 if ((short *) 0)
4857 return 0;
4858 if (sizeof (short))
4859 return 0;
4860 ;
4861 return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_cv_type_short=yes
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ac_cv_type_short=no
4882 fi
4883 rm -f conftest.$ac_objext conftest.$ac_ext
4884 fi
4885 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4886 echo "${ECHO_T}$ac_cv_type_short" >&6
4887
4888 echo "$as_me:$LINENO: checking size of short" >&5
4889 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4890 if test "${ac_cv_sizeof_short+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893 if test "$ac_cv_type_short" = yes; then
4894 # The cast to unsigned long works around a bug in the HP C Compiler
4895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4897 # This bug is HP SR number 8606223364.
4898 if test "$cross_compiling" = yes; then
4899 # Depending upon the size, compute the lo and hi bounds.
4900 cat >conftest.$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4902 /* confdefs.h. */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 $ac_includes_default
4908 int
4909 main ()
4910 {
4911 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4912 test_array [0] = 0
4913
4914 ;
4915 return 0;
4916 }
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_lo=0 ac_mid=0
4931 while :; do
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4940 int
4941 main ()
4942 {
4943 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4944 test_array [0] = 0
4945
4946 ;
4947 return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_hi=$ac_mid; break
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_lo=`expr $ac_mid + 1`
4968 if test $ac_lo -le $ac_mid; then
4969 ac_lo= ac_hi=
4970 break
4971 fi
4972 ac_mid=`expr 2 '*' $ac_mid + 1`
4973 fi
4974 rm -f conftest.$ac_objext conftest.$ac_ext
4975 done
4976 else
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 cat >conftest.$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4982 /* confdefs.h. */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 $ac_includes_default
4988 int
4989 main ()
4990 {
4991 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4992 test_array [0] = 0
4993
4994 ;
4995 return 0;
4996 }
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try='test -s conftest.$ac_objext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_hi=-1 ac_mid=-1
5011 while :; do
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5020 int
5021 main ()
5022 {
5023 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5024 test_array [0] = 0
5025
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032 (eval $ac_compile) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_lo=$ac_mid; break
5043 else
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 ac_hi=`expr '(' $ac_mid ')' - 1`
5048 if test $ac_mid -le $ac_hi; then
5049 ac_lo= ac_hi=
5050 break
5051 fi
5052 ac_mid=`expr 2 '*' $ac_mid`
5053 fi
5054 rm -f conftest.$ac_objext conftest.$ac_ext
5055 done
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 ac_lo= ac_hi=
5061 fi
5062 rm -f conftest.$ac_objext conftest.$ac_ext
5063 fi
5064 rm -f conftest.$ac_objext conftest.$ac_ext
5065 # Binary search between lo and hi bounds.
5066 while test "x$ac_lo" != "x$ac_hi"; do
5067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5068 cat >conftest.$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5076 int
5077 main ()
5078 {
5079 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5080 test_array [0] = 0
5081
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 ac_hi=$ac_mid
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 ac_lo=`expr '(' $ac_mid ')' + 1`
5104 fi
5105 rm -f conftest.$ac_objext conftest.$ac_ext
5106 done
5107 case $ac_lo in
5108 ?*) ac_cv_sizeof_short=$ac_lo;;
5109 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5110 See \`config.log' for more details." >&5
5111 echo "$as_me: error: cannot compute sizeof (short), 77
5112 See \`config.log' for more details." >&2;}
5113 { (exit 1); exit 1; }; } ;;
5114 esac
5115 else
5116 if test "$cross_compiling" = yes; then
5117 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: cannot run test program while cross compiling
5120 See \`config.log' for more details." >&2;}
5121 { (exit 1); exit 1; }; }
5122 else
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 $ac_includes_default
5131 long longval () { return (long) (sizeof (short)); }
5132 unsigned long ulongval () { return (long) (sizeof (short)); }
5133 #include <stdio.h>
5134 #include <stdlib.h>
5135 int
5136 main ()
5137 {
5138
5139 FILE *f = fopen ("conftest.val", "w");
5140 if (! f)
5141 exit (1);
5142 if (((long) (sizeof (short))) < 0)
5143 {
5144 long i = longval ();
5145 if (i != ((long) (sizeof (short))))
5146 exit (1);
5147 fprintf (f, "%ld\n", i);
5148 }
5149 else
5150 {
5151 unsigned long i = ulongval ();
5152 if (i != ((long) (sizeof (short))))
5153 exit (1);
5154 fprintf (f, "%lu\n", i);
5155 }
5156 exit (ferror (f) || fclose (f) != 0);
5157
5158 ;
5159 return 0;
5160 }
5161 _ACEOF
5162 rm -f conftest$ac_exeext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_sizeof_short=`cat conftest.val`
5174 else
5175 echo "$as_me: program exited with status $ac_status" >&5
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 ( exit $ac_status )
5180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5181 See \`config.log' for more details." >&5
5182 echo "$as_me: error: cannot compute sizeof (short), 77
5183 See \`config.log' for more details." >&2;}
5184 { (exit 1); exit 1; }; }
5185 fi
5186 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5187 fi
5188 fi
5189 rm -f conftest.val
5190 else
5191 ac_cv_sizeof_short=0
5192 fi
5193 fi
5194 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5195 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5196 cat >>confdefs.h <<_ACEOF
5197 #define SIZEOF_SHORT $ac_cv_sizeof_short
5198 _ACEOF
5199
5200
5201 echo "$as_me:$LINENO: checking for int" >&5
5202 echo $ECHO_N "checking for int... $ECHO_C" >&6
5203 if test "${ac_cv_type_int+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 cat >conftest.$ac_ext <<_ACEOF
5207 #line $LINENO "configure"
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 $ac_includes_default
5214 int
5215 main ()
5216 {
5217 if ((int *) 0)
5218 return 0;
5219 if (sizeof (int))
5220 return 0;
5221 ;
5222 return 0;
5223 }
5224 _ACEOF
5225 rm -f conftest.$ac_objext
5226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5227 (eval $ac_compile) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_type_int=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242 ac_cv_type_int=no
5243 fi
5244 rm -f conftest.$ac_objext conftest.$ac_ext
5245 fi
5246 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5247 echo "${ECHO_T}$ac_cv_type_int" >&6
5248
5249 echo "$as_me:$LINENO: checking size of int" >&5
5250 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5251 if test "${ac_cv_sizeof_int+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254 if test "$ac_cv_type_int" = yes; then
5255 # The cast to unsigned long works around a bug in the HP C Compiler
5256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5258 # This bug is HP SR number 8606223364.
5259 if test "$cross_compiling" = yes; then
5260 # Depending upon the size, compute the lo and hi bounds.
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line $LINENO "configure"
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 int
5270 main ()
5271 {
5272 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5273 test_array [0] = 0
5274
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try='test -s conftest.$ac_objext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 (eval $ac_try) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_lo=0 ac_mid=0
5292 while :; do
5293 cat >conftest.$ac_ext <<_ACEOF
5294 #line $LINENO "configure"
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5301 int
5302 main ()
5303 {
5304 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5305 test_array [0] = 0
5306
5307 ;
5308 return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_hi=$ac_mid; break
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_lo=`expr $ac_mid + 1`
5329 if test $ac_lo -le $ac_mid; then
5330 ac_lo= ac_hi=
5331 break
5332 fi
5333 ac_mid=`expr 2 '*' $ac_mid + 1`
5334 fi
5335 rm -f conftest.$ac_objext conftest.$ac_ext
5336 done
5337 else
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 cat >conftest.$ac_ext <<_ACEOF
5342 #line $LINENO "configure"
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 $ac_includes_default
5349 int
5350 main ()
5351 {
5352 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5353 test_array [0] = 0
5354
5355 ;
5356 return 0;
5357 }
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_hi=-1 ac_mid=-1
5372 while :; do
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 $ac_includes_default
5381 int
5382 main ()
5383 {
5384 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5385 test_array [0] = 0
5386
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_lo=$ac_mid; break
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 ac_hi=`expr '(' $ac_mid ')' - 1`
5409 if test $ac_mid -le $ac_hi; then
5410 ac_lo= ac_hi=
5411 break
5412 fi
5413 ac_mid=`expr 2 '*' $ac_mid`
5414 fi
5415 rm -f conftest.$ac_objext conftest.$ac_ext
5416 done
5417 else
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 ac_lo= ac_hi=
5422 fi
5423 rm -f conftest.$ac_objext conftest.$ac_ext
5424 fi
5425 rm -f conftest.$ac_objext conftest.$ac_ext
5426 # Binary search between lo and hi bounds.
5427 while test "x$ac_lo" != "x$ac_hi"; do
5428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 int
5438 main ()
5439 {
5440 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5441 test_array [0] = 0
5442
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_hi=$ac_mid
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_lo=`expr '(' $ac_mid ')' + 1`
5465 fi
5466 rm -f conftest.$ac_objext conftest.$ac_ext
5467 done
5468 case $ac_lo in
5469 ?*) ac_cv_sizeof_int=$ac_lo;;
5470 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5471 See \`config.log' for more details." >&5
5472 echo "$as_me: error: cannot compute sizeof (int), 77
5473 See \`config.log' for more details." >&2;}
5474 { (exit 1); exit 1; }; } ;;
5475 esac
5476 else
5477 if test "$cross_compiling" = yes; then
5478 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5479 See \`config.log' for more details." >&5
5480 echo "$as_me: error: cannot run test program while cross compiling
5481 See \`config.log' for more details." >&2;}
5482 { (exit 1); exit 1; }; }
5483 else
5484 cat >conftest.$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5486 /* confdefs.h. */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5492 long longval () { return (long) (sizeof (int)); }
5493 unsigned long ulongval () { return (long) (sizeof (int)); }
5494 #include <stdio.h>
5495 #include <stdlib.h>
5496 int
5497 main ()
5498 {
5499
5500 FILE *f = fopen ("conftest.val", "w");
5501 if (! f)
5502 exit (1);
5503 if (((long) (sizeof (int))) < 0)
5504 {
5505 long i = longval ();
5506 if (i != ((long) (sizeof (int))))
5507 exit (1);
5508 fprintf (f, "%ld\n", i);
5509 }
5510 else
5511 {
5512 unsigned long i = ulongval ();
5513 if (i != ((long) (sizeof (int))))
5514 exit (1);
5515 fprintf (f, "%lu\n", i);
5516 }
5517 exit (ferror (f) || fclose (f) != 0);
5518
5519 ;
5520 return 0;
5521 }
5522 _ACEOF
5523 rm -f conftest$ac_exeext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5525 (eval $ac_link) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_sizeof_int=`cat conftest.val`
5535 else
5536 echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540 ( exit $ac_status )
5541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: cannot compute sizeof (int), 77
5544 See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }
5546 fi
5547 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5548 fi
5549 fi
5550 rm -f conftest.val
5551 else
5552 ac_cv_sizeof_int=0
5553 fi
5554 fi
5555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5556 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5557 cat >>confdefs.h <<_ACEOF
5558 #define SIZEOF_INT $ac_cv_sizeof_int
5559 _ACEOF
5560
5561
5562 echo "$as_me:$LINENO: checking for long" >&5
5563 echo $ECHO_N "checking for long... $ECHO_C" >&6
5564 if test "${ac_cv_type_long+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 cat >conftest.$ac_ext <<_ACEOF
5568 #line $LINENO "configure"
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 $ac_includes_default
5575 int
5576 main ()
5577 {
5578 if ((long *) 0)
5579 return 0;
5580 if (sizeof (long))
5581 return 0;
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588 (eval $ac_compile) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -s conftest.$ac_objext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_type_long=yes
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603 ac_cv_type_long=no
5604 fi
5605 rm -f conftest.$ac_objext conftest.$ac_ext
5606 fi
5607 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5608 echo "${ECHO_T}$ac_cv_type_long" >&6
5609
5610 echo "$as_me:$LINENO: checking size of long" >&5
5611 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5612 if test "${ac_cv_sizeof_long+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615 if test "$ac_cv_type_long" = yes; then
5616 # The cast to unsigned long works around a bug in the HP C Compiler
5617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5619 # This bug is HP SR number 8606223364.
5620 if test "$cross_compiling" = yes; then
5621 # Depending upon the size, compute the lo and hi bounds.
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 /* confdefs.h. */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5630 int
5631 main ()
5632 {
5633 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5634 test_array [0] = 0
5635
5636 ;
5637 return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest.$ac_objext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642 (eval $ac_compile) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_lo=0 ac_mid=0
5653 while :; do
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 $ac_includes_default
5662 int
5663 main ()
5664 {
5665 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5666 test_array [0] = 0
5667
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_hi=$ac_mid; break
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 ac_lo=`expr $ac_mid + 1`
5690 if test $ac_lo -le $ac_mid; then
5691 ac_lo= ac_hi=
5692 break
5693 fi
5694 ac_mid=`expr 2 '*' $ac_mid + 1`
5695 fi
5696 rm -f conftest.$ac_objext conftest.$ac_ext
5697 done
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 $ac_includes_default
5710 int
5711 main ()
5712 {
5713 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5714 test_array [0] = 0
5715
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_hi=-1 ac_mid=-1
5733 while :; do
5734 cat >conftest.$ac_ext <<_ACEOF
5735 #line $LINENO "configure"
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5742 int
5743 main ()
5744 {
5745 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5746 test_array [0] = 0
5747
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_lo=$ac_mid; break
5765 else
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_hi=`expr '(' $ac_mid ')' - 1`
5770 if test $ac_mid -le $ac_hi; then
5771 ac_lo= ac_hi=
5772 break
5773 fi
5774 ac_mid=`expr 2 '*' $ac_mid`
5775 fi
5776 rm -f conftest.$ac_objext conftest.$ac_ext
5777 done
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 ac_lo= ac_hi=
5783 fi
5784 rm -f conftest.$ac_objext conftest.$ac_ext
5785 fi
5786 rm -f conftest.$ac_objext conftest.$ac_ext
5787 # Binary search between lo and hi bounds.
5788 while test "x$ac_lo" != "x$ac_hi"; do
5789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5790 cat >conftest.$ac_ext <<_ACEOF
5791 #line $LINENO "configure"
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5798 int
5799 main ()
5800 {
5801 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5802 test_array [0] = 0
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_hi=$ac_mid
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 ac_lo=`expr '(' $ac_mid ')' + 1`
5826 fi
5827 rm -f conftest.$ac_objext conftest.$ac_ext
5828 done
5829 case $ac_lo in
5830 ?*) ac_cv_sizeof_long=$ac_lo;;
5831 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5832 See \`config.log' for more details." >&5
5833 echo "$as_me: error: cannot compute sizeof (long), 77
5834 See \`config.log' for more details." >&2;}
5835 { (exit 1); exit 1; }; } ;;
5836 esac
5837 else
5838 if test "$cross_compiling" = yes; then
5839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5840 See \`config.log' for more details." >&5
5841 echo "$as_me: error: cannot run test program while cross compiling
5842 See \`config.log' for more details." >&2;}
5843 { (exit 1); exit 1; }; }
5844 else
5845 cat >conftest.$ac_ext <<_ACEOF
5846 #line $LINENO "configure"
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5853 long longval () { return (long) (sizeof (long)); }
5854 unsigned long ulongval () { return (long) (sizeof (long)); }
5855 #include <stdio.h>
5856 #include <stdlib.h>
5857 int
5858 main ()
5859 {
5860
5861 FILE *f = fopen ("conftest.val", "w");
5862 if (! f)
5863 exit (1);
5864 if (((long) (sizeof (long))) < 0)
5865 {
5866 long i = longval ();
5867 if (i != ((long) (sizeof (long))))
5868 exit (1);
5869 fprintf (f, "%ld\n", i);
5870 }
5871 else
5872 {
5873 unsigned long i = ulongval ();
5874 if (i != ((long) (sizeof (long))))
5875 exit (1);
5876 fprintf (f, "%lu\n", i);
5877 }
5878 exit (ferror (f) || fclose (f) != 0);
5879
5880 ;
5881 return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_cv_sizeof_long=`cat conftest.val`
5896 else
5897 echo "$as_me: program exited with status $ac_status" >&5
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 ( exit $ac_status )
5902 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5903 See \`config.log' for more details." >&5
5904 echo "$as_me: error: cannot compute sizeof (long), 77
5905 See \`config.log' for more details." >&2;}
5906 { (exit 1); exit 1; }; }
5907 fi
5908 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 fi
5911 rm -f conftest.val
5912 else
5913 ac_cv_sizeof_long=0
5914 fi
5915 fi
5916 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5917 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5918 cat >>confdefs.h <<_ACEOF
5919 #define SIZEOF_LONG $ac_cv_sizeof_long
5920 _ACEOF
5921
5922
5923 echo "$as_me:$LINENO: checking for long long" >&5
5924 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5925 if test "${ac_cv_type_long_long+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 cat >conftest.$ac_ext <<_ACEOF
5929 #line $LINENO "configure"
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5936 int
5937 main ()
5938 {
5939 if ((long long *) 0)
5940 return 0;
5941 if (sizeof (long long))
5942 return 0;
5943 ;
5944 return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_cv_type_long_long=yes
5960 else
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 ac_cv_type_long_long=no
5965 fi
5966 rm -f conftest.$ac_objext conftest.$ac_ext
5967 fi
5968 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5969 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5970
5971 echo "$as_me:$LINENO: checking size of long long" >&5
5972 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5973 if test "${ac_cv_sizeof_long_long+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 if test "$ac_cv_type_long_long" = yes; then
5977 # The cast to unsigned long works around a bug in the HP C Compiler
5978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5980 # This bug is HP SR number 8606223364.
5981 if test "$cross_compiling" = yes; then
5982 # Depending upon the size, compute the lo and hi bounds.
5983 cat >conftest.$ac_ext <<_ACEOF
5984 #line $LINENO "configure"
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 $ac_includes_default
5991 int
5992 main ()
5993 {
5994 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5995 test_array [0] = 0
5996
5997 ;
5998 return 0;
5999 }
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_lo=0 ac_mid=0
6014 while :; do
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 $ac_includes_default
6023 int
6024 main ()
6025 {
6026 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6027 test_array [0] = 0
6028
6029 ;
6030 return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_hi=$ac_mid; break
6046 else
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 ac_lo=`expr $ac_mid + 1`
6051 if test $ac_lo -le $ac_mid; then
6052 ac_lo= ac_hi=
6053 break
6054 fi
6055 ac_mid=`expr 2 '*' $ac_mid + 1`
6056 fi
6057 rm -f conftest.$ac_objext conftest.$ac_ext
6058 done
6059 else
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6071 int
6072 main ()
6073 {
6074 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6075 test_array [0] = 0
6076
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_hi=-1 ac_mid=-1
6094 while :; do
6095 cat >conftest.$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 $ac_includes_default
6103 int
6104 main ()
6105 {
6106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6107 test_array [0] = 0
6108
6109 ;
6110 return 0;
6111 }
6112 _ACEOF
6113 rm -f conftest.$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115 (eval $ac_compile) 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -s conftest.$ac_objext'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_lo=$ac_mid; break
6126 else
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130 ac_hi=`expr '(' $ac_mid ')' - 1`
6131 if test $ac_mid -le $ac_hi; then
6132 ac_lo= ac_hi=
6133 break
6134 fi
6135 ac_mid=`expr 2 '*' $ac_mid`
6136 fi
6137 rm -f conftest.$ac_objext conftest.$ac_ext
6138 done
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_lo= ac_hi=
6144 fi
6145 rm -f conftest.$ac_objext conftest.$ac_ext
6146 fi
6147 rm -f conftest.$ac_objext conftest.$ac_ext
6148 # Binary search between lo and hi bounds.
6149 while test "x$ac_lo" != "x$ac_hi"; do
6150 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6151 cat >conftest.$ac_ext <<_ACEOF
6152 #line $LINENO "configure"
6153 /* confdefs.h. */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 $ac_includes_default
6159 int
6160 main ()
6161 {
6162 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6163 test_array [0] = 0
6164
6165 ;
6166 return 0;
6167 }
6168 _ACEOF
6169 rm -f conftest.$ac_objext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171 (eval $ac_compile) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -s conftest.$ac_objext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_hi=$ac_mid
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6185
6186 ac_lo=`expr '(' $ac_mid ')' + 1`
6187 fi
6188 rm -f conftest.$ac_objext conftest.$ac_ext
6189 done
6190 case $ac_lo in
6191 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6192 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6193 See \`config.log' for more details." >&5
6194 echo "$as_me: error: cannot compute sizeof (long long), 77
6195 See \`config.log' for more details." >&2;}
6196 { (exit 1); exit 1; }; } ;;
6197 esac
6198 else
6199 if test "$cross_compiling" = yes; then
6200 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6201 See \`config.log' for more details." >&5
6202 echo "$as_me: error: cannot run test program while cross compiling
6203 See \`config.log' for more details." >&2;}
6204 { (exit 1); exit 1; }; }
6205 else
6206 cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6214 long longval () { return (long) (sizeof (long long)); }
6215 unsigned long ulongval () { return (long) (sizeof (long long)); }
6216 #include <stdio.h>
6217 #include <stdlib.h>
6218 int
6219 main ()
6220 {
6221
6222 FILE *f = fopen ("conftest.val", "w");
6223 if (! f)
6224 exit (1);
6225 if (((long) (sizeof (long long))) < 0)
6226 {
6227 long i = longval ();
6228 if (i != ((long) (sizeof (long long))))
6229 exit (1);
6230 fprintf (f, "%ld\n", i);
6231 }
6232 else
6233 {
6234 unsigned long i = ulongval ();
6235 if (i != ((long) (sizeof (long long))))
6236 exit (1);
6237 fprintf (f, "%lu\n", i);
6238 }
6239 exit (ferror (f) || fclose (f) != 0);
6240
6241 ;
6242 return 0;
6243 }
6244 _ACEOF
6245 rm -f conftest$ac_exeext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_cv_sizeof_long_long=`cat conftest.val`
6257 else
6258 echo "$as_me: program exited with status $ac_status" >&5
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 ( exit $ac_status )
6263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6264 See \`config.log' for more details." >&5
6265 echo "$as_me: error: cannot compute sizeof (long long), 77
6266 See \`config.log' for more details." >&2;}
6267 { (exit 1); exit 1; }; }
6268 fi
6269 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6270 fi
6271 fi
6272 rm -f conftest.val
6273 else
6274 ac_cv_sizeof_long_long=0
6275 fi
6276 fi
6277 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6278 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6279 cat >>confdefs.h <<_ACEOF
6280 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6281 _ACEOF
6282
6283
6284
6285
6286
6287 echo "$as_me:$LINENO: checking for addrinfo" >&5
6288 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6289 if test "${ac_cv_addrinfo+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299
6300 # include <netdb.h>
6301 int
6302 main ()
6303 {
6304 struct addrinfo a
6305 ;
6306 return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6311 (eval $ac_compile) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_addrinfo=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_cv_addrinfo=no
6327 fi
6328 rm -f conftest.$ac_objext conftest.$ac_ext
6329 fi
6330
6331 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6332 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6333 if test $ac_cv_addrinfo = yes; then
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_ADDRINFO 1
6336 _ACEOF
6337
6338 else
6339 cat >>confdefs.h <<\_ACEOF
6340 #define NEED_ADDRINFO_H 1
6341 _ACEOF
6342
6343 fi
6344
6345 if test "$ac_cv_addrinfo" = no; then
6346 missing_includes=yes
6347 fi
6348
6349
6350 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6351 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6352 if test "${ac_cv_maxserv+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 /* confdefs.h. */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 #include <netdb.h>
6363 #ifdef NI_MAXSERV
6364 yes
6365 #endif
6366 _ACEOF
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368 $EGREP "yes" >/dev/null 2>&1; then
6369 ac_cv_maxserv=yes
6370 else
6371 ac_cv_maxserv=no
6372 fi
6373 rm -f conftest*
6374
6375 fi
6376
6377 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6378 echo "${ECHO_T}$ac_cv_maxserv" >&6
6379 if test $ac_cv_maxserv != yes; then
6380 cat >>confdefs.h <<\_ACEOF
6381 #define NEED_ADDRINFO_H 1
6382 _ACEOF
6383
6384 fi
6385
6386 if test "$ac_cv_maxserv" = no; then
6387 missing_includes=yes
6388 fi
6389
6390
6391 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6392 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6393 if test "${ac_cv_namereqd+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 #include <netdb.h>
6404 #ifdef NI_NOFQDN
6405 yes
6406 #endif
6407 _ACEOF
6408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6409 $EGREP "yes" >/dev/null 2>&1; then
6410 ac_cv_namereqd=yes
6411 else
6412 ac_cv_namereqd=no
6413 fi
6414 rm -f conftest*
6415
6416 fi
6417
6418 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6419 echo "${ECHO_T}$ac_cv_namereqd" >&6
6420 if test $ac_cv_namereqd != yes; then
6421 cat >>confdefs.h <<\_ACEOF
6422 #define NEED_ADDRINFO_H 1
6423 _ACEOF
6424
6425 fi
6426
6427 if test "$ac_cv_namereqd" = no; then
6428 missing_includes=yes
6429 fi
6430
6431
6432 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6433 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6434 if test "${ac_cv_sa_storage+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444
6445 # include <sys/types.h>
6446 # include <sys/socket.h>
6447 int
6448 main ()
6449 {
6450 struct sockaddr_storage s
6451 ;
6452 return 0;
6453 }
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 ac_cv_sa_storage=yes
6468 else
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472 ac_cv_sa_storage=no
6473 fi
6474 rm -f conftest.$ac_objext conftest.$ac_ext
6475 fi
6476
6477 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6478 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6479 if test $ac_cv_sa_storage = yes; then
6480 cat >>confdefs.h <<\_ACEOF
6481 #define HAVE_SOCKADDR_STORAGE 1
6482 _ACEOF
6483
6484 fi
6485
6486 if test "$ac_cv_sa_storage" = no; then
6487 missing_includes=yes
6488 fi
6489
6490
6491 ac_cv_addrsz=yes
6492 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6493 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6494 if test "${ac_cv_inaddrsz+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 cat >conftest.$ac_ext <<_ACEOF
6498 #line $LINENO "configure"
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504
6505 # include <arpa/nameser.h>
6506 int
6507 main ()
6508 {
6509 int a = INADDRSZ
6510 ;
6511 return 0;
6512 }
6513 _ACEOF
6514 rm -f conftest.$ac_objext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6516 (eval $ac_compile) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -s conftest.$ac_objext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 ac_cv_inaddrsz=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 ac_cv_inaddrsz=no
6532 fi
6533 rm -f conftest.$ac_objext conftest.$ac_ext
6534 fi
6535
6536 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6537 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6538 if test $ac_cv_inaddrsz = yes; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define HAVE_INADDRSZ 1
6541 _ACEOF
6542
6543 else
6544 ac_cv_addrsz=no
6545 fi
6546 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6547 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6548 if test "${ac_cv_in6addrsz+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 #line $LINENO "configure"
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558
6559 # include <arpa/nameser.h>
6560 int
6561 main ()
6562 {
6563 int a = IN6ADDRSZ
6564 ;
6565 return 0;
6566 }
6567 _ACEOF
6568 rm -f conftest.$ac_objext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -s conftest.$ac_objext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6580 ac_cv_in6addrsz=yes
6581 else
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6584
6585 ac_cv_in6addrsz=no
6586 fi
6587 rm -f conftest.$ac_objext conftest.$ac_ext
6588 fi
6589
6590 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6591 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6592 if test $ac_cv_in6addrsz = yes; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_IN6ADDRSZ 1
6595 _ACEOF
6596
6597 else
6598 ac_cv_addrsz=no
6599 fi
6600
6601 if test "$ac_cv_addrsz" = no; then
6602 missing_includes=yes
6603 fi
6604
6605
6606 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6607 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6608 if test "${ac_cv_res_inet6+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 cat >conftest.$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618
6619 # include <sys/types.h>
6620 # include <netinet/in.h>
6621 # include <resolv.h>
6622 int
6623 main ()
6624 {
6625 int a = RES_USE_INET6
6626 ;
6627 return 0;
6628 }
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6632 (eval $ac_compile) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try='test -s conftest.$ac_objext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_res_inet6=yes
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 ac_cv_res_inet6=no
6648 fi
6649 rm -f conftest.$ac_objext conftest.$ac_ext
6650 fi
6651
6652 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6653 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6654 if test $ac_cv_res_inet6 = yes; then
6655 cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_RES_USE_INET6 1
6657 _ACEOF
6658
6659 fi
6660
6661 if test "$ac_cv_res_inet6" = no; then
6662 missing_includes=yes
6663 fi
6664
6665
6666 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6667 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6668 if test "${ac_cv_res_state_ext+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 cat >conftest.$ac_ext <<_ACEOF
6672 #line $LINENO "configure"
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678
6679 # include <sys/types.h>
6680 # include <netinet/in.h>
6681 # include <netinet6/in6.h>
6682 # include <resolv.h>
6683 int
6684 main ()
6685 {
6686 struct __res_state_ext e
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_res_state_ext=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 ac_cv_res_state_ext=no
6709 fi
6710 rm -f conftest.$ac_objext conftest.$ac_ext
6711 fi
6712
6713 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6714 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6715 if test $ac_cv_res_state_ext = yes; then
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_RES_STATE_EXT 1
6718 _ACEOF
6719
6720 fi
6721
6722 if test "$ac_cv_res_state_ext" = no; then
6723 missing_includes=yes
6724 fi
6725
6726
6727 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6728 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6729 if test "${ac_cv_res_state+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739
6740 # include <sys/types.h>
6741 # include <netinet/in.h>
6742 # include <netinet6/in6.h>
6743 # include <resolv.h>
6744 int
6745 main ()
6746 {
6747 struct __res_state e; e.nsort = 0
6748 ;
6749 return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest.$ac_objext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6754 (eval $ac_compile) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_res_state=yes
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 ac_cv_res_state=no
6770 fi
6771 rm -f conftest.$ac_objext conftest.$ac_ext
6772 fi
6773
6774 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6775 echo "${ECHO_T}$ac_cv_res_state" >&6
6776 if test $ac_cv_res_state = yes; then
6777 cat >>confdefs.h <<\_ACEOF
6778 #define HAVE_NEW_RES_STATE 1
6779 _ACEOF
6780
6781 fi
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6792 do
6793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6794 echo "$as_me:$LINENO: checking for $ac_func" >&5
6795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6796 if eval "test \"\${$as_ac_var+set}\" = set"; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 /* System header to define __stub macros and hopefully few prototypes,
6807 which can conflict with char $ac_func (); below.
6808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6809 <limits.h> exists even on freestanding compilers. */
6810 #ifdef __STDC__
6811 # include <limits.h>
6812 #else
6813 # include <assert.h>
6814 #endif
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 #ifdef __cplusplus
6817 extern "C"
6818 {
6819 #endif
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6822 char $ac_func ();
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 choke me
6828 #else
6829 char (*f) () = $ac_func;
6830 #endif
6831 #ifdef __cplusplus
6832 }
6833 #endif
6834
6835 int
6836 main ()
6837 {
6838 return f != $ac_func;
6839 ;
6840 return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 eval "$as_ac_var=yes"
6856 else
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6859
6860 eval "$as_ac_var=no"
6861 fi
6862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6863 fi
6864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6866 if test `eval echo '${'$as_ac_var'}'` = yes; then
6867 cat >>confdefs.h <<_ACEOF
6868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6869 _ACEOF
6870
6871 else
6872 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6873 fi
6874 done
6875
6876
6877
6878 for ac_func in strftime
6879 do
6880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6881 echo "$as_me:$LINENO: checking for $ac_func" >&5
6882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6883 if eval "test \"\${$as_ac_var+set}\" = set"; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 cat >conftest.$ac_ext <<_ACEOF
6887 #line $LINENO "configure"
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 /* System header to define __stub macros and hopefully few prototypes,
6894 which can conflict with char $ac_func (); below.
6895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896 <limits.h> exists even on freestanding compilers. */
6897 #ifdef __STDC__
6898 # include <limits.h>
6899 #else
6900 # include <assert.h>
6901 #endif
6902 /* Override any gcc2 internal prototype to avoid an error. */
6903 #ifdef __cplusplus
6904 extern "C"
6905 {
6906 #endif
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6909 char $ac_func ();
6910 /* The GNU C library defines this for functions which it implements
6911 to always fail with ENOSYS. Some functions are actually named
6912 something starting with __ and the normal name is an alias. */
6913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6914 choke me
6915 #else
6916 char (*f) () = $ac_func;
6917 #endif
6918 #ifdef __cplusplus
6919 }
6920 #endif
6921
6922 int
6923 main ()
6924 {
6925 return f != $ac_func;
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -s conftest$ac_exeext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 eval "$as_ac_var=yes"
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 eval "$as_ac_var=no"
6948 fi
6949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6950 fi
6951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6953 if test `eval echo '${'$as_ac_var'}'` = yes; then
6954 cat >>confdefs.h <<_ACEOF
6955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6956 _ACEOF
6957
6958 fi
6959 done
6960
6961
6962
6963 for ac_func in setlinebuf alarm
6964 do
6965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6966 echo "$as_me:$LINENO: checking for $ac_func" >&5
6967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6968 if eval "test \"\${$as_ac_var+set}\" = set"; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 /* System header to define __stub macros and hopefully few prototypes,
6979 which can conflict with char $ac_func (); below.
6980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6981 <limits.h> exists even on freestanding compilers. */
6982 #ifdef __STDC__
6983 # include <limits.h>
6984 #else
6985 # include <assert.h>
6986 #endif
6987 /* Override any gcc2 internal prototype to avoid an error. */
6988 #ifdef __cplusplus
6989 extern "C"
6990 {
6991 #endif
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6994 char $ac_func ();
6995 /* The GNU C library defines this for functions which it implements
6996 to always fail with ENOSYS. Some functions are actually named
6997 something starting with __ and the normal name is an alias. */
6998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6999 choke me
7000 #else
7001 char (*f) () = $ac_func;
7002 #endif
7003 #ifdef __cplusplus
7004 }
7005 #endif
7006
7007 int
7008 main ()
7009 {
7010 return f != $ac_func;
7011 ;
7012 return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 eval "$as_ac_var=yes"
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 eval "$as_ac_var=no"
7033 fi
7034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7035 fi
7036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7038 if test `eval echo '${'$as_ac_var'}'` = yes; then
7039 cat >>confdefs.h <<_ACEOF
7040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7041 _ACEOF
7042
7043 fi
7044 done
7045
7046
7047 needsnprintf=no
7048
7049
7050 for ac_func in vsnprintf snprintf
7051 do
7052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7053 echo "$as_me:$LINENO: checking for $ac_func" >&5
7054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_var+set}\" = set"; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058 cat >conftest.$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 /* System header to define __stub macros and hopefully few prototypes,
7066 which can conflict with char $ac_func (); below.
7067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068 <limits.h> exists even on freestanding compilers. */
7069 #ifdef __STDC__
7070 # include <limits.h>
7071 #else
7072 # include <assert.h>
7073 #endif
7074 /* Override any gcc2 internal prototype to avoid an error. */
7075 #ifdef __cplusplus
7076 extern "C"
7077 {
7078 #endif
7079 /* We use char because int might match the return type of a gcc2
7080 builtin and then its argument prototype would still apply. */
7081 char $ac_func ();
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7086 choke me
7087 #else
7088 char (*f) () = $ac_func;
7089 #endif
7090 #ifdef __cplusplus
7091 }
7092 #endif
7093
7094 int
7095 main ()
7096 {
7097 return f != $ac_func;
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 rm -f conftest.$ac_objext conftest$ac_exeext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104 (eval $ac_link) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -s conftest$ac_exeext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 eval "$as_ac_var=yes"
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 eval "$as_ac_var=no"
7120 fi
7121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7122 fi
7123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7125 if test `eval echo '${'$as_ac_var'}'` = yes; then
7126 cat >>confdefs.h <<_ACEOF
7127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7128 _ACEOF
7129
7130 else
7131 needsnprintf=yes
7132 fi
7133 done
7134
7135 if test $needsnprintf = yes; then
7136 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7137 fi
7138
7139
7140 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7141 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7142 if test "${ac_cv_type_signal+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145 cat >conftest.$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 #include <sys/types.h>
7153 #include <signal.h>
7154 #ifdef signal
7155 # undef signal
7156 #endif
7157 #ifdef __cplusplus
7158 extern "C" void (*signal (int, void (*)(int)))(int);
7159 #else
7160 void (*signal ()) ();
7161 #endif
7162
7163 int
7164 main ()
7165 {
7166 int i;
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 (eval $ac_try) 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_type_signal=void
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7187
7188 ac_cv_type_signal=int
7189 fi
7190 rm -f conftest.$ac_objext conftest.$ac_ext
7191 fi
7192 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7193 echo "${ECHO_T}$ac_cv_type_signal" >&6
7194
7195 cat >>confdefs.h <<_ACEOF
7196 #define RETSIGTYPE $ac_cv_type_signal
7197 _ACEOF
7198
7199
7200 if test "$ac_cv_type_signal" = void ; then
7201 cat >>confdefs.h <<\_ACEOF
7202 #define RETSIGVAL
7203 _ACEOF
7204
7205 else
7206 cat >>confdefs.h <<\_ACEOF
7207 #define RETSIGVAL (0)
7208 _ACEOF
7209
7210 fi
7211 case "$host_os" in
7212
7213 irix*)
7214 cat >>confdefs.h <<\_ACEOF
7215 #define _BSD_SIGNALS 1
7216 _ACEOF
7217
7218 ;;
7219
7220 *)
7221
7222 for ac_func in sigaction
7223 do
7224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225 echo "$as_me:$LINENO: checking for $ac_func" >&5
7226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7227 if eval "test \"\${$as_ac_var+set}\" = set"; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 /* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char $ac_func (); below.
7239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240 <limits.h> exists even on freestanding compilers. */
7241 #ifdef __STDC__
7242 # include <limits.h>
7243 #else
7244 # include <assert.h>
7245 #endif
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 #ifdef __cplusplus
7248 extern "C"
7249 {
7250 #endif
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7253 char $ac_func ();
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7258 choke me
7259 #else
7260 char (*f) () = $ac_func;
7261 #endif
7262 #ifdef __cplusplus
7263 }
7264 #endif
7265
7266 int
7267 main ()
7268 {
7269 return f != $ac_func;
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext conftest$ac_exeext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7276 (eval $ac_link) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -s conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 eval "$as_ac_var=yes"
7287 else
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 eval "$as_ac_var=no"
7292 fi
7293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7294 fi
7295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7297 if test `eval echo '${'$as_ac_var'}'` = yes; then
7298 cat >>confdefs.h <<_ACEOF
7299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7300 _ACEOF
7301
7302 fi
7303 done
7304
7305 if test $ac_cv_func_sigaction = no ; then
7306
7307 for ac_func in sigset
7308 do
7309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7310 echo "$as_me:$LINENO: checking for $ac_func" >&5
7311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7312 if eval "test \"\${$as_ac_var+set}\" = set"; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 /* System header to define __stub macros and hopefully few prototypes,
7323 which can conflict with char $ac_func (); below.
7324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 <limits.h> exists even on freestanding compilers. */
7326 #ifdef __STDC__
7327 # include <limits.h>
7328 #else
7329 # include <assert.h>
7330 #endif
7331 /* Override any gcc2 internal prototype to avoid an error. */
7332 #ifdef __cplusplus
7333 extern "C"
7334 {
7335 #endif
7336 /* We use char because int might match the return type of a gcc2
7337 builtin and then its argument prototype would still apply. */
7338 char $ac_func ();
7339 /* The GNU C library defines this for functions which it implements
7340 to always fail with ENOSYS. Some functions are actually named
7341 something starting with __ and the normal name is an alias. */
7342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7343 choke me
7344 #else
7345 char (*f) () = $ac_func;
7346 #endif
7347 #ifdef __cplusplus
7348 }
7349 #endif
7350
7351 int
7352 main ()
7353 {
7354 return f != $ac_func;
7355 ;
7356 return 0;
7357 }
7358 _ACEOF
7359 rm -f conftest.$ac_objext conftest$ac_exeext
7360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7361 (eval $ac_link) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -s conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 eval "$as_ac_var=yes"
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376 eval "$as_ac_var=no"
7377 fi
7378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7379 fi
7380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7382 if test `eval echo '${'$as_ac_var'}'` = yes; then
7383 cat >>confdefs.h <<_ACEOF
7384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7385 _ACEOF
7386
7387 fi
7388 done
7389
7390 fi
7391 ;;
7392 esac
7393
7394 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7395 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7396 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399 ac_func_search_save_LIBS=$LIBS
7400 ac_cv_search_dnet_htoa=no
7401 cat >conftest.$ac_ext <<_ACEOF
7402 #line $LINENO "configure"
7403 /* confdefs.h. */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7408
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 #ifdef __cplusplus
7411 extern "C"
7412 #endif
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415 char dnet_htoa ();
7416 int
7417 main ()
7418 {
7419 dnet_htoa ();
7420 ;
7421 return 0;
7422 }
7423 _ACEOF
7424 rm -f conftest.$ac_objext conftest$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_search_dnet_htoa="none required"
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7440
7441 fi
7442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7443 if test "$ac_cv_search_dnet_htoa" = no; then
7444 for ac_lib in dnet; do
7445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7446 cat >conftest.$ac_ext <<_ACEOF
7447 #line $LINENO "configure"
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453
7454 /* Override any gcc2 internal prototype to avoid an error. */
7455 #ifdef __cplusplus
7456 extern "C"
7457 #endif
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7460 char dnet_htoa ();
7461 int
7462 main ()
7463 {
7464 dnet_htoa ();
7465 ;
7466 return 0;
7467 }
7468 _ACEOF
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471 (eval $ac_link) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_search_dnet_htoa="-l$ac_lib"
7482 break
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 fi
7488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7489 done
7490 fi
7491 LIBS=$ac_func_search_save_LIBS
7492 fi
7493 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7494 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7495 if test "$ac_cv_search_dnet_htoa" != no; then
7496 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_DNET_HTOA 1
7499 _ACEOF
7500
7501 fi
7502
7503
7504
7505 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7506 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7507 if test "${ac_cv_lib_rpc_main+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 ac_check_lib_save_LIBS=$LIBS
7511 LIBS="-lrpc $LIBS"
7512 cat >conftest.$ac_ext <<_ACEOF
7513 #line $LINENO "configure"
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519
7520
7521 int
7522 main ()
7523 {
7524 main ();
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531 (eval $ac_link) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -s conftest$ac_exeext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_lib_rpc_main=yes
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_cv_lib_rpc_main=no
7547 fi
7548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7549 LIBS=$ac_check_lib_save_LIBS
7550 fi
7551 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7552 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7553 if test $ac_cv_lib_rpc_main = yes; then
7554 cat >>confdefs.h <<_ACEOF
7555 #define HAVE_LIBRPC 1
7556 _ACEOF
7557
7558 LIBS="-lrpc $LIBS"
7559
7560 fi
7561
7562 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7563 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7564 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567 ac_func_search_save_LIBS=$LIBS
7568 ac_cv_search_getrpcbynumber=no
7569 cat >conftest.$ac_ext <<_ACEOF
7570 #line $LINENO "configure"
7571 /* confdefs.h. */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576
7577 /* Override any gcc2 internal prototype to avoid an error. */
7578 #ifdef __cplusplus
7579 extern "C"
7580 #endif
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7583 char getrpcbynumber ();
7584 int
7585 main ()
7586 {
7587 getrpcbynumber ();
7588 ;
7589 return 0;
7590 }
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_search_getrpcbynumber="none required"
7605 else
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7608
7609 fi
7610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7611 if test "$ac_cv_search_getrpcbynumber" = no; then
7612 for ac_lib in nsl; do
7613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7614 cat >conftest.$ac_ext <<_ACEOF
7615 #line $LINENO "configure"
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 #ifdef __cplusplus
7624 extern "C"
7625 #endif
7626 /* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7628 char getrpcbynumber ();
7629 int
7630 main ()
7631 {
7632 getrpcbynumber ();
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639 (eval $ac_link) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -s conftest$ac_exeext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7649 ac_cv_search_getrpcbynumber="-l$ac_lib"
7650 break
7651 else
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7654
7655 fi
7656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7657 done
7658 fi
7659 LIBS=$ac_func_search_save_LIBS
7660 fi
7661 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7662 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7663 if test "$ac_cv_search_getrpcbynumber" != no; then
7664 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7665 cat >>confdefs.h <<\_ACEOF
7666 #define HAVE_GETRPCBYNUMBER 1
7667 _ACEOF
7668
7669 fi
7670
7671
7672
7673
7674 # Most operating systems have gethostbyname() in the default searched
7675 # libraries (i.e. libc):
7676 # Some OSes (eg. Solaris) place it in libnsl
7677 # Some strange OSes (SINIX) have it in libsocket:
7678 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7679 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7680 if test "${ac_cv_search_gethostbyname+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 ac_func_search_save_LIBS=$LIBS
7684 ac_cv_search_gethostbyname=no
7685 cat >conftest.$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692
7693 /* Override any gcc2 internal prototype to avoid an error. */
7694 #ifdef __cplusplus
7695 extern "C"
7696 #endif
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699 char gethostbyname ();
7700 int
7701 main ()
7702 {
7703 gethostbyname ();
7704 ;
7705 return 0;
7706 }
7707 _ACEOF
7708 rm -f conftest.$ac_objext conftest$ac_exeext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710 (eval $ac_link) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -s conftest$ac_exeext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_search_gethostbyname="none required"
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 fi
7726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7727 if test "$ac_cv_search_gethostbyname" = no; then
7728 for ac_lib in nsl socket resolv; do
7729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7730 cat >conftest.$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737
7738 /* Override any gcc2 internal prototype to avoid an error. */
7739 #ifdef __cplusplus
7740 extern "C"
7741 #endif
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7744 char gethostbyname ();
7745 int
7746 main ()
7747 {
7748 gethostbyname ();
7749 ;
7750 return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext conftest$ac_exeext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try='test -s conftest$ac_exeext'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_cv_search_gethostbyname="-l$ac_lib"
7766 break
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 fi
7772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7773 done
7774 fi
7775 LIBS=$ac_func_search_save_LIBS
7776 fi
7777 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7778 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7779 if test "$ac_cv_search_gethostbyname" != no; then
7780 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7781
7782 fi
7783
7784 # Unfortunately libsocket sometimes depends on libnsl and
7785 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7786 if test "$ac_cv_search_gethostbyname" = "no"
7787 then
7788 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7789 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7790 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-lsocket -lnsl $LIBS"
7795 cat >conftest.$ac_ext <<_ACEOF
7796 #line $LINENO "configure"
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 #ifdef __cplusplus
7805 extern "C"
7806 #endif
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7809 char gethostbyname ();
7810 int
7811 main ()
7812 {
7813 gethostbyname ();
7814 ;
7815 return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820 (eval $ac_link) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -s conftest$ac_exeext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_cv_lib_socket_gethostbyname=yes
7831 else
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 ac_cv_lib_socket_gethostbyname=no
7836 fi
7837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7838 LIBS=$ac_check_lib_save_LIBS
7839 fi
7840 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7841 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7842 if test $ac_cv_lib_socket_gethostbyname = yes; then
7843 LIBS="-lsocket -lnsl $LIBS"
7844 fi
7845
7846 fi
7847 echo "$as_me:$LINENO: checking for library containing socket" >&5
7848 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7849 if test "${ac_cv_search_socket+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 ac_func_search_save_LIBS=$LIBS
7853 ac_cv_search_socket=no
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861
7862 /* Override any gcc2 internal prototype to avoid an error. */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 /* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7868 char socket ();
7869 int
7870 main ()
7871 {
7872 socket ();
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 ac_cv_search_socket="none required"
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 fi
7895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7896 if test "$ac_cv_search_socket" = no; then
7897 for ac_lib in socket; do
7898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906
7907 /* Override any gcc2 internal prototype to avoid an error. */
7908 #ifdef __cplusplus
7909 extern "C"
7910 #endif
7911 /* We use char because int might match the return type of a gcc2
7912 builtin and then its argument prototype would still apply. */
7913 char socket ();
7914 int
7915 main ()
7916 {
7917 socket ();
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7924 (eval $ac_link) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -s conftest$ac_exeext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 ac_cv_search_socket="-l$ac_lib"
7935 break
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 fi
7941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7942 done
7943 fi
7944 LIBS=$ac_func_search_save_LIBS
7945 fi
7946 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7947 echo "${ECHO_T}$ac_cv_search_socket" >&6
7948 if test "$ac_cv_search_socket" != no; then
7949 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7950
7951 else
7952 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7953 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7954 if test "${ac_cv_lib_socket_socket+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 ac_check_lib_save_LIBS=$LIBS
7958 LIBS="-lsocket -lnsl $LIBS"
7959 cat >conftest.$ac_ext <<_ACEOF
7960 #line $LINENO "configure"
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966
7967 /* Override any gcc2 internal prototype to avoid an error. */
7968 #ifdef __cplusplus
7969 extern "C"
7970 #endif
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7973 char socket ();
7974 int
7975 main ()
7976 {
7977 socket ();
7978 ;
7979 return 0;
7980 }
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 (eval $ac_try) 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 ac_cv_lib_socket_socket=yes
7995 else
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 ac_cv_lib_socket_socket=no
8000 fi
8001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_lib_save_LIBS
8003 fi
8004 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8005 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8006 if test $ac_cv_lib_socket_socket = yes; then
8007 LIBS="-lsocket -lnsl $LIBS"
8008 fi
8009
8010 fi
8011
8012 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8013 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8014 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8015 if test "${ac_cv_search_putmsg+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018 ac_func_search_save_LIBS=$LIBS
8019 ac_cv_search_putmsg=no
8020 cat >conftest.$ac_ext <<_ACEOF
8021 #line $LINENO "configure"
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027
8028 /* Override any gcc2 internal prototype to avoid an error. */
8029 #ifdef __cplusplus
8030 extern "C"
8031 #endif
8032 /* We use char because int might match the return type of a gcc2
8033 builtin and then its argument prototype would still apply. */
8034 char putmsg ();
8035 int
8036 main ()
8037 {
8038 putmsg ();
8039 ;
8040 return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_search_putmsg="none required"
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 fi
8061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8062 if test "$ac_cv_search_putmsg" = no; then
8063 for ac_lib in str; do
8064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8065 cat >conftest.$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072
8073 /* Override any gcc2 internal prototype to avoid an error. */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 /* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8079 char putmsg ();
8080 int
8081 main ()
8082 {
8083 putmsg ();
8084 ;
8085 return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_search_putmsg="-l$ac_lib"
8101 break
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106 fi
8107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8108 done
8109 fi
8110 LIBS=$ac_func_search_save_LIBS
8111 fi
8112 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8113 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8114 if test "$ac_cv_search_putmsg" != no; then
8115 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8116
8117 fi
8118
8119
8120
8121 LBL_LIBS="$LIBS"
8122 pfopen=/usr/examples/packetfilter/pfopen.c
8123 if test -f $pfopen ; then
8124
8125 for ac_func in pfopen
8126 do
8127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8128 echo "$as_me:$LINENO: checking for $ac_func" >&5
8129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8130 if eval "test \"\${$as_ac_var+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 $ac_func (); 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 $ac_func ();
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_$ac_func) || defined (__stub___$ac_func)
8161 choke me
8162 #else
8163 char (*f) () = $ac_func;
8164 #endif
8165 #ifdef __cplusplus
8166 }
8167 #endif
8168
8169 int
8170 main ()
8171 {
8172 return f != $ac_func;
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 eval "$as_ac_var=yes"
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 eval "$as_ac_var=no"
8195 fi
8196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8197 fi
8198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8200 if test `eval echo '${'$as_ac_var'}'` = yes; then
8201 cat >>confdefs.h <<_ACEOF
8202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8203 _ACEOF
8204
8205 fi
8206 done
8207
8208 if test $ac_cv_func_pfopen = "no" ; then
8209 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8210 echo "${ECHO_T}Using $pfopen" >&6
8211 LIBS="$LIBS $pfopen"
8212 fi
8213 fi
8214 echo "$as_me:$LINENO: checking for local pcap library" >&5
8215 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8216 libpcap=FAIL
8217 lastdir=FAIL
8218 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8219 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8220 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
8221 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8222 if test $lastdir = $basedir ; then
8223 continue;
8224 fi
8225 lastdir=$dir
8226 if test -r $dir/libpcap.a ; then
8227 libpcap=$dir/libpcap.a
8228 d=$dir
8229 fi
8230 done
8231 if test $libpcap = FAIL ; then
8232 echo "$as_me:$LINENO: result: not found" >&5
8233 echo "${ECHO_T}not found" >&6
8234 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8235 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8236 if test "${ac_cv_lib_pcap_main+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239 ac_check_lib_save_LIBS=$LIBS
8240 LIBS="-lpcap $LIBS"
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248
8249
8250 int
8251 main ()
8252 {
8253 main ();
8254 ;
8255 return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -s conftest$ac_exeext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 (eval $ac_try) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_cv_lib_pcap_main=yes
8271 else
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275 ac_cv_lib_pcap_main=no
8276 fi
8277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8278 LIBS=$ac_check_lib_save_LIBS
8279 fi
8280 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8281 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8282 if test $ac_cv_lib_pcap_main = yes; then
8283 libpcap="-lpcap"
8284 fi
8285
8286 if test $libpcap = FAIL ; then
8287 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8288 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8289 { (exit 1); exit 1; }; }
8290 fi
8291 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8292 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8293 if test \( ! -r /usr/local/include/pcap.h \) -a \
8294 \( ! -r /usr/include/pcap.h \); then
8295 if test -r /usr/local/include/pcap/pcap.h; then
8296 d="/usr/local/include/pcap"
8297 elif test -r /usr/include/pcap/pcap.h; then
8298 d="/usr/include/pcap"
8299 fi
8300 fi
8301 if test -z "$d" ; then
8302 echo "$as_me:$LINENO: result: not found" >&5
8303 echo "${ECHO_T}not found" >&6
8304 else
8305 V_INCLS="-I$d $V_INCLS"
8306 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8307 echo "${ECHO_T}found -- -I$d added" >&6
8308 fi
8309 else
8310 V_PCAPDEP=$libpcap
8311 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8312 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8313 if test -r $d/pcap.h; then
8314 V_INCLS="-I$d $V_INCLS"
8315 elif test -r $places/pcap.h; then
8316 V_INCLS="-I$places $V_INCLS"
8317 else
8318 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8319 echo "$as_me: error: cannot find pcap.h" >&2;}
8320 { (exit see INSTALL); exit see INSTALL; }; }
8321 fi
8322 echo "$as_me:$LINENO: result: $libpcap" >&5
8323 echo "${ECHO_T}$libpcap" >&6
8324 fi
8325 LIBS="$libpcap $LIBS"
8326 case "$host_os" in
8327
8328 aix*)
8329 pseexe="/lib/pse.exp"
8330 echo "$as_me:$LINENO: checking for $pseexe" >&5
8331 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8332 if test -f $pseexe ; then
8333 echo "$as_me:$LINENO: result: yes" >&5
8334 echo "${ECHO_T}yes" >&6
8335 LIBS="$LIBS -I:$pseexe"
8336 fi
8337 #
8338 # We need "-lodm" and "-lcfg", as libpcap requires them on
8339 # AIX, and we just build a static libpcap.a and thus can't
8340 # arrange that when you link with libpcap you automatically
8341 # link with those libraries.
8342 #
8343 LIBS="$LIBS -lodm -lcfg"
8344 ;;
8345 esac
8346
8347 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8348 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8349 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 /* System header to define __stub macros and hopefully few prototypes,
8360 which can conflict with char pcap_list_datalinks (); below.
8361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8362 <limits.h> exists even on freestanding compilers. */
8363 #ifdef __STDC__
8364 # include <limits.h>
8365 #else
8366 # include <assert.h>
8367 #endif
8368 /* Override any gcc2 internal prototype to avoid an error. */
8369 #ifdef __cplusplus
8370 extern "C"
8371 {
8372 #endif
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8375 char pcap_list_datalinks ();
8376 /* The GNU C library defines this for functions which it implements
8377 to always fail with ENOSYS. Some functions are actually named
8378 something starting with __ and the normal name is an alias. */
8379 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8380 choke me
8381 #else
8382 char (*f) () = pcap_list_datalinks;
8383 #endif
8384 #ifdef __cplusplus
8385 }
8386 #endif
8387
8388 int
8389 main ()
8390 {
8391 return f != pcap_list_datalinks;
8392 ;
8393 return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext conftest$ac_exeext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_func_pcap_list_datalinks=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_cv_func_pcap_list_datalinks=no
8414 fi
8415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8418 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8419 if test $ac_cv_func_pcap_list_datalinks = yes; then
8420 cat >>confdefs.h <<\_ACEOF
8421 #define HAVE_PCAP_LIST_DATALINKS 1
8422 _ACEOF
8423
8424 else
8425 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8426 fi
8427
8428 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8429 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8430 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433 cat >conftest.$ac_ext <<_ACEOF
8434 #line $LINENO "configure"
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char pcap_set_datalink (); below.
8442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8443 <limits.h> exists even on freestanding compilers. */
8444 #ifdef __STDC__
8445 # include <limits.h>
8446 #else
8447 # include <assert.h>
8448 #endif
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 #ifdef __cplusplus
8451 extern "C"
8452 {
8453 #endif
8454 /* We use char because int might match the return type of a gcc2
8455 builtin and then its argument prototype would still apply. */
8456 char pcap_set_datalink ();
8457 /* The GNU C library defines this for functions which it implements
8458 to always fail with ENOSYS. Some functions are actually named
8459 something starting with __ and the normal name is an alias. */
8460 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8461 choke me
8462 #else
8463 char (*f) () = pcap_set_datalink;
8464 #endif
8465 #ifdef __cplusplus
8466 }
8467 #endif
8468
8469 int
8470 main ()
8471 {
8472 return f != pcap_set_datalink;
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -s conftest$ac_exeext'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 (eval $ac_try) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_cv_func_pcap_set_datalink=yes
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_cv_func_pcap_set_datalink=no
8495 fi
8496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8497 fi
8498 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8499 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8500 if test $ac_cv_func_pcap_set_datalink = yes; then
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HAVE_PCAP_SET_DATALINK 1
8503 _ACEOF
8504
8505 fi
8506
8507 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8508 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8509 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 cat >conftest.$ac_ext <<_ACEOF
8513 #line $LINENO "configure"
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 /* System header to define __stub macros and hopefully few prototypes,
8520 which can conflict with char pcap_datalink_name_to_val (); below.
8521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8522 <limits.h> exists even on freestanding compilers. */
8523 #ifdef __STDC__
8524 # include <limits.h>
8525 #else
8526 # include <assert.h>
8527 #endif
8528 /* Override any gcc2 internal prototype to avoid an error. */
8529 #ifdef __cplusplus
8530 extern "C"
8531 {
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char pcap_datalink_name_to_val ();
8536 /* The GNU C library defines this for functions which it implements
8537 to always fail with ENOSYS. Some functions are actually named
8538 something starting with __ and the normal name is an alias. */
8539 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8540 choke me
8541 #else
8542 char (*f) () = pcap_datalink_name_to_val;
8543 #endif
8544 #ifdef __cplusplus
8545 }
8546 #endif
8547
8548 int
8549 main ()
8550 {
8551 return f != pcap_datalink_name_to_val;
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_func_pcap_datalink_name_to_val=yes
8569 else
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 ac_cv_func_pcap_datalink_name_to_val=no
8574 fi
8575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8576 fi
8577 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8578 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8579 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8580
8581 cat >>confdefs.h <<\_ACEOF
8582 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8583 _ACEOF
8584
8585 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8586 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8587 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 cat >conftest.$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 /* System header to define __stub macros and hopefully few prototypes,
8598 which can conflict with char pcap_datalink_val_to_description (); below.
8599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600 <limits.h> exists even on freestanding compilers. */
8601 #ifdef __STDC__
8602 # include <limits.h>
8603 #else
8604 # include <assert.h>
8605 #endif
8606 /* Override any gcc2 internal prototype to avoid an error. */
8607 #ifdef __cplusplus
8608 extern "C"
8609 {
8610 #endif
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8613 char pcap_datalink_val_to_description ();
8614 /* The GNU C library defines this for functions which it implements
8615 to always fail with ENOSYS. Some functions are actually named
8616 something starting with __ and the normal name is an alias. */
8617 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8618 choke me
8619 #else
8620 char (*f) () = pcap_datalink_val_to_description;
8621 #endif
8622 #ifdef __cplusplus
8623 }
8624 #endif
8625
8626 int
8627 main ()
8628 {
8629 return f != pcap_datalink_val_to_description;
8630 ;
8631 return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -s conftest$ac_exeext'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 (eval $ac_try) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_cv_func_pcap_datalink_val_to_description=yes
8647 else
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 ac_cv_func_pcap_datalink_val_to_description=no
8652 fi
8653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8654 fi
8655 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8656 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8657 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8658 cat >>confdefs.h <<\_ACEOF
8659 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8660 _ACEOF
8661
8662 else
8663 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8664 fi
8665
8666
8667 else
8668 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8669 fi
8670
8671
8672
8673 for ac_func in pcap_breakloop
8674 do
8675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8676 echo "$as_me:$LINENO: checking for $ac_func" >&5
8677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8678 if eval "test \"\${$as_ac_var+set}\" = set"; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681 cat >conftest.$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 /* System header to define __stub macros and hopefully few prototypes,
8689 which can conflict with char $ac_func (); below.
8690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8691 <limits.h> exists even on freestanding compilers. */
8692 #ifdef __STDC__
8693 # include <limits.h>
8694 #else
8695 # include <assert.h>
8696 #endif
8697 /* Override any gcc2 internal prototype to avoid an error. */
8698 #ifdef __cplusplus
8699 extern "C"
8700 {
8701 #endif
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char $ac_func ();
8705 /* The GNU C library defines this for functions which it implements
8706 to always fail with ENOSYS. Some functions are actually named
8707 something starting with __ and the normal name is an alias. */
8708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8709 choke me
8710 #else
8711 char (*f) () = $ac_func;
8712 #endif
8713 #ifdef __cplusplus
8714 }
8715 #endif
8716
8717 int
8718 main ()
8719 {
8720 return f != $ac_func;
8721 ;
8722 return 0;
8723 }
8724 _ACEOF
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 eval "$as_ac_var=yes"
8738 else
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 eval "$as_ac_var=no"
8743 fi
8744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8745 fi
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8748 if test `eval echo '${'$as_ac_var'}'` = yes; then
8749 cat >>confdefs.h <<_ACEOF
8750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8751 _ACEOF
8752
8753 fi
8754 done
8755
8756
8757
8758 #
8759 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8760 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8761 #
8762 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8763 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8764 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8765 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8766 # it does not ship with a libc symbol "inet_ntop()", it ships with
8767 # "_inet_ntop()", and has a #define macro in one of the system headers
8768 # to rename it.
8769 #
8770 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8771 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 #include <sys/types.h>
8780 #include <sys/socket.h>
8781 #include <netinet/in.h>
8782 #include <arpa/inet.h>
8783 int
8784 main ()
8785 {
8786 char src[4], dst[128];
8787 inet_ntop(AF_INET, src, dst, sizeof(dst));
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 echo "$as_me:$LINENO: result: yes" >&5
8805 echo "${ECHO_T}yes" >&6
8806 else
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 echo "$as_me:$LINENO: result: no" >&5
8811 echo "${ECHO_T}no" >&6
8812 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8813 fi
8814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8815 echo "$as_me:$LINENO: checking for inet_pton" >&5
8816 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8817 cat >conftest.$ac_ext <<_ACEOF
8818 #line $LINENO "configure"
8819 /* confdefs.h. */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 #include <sys/types.h>
8825 #include <sys/socket.h>
8826 #include <netinet/in.h>
8827 #include <arpa/inet.h>
8828 int
8829 main ()
8830 {
8831 char src[128], dst[4];
8832 inet_pton(AF_INET, src, dst);
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 echo "$as_me:$LINENO: result: yes" >&5
8850 echo "${ECHO_T}yes" >&6
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6
8857 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8858 fi
8859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8860 echo "$as_me:$LINENO: checking for inet_aton" >&5
8861 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8862 cat >conftest.$ac_ext <<_ACEOF
8863 #line $LINENO "configure"
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 #include <sys/types.h>
8870 #include <netinet/in.h>
8871 #include <arpa/inet.h>
8872 int
8873 main ()
8874 {
8875 char src[128];
8876 struct in_addr dst;
8877 inet_aton(src, &dst);
8878 ;
8879 return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
8888 { ac_try='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 echo "$as_me:$LINENO: result: yes" >&5
8895 echo "${ECHO_T}yes" >&6
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 echo "$as_me:$LINENO: result: no" >&5
8901 echo "${ECHO_T}no" >&6
8902 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8903 fi
8904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8905
8906 #
8907 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8908 #
8909 # You are in a twisty little maze of UN*Xes, all different.
8910 # Some might not have ether_ntohost().
8911 # Some might have it, but not declare it in any header file.
8912 # Some might have it, but declare it in <netinet/if_ether.h>.
8913 # Some might have it, but declare it in <netinet/ether.h>
8914 # (And some might have it but document it as something declared in
8915 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8916 #
8917 # Before you is a C compiler.
8918 #
8919
8920 for ac_func in ether_ntohost
8921 do
8922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8923 echo "$as_me:$LINENO: checking for $ac_func" >&5
8924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8925 if eval "test \"\${$as_ac_var+set}\" = set"; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 cat >conftest.$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8939 #ifdef __STDC__
8940 # include <limits.h>
8941 #else
8942 # include <assert.h>
8943 #endif
8944 /* Override any gcc2 internal prototype to avoid an error. */
8945 #ifdef __cplusplus
8946 extern "C"
8947 {
8948 #endif
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8951 char $ac_func ();
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8956 choke me
8957 #else
8958 char (*f) () = $ac_func;
8959 #endif
8960 #ifdef __cplusplus
8961 }
8962 #endif
8963
8964 int
8965 main ()
8966 {
8967 return f != $ac_func;
8968 ;
8969 return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 eval "$as_ac_var=yes"
8985 else
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989 eval "$as_ac_var=no"
8990 fi
8991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8992 fi
8993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8995 if test `eval echo '${'$as_ac_var'}'` = yes; then
8996 cat >>confdefs.h <<_ACEOF
8997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8998 _ACEOF
8999
9000 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9001 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9002 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005
9006 if test "$cross_compiling" = yes; then
9007 ac_cv_buggy_ether_ntohost="not while cross-compiling"
9008 else
9009 cat >conftest.$ac_ext <<_ACEOF
9010 #line $LINENO "configure"
9011 /* confdefs.h. */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9016
9017 #include <netdb.h>
9018 #include <sys/types.h>
9019 #include <sys/param.h>
9020 #include <sys/socket.h>
9021
9022 int
9023 main(int argc, char **argv)
9024 {
9025 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9026 char name[MAXHOSTNAMELEN];
9027
9028 ether_ntohost(name, (struct ether_addr *)ea);
9029 exit(0);
9030 }
9031
9032 _ACEOF
9033 rm -f conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_buggy_ether_ntohost=no
9045 else
9046 echo "$as_me: program exited with status $ac_status" >&5
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 ( exit $ac_status )
9051 ac_cv_buggy_ether_ntohost=yes
9052 fi
9053 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9054 fi
9055 fi
9056 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9057 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9058 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9059 cat >>confdefs.h <<\_ACEOF
9060 #define USE_ETHER_NTOHOST 1
9061 _ACEOF
9062
9063 fi
9064
9065 fi
9066 done
9067
9068 if test "$ac_cv_func_ether_ntohost" = yes -a \
9069 "$ac_cv_buggy_ether_ntohost" = "no"; then
9070 #
9071 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
9072 #
9073 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9074 #
9075 # Yes. Does it declare ether_ntohost()?
9076 #
9077 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9078 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9079 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 /* confdefs.h. */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089
9090 #include <sys/types.h>
9091 #include <sys/socket.h>
9092 #include <netinet/in.h>
9093 #include <arpa/inet.h>
9094 struct mbuf;
9095 struct rtentry;
9096 #include <net/if.h>
9097 #include <netinet/if_ether.h>
9098
9099
9100 int
9101 main ()
9102 {
9103 #ifndef ether_ntohost
9104 char *p = (char *) ether_ntohost;
9105 #endif
9106
9107 ;
9108 return 0;
9109 }
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -s conftest.$ac_objext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 ac_cv_have_decl_ether_ntohost=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9127
9128 ac_cv_have_decl_ether_ntohost=no
9129 fi
9130 rm -f conftest.$ac_objext conftest.$ac_ext
9131 fi
9132 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9133 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9134 if test $ac_cv_have_decl_ether_ntohost = yes; then
9135
9136 cat >>confdefs.h <<_ACEOF
9137 #define HAVE_DECL_ETHER_NTOHOST 1
9138 _ACEOF
9139
9140
9141
9142 cat >>confdefs.h <<\_ACEOF
9143 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9144 _ACEOF
9145
9146
9147 else
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DECL_ETHER_NTOHOST 0
9150 _ACEOF
9151
9152
9153 fi
9154
9155
9156 fi
9157 #
9158 # Did that succeed?
9159 #
9160 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9161 #
9162 # No, how about <netinet/ether.h>, as on Linux?
9163 #
9164
9165 for ac_header in netinet/ether.h
9166 do
9167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 fi
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176 else
9177 # Is the header compilable?
9178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9180 cat >conftest.$ac_ext <<_ACEOF
9181 #line $LINENO "configure"
9182 /* confdefs.h. */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 $ac_includes_default
9188 #include <$ac_header>
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192 (eval $ac_compile) 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -s conftest.$ac_objext'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 (eval $ac_try) 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 ac_header_compiler=yes
9203 else
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 ac_header_compiler=no
9208 fi
9209 rm -f conftest.$ac_objext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9211 echo "${ECHO_T}$ac_header_compiler" >&6
9212
9213 # Is the header present?
9214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 #include <$ac_header>
9224 _ACEOF
9225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } >/dev/null; then
9233 if test -s conftest.err; then
9234 ac_cpp_err=$ac_c_preproc_warn_flag
9235 else
9236 ac_cpp_err=
9237 fi
9238 else
9239 ac_cpp_err=yes
9240 fi
9241 if test -z "$ac_cpp_err"; then
9242 ac_header_preproc=yes
9243 else
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 ac_header_preproc=no
9248 fi
9249 rm -f conftest.err conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9251 echo "${ECHO_T}$ac_header_preproc" >&6
9252
9253 # So? What about this header?
9254 case $ac_header_compiler:$ac_header_preproc in
9255 yes:no )
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9260 (
9261 cat <<\_ASBOX
9262 ## ------------------------------------ ##
9263 ## Report this to bug-autoconf@gnu.org. ##
9264 ## ------------------------------------ ##
9265 _ASBOX
9266 ) |
9267 sed "s/^/$as_me: WARNING: /" >&2
9268 ;;
9269 no:yes )
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9276 (
9277 cat <<\_ASBOX
9278 ## ------------------------------------ ##
9279 ## Report this to bug-autoconf@gnu.org. ##
9280 ## ------------------------------------ ##
9281 _ASBOX
9282 ) |
9283 sed "s/^/$as_me: WARNING: /" >&2
9284 ;;
9285 esac
9286 echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291 eval "$as_ac_Header=$ac_header_preproc"
9292 fi
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9295
9296 fi
9297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9298 cat >>confdefs.h <<_ACEOF
9299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9300 _ACEOF
9301
9302 fi
9303
9304 done
9305
9306 if test "$ac_cv_header_netinet_ether_h" = yes; then
9307 #
9308 # We have it - does it declare ether_ntohost()?
9309 # Unset ac_cv_have_decl_ether_ntohost so we don't
9310 # treat the previous failure as a cached value and
9311 # suppress the next test.
9312 #
9313 unset ac_cv_have_decl_ether_ntohost
9314 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9315 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9316 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319 cat >conftest.$ac_ext <<_ACEOF
9320 #line $LINENO "configure"
9321 /* confdefs.h. */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9326
9327 #include <netinet/ether.h>
9328
9329
9330 int
9331 main ()
9332 {
9333 #ifndef ether_ntohost
9334 char *p = (char *) ether_ntohost;
9335 #endif
9336
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -s conftest.$ac_objext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 (eval $ac_try) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 ac_cv_have_decl_ether_ntohost=yes
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358 ac_cv_have_decl_ether_ntohost=no
9359 fi
9360 rm -f conftest.$ac_objext conftest.$ac_ext
9361 fi
9362 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9363 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9364 if test $ac_cv_have_decl_ether_ntohost = yes; then
9365
9366 cat >>confdefs.h <<_ACEOF
9367 #define HAVE_DECL_ETHER_NTOHOST 1
9368 _ACEOF
9369
9370
9371
9372 cat >>confdefs.h <<\_ACEOF
9373 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9374 _ACEOF
9375
9376
9377 else
9378 cat >>confdefs.h <<_ACEOF
9379 #define HAVE_DECL_ETHER_NTOHOST 0
9380 _ACEOF
9381
9382
9383 fi
9384
9385
9386 fi
9387 fi
9388 #
9389 # Is ether_ntohost() declared?
9390 #
9391 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9392 #
9393 # No, we'll have to declare it ourselves.
9394 # Do we have "struct ether_addr"?
9395 #
9396 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9397 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
9398 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408
9409 #include <sys/types.h>
9410 #include <sys/socket.h>
9411 #include <netinet/in.h>
9412 #include <arpa/inet.h>
9413 struct mbuf;
9414 struct rtentry;
9415 #include <net/if.h>
9416 #include <netinet/if_ether.h>
9417
9418
9419 int
9420 main ()
9421 {
9422 if ((struct ether_addr *) 0)
9423 return 0;
9424 if (sizeof (struct ether_addr))
9425 return 0;
9426 ;
9427 return 0;
9428 }
9429 _ACEOF
9430 rm -f conftest.$ac_objext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9432 (eval $ac_compile) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -s conftest.$ac_objext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_cv_type_struct_ether_addr=yes
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447 ac_cv_type_struct_ether_addr=no
9448 fi
9449 rm -f conftest.$ac_objext conftest.$ac_ext
9450 fi
9451 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9452 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
9453 if test $ac_cv_type_struct_ether_addr = yes; then
9454
9455 cat >>confdefs.h <<_ACEOF
9456 #define HAVE_STRUCT_ETHER_ADDR 1
9457 _ACEOF
9458
9459
9460 fi
9461
9462 fi
9463 fi
9464
9465
9466 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9467 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9468 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471 cat >conftest.$ac_ext <<_ACEOF
9472 #line $LINENO "configure"
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478
9479 # include <sys/types.h>
9480 # include <sys/socket.h>
9481 int
9482 main ()
9483 {
9484 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9485 ;
9486 return 0;
9487 }
9488 _ACEOF
9489 rm -f conftest.$ac_objext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9491 (eval $ac_compile) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 (eval $ac_try) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_cv_sockaddr_has_sa_len=yes
9502 else
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_cv_sockaddr_has_sa_len=no
9507 fi
9508 rm -f conftest.$ac_objext conftest.$ac_ext
9509 fi
9510
9511 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9512 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9513 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_SOCKADDR_SA_LEN 1
9516 _ACEOF
9517
9518 fi
9519
9520 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9521 missing_includes=yes
9522 fi
9523
9524
9525
9526
9527 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9528 do
9529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530 echo "$as_me:$LINENO: checking for $ac_func" >&5
9531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532 if eval "test \"\${$as_ac_var+set}\" = set"; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 cat >conftest.$ac_ext <<_ACEOF
9536 #line $LINENO "configure"
9537 /* confdefs.h. */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 /* System header to define __stub macros and hopefully few prototypes,
9543 which can conflict with char $ac_func (); below.
9544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9545 <limits.h> exists even on freestanding compilers. */
9546 #ifdef __STDC__
9547 # include <limits.h>
9548 #else
9549 # include <assert.h>
9550 #endif
9551 /* Override any gcc2 internal prototype to avoid an error. */
9552 #ifdef __cplusplus
9553 extern "C"
9554 {
9555 #endif
9556 /* We use char because int might match the return type of a gcc2
9557 builtin and then its argument prototype would still apply. */
9558 char $ac_func ();
9559 /* The GNU C library defines this for functions which it implements
9560 to always fail with ENOSYS. Some functions are actually named
9561 something starting with __ and the normal name is an alias. */
9562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9563 choke me
9564 #else
9565 char (*f) () = $ac_func;
9566 #endif
9567 #ifdef __cplusplus
9568 }
9569 #endif
9570
9571 int
9572 main ()
9573 {
9574 return f != $ac_func;
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581 (eval $ac_link) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 eval "$as_ac_var=yes"
9592 else
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596 eval "$as_ac_var=no"
9597 fi
9598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9599 fi
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9602 if test `eval echo '${'$as_ac_var'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9605 _ACEOF
9606
9607 fi
9608 done
9609
9610 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9611 savedcflags="$CFLAGS"
9612 CFLAGS="$CFLAGS $V_INCLS"
9613 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9614 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9615 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 #line $LINENO "configure"
9620 /* confdefs.h. */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 #include <pcap.h>
9626
9627 int
9628 main ()
9629 {
9630 if ((pcap_if_t *) 0)
9631 return 0;
9632 if (sizeof (pcap_if_t))
9633 return 0;
9634 ;
9635 return 0;
9636 }
9637 _ACEOF
9638 rm -f conftest.$ac_objext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -s conftest.$ac_objext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_type_pcap_if_t=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655 ac_cv_type_pcap_if_t=no
9656 fi
9657 rm -f conftest.$ac_objext conftest.$ac_ext
9658 fi
9659 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9660 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9661 if test $ac_cv_type_pcap_if_t = yes; then
9662
9663 cat >>confdefs.h <<_ACEOF
9664 #define HAVE_PCAP_IF_T 1
9665 _ACEOF
9666
9667
9668 fi
9669
9670 CFLAGS="$savedcflags"
9671 fi
9672
9673 if test $ac_cv_func_pcap_lib_version = "no" ; then
9674 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9675 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9676 cat >conftest.$ac_ext <<_ACEOF
9677 #line $LINENO "configure"
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683
9684 int
9685 main ()
9686 {
9687
9688 extern char pcap_version[];
9689
9690 return (int)pcap_version;
9691
9692 ;
9693 return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -s conftest$ac_exeext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 ac_lbl_cv_pcap_version_defined=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ac_lbl_cv_pcap_version_defined=no
9714 fi
9715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9716 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9717 echo "$as_me:$LINENO: result: yes" >&5
9718 echo "${ECHO_T}yes" >&6
9719 cat >>confdefs.h <<\_ACEOF
9720 #define HAVE_PCAP_VERSION 1
9721 _ACEOF
9722
9723 else
9724 echo "$as_me:$LINENO: result: no" >&5
9725 echo "${ECHO_T}no" >&6
9726 fi
9727 fi
9728 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9729 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 /* confdefs.h. */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737
9738 int
9739 main ()
9740 {
9741
9742 extern int pcap_debug;
9743
9744 return pcap_debug;
9745
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 (eval $ac_try) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_lbl_cv_pcap_debug_defined=yes
9763 else
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 ac_lbl_cv_pcap_debug_defined=no
9768 fi
9769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9770 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9771 echo "$as_me:$LINENO: result: yes" >&5
9772 echo "${ECHO_T}yes" >&6
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_PCAP_DEBUG 1
9775 _ACEOF
9776
9777 else
9778 echo "$as_me:$LINENO: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9780 #
9781 # OK, what about "yydebug"?
9782 #
9783 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9784 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792
9793 int
9794 main ()
9795 {
9796
9797 extern int yydebug;
9798
9799 return yydebug;
9800
9801 ;
9802 return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9807 (eval $ac_link) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try='test -s conftest$ac_exeext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817 ac_lbl_cv_yydebug_defined=yes
9818 else
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 ac_lbl_cv_yydebug_defined=no
9823 fi
9824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9825 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9826 echo "$as_me:$LINENO: result: yes" >&5
9827 echo "${ECHO_T}yes" >&6
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_YYDEBUG 1
9830 _ACEOF
9831
9832 else
9833 echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6
9835 fi
9836 fi
9837
9838 for ac_func in bpf_dump
9839 do
9840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9841 echo "$as_me:$LINENO: checking for $ac_func" >&5
9842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9843 if eval "test \"\${$as_ac_var+set}\" = set"; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846 cat >conftest.$ac_ext <<_ACEOF
9847 #line $LINENO "configure"
9848 /* confdefs.h. */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 /* System header to define __stub macros and hopefully few prototypes,
9854 which can conflict with char $ac_func (); below.
9855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9856 <limits.h> exists even on freestanding compilers. */
9857 #ifdef __STDC__
9858 # include <limits.h>
9859 #else
9860 # include <assert.h>
9861 #endif
9862 /* Override any gcc2 internal prototype to avoid an error. */
9863 #ifdef __cplusplus
9864 extern "C"
9865 {
9866 #endif
9867 /* We use char because int might match the return type of a gcc2
9868 builtin and then its argument prototype would still apply. */
9869 char $ac_func ();
9870 /* The GNU C library defines this for functions which it implements
9871 to always fail with ENOSYS. Some functions are actually named
9872 something starting with __ and the normal name is an alias. */
9873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9874 choke me
9875 #else
9876 char (*f) () = $ac_func;
9877 #endif
9878 #ifdef __cplusplus
9879 }
9880 #endif
9881
9882 int
9883 main ()
9884 {
9885 return f != $ac_func;
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 (eval $ac_try) 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 eval "$as_ac_var=yes"
9903 else
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 eval "$as_ac_var=no"
9908 fi
9909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9910 fi
9911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9913 if test `eval echo '${'$as_ac_var'}'` = yes; then
9914 cat >>confdefs.h <<_ACEOF
9915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9916 _ACEOF
9917
9918 else
9919 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9920 fi
9921 done
9922
9923
9924 V_GROUP=0
9925 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9926 V_GROUP=wheel
9927 fi
9928 case "$host_os" in
9929
9930 aix*)
9931 cat >>confdefs.h <<\_ACEOF
9932 #define _SUN 1
9933 _ACEOF
9934
9935 ;;
9936
9937 irix*)
9938 V_GROUP=sys
9939 ;;
9940
9941 osf*)
9942 V_GROUP=system
9943 ;;
9944
9945 solaris*)
9946 V_GROUP=sys
9947 ;;
9948 esac
9949
9950 if test -f /dev/bpf0 ; then
9951 V_GROUP=bpf
9952 fi
9953
9954
9955 for ac_header in sys/bitypes.h
9956 do
9957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 fi
9964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9966 else
9967 # Is the header compilable?
9968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9971 #line $LINENO "configure"
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 $ac_includes_default
9978 #include <$ac_header>
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_header_compiler=yes
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_header_compiler=no
9998 fi
9999 rm -f conftest.$ac_objext conftest.$ac_ext
10000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10001 echo "${ECHO_T}$ac_header_compiler" >&6
10002
10003 # Is the header present?
10004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10007 #line $LINENO "configure"
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <$ac_header>
10014 _ACEOF
10015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev/null; then
10023 if test -s conftest.err; then
10024 ac_cpp_err=$ac_c_preproc_warn_flag
10025 else
10026 ac_cpp_err=
10027 fi
10028 else
10029 ac_cpp_err=yes
10030 fi
10031 if test -z "$ac_cpp_err"; then
10032 ac_header_preproc=yes
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_header_preproc=no
10038 fi
10039 rm -f conftest.err conftest.$ac_ext
10040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041 echo "${ECHO_T}$ac_header_preproc" >&6
10042
10043 # So? What about this header?
10044 case $ac_header_compiler:$ac_header_preproc in
10045 yes:no )
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10050 (
10051 cat <<\_ASBOX
10052 ## ------------------------------------ ##
10053 ## Report this to bug-autoconf@gnu.org. ##
10054 ## ------------------------------------ ##
10055 _ASBOX
10056 ) |
10057 sed "s/^/$as_me: WARNING: /" >&2
10058 ;;
10059 no:yes )
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10066 (
10067 cat <<\_ASBOX
10068 ## ------------------------------------ ##
10069 ## Report this to bug-autoconf@gnu.org. ##
10070 ## ------------------------------------ ##
10071 _ASBOX
10072 ) |
10073 sed "s/^/$as_me: WARNING: /" >&2
10074 ;;
10075 esac
10076 echo "$as_me:$LINENO: checking for $ac_header" >&5
10077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 eval "$as_ac_Header=$ac_header_preproc"
10082 fi
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10085
10086 fi
10087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10088 cat >>confdefs.h <<_ACEOF
10089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10090 _ACEOF
10091
10092 fi
10093
10094 done
10095
10096
10097 echo "$as_me:$LINENO: checking for int8_t" >&5
10098 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
10099 if test "${ac_cv_type_int8_t+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 cat >conftest.$ac_ext <<_ACEOF
10103 #line $LINENO "configure"
10104 /* confdefs.h. */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 $ac_includes_default
10110 int
10111 main ()
10112 {
10113 if ((int8_t *) 0)
10114 return 0;
10115 if (sizeof (int8_t))
10116 return 0;
10117 ;
10118 return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10123 (eval $ac_compile) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -s conftest.$ac_objext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_type_int8_t=yes
10134 else
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138 ac_cv_type_int8_t=no
10139 fi
10140 rm -f conftest.$ac_objext conftest.$ac_ext
10141 fi
10142 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10143 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
10144 if test $ac_cv_type_int8_t = yes; then
10145 :
10146 else
10147
10148 cat >>confdefs.h <<\_ACEOF
10149 #define int8_t signed char
10150 _ACEOF
10151
10152 fi
10153
10154 echo "$as_me:$LINENO: checking for u_int8_t" >&5
10155 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
10156 if test "${ac_cv_type_u_int8_t+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10167 #ifdef HAVE_SYS_BITYPES_H
10168 #include <sys/bitypes.h>
10169 #endif
10170
10171 int
10172 main ()
10173 {
10174 if ((u_int8_t *) 0)
10175 return 0;
10176 if (sizeof (u_int8_t))
10177 return 0;
10178 ;
10179 return 0;
10180 }
10181 _ACEOF
10182 rm -f conftest.$ac_objext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184 (eval $ac_compile) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -s conftest.$ac_objext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_type_u_int8_t=yes
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199 ac_cv_type_u_int8_t=no
10200 fi
10201 rm -f conftest.$ac_objext conftest.$ac_ext
10202 fi
10203 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10204 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
10205 if test $ac_cv_type_u_int8_t = yes; then
10206 :
10207 else
10208
10209 cat >>confdefs.h <<\_ACEOF
10210 #define u_int8_t unsigned char
10211 _ACEOF
10212
10213 fi
10214
10215 echo "$as_me:$LINENO: checking for int16_t" >&5
10216 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
10217 if test "${ac_cv_type_int16_t+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 /* confdefs.h. */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10228 int
10229 main ()
10230 {
10231 if ((int16_t *) 0)
10232 return 0;
10233 if (sizeof (int16_t))
10234 return 0;
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_type_int16_t=yes
10252 else
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10255
10256 ac_cv_type_int16_t=no
10257 fi
10258 rm -f conftest.$ac_objext conftest.$ac_ext
10259 fi
10260 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10261 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
10262 if test $ac_cv_type_int16_t = yes; then
10263 :
10264 else
10265
10266 cat >>confdefs.h <<\_ACEOF
10267 #define int16_t short
10268 _ACEOF
10269
10270 fi
10271
10272 echo "$as_me:$LINENO: checking for u_int16_t" >&5
10273 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
10274 if test "${ac_cv_type_u_int16_t+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 /* confdefs.h. */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 $ac_includes_default
10285 #ifdef HAVE_SYS_BITYPES_H
10286 #include <sys/bitypes.h>
10287 #endif
10288
10289 int
10290 main ()
10291 {
10292 if ((u_int16_t *) 0)
10293 return 0;
10294 if (sizeof (u_int16_t))
10295 return 0;
10296 ;
10297 return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_cv_type_u_int16_t=yes
10313 else
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317 ac_cv_type_u_int16_t=no
10318 fi
10319 rm -f conftest.$ac_objext conftest.$ac_ext
10320 fi
10321 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10322 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
10323 if test $ac_cv_type_u_int16_t = yes; then
10324 :
10325 else
10326
10327 cat >>confdefs.h <<\_ACEOF
10328 #define u_int16_t unsigned short
10329 _ACEOF
10330
10331 fi
10332
10333 echo "$as_me:$LINENO: checking for int32_t" >&5
10334 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10335 if test "${ac_cv_type_int32_t+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 cat >conftest.$ac_ext <<_ACEOF
10339 #line $LINENO "configure"
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 $ac_includes_default
10346 int
10347 main ()
10348 {
10349 if ((int32_t *) 0)
10350 return 0;
10351 if (sizeof (int32_t))
10352 return 0;
10353 ;
10354 return 0;
10355 }
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359 (eval $ac_compile) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -s conftest.$ac_objext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_type_int32_t=yes
10370 else
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 ac_cv_type_int32_t=no
10375 fi
10376 rm -f conftest.$ac_objext conftest.$ac_ext
10377 fi
10378 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10379 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10380 if test $ac_cv_type_int32_t = yes; then
10381 :
10382 else
10383
10384 cat >>confdefs.h <<\_ACEOF
10385 #define int32_t int
10386 _ACEOF
10387
10388 fi
10389
10390 echo "$as_me:$LINENO: checking for u_int32_t" >&5
10391 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10392 if test "${ac_cv_type_u_int32_t+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395 cat >conftest.$ac_ext <<_ACEOF
10396 #line $LINENO "configure"
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 $ac_includes_default
10403 #ifdef HAVE_SYS_BITYPES_H
10404 #include <sys/bitypes.h>
10405 #endif
10406
10407 int
10408 main ()
10409 {
10410 if ((u_int32_t *) 0)
10411 return 0;
10412 if (sizeof (u_int32_t))
10413 return 0;
10414 ;
10415 return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -s conftest.$ac_objext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_type_u_int32_t=yes
10431 else
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10434
10435 ac_cv_type_u_int32_t=no
10436 fi
10437 rm -f conftest.$ac_objext conftest.$ac_ext
10438 fi
10439 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10440 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
10441 if test $ac_cv_type_u_int32_t = yes; then
10442 :
10443 else
10444
10445 cat >>confdefs.h <<\_ACEOF
10446 #define u_int32_t unsigned int
10447 _ACEOF
10448
10449 fi
10450
10451 echo "$as_me:$LINENO: checking for int64_t" >&5
10452 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
10453 if test "${ac_cv_type_int64_t+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 $ac_includes_default
10464 int
10465 main ()
10466 {
10467 if ((int64_t *) 0)
10468 return 0;
10469 if (sizeof (int64_t))
10470 return 0;
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 rm -f conftest.$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_type_int64_t=yes
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492 ac_cv_type_int64_t=no
10493 fi
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10495 fi
10496 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10497 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
10498 if test $ac_cv_type_int64_t = yes; then
10499 :
10500 else
10501
10502 cat >>confdefs.h <<\_ACEOF
10503 #define int64_t long long
10504 _ACEOF
10505
10506 fi
10507
10508 echo "$as_me:$LINENO: checking for u_int64_t" >&5
10509 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
10510 if test "${ac_cv_type_u_int64_t+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513 cat >conftest.$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 #ifdef HAVE_SYS_BITYPES_H
10522 #include <sys/bitypes.h>
10523 #endif
10524
10525 int
10526 main ()
10527 {
10528 if ((u_int64_t *) 0)
10529 return 0;
10530 if (sizeof (u_int64_t))
10531 return 0;
10532 ;
10533 return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_type_u_int64_t=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 ac_cv_type_u_int64_t=no
10554 fi
10555 rm -f conftest.$ac_objext conftest.$ac_ext
10556 fi
10557 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10558 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
10559 if test $ac_cv_type_u_int64_t = yes; then
10560 :
10561 else
10562
10563 cat >>confdefs.h <<\_ACEOF
10564 #define u_int64_t unsigned long long
10565 _ACEOF
10566
10567 fi
10568
10569
10570 #
10571 # We can't just check for <inttypes.h> - some systems have one that
10572 # doesn't define all the PRI[doxu]64 macros.
10573 #
10574
10575 for ac_header in inttypes.h
10576 do
10577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10579 echo "$as_me:$LINENO: checking for $ac_header" >&5
10580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 fi
10584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10586 else
10587 # Is the header compilable?
10588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10590 cat >conftest.$ac_ext <<_ACEOF
10591 #line $LINENO "configure"
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10598 #include <$ac_header>
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602 (eval $ac_compile) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -s conftest.$ac_objext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_header_compiler=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617 ac_header_compiler=no
10618 fi
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10621 echo "${ECHO_T}$ac_header_compiler" >&6
10622
10623 # Is the header present?
10624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10626 cat >conftest.$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10628 /* confdefs.h. */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 #include <$ac_header>
10634 _ACEOF
10635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } >/dev/null; then
10643 if test -s conftest.err; then
10644 ac_cpp_err=$ac_c_preproc_warn_flag
10645 else
10646 ac_cpp_err=
10647 fi
10648 else
10649 ac_cpp_err=yes
10650 fi
10651 if test -z "$ac_cpp_err"; then
10652 ac_header_preproc=yes
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 ac_header_preproc=no
10658 fi
10659 rm -f conftest.err conftest.$ac_ext
10660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10661 echo "${ECHO_T}$ac_header_preproc" >&6
10662
10663 # So? What about this header?
10664 case $ac_header_compiler:$ac_header_preproc in
10665 yes:no )
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670 (
10671 cat <<\_ASBOX
10672 ## ------------------------------------ ##
10673 ## Report this to bug-autoconf@gnu.org. ##
10674 ## ------------------------------------ ##
10675 _ASBOX
10676 ) |
10677 sed "s/^/$as_me: WARNING: /" >&2
10678 ;;
10679 no:yes )
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10686 (
10687 cat <<\_ASBOX
10688 ## ------------------------------------ ##
10689 ## Report this to bug-autoconf@gnu.org. ##
10690 ## ------------------------------------ ##
10691 _ASBOX
10692 ) |
10693 sed "s/^/$as_me: WARNING: /" >&2
10694 ;;
10695 esac
10696 echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701 eval "$as_ac_Header=$ac_header_preproc"
10702 fi
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10705
10706 fi
10707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10708 cat >>confdefs.h <<_ACEOF
10709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10710 _ACEOF
10711
10712 #
10713 # OK, we have inttypes.h, but does it define those macros?
10714 #
10715 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10716 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10717 cat >conftest.$ac_ext <<_ACEOF
10718
10719 #line $LINENO "configure"
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725
10726 #include <inttypes.h>
10727 #include <stdio.h>
10728 #include <sys/types.h>
10729 #ifdef HAVE_SYS_BITYPES_H
10730 #include <sys/bitypes.h>
10731 #endif
10732
10733 main()
10734 {
10735 printf("%" PRId64 "\n", (u_int64_t)1);
10736 printf("%" PRIo64 "\n", (u_int64_t)1);
10737 printf("%" PRIx64 "\n", (u_int64_t)1);
10738 printf("%" PRIu64 "\n", (u_int64_t)1);
10739 }
10740
10741
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try='test -s conftest.$ac_objext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755
10756 echo "$as_me:$LINENO: result: yes" >&5
10757 echo "${ECHO_T}yes" >&6
10758 ac_lbl_inttypes_h_defines_formats=yes
10759
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764
10765 echo "$as_me:$LINENO: result: no" >&5
10766 echo "${ECHO_T}no" >&6
10767 ac_lbl_inttypes_h_defines_formats=no
10768
10769 fi
10770 rm -f conftest.$ac_objext conftest.$ac_ext
10771
10772 else
10773
10774 #
10775 # We don't have inttypes.h, so it obviously can't define those
10776 # macros.
10777 #
10778 ac_lbl_inttypes_h_defines_formats=no
10779
10780 fi
10781
10782 done
10783
10784 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10785
10786 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10787 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
10788 if test "$cross_compiling" = yes; then
10789 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10790 See \`config.log' for more details." >&5
10791 echo "$as_me: error: cannot run test program while cross compiling
10792 See \`config.log' for more details." >&2;}
10793 { (exit 1); exit 1; }; }
10794 else
10795 cat >conftest.$ac_ext <<_ACEOF
10796
10797 #line $LINENO "configure"
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803
10804 # ifdef HAVE_INTTYPES_H
10805 #include <inttypes.h>
10806 # endif
10807 # ifdef HAVE_SYS_BITYPES_H
10808 #include <sys/bitypes.h>
10809 # endif
10810 #include <stdio.h>
10811 #include <sys/types.h>
10812
10813 main()
10814 {
10815 u_int64_t t = 1;
10816 char strbuf[16+1];
10817 sprintf(strbuf, "%016lx", t << 32);
10818 if (strcmp(strbuf, "0000000100000000") == 0)
10819 exit(0);
10820 else
10821 exit(1);
10822 }
10823
10824
10825 _ACEOF
10826 rm -f conftest$ac_exeext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828 (eval $ac_link) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837
10838 cat >>confdefs.h <<\_ACEOF
10839 #define PRId64 "ld"
10840 _ACEOF
10841
10842 cat >>confdefs.h <<\_ACEOF
10843 #define PRIo64 "lo"
10844 _ACEOF
10845
10846 cat >>confdefs.h <<\_ACEOF
10847 #define PRIx64 "lx"
10848 _ACEOF
10849
10850 cat >>confdefs.h <<\_ACEOF
10851 #define PRIu64 "lu"
10852 _ACEOF
10853
10854 echo "$as_me:$LINENO: result: yes" >&5
10855 echo "${ECHO_T}yes" >&6
10856
10857 else
10858 echo "$as_me: program exited with status $ac_status" >&5
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ( exit $ac_status )
10863
10864 echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10866
10867
10868 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10869 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10870 if test "$cross_compiling" = yes; then
10871 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10872 See \`config.log' for more details." >&5
10873 echo "$as_me: error: cannot run test program while cross compiling
10874 See \`config.log' for more details." >&2;}
10875 { (exit 1); exit 1; }; }
10876 else
10877 cat >conftest.$ac_ext <<_ACEOF
10878
10879 #line $LINENO "configure"
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885
10886 # ifdef HAVE_INTTYPES_H
10887 #include <inttypes.h>
10888 # endif
10889 # ifdef HAVE_SYS_BITYPES_H
10890 #include <sys/bitypes.h>
10891 # endif
10892 #include <stdio.h>
10893 #include <sys/types.h>
10894
10895 main()
10896 {
10897 u_int64_t t = 1;
10898 char strbuf[16+1];
10899 sprintf(strbuf, "%016llx", t << 32);
10900 if (strcmp(strbuf, "0000000100000000") == 0)
10901 exit(0);
10902 else
10903 exit(1);
10904 }
10905
10906
10907 _ACEOF
10908 rm -f conftest$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919
10920 cat >>confdefs.h <<\_ACEOF
10921 #define PRId64 "lld"
10922 _ACEOF
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define PRIo64 "llo"
10926 _ACEOF
10927
10928 cat >>confdefs.h <<\_ACEOF
10929 #define PRIx64 "llx"
10930 _ACEOF
10931
10932 cat >>confdefs.h <<\_ACEOF
10933 #define PRIu64 "llu"
10934 _ACEOF
10935
10936 echo "$as_me:$LINENO: result: yes" >&5
10937 echo "${ECHO_T}yes" >&6
10938
10939 else
10940 echo "$as_me: program exited with status $ac_status" >&5
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10943
10944 ( exit $ac_status )
10945
10946 echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6
10948
10949
10950 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10951 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10952 if test "$cross_compiling" = yes; then
10953 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10954 See \`config.log' for more details." >&5
10955 echo "$as_me: error: cannot run test program while cross compiling
10956 See \`config.log' for more details." >&2;}
10957 { (exit 1); exit 1; }; }
10958 else
10959 cat >conftest.$ac_ext <<_ACEOF
10960
10961 #line $LINENO "configure"
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967
10968 # ifdef HAVE_INTTYPES_H
10969 #include <inttypes.h>
10970 # endif
10971 # ifdef HAVE_SYS_BITYPES_H
10972 #include <sys/bitypes.h>
10973 # endif
10974 #include <stdio.h>
10975 #include <sys/types.h>
10976
10977 main()
10978 {
10979 u_int64_t t = 1;
10980 char strbuf[16+1];
10981 sprintf(strbuf, "%016Lx", t << 32);
10982 if (strcmp(strbuf, "0000000100000000") == 0)
10983 exit(0);
10984 else
10985 exit(1);
10986 }
10987
10988
10989 _ACEOF
10990 rm -f conftest$ac_exeext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10992 (eval $ac_link) 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001
11002 cat >>confdefs.h <<\_ACEOF
11003 #define PRId64 "Ld"
11004 _ACEOF
11005
11006 cat >>confdefs.h <<\_ACEOF
11007 #define PRIo64 "Lo"
11008 _ACEOF
11009
11010 cat >>confdefs.h <<\_ACEOF
11011 #define PRIx64 "Lx"
11012 _ACEOF
11013
11014 cat >>confdefs.h <<\_ACEOF
11015 #define PRIu64 "Lu"
11016 _ACEOF
11017
11018 echo "$as_me:$LINENO: result: yes" >&5
11019 echo "${ECHO_T}yes" >&6
11020
11021 else
11022 echo "$as_me: program exited with status $ac_status" >&5
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 ( exit $ac_status )
11027
11028 echo "$as_me:$LINENO: result: no" >&5
11029 echo "${ECHO_T}no" >&6
11030
11031
11032 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11033 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
11034 if test "$cross_compiling" = yes; then
11035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11036 See \`config.log' for more details." >&5
11037 echo "$as_me: error: cannot run test program while cross compiling
11038 See \`config.log' for more details." >&2;}
11039 { (exit 1); exit 1; }; }
11040 else
11041 cat >conftest.$ac_ext <<_ACEOF
11042
11043 #line $LINENO "configure"
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049
11050 # ifdef HAVE_INTTYPES_H
11051 #include <inttypes.h>
11052 # endif
11053 # ifdef HAVE_SYS_BITYPES_H
11054 #include <sys/bitypes.h>
11055 # endif
11056 #include <stdio.h>
11057 #include <sys/types.h>
11058
11059 main()
11060 {
11061 u_int64_t t = 1;
11062 char strbuf[16+1];
11063 sprintf(strbuf, "%016qx", t << 32);
11064 if (strcmp(strbuf, "0000000100000000") == 0)
11065 exit(0);
11066 else
11067 exit(1);
11068 }
11069
11070
11071 _ACEOF
11072 rm -f conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083
11084 cat >>confdefs.h <<\_ACEOF
11085 #define PRId64 "qd"
11086 _ACEOF
11087
11088 cat >>confdefs.h <<\_ACEOF
11089 #define PRIo64 "qo"
11090 _ACEOF
11091
11092 cat >>confdefs.h <<\_ACEOF
11093 #define PRIx64 "qx"
11094 _ACEOF
11095
11096 cat >>confdefs.h <<\_ACEOF
11097 #define PRIu64 "qu"
11098 _ACEOF
11099
11100 echo "$as_me:$LINENO: result: yes" >&5
11101 echo "${ECHO_T}yes" >&6
11102
11103 else
11104 echo "$as_me: program exited with status $ac_status" >&5
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 ( exit $ac_status )
11109
11110 echo "$as_me:$LINENO: result: no" >&5
11111 echo "${ECHO_T}no" >&6
11112
11113 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11114 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11115 { (exit 1); exit 1; }; }
11116
11117
11118 fi
11119 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11120 fi
11121
11122
11123
11124 fi
11125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11126 fi
11127
11128
11129
11130 fi
11131 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11132 fi
11133
11134
11135
11136 fi
11137 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11138 fi
11139
11140 fi
11141
11142 rm -f os-proto.h
11143 if test "${LBL_CFLAGS+set}" = set; then
11144 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11145 fi
11146 if test -f .devel ; then
11147 if test "$GCC" = yes ; then
11148 if test "${LBL_CFLAGS+set}" != set; then
11149 if test "$ac_cv_prog_cc_g" = yes ; then
11150 V_CCOPT="-g $V_CCOPT"
11151 fi
11152 V_CCOPT="$V_CCOPT -Wall"
11153 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11154 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
11155 fi
11156 fi
11157 else
11158 case "$host_os" in
11159
11160 irix6*)
11161 V_CCOPT="$V_CCOPT -n32"
11162 ;;
11163
11164 *)
11165 ;;
11166 esac
11167 fi
11168 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11169 name="lbl/os-$os.h"
11170 if test -f $name ; then
11171 ln -s $name os-proto.h
11172 cat >>confdefs.h <<\_ACEOF
11173 #define HAVE_OS_PROTO_H 1
11174 _ACEOF
11175
11176 else
11177 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11178 echo "$as_me: WARNING: can't find $name" >&2;}
11179 fi
11180 fi
11181
11182 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11183 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
11184 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187 cat >conftest.$ac_ext <<_ACEOF
11188 #line $LINENO "configure"
11189 /* confdefs.h. */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194
11195 # include <sys/types.h>
11196 # include <sys/socket.h>
11197 int
11198 main ()
11199 {
11200 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11201 ;
11202 return 0;
11203 }
11204 _ACEOF
11205 rm -f conftest.$ac_objext
11206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11207 (eval $ac_compile) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -s conftest.$ac_objext'
11212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213 (eval $ac_try) 2>&5
11214 ac_status=$?
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; }; then
11217 ac_cv_lbl_sockaddr_has_sa_len=yes
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 ac_cv_lbl_sockaddr_has_sa_len=no
11223 fi
11224 rm -f conftest.$ac_objext conftest.$ac_ext
11225 fi
11226
11227 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11228 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
11229 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11230 cat >>confdefs.h <<\_ACEOF
11231 #define HAVE_SOCKADDR_SA_LEN 1
11232 _ACEOF
11233
11234 fi
11235
11236 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11237 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
11238 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 case "$host_cpu" in
11242
11243 #
11244 # These are CPU types where:
11245 #
11246 # the CPU faults on an unaligned access, but at least some
11247 # OSes that support that CPU catch the fault and simulate
11248 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11249 # the simulation is slow, so we don't want to use it;
11250 #
11251 # the CPU, I infer (from the old
11252 #
11253 # XXX: should also check that they don't do weird things (like on arm)
11254 #
11255 # comment) doesn't fault on unaligned accesses, but doesn't
11256 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11257 #
11258 # for whatever reason, the test program doesn't work
11259 # (this has been claimed to be the case for several of those
11260 # CPUs - I don't know what the problem is; the problem
11261 # was reported as "the test program dumps core" for SuperH,
11262 # but that's what the test program is *supposed* to do -
11263 # it dumps core before it writes anything, so the test
11264 # for an empty output file should find an empty output
11265 # file and conclude that unaligned accesses don't work).
11266 #
11267 # This run-time test won't work if you're cross-compiling, so
11268 # in order to support cross-compiling for a particular CPU,
11269 # we have to wire in the list of CPU types anyway, as far as
11270 # I know, so perhaps we should just have a set of CPUs on
11271 # which we know it doesn't work, a set of CPUs on which we
11272 # know it does work, and have the script just fail on other
11273 # cpu types and update it when such a failure occurs.
11274 #
11275 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
11276 ac_cv_lbl_unaligned_fail=yes
11277 ;;
11278
11279 *)
11280 cat >conftest.c <<EOF
11281 # include <sys/types.h>
11282 # include <sys/wait.h>
11283 # include <stdio.h>
11284 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11285 main() {
11286 unsigned int i;
11287 pid_t pid;
11288 int status;
11289 /* avoid "core dumped" message */
11290 pid = fork();
11291 if (pid < 0)
11292 exit(2);
11293 if (pid > 0) {
11294 /* parent */
11295 pid = waitpid(pid, &status, 0);
11296 if (pid < 0)
11297 exit(3);
11298 exit(!WIFEXITED(status));
11299 }
11300 /* child */
11301 i = *(unsigned int *)&a[1];
11302 printf("%d\n", i);
11303 exit(0);
11304 }
11305 EOF
11306 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11307 conftest.c $LIBS >/dev/null 2>&1
11308 if test ! -x conftest ; then
11309 ac_cv_lbl_unaligned_fail=yes
11310 else
11311 ./conftest >conftest.out
11312 if test ! -s conftest.out ; then
11313 ac_cv_lbl_unaligned_fail=yes
11314 else
11315 ac_cv_lbl_unaligned_fail=no
11316 fi
11317 fi
11318 rm -f conftest* core core.conftest
11319 ;;
11320 esac
11321 fi
11322
11323 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11324 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11325 if test $ac_cv_lbl_unaligned_fail = yes ; then
11326 cat >>confdefs.h <<\_ACEOF
11327 #define LBL_ALIGN 1
11328 _ACEOF
11329
11330 fi
11331
11332
11333 echo "$as_me:$LINENO: checking for h_errno" >&5
11334 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11335 if test "${ac_cv_var_h_errno+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338 cat >conftest.$ac_ext <<_ACEOF
11339 #line $LINENO "configure"
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345
11346 # include <sys/types.h>
11347 # include <netdb.h>
11348 int
11349 main ()
11350 {
11351 int foo = h_errno;
11352 ;
11353 return 0;
11354 }
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -s conftest.$ac_objext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11365 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 ac_cv_var_h_errno=yes
11369 else
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 ac_cv_var_h_errno=no
11374 fi
11375 rm -f conftest.$ac_objext conftest.$ac_ext
11376 fi
11377
11378 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11379 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11380 if test "$ac_cv_var_h_errno" = "yes"; then
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_H_ERRNO 1
11383 _ACEOF
11384
11385 fi
11386
11387
11388
11389 # Check whether --with-crypto or --without-crypto was given.
11390 if test "${with_crypto+set}" = set; then
11391 withval="$with_crypto"
11392
11393 else
11394
11395 echo "$as_me:$LINENO: checking for SSLeay" >&5
11396 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11397 ac_cv_ssleay_path=no
11398 incdir=no
11399
11400 Xprefix=`eval echo $prefix`
11401
11402 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
11403 #
11404 # XXX - is there a better way to check if a given library is
11405 # in a given directory than checking each of the possible
11406 # shared library suffixes?
11407 #
11408 # Are there any other suffixes we need to look for? Do we have to
11409 # worry about ".so.{version}"?
11410 #
11411 # Or should we just look for "libcrypto.*"?
11412 #
11413 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
11414 -f $dir/lib/libcrypto.so -o \
11415 -f $dir/lib/libcrypto.sl -o \
11416 -f $dir/lib/libcrypto.dylib \); then
11417 ac_cv_ssleay_path=$dir
11418 fi
11419 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
11420 incdir="-I$dir/include"
11421 fi
11422 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11423 break;
11424 else
11425 ac_cv_ssleay_path=no
11426 incdir=no
11427 fi
11428 done
11429 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11430 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11431 if test "$ac_cv_ssleay_path" != no; then
11432 V_INCLS="$V_INCLS $incdir"
11433 LDFLAGS="-L$dir/lib $LDFLAGS"
11434 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11435 LIBS="$LIBS -lRSAglue"
11436 fi
11437 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11438 LIBS="$LIBS -lrsaref"
11439 fi
11440
11441 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11442 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11443 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446 ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-lcrypto $LIBS"
11448 cat >conftest.$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11450 /* confdefs.h. */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455
11456 /* Override any gcc2 internal prototype to avoid an error. */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 /* We use char because int might match the return type of a gcc2
11461 builtin and then its argument prototype would still apply. */
11462 char DES_cbc_encrypt ();
11463 int
11464 main ()
11465 {
11466 DES_cbc_encrypt ();
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 rm -f conftest.$ac_objext conftest$ac_exeext
11472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11473 (eval $ac_link) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11484 else
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 ac_cv_lib_crypto_DES_cbc_encrypt=no
11489 fi
11490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11492 fi
11493 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11494 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11495 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497 #define HAVE_LIBCRYPTO 1
11498 _ACEOF
11499
11500 LIBS="-lcrypto $LIBS"
11501
11502 fi
11503
11504
11505 CPPFLAGS="$CPPFLAGS $V_INCLS"
11506
11507 for ac_header in openssl/evp.h
11508 do
11509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11511 echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 fi
11516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11518 else
11519 # Is the header compilable?
11520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11524 /* confdefs.h. */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #include <$ac_header>
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try='test -s conftest.$ac_objext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_header_compiler=yes
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 ac_header_compiler=no
11550 fi
11551 rm -f conftest.$ac_objext conftest.$ac_ext
11552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11553 echo "${ECHO_T}$ac_header_compiler" >&6
11554
11555 # Is the header present?
11556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11558 cat >conftest.$ac_ext <<_ACEOF
11559 #line $LINENO "configure"
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include <$ac_header>
11566 _ACEOF
11567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null; then
11575 if test -s conftest.err; then
11576 ac_cpp_err=$ac_c_preproc_warn_flag
11577 else
11578 ac_cpp_err=
11579 fi
11580 else
11581 ac_cpp_err=yes
11582 fi
11583 if test -z "$ac_cpp_err"; then
11584 ac_header_preproc=yes
11585 else
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589 ac_header_preproc=no
11590 fi
11591 rm -f conftest.err conftest.$ac_ext
11592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11593 echo "${ECHO_T}$ac_header_preproc" >&6
11594
11595 # So? What about this header?
11596 case $ac_header_compiler:$ac_header_preproc in
11597 yes:no )
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602 (
11603 cat <<\_ASBOX
11604 ## ------------------------------------ ##
11605 ## Report this to bug-autoconf@gnu.org. ##
11606 ## ------------------------------------ ##
11607 _ASBOX
11608 ) |
11609 sed "s/^/$as_me: WARNING: /" >&2
11610 ;;
11611 no:yes )
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11618 (
11619 cat <<\_ASBOX
11620 ## ------------------------------------ ##
11621 ## Report this to bug-autoconf@gnu.org. ##
11622 ## ------------------------------------ ##
11623 _ASBOX
11624 ) |
11625 sed "s/^/$as_me: WARNING: /" >&2
11626 ;;
11627 esac
11628 echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 eval "$as_ac_Header=$ac_header_preproc"
11634 fi
11635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11637
11638 fi
11639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642 _ACEOF
11643
11644 fi
11645
11646 done
11647
11648 fi
11649
11650 fi;
11651
11652 if test "$missing_includes" = "yes"; then
11653 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
11654 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
11655 fi
11656
11657
11658
11659
11660
11661
11662
11663
11664 # Find a good install program. We prefer a C program (faster),
11665 # so one script is as good as another. But avoid the broken or
11666 # incompatible versions:
11667 # SysV /etc/install, /usr/sbin/install
11668 # SunOS /usr/etc/install
11669 # IRIX /sbin/install
11670 # AIX /bin/install
11671 # AmigaOS /C/install, which installs bootblocks on floppy discs
11672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11675 # ./install, which can be erroneously created by make from ./install.sh.
11676 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11677 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11678 if test -z "$INSTALL"; then
11679 if test "${ac_cv_path_install+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH
11684 do
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 # Account for people who put trailing slashes in PATH elements.
11688 case $as_dir/ in
11689 ./ | .// | /cC/* | \
11690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11691 /usr/ucb/* ) ;;
11692 *)
11693 # OSF1 and SCO ODT 3.0 have their own names for install.
11694 # Don't use installbsd from OSF since it installs stuff as root
11695 # by default.
11696 for ac_prog in ginstall scoinst install; do
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11699 if test $ac_prog = install &&
11700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11701 # AIX install. It has an incompatible calling convention.
11702 :
11703 elif test $ac_prog = install &&
11704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11705 # program-specific install script used by HP pwplus--don't use.
11706 :
11707 else
11708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11709 break 3
11710 fi
11711 fi
11712 done
11713 done
11714 ;;
11715 esac
11716 done
11717
11718
11719 fi
11720 if test "${ac_cv_path_install+set}" = set; then
11721 INSTALL=$ac_cv_path_install
11722 else
11723 # As a last resort, use the slow shell script. We don't cache a
11724 # path for INSTALL within a source directory, because that will
11725 # break other packages using the cache if that directory is
11726 # removed, or if the path is relative.
11727 INSTALL=$ac_install_sh
11728 fi
11729 fi
11730 echo "$as_me:$LINENO: result: $INSTALL" >&5
11731 echo "${ECHO_T}$INSTALL" >&6
11732
11733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11734 # It thinks the first close brace ends the variable substitution.
11735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11736
11737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11738
11739 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11740
11741
11742 ac_config_headers="$ac_config_headers config.h"
11743
11744
11745 ac_config_commands="$ac_config_commands default-1"
11746
11747 ac_config_files="$ac_config_files Makefile"
11748 cat >confcache <<\_ACEOF
11749 # This file is a shell script that caches the results of configure
11750 # tests run on this system so they can be shared between configure
11751 # scripts and configure runs, see configure's option --config-cache.
11752 # It is not useful on other systems. If it contains results you don't
11753 # want to keep, you may remove or edit it.
11754 #
11755 # config.status only pays attention to the cache file if you give it
11756 # the --recheck option to rerun configure.
11757 #
11758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11760 # following values.
11761
11762 _ACEOF
11763
11764 # The following way of writing the cache mishandles newlines in values,
11765 # but we know of no workaround that is simple, portable, and efficient.
11766 # So, don't put newlines in cache variables' values.
11767 # Ultrix sh set writes to stderr and can't be redirected directly,
11768 # and sets the high bit in the cache file unless we assign to the vars.
11769 {
11770 (set) 2>&1 |
11771 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11772 *ac_space=\ *)
11773 # `set' does not quote correctly, so add quotes (double-quote
11774 # substitution turns \\\\ into \\, and sed turns \\ into \).
11775 sed -n \
11776 "s/'/'\\\\''/g;
11777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11778 ;;
11779 *)
11780 # `set' quotes correctly as required by POSIX, so do not add quotes.
11781 sed -n \
11782 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11783 ;;
11784 esac;
11785 } |
11786 sed '
11787 t clear
11788 : clear
11789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11790 t end
11791 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11792 : end' >>confcache
11793 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11794 if test -w $cache_file; then
11795 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11796 cat confcache >$cache_file
11797 else
11798 echo "not updating unwritable cache $cache_file"
11799 fi
11800 fi
11801 rm -f confcache
11802
11803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11804 # Let make expand exec_prefix.
11805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11806
11807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11809 # trailing colons and then remove the whole line if VPATH becomes empty
11810 # (actually we leave an empty line to preserve line numbers).
11811 if test "x$srcdir" = x.; then
11812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11813 s/:*\$(srcdir):*/:/;
11814 s/:*\${srcdir}:*/:/;
11815 s/:*@srcdir@:*/:/;
11816 s/^\([^=]*=[ ]*\):*/\1/;
11817 s/:*$//;
11818 s/^[^=]*=[ ]*$//;
11819 }'
11820 fi
11821
11822 DEFS=-DHAVE_CONFIG_H
11823
11824 ac_libobjs=
11825 ac_ltlibobjs=
11826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11827 # 1. Remove the extension, and $U if already installed.
11828 ac_i=`echo "$ac_i" |
11829 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11830 # 2. Add them.
11831 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11832 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11833 done
11834 LIBOBJS=$ac_libobjs
11835
11836 LTLIBOBJS=$ac_ltlibobjs
11837
11838
11839
11840 : ${CONFIG_STATUS=./config.status}
11841 ac_clean_files_save=$ac_clean_files
11842 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11843 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11844 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11845 cat >$CONFIG_STATUS <<_ACEOF
11846 #! $SHELL
11847 # Generated by $as_me.
11848 # Run this file to recreate the current configuration.
11849 # Compiler output produced by configure, useful for debugging
11850 # configure, is in config.log if it exists.
11851
11852 debug=false
11853 ac_cs_recheck=false
11854 ac_cs_silent=false
11855 SHELL=\${CONFIG_SHELL-$SHELL}
11856 _ACEOF
11857
11858 cat >>$CONFIG_STATUS <<\_ACEOF
11859 ## --------------------- ##
11860 ## M4sh Initialization. ##
11861 ## --------------------- ##
11862
11863 # Be Bourne compatible
11864 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11865 emulate sh
11866 NULLCMD=:
11867 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11868 # is contrary to our usage. Disable this feature.
11869 alias -g '${1+"$@"}'='"$@"'
11870 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11871 set -o posix
11872 fi
11873
11874 # Support unset when possible.
11875 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11876 as_unset=unset
11877 else
11878 as_unset=false
11879 fi
11880
11881
11882 # Work around bugs in pre-3.0 UWIN ksh.
11883 $as_unset ENV MAIL MAILPATH
11884 PS1='$ '
11885 PS2='> '
11886 PS4='+ '
11887
11888 # NLS nuisances.
11889 for as_var in \
11890 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11891 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11892 LC_TELEPHONE LC_TIME
11893 do
11894 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11895 eval $as_var=C; export $as_var
11896 else
11897 $as_unset $as_var
11898 fi
11899 done
11900
11901 # Required to use basename.
11902 if expr a : '\(a\)' >/dev/null 2>&1; then
11903 as_expr=expr
11904 else
11905 as_expr=false
11906 fi
11907
11908 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11909 as_basename=basename
11910 else
11911 as_basename=false
11912 fi
11913
11914
11915 # Name of the executable.
11916 as_me=`$as_basename "$0" ||
11917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11918 X"$0" : 'X\(//\)$' \| \
11919 X"$0" : 'X\(/\)$' \| \
11920 . : '\(.\)' 2>/dev/null ||
11921 echo X/"$0" |
11922 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11923 /^X\/\(\/\/\)$/{ s//\1/; q; }
11924 /^X\/\(\/\).*/{ s//\1/; q; }
11925 s/.*/./; q'`
11926
11927
11928 # PATH needs CR, and LINENO needs CR and PATH.
11929 # Avoid depending upon Character Ranges.
11930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11933 as_cr_digits='0123456789'
11934 as_cr_alnum=$as_cr_Letters$as_cr_digits
11935
11936 # The user is always right.
11937 if test "${PATH_SEPARATOR+set}" != set; then
11938 echo "#! /bin/sh" >conf$$.sh
11939 echo "exit 0" >>conf$$.sh
11940 chmod +x conf$$.sh
11941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11942 PATH_SEPARATOR=';'
11943 else
11944 PATH_SEPARATOR=:
11945 fi
11946 rm -f conf$$.sh
11947 fi
11948
11949
11950 as_lineno_1=$LINENO
11951 as_lineno_2=$LINENO
11952 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11953 test "x$as_lineno_1" != "x$as_lineno_2" &&
11954 test "x$as_lineno_3" = "x$as_lineno_2" || {
11955 # Find who we are. Look in the path if we contain no path at all
11956 # relative or not.
11957 case $0 in
11958 *[\\/]* ) as_myself=$0 ;;
11959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11965 done
11966
11967 ;;
11968 esac
11969 # We did not find ourselves, most probably we were run as `sh COMMAND'
11970 # in which case we are not to be found in the path.
11971 if test "x$as_myself" = x; then
11972 as_myself=$0
11973 fi
11974 if test ! -f "$as_myself"; then
11975 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11976 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11977 { (exit 1); exit 1; }; }
11978 fi
11979 case $CONFIG_SHELL in
11980 '')
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11983 do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
11986 for as_base in sh bash ksh sh5; do
11987 case $as_dir in
11988 /*)
11989 if ("$as_dir/$as_base" -c '
11990 as_lineno_1=$LINENO
11991 as_lineno_2=$LINENO
11992 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11993 test "x$as_lineno_1" != "x$as_lineno_2" &&
11994 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11995 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11996 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11997 CONFIG_SHELL=$as_dir/$as_base
11998 export CONFIG_SHELL
11999 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12000 fi;;
12001 esac
12002 done
12003 done
12004 ;;
12005 esac
12006
12007 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12008 # uniformly replaced by the line number. The first 'sed' inserts a
12009 # line-number line before each line; the second 'sed' does the real
12010 # work. The second script uses 'N' to pair each line-number line
12011 # with the numbered line, and appends trailing '-' during
12012 # substitution so that $LINENO is not a special case at line end.
12013 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12014 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12015 sed '=' <$as_myself |
12016 sed '
12017 N
12018 s,$,-,
12019 : loop
12020 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12021 t loop
12022 s,-$,,
12023 s,^['$as_cr_digits']*\n,,
12024 ' >$as_me.lineno &&
12025 chmod +x $as_me.lineno ||
12026 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12027 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12028 { (exit 1); exit 1; }; }
12029
12030 # Don't try to exec as it changes $[0], causing all sort of problems
12031 # (the dirname of $[0] is not the place where we might find the
12032 # original and so on. Autoconf is especially sensible to this).
12033 . ./$as_me.lineno
12034 # Exit status is that of the last command.
12035 exit
12036 }
12037
12038
12039 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12040 *c*,-n*) ECHO_N= ECHO_C='
12041 ' ECHO_T=' ' ;;
12042 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12043 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12044 esac
12045
12046 if expr a : '\(a\)' >/dev/null 2>&1; then
12047 as_expr=expr
12048 else
12049 as_expr=false
12050 fi
12051
12052 rm -f conf$$ conf$$.exe conf$$.file
12053 echo >conf$$.file
12054 if ln -s conf$$.file conf$$ 2>/dev/null; then
12055 # We could just check for DJGPP; but this test a) works b) is more generic
12056 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12057 if test -f conf$$.exe; then
12058 # Don't use ln at all; we don't have any links
12059 as_ln_s='cp -p'
12060 else
12061 as_ln_s='ln -s'
12062 fi
12063 elif ln conf$$.file conf$$ 2>/dev/null; then
12064 as_ln_s=ln
12065 else
12066 as_ln_s='cp -p'
12067 fi
12068 rm -f conf$$ conf$$.exe conf$$.file
12069
12070 if mkdir -p . 2>/dev/null; then
12071 as_mkdir_p=:
12072 else
12073 as_mkdir_p=false
12074 fi
12075
12076 as_executable_p="test -f"
12077
12078 # Sed expression to map a string onto a valid CPP name.
12079 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12080
12081 # Sed expression to map a string onto a valid variable name.
12082 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12083
12084
12085 # IFS
12086 # We need space, tab and new line, in precisely that order.
12087 as_nl='
12088 '
12089 IFS=" $as_nl"
12090
12091 # CDPATH.
12092 $as_unset CDPATH
12093
12094 exec 6>&1
12095
12096 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12097 # report actual input values of CONFIG_FILES etc. instead of their
12098 # values after options handling. Logging --version etc. is OK.
12099 exec 5>>config.log
12100 {
12101 echo
12102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12103 ## Running $as_me. ##
12104 _ASBOX
12105 } >&5
12106 cat >&5 <<_CSEOF
12107
12108 This file was extended by $as_me, which was
12109 generated by GNU Autoconf 2.57. Invocation command line was
12110
12111 CONFIG_FILES = $CONFIG_FILES
12112 CONFIG_HEADERS = $CONFIG_HEADERS
12113 CONFIG_LINKS = $CONFIG_LINKS
12114 CONFIG_COMMANDS = $CONFIG_COMMANDS
12115 $ $0 $@
12116
12117 _CSEOF
12118 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12119 echo >&5
12120 _ACEOF
12121
12122 # Files that config.status was made for.
12123 if test -n "$ac_config_files"; then
12124 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12125 fi
12126
12127 if test -n "$ac_config_headers"; then
12128 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12129 fi
12130
12131 if test -n "$ac_config_links"; then
12132 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12133 fi
12134
12135 if test -n "$ac_config_commands"; then
12136 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12137 fi
12138
12139 cat >>$CONFIG_STATUS <<\_ACEOF
12140
12141 ac_cs_usage="\
12142 \`$as_me' instantiates files from templates according to the
12143 current configuration.
12144
12145 Usage: $0 [OPTIONS] [FILE]...
12146
12147 -h, --help print this help, then exit
12148 -V, --version print version number, then exit
12149 -q, --quiet do not print progress messages
12150 -d, --debug don't remove temporary files
12151 --recheck update $as_me by reconfiguring in the same conditions
12152 --file=FILE[:TEMPLATE]
12153 instantiate the configuration file FILE
12154 --header=FILE[:TEMPLATE]
12155 instantiate the configuration header FILE
12156
12157 Configuration files:
12158 $config_files
12159
12160 Configuration headers:
12161 $config_headers
12162
12163 Configuration commands:
12164 $config_commands
12165
12166 Report bugs to <bug-autoconf@gnu.org>."
12167 _ACEOF
12168
12169 cat >>$CONFIG_STATUS <<_ACEOF
12170 ac_cs_version="\\
12171 config.status
12172 configured by $0, generated by GNU Autoconf 2.57,
12173 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12174
12175 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12176 Free Software Foundation, Inc.
12177 This config.status script is free software; the Free Software Foundation
12178 gives unlimited permission to copy, distribute and modify it."
12179 srcdir=$srcdir
12180 INSTALL="$INSTALL"
12181 _ACEOF
12182
12183 cat >>$CONFIG_STATUS <<\_ACEOF
12184 # If no file are specified by the user, then we need to provide default
12185 # value. By we need to know if files were specified by the user.
12186 ac_need_defaults=:
12187 while test $# != 0
12188 do
12189 case $1 in
12190 --*=*)
12191 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12192 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12193 ac_shift=:
12194 ;;
12195 -*)
12196 ac_option=$1
12197 ac_optarg=$2
12198 ac_shift=shift
12199 ;;
12200 *) # This is not an option, so the user has probably given explicit
12201 # arguments.
12202 ac_option=$1
12203 ac_need_defaults=false;;
12204 esac
12205
12206 case $ac_option in
12207 # Handling of the options.
12208 _ACEOF
12209 cat >>$CONFIG_STATUS <<\_ACEOF
12210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12211 ac_cs_recheck=: ;;
12212 --version | --vers* | -V )
12213 echo "$ac_cs_version"; exit 0 ;;
12214 --he | --h)
12215 # Conflict between --help and --header
12216 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12217 Try \`$0 --help' for more information." >&5
12218 echo "$as_me: error: ambiguous option: $1
12219 Try \`$0 --help' for more information." >&2;}
12220 { (exit 1); exit 1; }; };;
12221 --help | --hel | -h )
12222 echo "$ac_cs_usage"; exit 0 ;;
12223 --debug | --d* | -d )
12224 debug=: ;;
12225 --file | --fil | --fi | --f )
12226 $ac_shift
12227 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12228 ac_need_defaults=false;;
12229 --header | --heade | --head | --hea )
12230 $ac_shift
12231 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12232 ac_need_defaults=false;;
12233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12235 ac_cs_silent=: ;;
12236
12237 # This is an error.
12238 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12239 Try \`$0 --help' for more information." >&5
12240 echo "$as_me: error: unrecognized option: $1
12241 Try \`$0 --help' for more information." >&2;}
12242 { (exit 1); exit 1; }; } ;;
12243
12244 *) ac_config_targets="$ac_config_targets $1" ;;
12245
12246 esac
12247 shift
12248 done
12249
12250 ac_configure_extra_args=
12251
12252 if $ac_cs_silent; then
12253 exec 6>/dev/null
12254 ac_configure_extra_args="$ac_configure_extra_args --silent"
12255 fi
12256
12257 _ACEOF
12258 cat >>$CONFIG_STATUS <<_ACEOF
12259 if \$ac_cs_recheck; then
12260 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12261 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12262 fi
12263
12264 _ACEOF
12265
12266 cat >>$CONFIG_STATUS <<_ACEOF
12267 #
12268 # INIT-COMMANDS section.
12269 #
12270
12271
12272
12273 _ACEOF
12274
12275
12276
12277 cat >>$CONFIG_STATUS <<\_ACEOF
12278 for ac_config_target in $ac_config_targets
12279 do
12280 case "$ac_config_target" in
12281 # Handling of arguments.
12282 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12283 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12284 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12285 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12286 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12287 { (exit 1); exit 1; }; };;
12288 esac
12289 done
12290
12291 # If the user did not use the arguments to specify the items to instantiate,
12292 # then the envvar interface is used. Set only those that are not.
12293 # We use the long form for the default assignment because of an extremely
12294 # bizarre bug on SunOS 4.1.3.
12295 if $ac_need_defaults; then
12296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12298 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12299 fi
12300
12301 # Have a temporary directory for convenience. Make it in the build tree
12302 # simply because there is no reason to put it here, and in addition,
12303 # creating and moving files from /tmp can sometimes cause problems.
12304 # Create a temporary directory, and hook for its removal unless debugging.
12305 $debug ||
12306 {
12307 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12308 trap '{ (exit 1); exit 1; }' 1 2 13 15
12309 }
12310
12311 # Create a (secure) tmp directory for tmp files.
12312
12313 {
12314 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12315 test -n "$tmp" && test -d "$tmp"
12316 } ||
12317 {
12318 tmp=./confstat$$-$RANDOM
12319 (umask 077 && mkdir $tmp)
12320 } ||
12321 {
12322 echo "$me: cannot create a temporary directory in ." >&2
12323 { (exit 1); exit 1; }
12324 }
12325
12326 _ACEOF
12327
12328 cat >>$CONFIG_STATUS <<_ACEOF
12329
12330 #
12331 # CONFIG_FILES section.
12332 #
12333
12334 # No need to generate the scripts if there are no CONFIG_FILES.
12335 # This happens for instance when ./config.status config.h
12336 if test -n "\$CONFIG_FILES"; then
12337 # Protect against being on the right side of a sed subst in config.status.
12338 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12339 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12340 s,@SHELL@,$SHELL,;t t
12341 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12342 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12343 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12344 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12345 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12346 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12347 s,@exec_prefix@,$exec_prefix,;t t
12348 s,@prefix@,$prefix,;t t
12349 s,@program_transform_name@,$program_transform_name,;t t
12350 s,@bindir@,$bindir,;t t
12351 s,@sbindir@,$sbindir,;t t
12352 s,@libexecdir@,$libexecdir,;t t
12353 s,@datadir@,$datadir,;t t
12354 s,@sysconfdir@,$sysconfdir,;t t
12355 s,@sharedstatedir@,$sharedstatedir,;t t
12356 s,@localstatedir@,$localstatedir,;t t
12357 s,@libdir@,$libdir,;t t
12358 s,@includedir@,$includedir,;t t
12359 s,@oldincludedir@,$oldincludedir,;t t
12360 s,@infodir@,$infodir,;t t
12361 s,@mandir@,$mandir,;t t
12362 s,@build_alias@,$build_alias,;t t
12363 s,@host_alias@,$host_alias,;t t
12364 s,@target_alias@,$target_alias,;t t
12365 s,@DEFS@,$DEFS,;t t
12366 s,@ECHO_C@,$ECHO_C,;t t
12367 s,@ECHO_N@,$ECHO_N,;t t
12368 s,@ECHO_T@,$ECHO_T,;t t
12369 s,@LIBS@,$LIBS,;t t
12370 s,@build@,$build,;t t
12371 s,@build_cpu@,$build_cpu,;t t
12372 s,@build_vendor@,$build_vendor,;t t
12373 s,@build_os@,$build_os,;t t
12374 s,@host@,$host,;t t
12375 s,@host_cpu@,$host_cpu,;t t
12376 s,@host_vendor@,$host_vendor,;t t
12377 s,@host_os@,$host_os,;t t
12378 s,@SHLICC2@,$SHLICC2,;t t
12379 s,@CC@,$CC,;t t
12380 s,@CFLAGS@,$CFLAGS,;t t
12381 s,@LDFLAGS@,$LDFLAGS,;t t
12382 s,@CPPFLAGS@,$CPPFLAGS,;t t
12383 s,@ac_ct_CC@,$ac_ct_CC,;t t
12384 s,@EXEEXT@,$EXEEXT,;t t
12385 s,@OBJEXT@,$OBJEXT,;t t
12386 s,@CPP@,$CPP,;t t
12387 s,@EGREP@,$EGREP,;t t
12388 s,@LIBOBJS@,$LIBOBJS,;t t
12389 s,@V_CCOPT@,$V_CCOPT,;t t
12390 s,@V_DEFS@,$V_DEFS,;t t
12391 s,@V_GROUP@,$V_GROUP,;t t
12392 s,@V_INCLS@,$V_INCLS,;t t
12393 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12394 s,@LOCALSRC@,$LOCALSRC,;t t
12395 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12396 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12397 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12398 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12399 CEOF
12400
12401 _ACEOF
12402
12403 cat >>$CONFIG_STATUS <<\_ACEOF
12404 # Split the substitutions into bite-sized pieces for seds with
12405 # small command number limits, like on Digital OSF/1 and HP-UX.
12406 ac_max_sed_lines=48
12407 ac_sed_frag=1 # Number of current file.
12408 ac_beg=1 # First line for current file.
12409 ac_end=$ac_max_sed_lines # Line after last line for current file.
12410 ac_more_lines=:
12411 ac_sed_cmds=
12412 while $ac_more_lines; do
12413 if test $ac_beg -gt 1; then
12414 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12415 else
12416 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12417 fi
12418 if test ! -s $tmp/subs.frag; then
12419 ac_more_lines=false
12420 else
12421 # The purpose of the label and of the branching condition is to
12422 # speed up the sed processing (if there are no `@' at all, there
12423 # is no need to browse any of the substitutions).
12424 # These are the two extra sed commands mentioned above.
12425 (echo ':t
12426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12427 if test -z "$ac_sed_cmds"; then
12428 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12429 else
12430 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12431 fi
12432 ac_sed_frag=`expr $ac_sed_frag + 1`
12433 ac_beg=$ac_end
12434 ac_end=`expr $ac_end + $ac_max_sed_lines`
12435 fi
12436 done
12437 if test -z "$ac_sed_cmds"; then
12438 ac_sed_cmds=cat
12439 fi
12440 fi # test -n "$CONFIG_FILES"
12441
12442 _ACEOF
12443 cat >>$CONFIG_STATUS <<\_ACEOF
12444 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12446 case $ac_file in
12447 - | *:- | *:-:* ) # input from stdin
12448 cat >$tmp/stdin
12449 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12451 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12453 * ) ac_file_in=$ac_file.in ;;
12454 esac
12455
12456 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12457 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12459 X"$ac_file" : 'X\(//\)[^/]' \| \
12460 X"$ac_file" : 'X\(//\)$' \| \
12461 X"$ac_file" : 'X\(/\)' \| \
12462 . : '\(.\)' 2>/dev/null ||
12463 echo X"$ac_file" |
12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12466 /^X\(\/\/\)$/{ s//\1/; q; }
12467 /^X\(\/\).*/{ s//\1/; q; }
12468 s/.*/./; q'`
12469 { if $as_mkdir_p; then
12470 mkdir -p "$ac_dir"
12471 else
12472 as_dir="$ac_dir"
12473 as_dirs=
12474 while test ! -d "$as_dir"; do
12475 as_dirs="$as_dir $as_dirs"
12476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12478 X"$as_dir" : 'X\(//\)[^/]' \| \
12479 X"$as_dir" : 'X\(//\)$' \| \
12480 X"$as_dir" : 'X\(/\)' \| \
12481 . : '\(.\)' 2>/dev/null ||
12482 echo X"$as_dir" |
12483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12485 /^X\(\/\/\)$/{ s//\1/; q; }
12486 /^X\(\/\).*/{ s//\1/; q; }
12487 s/.*/./; q'`
12488 done
12489 test ! -n "$as_dirs" || mkdir $as_dirs
12490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12491 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12492 { (exit 1); exit 1; }; }; }
12493
12494 ac_builddir=.
12495
12496 if test "$ac_dir" != .; then
12497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12498 # A "../" for each directory in $ac_dir_suffix.
12499 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12500 else
12501 ac_dir_suffix= ac_top_builddir=
12502 fi
12503
12504 case $srcdir in
12505 .) # No --srcdir option. We are building in place.
12506 ac_srcdir=.
12507 if test -z "$ac_top_builddir"; then
12508 ac_top_srcdir=.
12509 else
12510 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12511 fi ;;
12512 [\\/]* | ?:[\\/]* ) # Absolute path.
12513 ac_srcdir=$srcdir$ac_dir_suffix;
12514 ac_top_srcdir=$srcdir ;;
12515 *) # Relative path.
12516 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12517 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12518 esac
12519 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12520 # absolute.
12521 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12522 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12523 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12524 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12525
12526
12527 case $INSTALL in
12528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12529 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12530 esac
12531
12532 if test x"$ac_file" != x-; then
12533 { echo "$as_me:$LINENO: creating $ac_file" >&5
12534 echo "$as_me: creating $ac_file" >&6;}
12535 rm -f "$ac_file"
12536 fi
12537 # Let's still pretend it is `configure' which instantiates (i.e., don't
12538 # use $as_me), people would be surprised to read:
12539 # /* config.h. Generated by config.status. */
12540 if test x"$ac_file" = x-; then
12541 configure_input=
12542 else
12543 configure_input="$ac_file. "
12544 fi
12545 configure_input=$configure_input"Generated from `echo $ac_file_in |
12546 sed 's,.*/,,'` by configure."
12547
12548 # First look for the input files in the build tree, otherwise in the
12549 # src tree.
12550 ac_file_inputs=`IFS=:
12551 for f in $ac_file_in; do
12552 case $f in
12553 -) echo $tmp/stdin ;;
12554 [\\/$]*)
12555 # Absolute (can't be DOS-style, as IFS=:)
12556 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12557 echo "$as_me: error: cannot find input file: $f" >&2;}
12558 { (exit 1); exit 1; }; }
12559 echo $f;;
12560 *) # Relative
12561 if test -f "$f"; then
12562 # Build tree
12563 echo $f
12564 elif test -f "$srcdir/$f"; then
12565 # Source tree
12566 echo $srcdir/$f
12567 else
12568 # /dev/null tree
12569 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12570 echo "$as_me: error: cannot find input file: $f" >&2;}
12571 { (exit 1); exit 1; }; }
12572 fi;;
12573 esac
12574 done` || { (exit 1); exit 1; }
12575 _ACEOF
12576 cat >>$CONFIG_STATUS <<_ACEOF
12577 sed "$ac_vpsub
12578 $extrasub
12579 _ACEOF
12580 cat >>$CONFIG_STATUS <<\_ACEOF
12581 :t
12582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12583 s,@configure_input@,$configure_input,;t t
12584 s,@srcdir@,$ac_srcdir,;t t
12585 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12586 s,@top_srcdir@,$ac_top_srcdir,;t t
12587 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12588 s,@builddir@,$ac_builddir,;t t
12589 s,@abs_builddir@,$ac_abs_builddir,;t t
12590 s,@top_builddir@,$ac_top_builddir,;t t
12591 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12592 s,@INSTALL@,$ac_INSTALL,;t t
12593 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12594 rm -f $tmp/stdin
12595 if test x"$ac_file" != x-; then
12596 mv $tmp/out $ac_file
12597 else
12598 cat $tmp/out
12599 rm -f $tmp/out
12600 fi
12601
12602 done
12603 _ACEOF
12604 cat >>$CONFIG_STATUS <<\_ACEOF
12605
12606 #
12607 # CONFIG_HEADER section.
12608 #
12609
12610 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12611 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12612 #
12613 # ac_d sets the value in "#define NAME VALUE" lines.
12614 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12615 ac_dB='[ ].*$,\1#\2'
12616 ac_dC=' '
12617 ac_dD=',;t'
12618 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12619 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12620 ac_uB='$,\1#\2define\3'
12621 ac_uC=' '
12622 ac_uD=',;t'
12623
12624 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12626 case $ac_file in
12627 - | *:- | *:-:* ) # input from stdin
12628 cat >$tmp/stdin
12629 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12630 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12631 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12633 * ) ac_file_in=$ac_file.in ;;
12634 esac
12635
12636 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12637 echo "$as_me: creating $ac_file" >&6;}
12638
12639 # First look for the input files in the build tree, otherwise in the
12640 # src tree.
12641 ac_file_inputs=`IFS=:
12642 for f in $ac_file_in; do
12643 case $f in
12644 -) echo $tmp/stdin ;;
12645 [\\/$]*)
12646 # Absolute (can't be DOS-style, as IFS=:)
12647 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12648 echo "$as_me: error: cannot find input file: $f" >&2;}
12649 { (exit 1); exit 1; }; }
12650 echo $f;;
12651 *) # Relative
12652 if test -f "$f"; then
12653 # Build tree
12654 echo $f
12655 elif test -f "$srcdir/$f"; then
12656 # Source tree
12657 echo $srcdir/$f
12658 else
12659 # /dev/null tree
12660 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12661 echo "$as_me: error: cannot find input file: $f" >&2;}
12662 { (exit 1); exit 1; }; }
12663 fi;;
12664 esac
12665 done` || { (exit 1); exit 1; }
12666 # Remove the trailing spaces.
12667 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12668
12669 _ACEOF
12670
12671 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12672 # `conftest.undefs', that substitutes the proper values into
12673 # config.h.in to produce config.h. The first handles `#define'
12674 # templates, and the second `#undef' templates.
12675 # And first: Protect against being on the right side of a sed subst in
12676 # config.status. Protect against being in an unquoted here document
12677 # in config.status.
12678 rm -f conftest.defines conftest.undefs
12679 # Using a here document instead of a string reduces the quoting nightmare.
12680 # Putting comments in sed scripts is not portable.
12681 #
12682 # `end' is used to avoid that the second main sed command (meant for
12683 # 0-ary CPP macros) applies to n-ary macro definitions.
12684 # See the Autoconf documentation for `clear'.
12685 cat >confdef2sed.sed <<\_ACEOF
12686 s/[\\&,]/\\&/g
12687 s,[\\$`],\\&,g
12688 t clear
12689 : clear
12690 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12691 t end
12692 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12693 : end
12694 _ACEOF
12695 # If some macros were called several times there might be several times
12696 # the same #defines, which is useless. Nevertheless, we may not want to
12697 # sort them, since we want the *last* AC-DEFINE to be honored.
12698 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12699 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12700 rm -f confdef2sed.sed
12701
12702 # This sed command replaces #undef with comments. This is necessary, for
12703 # example, in the case of _POSIX_SOURCE, which is predefined and required
12704 # on some systems where configure will not decide to define it.
12705 cat >>conftest.undefs <<\_ACEOF
12706 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12707 _ACEOF
12708
12709 # Break up conftest.defines because some shells have a limit on the size
12710 # of here documents, and old seds have small limits too (100 cmds).
12711 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12712 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12713 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12714 echo ' :' >>$CONFIG_STATUS
12715 rm -f conftest.tail
12716 while grep . conftest.defines >/dev/null
12717 do
12718 # Write a limited-size here document to $tmp/defines.sed.
12719 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12720 # Speed up: don't consider the non `#define' lines.
12721 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12722 # Work around the forget-to-reset-the-flag bug.
12723 echo 't clr' >>$CONFIG_STATUS
12724 echo ': clr' >>$CONFIG_STATUS
12725 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12726 echo 'CEOF
12727 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12728 rm -f $tmp/in
12729 mv $tmp/out $tmp/in
12730 ' >>$CONFIG_STATUS
12731 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12732 rm -f conftest.defines
12733 mv conftest.tail conftest.defines
12734 done
12735 rm -f conftest.defines
12736 echo ' fi # grep' >>$CONFIG_STATUS
12737 echo >>$CONFIG_STATUS
12738
12739 # Break up conftest.undefs because some shells have a limit on the size
12740 # of here documents, and old seds have small limits too (100 cmds).
12741 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12742 rm -f conftest.tail
12743 while grep . conftest.undefs >/dev/null
12744 do
12745 # Write a limited-size here document to $tmp/undefs.sed.
12746 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12747 # Speed up: don't consider the non `#undef'
12748 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12749 # Work around the forget-to-reset-the-flag bug.
12750 echo 't clr' >>$CONFIG_STATUS
12751 echo ': clr' >>$CONFIG_STATUS
12752 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12753 echo 'CEOF
12754 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12755 rm -f $tmp/in
12756 mv $tmp/out $tmp/in
12757 ' >>$CONFIG_STATUS
12758 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12759 rm -f conftest.undefs
12760 mv conftest.tail conftest.undefs
12761 done
12762 rm -f conftest.undefs
12763
12764 cat >>$CONFIG_STATUS <<\_ACEOF
12765 # Let's still pretend it is `configure' which instantiates (i.e., don't
12766 # use $as_me), people would be surprised to read:
12767 # /* config.h. Generated by config.status. */
12768 if test x"$ac_file" = x-; then
12769 echo "/* Generated by configure. */" >$tmp/config.h
12770 else
12771 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12772 fi
12773 cat $tmp/in >>$tmp/config.h
12774 rm -f $tmp/in
12775 if test x"$ac_file" != x-; then
12776 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12777 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12778 echo "$as_me: $ac_file is unchanged" >&6;}
12779 else
12780 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12782 X"$ac_file" : 'X\(//\)[^/]' \| \
12783 X"$ac_file" : 'X\(//\)$' \| \
12784 X"$ac_file" : 'X\(/\)' \| \
12785 . : '\(.\)' 2>/dev/null ||
12786 echo X"$ac_file" |
12787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12789 /^X\(\/\/\)$/{ s//\1/; q; }
12790 /^X\(\/\).*/{ s//\1/; q; }
12791 s/.*/./; q'`
12792 { if $as_mkdir_p; then
12793 mkdir -p "$ac_dir"
12794 else
12795 as_dir="$ac_dir"
12796 as_dirs=
12797 while test ! -d "$as_dir"; do
12798 as_dirs="$as_dir $as_dirs"
12799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12801 X"$as_dir" : 'X\(//\)[^/]' \| \
12802 X"$as_dir" : 'X\(//\)$' \| \
12803 X"$as_dir" : 'X\(/\)' \| \
12804 . : '\(.\)' 2>/dev/null ||
12805 echo X"$as_dir" |
12806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12808 /^X\(\/\/\)$/{ s//\1/; q; }
12809 /^X\(\/\).*/{ s//\1/; q; }
12810 s/.*/./; q'`
12811 done
12812 test ! -n "$as_dirs" || mkdir $as_dirs
12813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12815 { (exit 1); exit 1; }; }; }
12816
12817 rm -f $ac_file
12818 mv $tmp/config.h $ac_file
12819 fi
12820 else
12821 cat $tmp/config.h
12822 rm -f $tmp/config.h
12823 fi
12824 done
12825 _ACEOF
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12827
12828 #
12829 # CONFIG_COMMANDS section.
12830 #
12831 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12832 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12833 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12834 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12835 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12836 X"$ac_dest" : 'X\(//\)[^/]' \| \
12837 X"$ac_dest" : 'X\(//\)$' \| \
12838 X"$ac_dest" : 'X\(/\)' \| \
12839 . : '\(.\)' 2>/dev/null ||
12840 echo X"$ac_dest" |
12841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12843 /^X\(\/\/\)$/{ s//\1/; q; }
12844 /^X\(\/\).*/{ s//\1/; q; }
12845 s/.*/./; q'`
12846 ac_builddir=.
12847
12848 if test "$ac_dir" != .; then
12849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12850 # A "../" for each directory in $ac_dir_suffix.
12851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12852 else
12853 ac_dir_suffix= ac_top_builddir=
12854 fi
12855
12856 case $srcdir in
12857 .) # No --srcdir option. We are building in place.
12858 ac_srcdir=.
12859 if test -z "$ac_top_builddir"; then
12860 ac_top_srcdir=.
12861 else
12862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12863 fi ;;
12864 [\\/]* | ?:[\\/]* ) # Absolute path.
12865 ac_srcdir=$srcdir$ac_dir_suffix;
12866 ac_top_srcdir=$srcdir ;;
12867 *) # Relative path.
12868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12870 esac
12871 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12872 # absolute.
12873 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12874 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12875 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12876 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12877
12878
12879 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12880 echo "$as_me: executing $ac_dest commands" >&6;}
12881 case $ac_dest in
12882 default-1 ) if test -f .devel; then
12883 echo timestamp > stamp-h
12884 cat Makefile-devel-adds >> Makefile
12885 make depend
12886 fi ;;
12887 esac
12888 done
12889 _ACEOF
12890
12891 cat >>$CONFIG_STATUS <<\_ACEOF
12892
12893 { (exit 0); exit 0; }
12894 _ACEOF
12895 chmod +x $CONFIG_STATUS
12896 ac_clean_files=$ac_clean_files_save
12897
12898
12899 # configure is writing to config.log, and then calls config.status.
12900 # config.status does its own redirection, appending to config.log.
12901 # Unfortunately, on DOS this fails, as config.log is still kept open
12902 # by configure, so config.status won't be able to write to it; its
12903 # output is simply discarded. So we exec the FD to /dev/null,
12904 # effectively closing config.log, so it can be properly (re)opened and
12905 # appended to by config.status. When coming back to configure, we
12906 # need to make the FD available again.
12907 if test "$no_create" != yes; then
12908 ac_cs_success=:
12909 ac_config_status_args=
12910 test "$silent" = yes &&
12911 ac_config_status_args="$ac_config_status_args --quiet"
12912 exec 5>/dev/null
12913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12914 exec 5>>config.log
12915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12916 # would make configure fail if this is the last instruction.
12917 $ac_cs_success || { (exit 1); exit 1; }
12918 fi
12919
12920 exit 0