]> The Tcpdump Group git mirrors - tcpdump/blob - configure
The first argument to "ascii_print_with_offset()", "ascii_print()",
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.181 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36 as_expr=expr
37 else
38 as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
48 as_ln_s='cp -p'
49 else
50 as_ln_s='ln -s'
51 fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53 as_ln_s=ln
54 else
55 as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 as_unset=unset
64 else
65 as_unset=false
66 fi
67
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS=" $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
107
108 ac_unique_file="tcpdump.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 # include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 # include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 # include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME=
186 PACKAGE_TARNAME=
187 PACKAGE_VERSION=
188 PACKAGE_STRING=
189 PACKAGE_BUGREPORT=
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
241
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 case $ac_option in
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 *) ac_optarg=yes ;;
252 esac
253 eval "enable_$ac_feature='$ac_optarg'" ;;
254
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
263
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
266 with_gas=yes ;;
267
268 -help | --help | --hel | --he | -h)
269 ac_init_help=long ;;
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
274
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
279
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
286
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
291
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir=$ac_optarg ;;
296
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
303
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
312
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir=$ac_optarg ;;
317
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
321
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
325
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
329
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
338
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix=$ac_optarg ;;
343
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
350
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
357
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
374
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
378
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir=$ac_optarg ;;
384
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir=$ac_optarg ;;
395
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site=$ac_optarg ;;
400
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir=$ac_optarg ;;
405
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
412
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
417
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
420
421 -version | --version | --versio | --versi | --vers | -V)
422 ac_init_version=: ;;
423
424 -with-* | --with-*)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case $ac_option in
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_$ac_package='$ac_optarg'" ;;
436
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
445
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
449
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
456
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
463
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
467 ;;
468
469 *=*)
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
477 export $ac_envvar ;;
478
479 *)
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 ;;
486
487 esac
488 done
489
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499 eval ac_val=$`echo $ac_var`
500 case $ac_val in
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
504 esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
510 do
511 eval ac_val=$`echo $ac_var`
512 case $ac_val in
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
516 esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
532 cross_compiling=yes
533 fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
551 fi
552 else
553 ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
559 else
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
562 fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597
598 #
599 # Report the --help message.
600 #
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
604 cat <<EOF
605 \`configure' configures this package to adapt to many kinds of systems.
606
607 Usage: $0 [OPTION]... [VAR=VALUE]...
608
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
611
612 Defaults for the options are specified in brackets.
613
614 Configuration:
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
624
625 EOF
626
627 cat <<EOF
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
630 [$ac_default_prefix]
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 [PREFIX]
633
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
638
639 For better control, use the options below.
640
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
654 EOF
655
656 cat <<\EOF
657
658 System types:
659 --build=BUILD configure for building on BUILD [guessed]
660 --host=HOST build programs to run on HOST [BUILD]
661 EOF
662 fi
663
664 if test -n "$ac_init_help"; then
665
666 cat <<\EOF
667
668 Optional Features:
669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671 --enable-smb enable possibly-buggy SMB printer default=yes
672 --disable-smb disable possibly-buggy SMB printer
673 --enable-ipv6 enable ipv6 (with ipv4) support
674 --disable-ipv6 disable ipv6 support
675
676 Optional Packages:
677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
679 --without-gcc don't use gcc
680 --with-user=USERNAME drop privileges by default to USERNAME
681 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
682 --without-crypto disable crypto support
683
684 Some influential environment variables:
685 CC C compiler command
686 CFLAGS C compiler flags
687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
688 nonstandard directory <lib dir>
689 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
690 headers in a nonstandard directory <include dir>
691 CPP C preprocessor
692
693 Use these variables to override the choices made by `configure' or to help
694 it to find libraries and programs with nonstandard names/locations.
695
696 EOF
697 fi
698
699 if test "$ac_init_help" = "recursive"; then
700 # If there are subdirs, report their specific --help.
701 ac_popdir=`pwd`
702 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
703 cd $ac_subdir
704 # A "../" for each directory in /$ac_subdir.
705 ac_dots=`echo $ac_subdir |
706 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
707
708 case $srcdir in
709 .) # No --srcdir option. We are building in place.
710 ac_sub_srcdir=$srcdir ;;
711 [\\/]* | ?:[\\/]* ) # Absolute path.
712 ac_sub_srcdir=$srcdir/$ac_subdir ;;
713 *) # Relative path.
714 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
715 esac
716
717 # Check for guested configure; otherwise get Cygnus style configure.
718 if test -f $ac_sub_srcdir/configure.gnu; then
719 echo
720 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
721 elif test -f $ac_sub_srcdir/configure; then
722 echo
723 $SHELL $ac_sub_srcdir/configure --help=recursive
724 elif test -f $ac_sub_srcdir/configure.ac ||
725 test -f $ac_sub_srcdir/configure.in; then
726 echo
727 $ac_configure --help
728 else
729 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
730 fi
731 cd $ac_popdir
732 done
733 fi
734
735 test -n "$ac_init_help" && exit 0
736 if $ac_init_version; then
737 cat <<\EOF
738
739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
740 Free Software Foundation, Inc.
741 This configure script is free software; the Free Software Foundation
742 gives unlimited permission to copy, distribute and modify it.
743 EOF
744 exit 0
745 fi
746 exec 5>config.log
747 cat >&5 <<EOF
748 This file contains any messages produced by compilers while
749 running configure, to aid debugging if configure makes a mistake.
750
751 It was created by $as_me, which was
752 generated by GNU Autoconf 2.52. Invocation command line was
753
754 $ $0 $@
755
756 EOF
757 {
758 cat <<_ASUNAME
759 ## ---------- ##
760 ## Platform. ##
761 ## ---------- ##
762
763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
768
769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
771
772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
775 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
779
780 PATH = $PATH
781
782 _ASUNAME
783 } >&5
784
785 cat >&5 <<EOF
786 ## ------------ ##
787 ## Core tests. ##
788 ## ------------ ##
789
790 EOF
791
792 # Keep a trace of the command line.
793 # Strip out --no-create and --no-recursion so they do not pile up.
794 # Also quote any args containing shell meta-characters.
795 ac_configure_args=
796 ac_sep=
797 for ac_arg
798 do
799 case $ac_arg in
800 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
801 | --no-cr | --no-c) ;;
802 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
803 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
804 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
806 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
807 ac_sep=" " ;;
808 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
809 ac_sep=" " ;;
810 esac
811 # Get rid of the leading space.
812 done
813
814 # When interrupted or exit'd, cleanup temporary files, and complete
815 # config.log. We remove comments because anyway the quotes in there
816 # would cause problems or look ugly.
817 trap 'exit_status=$?
818 # Save into config.log some information that might help in debugging.
819 echo >&5
820 echo "## ----------------- ##" >&5
821 echo "## Cache variables. ##" >&5
822 echo "## ----------------- ##" >&5
823 echo >&5
824 # The following way of writing the cache mishandles newlines in values,
825 {
826 (set) 2>&1 |
827 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
828 *ac_space=\ *)
829 sed -n \
830 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
832 ;;
833 *)
834 sed -n \
835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
836 ;;
837 esac;
838 } >&5
839 sed "/^$/d" confdefs.h >conftest.log
840 if test -s conftest.log; then
841 echo >&5
842 echo "## ------------ ##" >&5
843 echo "## confdefs.h. ##" >&5
844 echo "## ------------ ##" >&5
845 echo >&5
846 cat conftest.log >&5
847 fi
848 (echo; echo) >&5
849 test "$ac_signal" != 0 &&
850 echo "$as_me: caught signal $ac_signal" >&5
851 echo "$as_me: exit $exit_status" >&5
852 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
853 exit $exit_status
854 ' 0
855 for ac_signal in 1 2 13 15; do
856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
857 done
858 ac_signal=0
859
860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
861 rm -rf conftest* confdefs.h
862 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
863 echo >confdefs.h
864
865 # Let the site file select an alternate cache file if it wants to.
866 # Prefer explicitly selected file to automatically selected ones.
867 if test -z "$CONFIG_SITE"; then
868 if test "x$prefix" != xNONE; then
869 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
870 else
871 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
872 fi
873 fi
874 for ac_site_file in $CONFIG_SITE; do
875 if test -r "$ac_site_file"; then
876 { echo "$as_me:876: loading site script $ac_site_file" >&5
877 echo "$as_me: loading site script $ac_site_file" >&6;}
878 cat "$ac_site_file" >&5
879 . "$ac_site_file"
880 fi
881 done
882
883 if test -r "$cache_file"; then
884 # Some versions of bash will fail to source /dev/null (special
885 # files actually), so we avoid doing that.
886 if test -f "$cache_file"; then
887 { echo "$as_me:887: loading cache $cache_file" >&5
888 echo "$as_me: loading cache $cache_file" >&6;}
889 case $cache_file in
890 [\\/]* | ?:[\\/]* ) . $cache_file;;
891 *) . ./$cache_file;;
892 esac
893 fi
894 else
895 { echo "$as_me:895: creating cache $cache_file" >&5
896 echo "$as_me: creating cache $cache_file" >&6;}
897 >$cache_file
898 fi
899
900 # Check that the precious variables saved in the cache have kept the same
901 # value.
902 ac_cache_corrupted=false
903 for ac_var in `(set) 2>&1 |
904 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
906 eval ac_new_set=\$ac_env_${ac_var}_set
907 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
908 eval ac_new_val="\$ac_env_${ac_var}_value"
909 case $ac_old_set,$ac_new_set in
910 set,)
911 { echo "$as_me:911: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
913 ac_cache_corrupted=: ;;
914 ,set)
915 { echo "$as_me:915: error: \`$ac_var' was not set in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
918 ,);;
919 *)
920 if test "x$ac_old_val" != "x$ac_new_val"; then
921 { echo "$as_me:921: error: \`$ac_var' has changed since the previous run:" >&5
922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
923 { echo "$as_me:923: former value: $ac_old_val" >&5
924 echo "$as_me: former value: $ac_old_val" >&2;}
925 { echo "$as_me:925: current value: $ac_new_val" >&5
926 echo "$as_me: current value: $ac_new_val" >&2;}
927 ac_cache_corrupted=:
928 fi;;
929 esac
930 # Pass precious variables to config.status. It doesn't matter if
931 # we pass some twice (in addition to the command line arguments).
932 if test "$ac_new_set" = set; then
933 case $ac_new_val in
934 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
936 ac_configure_args="$ac_configure_args '$ac_arg'"
937 ;;
938 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
939 ;;
940 esac
941 fi
942 done
943 if $ac_cache_corrupted; then
944 { echo "$as_me:944: error: changes in the environment can compromise the build" >&5
945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
946 { { echo "$as_me:946: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
948 { (exit 1); exit 1; }; }
949 fi
950
951 ac_ext=c
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
956
957 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
958 *c*,-n*) ECHO_N= ECHO_C='
959 ' ECHO_T=' ' ;;
960 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
961 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
962 esac
963 echo "#! $SHELL" >conftest.sh
964 echo "exit 0" >>conftest.sh
965 chmod +x conftest.sh
966 if { (echo "$as_me:966: PATH=\".;.\"; conftest.sh") >&5
967 (PATH=".;."; conftest.sh) 2>&5
968 ac_status=$?
969 echo "$as_me:969: \$? = $ac_status" >&5
970 (exit $ac_status); }; then
971 ac_path_separator=';'
972 else
973 ac_path_separator=:
974 fi
975 PATH_SEPARATOR="$ac_path_separator"
976 rm -f conftest.sh
977
978 ac_aux_dir=
979 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
980 if test -f $ac_dir/install-sh; then
981 ac_aux_dir=$ac_dir
982 ac_install_sh="$ac_aux_dir/install-sh -c"
983 break
984 elif test -f $ac_dir/install.sh; then
985 ac_aux_dir=$ac_dir
986 ac_install_sh="$ac_aux_dir/install.sh -c"
987 break
988 elif test -f $ac_dir/shtool; then
989 ac_aux_dir=$ac_dir
990 ac_install_sh="$ac_aux_dir/shtool install -c"
991 break
992 fi
993 done
994 if test -z "$ac_aux_dir"; then
995 { { echo "$as_me:995: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
996 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
997 { (exit 1); exit 1; }; }
998 fi
999 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1000 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1001 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1002
1003 # Make sure we can run config.sub.
1004 $ac_config_sub sun4 >/dev/null 2>&1 ||
1005 { { echo "$as_me:1005: error: cannot run $ac_config_sub" >&5
1006 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1007 { (exit 1); exit 1; }; }
1008
1009 echo "$as_me:1009: checking build system type" >&5
1010 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1011 if test "${ac_cv_build+set}" = set; then
1012 echo $ECHO_N "(cached) $ECHO_C" >&6
1013 else
1014 ac_cv_build_alias=$build_alias
1015 test -z "$ac_cv_build_alias" &&
1016 ac_cv_build_alias=`$ac_config_guess`
1017 test -z "$ac_cv_build_alias" &&
1018 { { echo "$as_me:1018: error: cannot guess build type; you must specify one" >&5
1019 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1020 { (exit 1); exit 1; }; }
1021 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1022 { { echo "$as_me:1022: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1023 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1024 { (exit 1); exit 1; }; }
1025
1026 fi
1027 echo "$as_me:1027: result: $ac_cv_build" >&5
1028 echo "${ECHO_T}$ac_cv_build" >&6
1029 build=$ac_cv_build
1030 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1033
1034 echo "$as_me:1034: checking host system type" >&5
1035 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1036 if test "${ac_cv_host+set}" = set; then
1037 echo $ECHO_N "(cached) $ECHO_C" >&6
1038 else
1039 ac_cv_host_alias=$host_alias
1040 test -z "$ac_cv_host_alias" &&
1041 ac_cv_host_alias=$ac_cv_build_alias
1042 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1043 { { echo "$as_me:1043: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1044 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1045 { (exit 1); exit 1; }; }
1046
1047 fi
1048 echo "$as_me:1048: result: $ac_cv_host" >&5
1049 echo "${ECHO_T}$ac_cv_host" >&6
1050 host=$ac_cv_host
1051 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1052 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1053 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1054
1055 # Check whether --with-gcc or --without-gcc was given.
1056 if test "${with_gcc+set}" = set; then
1057 withval="$with_gcc"
1058
1059 fi;
1060 V_CCOPT="-O"
1061 V_INCLS=""
1062 if test "${srcdir}" != "." ; then
1063 V_INCLS="-I\$(srcdir)"
1064 fi
1065 if test "${CFLAGS+set}" = set; then
1066 LBL_CFLAGS="$CFLAGS"
1067 fi
1068 if test -z "$CC" ; then
1069 case "$host_os" in
1070
1071 bsdi*)
1072 # Extract the first word of "shlicc2", so it can be a program name with args.
1073 set dummy shlicc2; ac_word=$2
1074 echo "$as_me:1074: checking for $ac_word" >&5
1075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1076 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1077 echo $ECHO_N "(cached) $ECHO_C" >&6
1078 else
1079 if test -n "$SHLICC2"; then
1080 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1081 else
1082 ac_save_IFS=$IFS; IFS=$ac_path_separator
1083 ac_dummy="$PATH"
1084 for ac_dir in $ac_dummy; do
1085 IFS=$ac_save_IFS
1086 test -z "$ac_dir" && ac_dir=.
1087 $as_executable_p "$ac_dir/$ac_word" || continue
1088 ac_cv_prog_SHLICC2="yes"
1089 echo "$as_me:1089: found $ac_dir/$ac_word" >&5
1090 break
1091 done
1092
1093 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1094 fi
1095 fi
1096 SHLICC2=$ac_cv_prog_SHLICC2
1097 if test -n "$SHLICC2"; then
1098 echo "$as_me:1098: result: $SHLICC2" >&5
1099 echo "${ECHO_T}$SHLICC2" >&6
1100 else
1101 echo "$as_me:1101: result: no" >&5
1102 echo "${ECHO_T}no" >&6
1103 fi
1104
1105 if test $SHLICC2 = yes ; then
1106 CC=shlicc2
1107 export CC
1108 fi
1109 ;;
1110 esac
1111 fi
1112 if test -z "$CC" -a "$with_gcc" = no ; then
1113 CC=cc
1114 export CC
1115 fi
1116 ac_ext=c
1117 ac_cpp='$CPP $CPPFLAGS'
1118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1121 if test -n "$ac_tool_prefix"; then
1122 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1123 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1124 echo "$as_me:1124: checking for $ac_word" >&5
1125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1126 if test "${ac_cv_prog_CC+set}" = set; then
1127 echo $ECHO_N "(cached) $ECHO_C" >&6
1128 else
1129 if test -n "$CC"; then
1130 ac_cv_prog_CC="$CC" # Let the user override the test.
1131 else
1132 ac_save_IFS=$IFS; IFS=$ac_path_separator
1133 ac_dummy="$PATH"
1134 for ac_dir in $ac_dummy; do
1135 IFS=$ac_save_IFS
1136 test -z "$ac_dir" && ac_dir=.
1137 $as_executable_p "$ac_dir/$ac_word" || continue
1138 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1139 echo "$as_me:1139: found $ac_dir/$ac_word" >&5
1140 break
1141 done
1142
1143 fi
1144 fi
1145 CC=$ac_cv_prog_CC
1146 if test -n "$CC"; then
1147 echo "$as_me:1147: result: $CC" >&5
1148 echo "${ECHO_T}$CC" >&6
1149 else
1150 echo "$as_me:1150: result: no" >&5
1151 echo "${ECHO_T}no" >&6
1152 fi
1153
1154 fi
1155 if test -z "$ac_cv_prog_CC"; then
1156 ac_ct_CC=$CC
1157 # Extract the first word of "gcc", so it can be a program name with args.
1158 set dummy gcc; ac_word=$2
1159 echo "$as_me:1159: checking for $ac_word" >&5
1160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1162 echo $ECHO_N "(cached) $ECHO_C" >&6
1163 else
1164 if test -n "$ac_ct_CC"; then
1165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1166 else
1167 ac_save_IFS=$IFS; IFS=$ac_path_separator
1168 ac_dummy="$PATH"
1169 for ac_dir in $ac_dummy; do
1170 IFS=$ac_save_IFS
1171 test -z "$ac_dir" && ac_dir=.
1172 $as_executable_p "$ac_dir/$ac_word" || continue
1173 ac_cv_prog_ac_ct_CC="gcc"
1174 echo "$as_me:1174: found $ac_dir/$ac_word" >&5
1175 break
1176 done
1177
1178 fi
1179 fi
1180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1181 if test -n "$ac_ct_CC"; then
1182 echo "$as_me:1182: result: $ac_ct_CC" >&5
1183 echo "${ECHO_T}$ac_ct_CC" >&6
1184 else
1185 echo "$as_me:1185: result: no" >&5
1186 echo "${ECHO_T}no" >&6
1187 fi
1188
1189 CC=$ac_ct_CC
1190 else
1191 CC="$ac_cv_prog_CC"
1192 fi
1193
1194 if test -z "$CC"; then
1195 if test -n "$ac_tool_prefix"; then
1196 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1197 set dummy ${ac_tool_prefix}cc; ac_word=$2
1198 echo "$as_me:1198: checking for $ac_word" >&5
1199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1200 if test "${ac_cv_prog_CC+set}" = set; then
1201 echo $ECHO_N "(cached) $ECHO_C" >&6
1202 else
1203 if test -n "$CC"; then
1204 ac_cv_prog_CC="$CC" # Let the user override the test.
1205 else
1206 ac_save_IFS=$IFS; IFS=$ac_path_separator
1207 ac_dummy="$PATH"
1208 for ac_dir in $ac_dummy; do
1209 IFS=$ac_save_IFS
1210 test -z "$ac_dir" && ac_dir=.
1211 $as_executable_p "$ac_dir/$ac_word" || continue
1212 ac_cv_prog_CC="${ac_tool_prefix}cc"
1213 echo "$as_me:1213: found $ac_dir/$ac_word" >&5
1214 break
1215 done
1216
1217 fi
1218 fi
1219 CC=$ac_cv_prog_CC
1220 if test -n "$CC"; then
1221 echo "$as_me:1221: result: $CC" >&5
1222 echo "${ECHO_T}$CC" >&6
1223 else
1224 echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1226 fi
1227
1228 fi
1229 if test -z "$ac_cv_prog_CC"; then
1230 ac_ct_CC=$CC
1231 # Extract the first word of "cc", so it can be a program name with args.
1232 set dummy cc; ac_word=$2
1233 echo "$as_me:1233: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1237 else
1238 if test -n "$ac_ct_CC"; then
1239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1240 else
1241 ac_save_IFS=$IFS; IFS=$ac_path_separator
1242 ac_dummy="$PATH"
1243 for ac_dir in $ac_dummy; do
1244 IFS=$ac_save_IFS
1245 test -z "$ac_dir" && ac_dir=.
1246 $as_executable_p "$ac_dir/$ac_word" || continue
1247 ac_cv_prog_ac_ct_CC="cc"
1248 echo "$as_me:1248: found $ac_dir/$ac_word" >&5
1249 break
1250 done
1251
1252 fi
1253 fi
1254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1255 if test -n "$ac_ct_CC"; then
1256 echo "$as_me:1256: result: $ac_ct_CC" >&5
1257 echo "${ECHO_T}$ac_ct_CC" >&6
1258 else
1259 echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
1261 fi
1262
1263 CC=$ac_ct_CC
1264 else
1265 CC="$ac_cv_prog_CC"
1266 fi
1267
1268 fi
1269 if test -z "$CC"; then
1270 # Extract the first word of "cc", so it can be a program name with args.
1271 set dummy cc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_CC+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277 if test -n "$CC"; then
1278 ac_cv_prog_CC="$CC" # Let the user override the test.
1279 else
1280 ac_prog_rejected=no
1281 ac_save_IFS=$IFS; IFS=$ac_path_separator
1282 ac_dummy="$PATH"
1283 for ac_dir in $ac_dummy; do
1284 IFS=$ac_save_IFS
1285 test -z "$ac_dir" && ac_dir=.
1286 $as_executable_p "$ac_dir/$ac_word" || continue
1287 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1288 ac_prog_rejected=yes
1289 continue
1290 fi
1291 ac_cv_prog_CC="cc"
1292 echo "$as_me:1292: found $ac_dir/$ac_word" >&5
1293 break
1294 done
1295
1296 if test $ac_prog_rejected = yes; then
1297 # We found a bogon in the path, so make sure we never use it.
1298 set dummy $ac_cv_prog_CC
1299 shift
1300 if test $# != 0; then
1301 # We chose a different compiler from the bogus one.
1302 # However, it has the same basename, so the bogon will be chosen
1303 # first if we set CC to just the basename; use the full file name.
1304 shift
1305 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1306 shift
1307 ac_cv_prog_CC="$@"
1308 fi
1309 fi
1310 fi
1311 fi
1312 CC=$ac_cv_prog_CC
1313 if test -n "$CC"; then
1314 echo "$as_me:1314: result: $CC" >&5
1315 echo "${ECHO_T}$CC" >&6
1316 else
1317 echo "$as_me:1317: result: no" >&5
1318 echo "${ECHO_T}no" >&6
1319 fi
1320
1321 fi
1322 if test -z "$CC"; then
1323 if test -n "$ac_tool_prefix"; then
1324 for ac_prog in cl
1325 do
1326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1328 echo "$as_me:1328: checking for $ac_word" >&5
1329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1330 if test "${ac_cv_prog_CC+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1332 else
1333 if test -n "$CC"; then
1334 ac_cv_prog_CC="$CC" # Let the user override the test.
1335 else
1336 ac_save_IFS=$IFS; IFS=$ac_path_separator
1337 ac_dummy="$PATH"
1338 for ac_dir in $ac_dummy; do
1339 IFS=$ac_save_IFS
1340 test -z "$ac_dir" && ac_dir=.
1341 $as_executable_p "$ac_dir/$ac_word" || continue
1342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1343 echo "$as_me:1343: found $ac_dir/$ac_word" >&5
1344 break
1345 done
1346
1347 fi
1348 fi
1349 CC=$ac_cv_prog_CC
1350 if test -n "$CC"; then
1351 echo "$as_me:1351: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1353 else
1354 echo "$as_me:1354: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1356 fi
1357
1358 test -n "$CC" && break
1359 done
1360 fi
1361 if test -z "$CC"; then
1362 ac_ct_CC=$CC
1363 for ac_prog in cl
1364 do
1365 # Extract the first word of "$ac_prog", so it can be a program name with args.
1366 set dummy $ac_prog; ac_word=$2
1367 echo "$as_me:1367: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 else
1372 if test -n "$ac_ct_CC"; then
1373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1374 else
1375 ac_save_IFS=$IFS; IFS=$ac_path_separator
1376 ac_dummy="$PATH"
1377 for ac_dir in $ac_dummy; do
1378 IFS=$ac_save_IFS
1379 test -z "$ac_dir" && ac_dir=.
1380 $as_executable_p "$ac_dir/$ac_word" || continue
1381 ac_cv_prog_ac_ct_CC="$ac_prog"
1382 echo "$as_me:1382: found $ac_dir/$ac_word" >&5
1383 break
1384 done
1385
1386 fi
1387 fi
1388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1389 if test -n "$ac_ct_CC"; then
1390 echo "$as_me:1390: result: $ac_ct_CC" >&5
1391 echo "${ECHO_T}$ac_ct_CC" >&6
1392 else
1393 echo "$as_me:1393: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1395 fi
1396
1397 test -n "$ac_ct_CC" && break
1398 done
1399
1400 CC=$ac_ct_CC
1401 fi
1402
1403 fi
1404
1405 test -z "$CC" && { { echo "$as_me:1405: error: no acceptable cc found in \$PATH" >&5
1406 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1407 { (exit 1); exit 1; }; }
1408
1409 # Provide some information about the compiler.
1410 echo "$as_me:1410:" \
1411 "checking for C compiler version" >&5
1412 ac_compiler=`set X $ac_compile; echo $2`
1413 { (eval echo "$as_me:1413: \"$ac_compiler --version </dev/null >&5\"") >&5
1414 (eval $ac_compiler --version </dev/null >&5) 2>&5
1415 ac_status=$?
1416 echo "$as_me:1416: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1418 { (eval echo "$as_me:1418: \"$ac_compiler -v </dev/null >&5\"") >&5
1419 (eval $ac_compiler -v </dev/null >&5) 2>&5
1420 ac_status=$?
1421 echo "$as_me:1421: \$? = $ac_status" >&5
1422 (exit $ac_status); }
1423 { (eval echo "$as_me:1423: \"$ac_compiler -V </dev/null >&5\"") >&5
1424 (eval $ac_compiler -V </dev/null >&5) 2>&5
1425 ac_status=$?
1426 echo "$as_me:1426: \$? = $ac_status" >&5
1427 (exit $ac_status); }
1428
1429 cat >conftest.$ac_ext <<_ACEOF
1430 #line 1430 "configure"
1431 #include "confdefs.h"
1432
1433 int
1434 main ()
1435 {
1436
1437 ;
1438 return 0;
1439 }
1440 _ACEOF
1441 ac_clean_files_save=$ac_clean_files
1442 ac_clean_files="$ac_clean_files a.out a.exe"
1443 # Try to create an executable without -o first, disregard a.out.
1444 # It will help us diagnose broken compilers, and finding out an intuition
1445 # of exeext.
1446 echo "$as_me:1446: checking for C compiler default output" >&5
1447 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1448 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1449 if { (eval echo "$as_me:1449: \"$ac_link_default\"") >&5
1450 (eval $ac_link_default) 2>&5
1451 ac_status=$?
1452 echo "$as_me:1452: \$? = $ac_status" >&5
1453 (exit $ac_status); }; then
1454 # Find the output, starting from the most likely. This scheme is
1455 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1456 # resort.
1457 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1458 ls a.out conftest 2>/dev/null;
1459 ls a.* conftest.* 2>/dev/null`; do
1460 case $ac_file in
1461 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1462 a.out ) # We found the default executable, but exeext='' is most
1463 # certainly right.
1464 break;;
1465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1466 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1467 export ac_cv_exeext
1468 break;;
1469 * ) break;;
1470 esac
1471 done
1472 else
1473 echo "$as_me: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1475 { { echo "$as_me:1475: error: C compiler cannot create executables" >&5
1476 echo "$as_me: error: C compiler cannot create executables" >&2;}
1477 { (exit 77); exit 77; }; }
1478 fi
1479
1480 ac_exeext=$ac_cv_exeext
1481 echo "$as_me:1481: result: $ac_file" >&5
1482 echo "${ECHO_T}$ac_file" >&6
1483
1484 # Check the compiler produces executables we can run. If not, either
1485 # the compiler is broken, or we cross compile.
1486 echo "$as_me:1486: checking whether the C compiler works" >&5
1487 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1488 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1489 # If not cross compiling, check that we can run a simple program.
1490 if test "$cross_compiling" != yes; then
1491 if { ac_try='./$ac_file'
1492 { (eval echo "$as_me:1492: \"$ac_try\"") >&5
1493 (eval $ac_try) 2>&5
1494 ac_status=$?
1495 echo "$as_me:1495: \$? = $ac_status" >&5
1496 (exit $ac_status); }; }; then
1497 cross_compiling=no
1498 else
1499 if test "$cross_compiling" = maybe; then
1500 cross_compiling=yes
1501 else
1502 { { echo "$as_me:1502: error: cannot run C compiled programs.
1503 If you meant to cross compile, use \`--host'." >&5
1504 echo "$as_me: error: cannot run C compiled programs.
1505 If you meant to cross compile, use \`--host'." >&2;}
1506 { (exit 1); exit 1; }; }
1507 fi
1508 fi
1509 fi
1510 echo "$as_me:1510: result: yes" >&5
1511 echo "${ECHO_T}yes" >&6
1512
1513 rm -f a.out a.exe conftest$ac_cv_exeext
1514 ac_clean_files=$ac_clean_files_save
1515 # Check the compiler produces executables we can run. If not, either
1516 # the compiler is broken, or we cross compile.
1517 echo "$as_me:1517: checking whether we are cross compiling" >&5
1518 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1519 echo "$as_me:1519: result: $cross_compiling" >&5
1520 echo "${ECHO_T}$cross_compiling" >&6
1521
1522 echo "$as_me:1522: checking for executable suffix" >&5
1523 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1524 if { (eval echo "$as_me:1524: \"$ac_link\"") >&5
1525 (eval $ac_link) 2>&5
1526 ac_status=$?
1527 echo "$as_me:1527: \$? = $ac_status" >&5
1528 (exit $ac_status); }; then
1529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1531 # work properly (i.e., refer to `conftest.exe'), while it won't with
1532 # `rm'.
1533 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1534 case $ac_file in
1535 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1537 export ac_cv_exeext
1538 break;;
1539 * ) break;;
1540 esac
1541 done
1542 else
1543 { { echo "$as_me:1543: error: cannot compute EXEEXT: cannot compile and link" >&5
1544 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1545 { (exit 1); exit 1; }; }
1546 fi
1547
1548 rm -f conftest$ac_cv_exeext
1549 echo "$as_me:1549: result: $ac_cv_exeext" >&5
1550 echo "${ECHO_T}$ac_cv_exeext" >&6
1551
1552 rm -f conftest.$ac_ext
1553 EXEEXT=$ac_cv_exeext
1554 ac_exeext=$EXEEXT
1555 echo "$as_me:1555: checking for object suffix" >&5
1556 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1557 if test "${ac_cv_objext+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 cat >conftest.$ac_ext <<_ACEOF
1561 #line 1561 "configure"
1562 #include "confdefs.h"
1563
1564 int
1565 main ()
1566 {
1567
1568 ;
1569 return 0;
1570 }
1571 _ACEOF
1572 rm -f conftest.o conftest.obj
1573 if { (eval echo "$as_me:1573: \"$ac_compile\"") >&5
1574 (eval $ac_compile) 2>&5
1575 ac_status=$?
1576 echo "$as_me:1576: \$? = $ac_status" >&5
1577 (exit $ac_status); }; then
1578 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1579 case $ac_file in
1580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1581 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1582 break;;
1583 esac
1584 done
1585 else
1586 echo "$as_me: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1588 { { echo "$as_me:1588: error: cannot compute OBJEXT: cannot compile" >&5
1589 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1590 { (exit 1); exit 1; }; }
1591 fi
1592
1593 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1594 fi
1595 echo "$as_me:1595: result: $ac_cv_objext" >&5
1596 echo "${ECHO_T}$ac_cv_objext" >&6
1597 OBJEXT=$ac_cv_objext
1598 ac_objext=$OBJEXT
1599 echo "$as_me:1599: checking whether we are using the GNU C compiler" >&5
1600 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1601 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604 cat >conftest.$ac_ext <<_ACEOF
1605 #line 1605 "configure"
1606 #include "confdefs.h"
1607
1608 int
1609 main ()
1610 {
1611 #ifndef __GNUC__
1612 choke me
1613 #endif
1614
1615 ;
1616 return 0;
1617 }
1618 _ACEOF
1619 rm -f conftest.$ac_objext
1620 if { (eval echo "$as_me:1620: \"$ac_compile\"") >&5
1621 (eval $ac_compile) 2>&5
1622 ac_status=$?
1623 echo "$as_me:1623: \$? = $ac_status" >&5
1624 (exit $ac_status); } &&
1625 { ac_try='test -s conftest.$ac_objext'
1626 { (eval echo "$as_me:1626: \"$ac_try\"") >&5
1627 (eval $ac_try) 2>&5
1628 ac_status=$?
1629 echo "$as_me:1629: \$? = $ac_status" >&5
1630 (exit $ac_status); }; }; then
1631 ac_compiler_gnu=yes
1632 else
1633 echo "$as_me: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1635 ac_compiler_gnu=no
1636 fi
1637 rm -f conftest.$ac_objext conftest.$ac_ext
1638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1639
1640 fi
1641 echo "$as_me:1641: result: $ac_cv_c_compiler_gnu" >&5
1642 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1643 GCC=`test $ac_compiler_gnu = yes && echo yes`
1644 ac_test_CFLAGS=${CFLAGS+set}
1645 ac_save_CFLAGS=$CFLAGS
1646 CFLAGS="-g"
1647 echo "$as_me:1647: checking whether $CC accepts -g" >&5
1648 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1649 if test "${ac_cv_prog_cc_g+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652 cat >conftest.$ac_ext <<_ACEOF
1653 #line 1653 "configure"
1654 #include "confdefs.h"
1655
1656 int
1657 main ()
1658 {
1659
1660 ;
1661 return 0;
1662 }
1663 _ACEOF
1664 rm -f conftest.$ac_objext
1665 if { (eval echo "$as_me:1665: \"$ac_compile\"") >&5
1666 (eval $ac_compile) 2>&5
1667 ac_status=$?
1668 echo "$as_me:1668: \$? = $ac_status" >&5
1669 (exit $ac_status); } &&
1670 { ac_try='test -s conftest.$ac_objext'
1671 { (eval echo "$as_me:1671: \"$ac_try\"") >&5
1672 (eval $ac_try) 2>&5
1673 ac_status=$?
1674 echo "$as_me:1674: \$? = $ac_status" >&5
1675 (exit $ac_status); }; }; then
1676 ac_cv_prog_cc_g=yes
1677 else
1678 echo "$as_me: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 ac_cv_prog_cc_g=no
1681 fi
1682 rm -f conftest.$ac_objext conftest.$ac_ext
1683 fi
1684 echo "$as_me:1684: result: $ac_cv_prog_cc_g" >&5
1685 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1686 if test "$ac_test_CFLAGS" = set; then
1687 CFLAGS=$ac_save_CFLAGS
1688 elif test $ac_cv_prog_cc_g = yes; then
1689 if test "$GCC" = yes; then
1690 CFLAGS="-g -O2"
1691 else
1692 CFLAGS="-g"
1693 fi
1694 else
1695 if test "$GCC" = yes; then
1696 CFLAGS="-O2"
1697 else
1698 CFLAGS=
1699 fi
1700 fi
1701 # Some people use a C++ compiler to compile C. Since we use `exit',
1702 # in C++ we need to declare it. In case someone uses the same compiler
1703 # for both compiling C and C++ we need to have the C++ compiler decide
1704 # the declaration of exit, since it's the most demanding environment.
1705 cat >conftest.$ac_ext <<_ACEOF
1706 #ifndef __cplusplus
1707 choke me
1708 #endif
1709 _ACEOF
1710 rm -f conftest.$ac_objext
1711 if { (eval echo "$as_me:1711: \"$ac_compile\"") >&5
1712 (eval $ac_compile) 2>&5
1713 ac_status=$?
1714 echo "$as_me:1714: \$? = $ac_status" >&5
1715 (exit $ac_status); } &&
1716 { ac_try='test -s conftest.$ac_objext'
1717 { (eval echo "$as_me:1717: \"$ac_try\"") >&5
1718 (eval $ac_try) 2>&5
1719 ac_status=$?
1720 echo "$as_me:1720: \$? = $ac_status" >&5
1721 (exit $ac_status); }; }; then
1722 for ac_declaration in \
1723 ''\
1724 '#include <stdlib.h>' \
1725 'extern "C" void std::exit (int) throw (); using std::exit;' \
1726 'extern "C" void std::exit (int); using std::exit;' \
1727 'extern "C" void exit (int) throw ();' \
1728 'extern "C" void exit (int);' \
1729 'void exit (int);'
1730 do
1731 cat >conftest.$ac_ext <<_ACEOF
1732 #line 1732 "configure"
1733 #include "confdefs.h"
1734 #include <stdlib.h>
1735 $ac_declaration
1736 int
1737 main ()
1738 {
1739 exit (42);
1740 ;
1741 return 0;
1742 }
1743 _ACEOF
1744 rm -f conftest.$ac_objext
1745 if { (eval echo "$as_me:1745: \"$ac_compile\"") >&5
1746 (eval $ac_compile) 2>&5
1747 ac_status=$?
1748 echo "$as_me:1748: \$? = $ac_status" >&5
1749 (exit $ac_status); } &&
1750 { ac_try='test -s conftest.$ac_objext'
1751 { (eval echo "$as_me:1751: \"$ac_try\"") >&5
1752 (eval $ac_try) 2>&5
1753 ac_status=$?
1754 echo "$as_me:1754: \$? = $ac_status" >&5
1755 (exit $ac_status); }; }; then
1756 :
1757 else
1758 echo "$as_me: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 continue
1761 fi
1762 rm -f conftest.$ac_objext conftest.$ac_ext
1763 cat >conftest.$ac_ext <<_ACEOF
1764 #line 1764 "configure"
1765 #include "confdefs.h"
1766 $ac_declaration
1767 int
1768 main ()
1769 {
1770 exit (42);
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 rm -f conftest.$ac_objext
1776 if { (eval echo "$as_me:1776: \"$ac_compile\"") >&5
1777 (eval $ac_compile) 2>&5
1778 ac_status=$?
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit $ac_status); } &&
1781 { ac_try='test -s conftest.$ac_objext'
1782 { (eval echo "$as_me:1782: \"$ac_try\"") >&5
1783 (eval $ac_try) 2>&5
1784 ac_status=$?
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1787 break
1788 else
1789 echo "$as_me: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1791 fi
1792 rm -f conftest.$ac_objext conftest.$ac_ext
1793 done
1794 rm -f conftest*
1795 if test -n "$ac_declaration"; then
1796 echo '#ifdef __cplusplus' >>confdefs.h
1797 echo $ac_declaration >>confdefs.h
1798 echo '#endif' >>confdefs.h
1799 fi
1800
1801 else
1802 echo "$as_me: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1804 fi
1805 rm -f conftest.$ac_objext conftest.$ac_ext
1806 ac_ext=c
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811
1812 if test "$GCC" = yes ; then
1813 if test "$SHLICC2" = yes ; then
1814 ac_cv_lbl_gcc_vers=2
1815 V_CCOPT="-O2"
1816 else
1817 echo "$as_me:1817: checking gcc version" >&5
1818 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
1819 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
1823 sed -e '/^gcc version /!d' \
1824 -e 's/^gcc version //' \
1825 -e 's/ .*//' -e 's/^[^0-9]*//' \
1826 -e 's/\..*//'`
1827 fi
1828
1829 echo "$as_me:1829: result: $ac_cv_lbl_gcc_vers" >&5
1830 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
1831 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1832 V_CCOPT="-O2"
1833 fi
1834 fi
1835 else
1836 echo "$as_me:1836: checking that $CC handles ansi prototypes" >&5
1837 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
1838 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841
1842 cat >conftest.$ac_ext <<_ACEOF
1843 #line 1843 "configure"
1844 #include "confdefs.h"
1845 #include <sys/types.h>
1846 int
1847 main ()
1848 {
1849 int frob(int, char *)
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 rm -f conftest.$ac_objext
1855 if { (eval echo "$as_me:1855: \"$ac_compile\"") >&5
1856 (eval $ac_compile) 2>&5
1857 ac_status=$?
1858 echo "$as_me:1858: \$? = $ac_status" >&5
1859 (exit $ac_status); } &&
1860 { ac_try='test -s conftest.$ac_objext'
1861 { (eval echo "$as_me:1861: \"$ac_try\"") >&5
1862 (eval $ac_try) 2>&5
1863 ac_status=$?
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); }; }; then
1866 ac_cv_lbl_cc_ansi_prototypes=yes
1867 else
1868 echo "$as_me: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1870 ac_cv_lbl_cc_ansi_prototypes=no
1871 fi
1872 rm -f conftest.$ac_objext conftest.$ac_ext
1873 fi
1874
1875 echo "$as_me:1875: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
1876 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
1877 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
1878 case "$host_os" in
1879
1880 hpux*)
1881 echo "$as_me:1881: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1882 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
1883 savedcflags="$CFLAGS"
1884 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
1885 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line 1889 "configure"
1890 #include "confdefs.h"
1891 #include <sys/types.h>
1892 int
1893 main ()
1894 {
1895 int frob(int, char *)
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 rm -f conftest.$ac_objext
1901 if { (eval echo "$as_me:1901: \"$ac_compile\"") >&5
1902 (eval $ac_compile) 2>&5
1903 ac_status=$?
1904 echo "$as_me:1904: \$? = $ac_status" >&5
1905 (exit $ac_status); } &&
1906 { ac_try='test -s conftest.$ac_objext'
1907 { (eval echo "$as_me:1907: \"$ac_try\"") >&5
1908 (eval $ac_try) 2>&5
1909 ac_status=$?
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1912 ac_cv_lbl_cc_hpux_cc_aa=yes
1913 else
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1916 ac_cv_lbl_cc_hpux_cc_aa=no
1917 fi
1918 rm -f conftest.$ac_objext conftest.$ac_ext
1919 fi
1920
1921 echo "$as_me:1921: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
1922 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
1923 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
1924 { { echo "$as_me:1924: error: see the INSTALL doc for more info" >&5
1925 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
1926 { (exit 1); exit 1; }; }
1927 fi
1928 CFLAGS="$savedcflags"
1929 V_CCOPT="-Aa $V_CCOPT"
1930 cat >>confdefs.h <<\EOF
1931 #define _HPUX_SOURCE 1
1932 EOF
1933
1934 ;;
1935
1936 *)
1937 { { echo "$as_me:1937: error: see the INSTALL doc for more info" >&5
1938 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
1939 { (exit 1); exit 1; }; }
1940 ;;
1941 esac
1942 fi
1943 V_INCLS="$V_INCLS -I/usr/local/include"
1944 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1945
1946 case "$host_os" in
1947
1948 irix*)
1949 V_CCOPT="$V_CCOPT -xansi -signed -O"
1950 ;;
1951
1952 osf*)
1953 V_CCOPT="$V_CCOPT -std1 -O"
1954 ;;
1955
1956 ultrix*)
1957 echo "$as_me:1957: checking that Ultrix $CC hacks const in prototypes" >&5
1958 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
1959 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962 cat >conftest.$ac_ext <<_ACEOF
1963 #line 1963 "configure"
1964 #include "confdefs.h"
1965 #include <sys/types.h>
1966 int
1967 main ()
1968 {
1969 struct a { int b; };
1970 void c(const struct a *)
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1978 ac_status=$?
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1983 (eval $ac_try) 2>&5
1984 ac_status=$?
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 ac_cv_lbl_cc_const_proto=yes
1988 else
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1991 ac_cv_lbl_cc_const_proto=no
1992 fi
1993 rm -f conftest.$ac_objext conftest.$ac_ext
1994 fi
1995
1996 echo "$as_me:1996: result: $ac_cv_lbl_cc_const_proto" >&5
1997 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
1998 if test $ac_cv_lbl_cc_const_proto = no ; then
1999 cat >>confdefs.h <<\EOF
2000 #define const
2001 EOF
2002
2003 fi
2004 ;;
2005 esac
2006 fi
2007
2008 echo "$as_me:2008: checking for inline" >&5
2009 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2010 if test "${ac_cv_lbl_inline+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013
2014 ac_cv_lbl_inline=""
2015 ac_lbl_cc_inline=no
2016 for ac_lbl_inline in inline __inline__ __inline
2017 do
2018 cat >conftest.$ac_ext <<_ACEOF
2019 #line 2019 "configure"
2020 #include "confdefs.h"
2021 #define inline $ac_lbl_inline
2022 static inline struct iltest *foo(void);
2023 struct iltest {
2024 int iltest1;
2025 int iltest2;
2026 };
2027
2028 static inline struct iltest *
2029 foo()
2030 {
2031 static struct iltest xxx;
2032
2033 return &xxx;
2034 }
2035 int
2036 main ()
2037 {
2038
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:2044: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>&5
2046 ac_status=$?
2047 echo "$as_me:2047: \$? = $ac_status" >&5
2048 (exit $ac_status); } &&
2049 { ac_try='test -s conftest.$ac_objext'
2050 { (eval echo "$as_me:2050: \"$ac_try\"") >&5
2051 (eval $ac_try) 2>&5
2052 ac_status=$?
2053 echo "$as_me:2053: \$? = $ac_status" >&5
2054 (exit $ac_status); }; }; then
2055 ac_lbl_cc_inline=yes
2056 else
2057 echo "$as_me: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 fi
2060 rm -f conftest.$ac_objext conftest.$ac_ext
2061 if test "$ac_lbl_cc_inline" = yes ; then
2062 break;
2063 fi
2064 done
2065 if test "$ac_lbl_cc_inline" = yes ; then
2066 ac_cv_lbl_inline=$ac_lbl_inline
2067 fi
2068 fi
2069
2070 if test ! -z "$ac_cv_lbl_inline" ; then
2071 echo "$as_me:2071: result: $ac_cv_lbl_inline" >&5
2072 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2073 else
2074 echo "$as_me:2074: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078 cat >>confdefs.h <<EOF
2079 #define inline $ac_cv_lbl_inline
2080 EOF
2081
2082 echo "$as_me:2082: checking for __attribute__" >&5
2083 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2084 if test "${ac_cv___attribute__+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087
2088 cat >conftest.$ac_ext <<_ACEOF
2089 #line 2089 "configure"
2090 #include "confdefs.h"
2091
2092 #include <stdlib.h>
2093
2094 int
2095 main ()
2096 {
2097
2098 static void foo(void) __attribute__ ((noreturn));
2099
2100 static void
2101 foo(void)
2102 {
2103 exit(1);
2104 }
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:2111: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>&5
2113 ac_status=$?
2114 echo "$as_me:2114: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:2117: \"$ac_try\"") >&5
2118 (eval $ac_try) 2>&5
2119 ac_status=$?
2120 echo "$as_me:2120: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 ac_cv___attribute__=yes
2123 else
2124 echo "$as_me: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2126 ac_cv___attribute__=no
2127 fi
2128 rm -f conftest.$ac_objext conftest.$ac_ext
2129 fi
2130
2131 if test "$ac_cv___attribute__" = "yes"; then
2132
2133 cat >>confdefs.h <<\EOF
2134 #define HAVE___ATTRIBUTE__ 1
2135 EOF
2136
2137 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2138 else
2139 V_DEFS="$V_DEFS -D_U_=\"\""
2140 fi
2141 echo "$as_me:2141: result: $ac_cv___attribute__" >&5
2142 echo "${ECHO_T}$ac_cv___attribute__" >&6
2143
2144 ac_ext=c
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149 echo "$as_me:2149: checking how to run the C preprocessor" >&5
2150 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2151 # On Suns, sometimes $CPP names a directory.
2152 if test -n "$CPP" && test -d "$CPP"; then
2153 CPP=
2154 fi
2155 if test -z "$CPP"; then
2156 if test "${ac_cv_prog_CPP+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159 # Double quotes because CPP needs to be expanded
2160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2161 do
2162 ac_preproc_ok=false
2163 for ac_c_preproc_warn_flag in '' yes
2164 do
2165 # Use a header file that comes with gcc, so configuring glibc
2166 # with a fresh cross-compiler works.
2167 # On the NeXT, cc -E runs the code through the compiler's parser,
2168 # not just through cpp. "Syntax error" is here to catch this case.
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line 2170 "configure"
2171 #include "confdefs.h"
2172 #include <assert.h>
2173 Syntax error
2174 _ACEOF
2175 if { (eval echo "$as_me:2175: \"$ac_cpp conftest.$ac_ext\"") >&5
2176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2177 ac_status=$?
2178 egrep -v '^ *\+' conftest.er1 >conftest.err
2179 rm -f conftest.er1
2180 cat conftest.err >&5
2181 echo "$as_me:2181: \$? = $ac_status" >&5
2182 (exit $ac_status); } >/dev/null; then
2183 if test -s conftest.err; then
2184 ac_cpp_err=$ac_c_preproc_warn_flag
2185 else
2186 ac_cpp_err=
2187 fi
2188 else
2189 ac_cpp_err=yes
2190 fi
2191 if test -z "$ac_cpp_err"; then
2192 :
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 # Broken: fails on valid input.
2197 continue
2198 fi
2199 rm -f conftest.err conftest.$ac_ext
2200
2201 # OK, works on sane cases. Now check whether non-existent headers
2202 # can be detected and how.
2203 cat >conftest.$ac_ext <<_ACEOF
2204 #line 2204 "configure"
2205 #include "confdefs.h"
2206 #include <ac_nonexistent.h>
2207 _ACEOF
2208 if { (eval echo "$as_me:2208: \"$ac_cpp conftest.$ac_ext\"") >&5
2209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2210 ac_status=$?
2211 egrep -v '^ *\+' conftest.er1 >conftest.err
2212 rm -f conftest.er1
2213 cat conftest.err >&5
2214 echo "$as_me:2214: \$? = $ac_status" >&5
2215 (exit $ac_status); } >/dev/null; then
2216 if test -s conftest.err; then
2217 ac_cpp_err=$ac_c_preproc_warn_flag
2218 else
2219 ac_cpp_err=
2220 fi
2221 else
2222 ac_cpp_err=yes
2223 fi
2224 if test -z "$ac_cpp_err"; then
2225 # Broken: success on invalid input.
2226 continue
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2230 # Passes both tests.
2231 ac_preproc_ok=:
2232 break
2233 fi
2234 rm -f conftest.err conftest.$ac_ext
2235
2236 done
2237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2238 rm -f conftest.err conftest.$ac_ext
2239 if $ac_preproc_ok; then
2240 break
2241 fi
2242
2243 done
2244 ac_cv_prog_CPP=$CPP
2245
2246 fi
2247 CPP=$ac_cv_prog_CPP
2248 else
2249 ac_cv_prog_CPP=$CPP
2250 fi
2251 echo "$as_me:2251: result: $CPP" >&5
2252 echo "${ECHO_T}$CPP" >&6
2253 ac_preproc_ok=false
2254 for ac_c_preproc_warn_flag in '' yes
2255 do
2256 # Use a header file that comes with gcc, so configuring glibc
2257 # with a fresh cross-compiler works.
2258 # On the NeXT, cc -E runs the code through the compiler's parser,
2259 # not just through cpp. "Syntax error" is here to catch this case.
2260 cat >conftest.$ac_ext <<_ACEOF
2261 #line 2261 "configure"
2262 #include "confdefs.h"
2263 #include <assert.h>
2264 Syntax error
2265 _ACEOF
2266 if { (eval echo "$as_me:2266: \"$ac_cpp conftest.$ac_ext\"") >&5
2267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2268 ac_status=$?
2269 egrep -v '^ *\+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
2272 echo "$as_me:2272: \$? = $ac_status" >&5
2273 (exit $ac_status); } >/dev/null; then
2274 if test -s conftest.err; then
2275 ac_cpp_err=$ac_c_preproc_warn_flag
2276 else
2277 ac_cpp_err=
2278 fi
2279 else
2280 ac_cpp_err=yes
2281 fi
2282 if test -z "$ac_cpp_err"; then
2283 :
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2287 # Broken: fails on valid input.
2288 continue
2289 fi
2290 rm -f conftest.err conftest.$ac_ext
2291
2292 # OK, works on sane cases. Now check whether non-existent headers
2293 # can be detected and how.
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line 2295 "configure"
2296 #include "confdefs.h"
2297 #include <ac_nonexistent.h>
2298 _ACEOF
2299 if { (eval echo "$as_me:2299: \"$ac_cpp conftest.$ac_ext\"") >&5
2300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2301 ac_status=$?
2302 egrep -v '^ *\+' conftest.er1 >conftest.err
2303 rm -f conftest.er1
2304 cat conftest.err >&5
2305 echo "$as_me:2305: \$? = $ac_status" >&5
2306 (exit $ac_status); } >/dev/null; then
2307 if test -s conftest.err; then
2308 ac_cpp_err=$ac_c_preproc_warn_flag
2309 else
2310 ac_cpp_err=
2311 fi
2312 else
2313 ac_cpp_err=yes
2314 fi
2315 if test -z "$ac_cpp_err"; then
2316 # Broken: success on invalid input.
2317 continue
2318 else
2319 echo "$as_me: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 # Passes both tests.
2322 ac_preproc_ok=:
2323 break
2324 fi
2325 rm -f conftest.err conftest.$ac_ext
2326
2327 done
2328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2329 rm -f conftest.err conftest.$ac_ext
2330 if $ac_preproc_ok; then
2331 :
2332 else
2333 { { echo "$as_me:2333: error: C preprocessor \"$CPP\" fails sanity check" >&5
2334 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2335 { (exit 1); exit 1; }; }
2336 fi
2337
2338 ac_ext=c
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
2344 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
2345 do
2346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2347 echo "$as_me:2347: checking for $ac_header" >&5
2348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 cat >conftest.$ac_ext <<_ACEOF
2353 #line 2353 "configure"
2354 #include "confdefs.h"
2355 #include <$ac_header>
2356 _ACEOF
2357 if { (eval echo "$as_me:2357: \"$ac_cpp conftest.$ac_ext\"") >&5
2358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359 ac_status=$?
2360 egrep -v '^ *\+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:2363: \$? = $ac_status" >&5
2364 (exit $ac_status); } >/dev/null; then
2365 if test -s conftest.err; then
2366 ac_cpp_err=$ac_c_preproc_warn_flag
2367 else
2368 ac_cpp_err=
2369 fi
2370 else
2371 ac_cpp_err=yes
2372 fi
2373 if test -z "$ac_cpp_err"; then
2374 eval "$as_ac_Header=yes"
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2378 eval "$as_ac_Header=no"
2379 fi
2380 rm -f conftest.err conftest.$ac_ext
2381 fi
2382 echo "$as_me:2382: result: `eval echo '${'$as_ac_Header'}'`" >&5
2383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2385 cat >>confdefs.h <<EOF
2386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2387 EOF
2388
2389 fi
2390 done
2391
2392 for ac_header in netinet/if_ether.h
2393 do
2394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2395 echo "$as_me:2395: checking for $ac_header" >&5
2396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 cat >conftest.$ac_ext <<_ACEOF
2401 #line 2401 "configure"
2402 #include "confdefs.h"
2403 #include <sys/types.h>
2404 #include <sys/socket.h>
2405 #include <$ac_header>
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:2408: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>&5
2410 ac_status=$?
2411 echo "$as_me:2411: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:2414: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:2417: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 eval "$as_ac_Header=yes"
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 eval "$as_ac_Header=no"
2424 fi
2425 rm -f conftest.$ac_objext conftest.$ac_ext
2426 fi
2427 echo "$as_me:2427: result: `eval echo '${'$as_ac_Header'}'`" >&5
2428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2430 cat >>confdefs.h <<EOF
2431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2432 EOF
2433
2434 fi
2435 done
2436
2437 echo "$as_me:2437: checking whether time.h and sys/time.h may both be included" >&5
2438 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2439 if test "${ac_cv_header_time+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 cat >conftest.$ac_ext <<_ACEOF
2443 #line 2443 "configure"
2444 #include "confdefs.h"
2445 #include <sys/types.h>
2446 #include <sys/time.h>
2447 #include <time.h>
2448
2449 int
2450 main ()
2451 {
2452 if ((struct tm *) 0)
2453 return 0;
2454 ;
2455 return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:2459: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>&5
2461 ac_status=$?
2462 echo "$as_me:2462: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:2465: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_header_time=yes
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 ac_cv_header_time=no
2475 fi
2476 rm -f conftest.$ac_objext conftest.$ac_ext
2477 fi
2478 echo "$as_me:2478: result: $ac_cv_header_time" >&5
2479 echo "${ECHO_T}$ac_cv_header_time" >&6
2480 if test $ac_cv_header_time = yes; then
2481
2482 cat >>confdefs.h <<\EOF
2483 #define TIME_WITH_SYS_TIME 1
2484 EOF
2485
2486 fi
2487
2488 case "$host_os" in
2489
2490 linux*)
2491 echo "$as_me:2491: checking Linux kernel version" >&5
2492 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
2493 if test "$cross_compiling" = yes; then
2494 if test "${ac_cv_linux_vers+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 ac_cv_linux_vers=unknown
2498 fi
2499
2500 else
2501 if test "${ac_cv_linux_vers+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 ac_cv_linux_vers=`uname -r 2>&1 | \
2505 sed -n -e '$s/.* //' -e '$s/\..*//p'`
2506 fi
2507
2508 fi
2509 echo "$as_me:2509: result: $ac_cv_linux_vers" >&5
2510 echo "${ECHO_T}$ac_cv_linux_vers" >&6
2511 if test $ac_cv_linux_vers = unknown ; then
2512 { { echo "$as_me:2512: error: cannot determine linux version when cross-compiling" >&5
2513 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
2514 { (exit 1); exit 1; }; }
2515 fi
2516 if test $ac_cv_linux_vers -lt 2 ; then
2517 { { echo "$as_me:2517: error: version 2 or higher required; see the INSTALL doc for more info" >&5
2518 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
2519 { (exit 1); exit 1; }; }
2520 fi
2521 ;;
2522
2523 *)
2524 ;;
2525 esac
2526
2527 for ac_header in smi.h
2528 do
2529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2530 echo "$as_me:2530: checking for $ac_header" >&5
2531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 cat >conftest.$ac_ext <<_ACEOF
2536 #line 2536 "configure"
2537 #include "confdefs.h"
2538 #include <$ac_header>
2539 _ACEOF
2540 if { (eval echo "$as_me:2540: \"$ac_cpp conftest.$ac_ext\"") >&5
2541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2542 ac_status=$?
2543 egrep -v '^ *\+' conftest.er1 >conftest.err
2544 rm -f conftest.er1
2545 cat conftest.err >&5
2546 echo "$as_me:2546: \$? = $ac_status" >&5
2547 (exit $ac_status); } >/dev/null; then
2548 if test -s conftest.err; then
2549 ac_cpp_err=$ac_c_preproc_warn_flag
2550 else
2551 ac_cpp_err=
2552 fi
2553 else
2554 ac_cpp_err=yes
2555 fi
2556 if test -z "$ac_cpp_err"; then
2557 eval "$as_ac_Header=yes"
2558 else
2559 echo "$as_me: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2561 eval "$as_ac_Header=no"
2562 fi
2563 rm -f conftest.err conftest.$ac_ext
2564 fi
2565 echo "$as_me:2565: result: `eval echo '${'$as_ac_Header'}'`" >&5
2566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2568 cat >>confdefs.h <<EOF
2569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2570 EOF
2571
2572 fi
2573 done
2574
2575 echo "$as_me:2575: checking for smiInit in -lsmi" >&5
2576 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
2577 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 ac_check_lib_save_LIBS=$LIBS
2581 LIBS="-lsmi $LIBS"
2582 cat >conftest.$ac_ext <<_ACEOF
2583 #line 2583 "configure"
2584 #include "confdefs.h"
2585
2586 /* Override any gcc2 internal prototype to avoid an error. */
2587 #ifdef __cplusplus
2588 extern "C"
2589 #endif
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2592 char smiInit ();
2593 int
2594 main ()
2595 {
2596 smiInit ();
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext conftest$ac_exeext
2602 if { (eval echo "$as_me:2602: \"$ac_link\"") >&5
2603 (eval $ac_link) 2>&5
2604 ac_status=$?
2605 echo "$as_me:2605: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest$ac_exeext'
2608 { (eval echo "$as_me:2608: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:2611: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 ac_cv_lib_smi_smiInit=yes
2614 else
2615 echo "$as_me: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 ac_cv_lib_smi_smiInit=no
2618 fi
2619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2620 LIBS=$ac_check_lib_save_LIBS
2621 fi
2622 echo "$as_me:2622: result: $ac_cv_lib_smi_smiInit" >&5
2623 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
2624 if test $ac_cv_lib_smi_smiInit = yes; then
2625 cat >>confdefs.h <<EOF
2626 #define HAVE_LIBSMI 1
2627 EOF
2628
2629 LIBS="-lsmi $LIBS"
2630
2631 fi
2632
2633 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
2634 then
2635 echo "$as_me:2635: checking whether to enable libsmi" >&5
2636 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
2637 if test "$cross_compiling" = yes; then
2638 echo "$as_me:2638: result: not when cross-compiling" >&5
2639 echo "${ECHO_T}not when cross-compiling" >&6
2640 libsmi=no
2641
2642 else
2643 cat >conftest.$ac_ext <<_ACEOF
2644 #line 2644 "configure"
2645 #include "confdefs.h"
2646 /* libsmi available check */
2647 #include <smi.h>
2648 main()
2649 {
2650 int current, revision, age, n;
2651 const int required = 2;
2652 if (smiInit(""))
2653 exit(1);
2654 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
2655 exit(2);
2656 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
2657 if (n != 3)
2658 exit(3);
2659 if (required < current - age || required > current)
2660 exit(4);
2661 exit(0);
2662 }
2663
2664 _ACEOF
2665 rm -f conftest$ac_exeext
2666 if { (eval echo "$as_me:2666: \"$ac_link\"") >&5
2667 (eval $ac_link) 2>&5
2668 ac_status=$?
2669 echo "$as_me:2669: \$? = $ac_status" >&5
2670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2671 { (eval echo "$as_me:2671: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:2674: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 echo "$as_me:2676: result: yes" >&5
2677 echo "${ECHO_T}yes" >&6
2678 cat >>confdefs.h <<\EOF
2679 #define LIBSMI 1
2680 EOF
2681
2682 libsmi=yes
2683 else
2684 echo "$as_me: program exited with status $ac_status" >&5
2685 echo "$as_me: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 case $? in
2688 1) echo "$as_me:2688: result: no - smiInit failed" >&5
2689 echo "${ECHO_T}no - smiInit failed" >&6 ;;
2690 2) echo "$as_me:2690: result: no - header/library version mismatch" >&5
2691 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
2692 3) echo "$as_me:2692: result: no - can't determine library version" >&5
2693 echo "${ECHO_T}no - can't determine library version" >&6 ;;
2694 4) echo "$as_me:2694: result: no - too old" >&5
2695 echo "${ECHO_T}no - too old" >&6 ;;
2696 *) echo "$as_me:2696: result: no" >&5
2697 echo "${ECHO_T}no" >&6 ;;
2698 esac
2699 libsmi=no
2700 fi
2701 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2702 fi
2703 fi
2704
2705 echo "$as_me:2705: checking whether to enable the possibly-buggy SMB printer" >&5
2706 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
2707 # Check whether --enable-smb or --disable-smb was given.
2708 if test "${enable_smb+set}" = set; then
2709 enableval="$enable_smb"
2710
2711 else
2712 enableval=yes
2713 fi;
2714 case "$enableval" in
2715 yes) echo "$as_me:2715: result: yes" >&5
2716 echo "${ECHO_T}yes" >&6
2717 { echo "$as_me:2717: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
2718 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
2719 cat >>confdefs.h <<\EOF
2720 #define TCPDUMP_DO_SMB 1
2721 EOF
2722
2723 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
2724 ;;
2725 *) echo "$as_me:2725: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2727 ;;
2728 esac
2729
2730 # Check whether --with-user or --without-user was given.
2731 if test "${with_user+set}" = set; then
2732 withval="$with_user"
2733
2734 fi;
2735 echo "$as_me:2735: checking whether to drop root privileges by default" >&5
2736 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
2737 if test ! -z "$with_user" ; then
2738 cat >>confdefs.h <<EOF
2739 #define WITH_USER "$withval"
2740 EOF
2741
2742 echo "$as_me:2742: result: to \"$withval\"" >&5
2743 echo "${ECHO_T}to \"$withval\"" >&6
2744 else
2745 echo "$as_me:2745: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2747 fi
2748
2749 # Check whether --with-chroot or --without-chroot was given.
2750 if test "${with_chroot+set}" = set; then
2751 withval="$with_chroot"
2752
2753 fi;
2754 echo "$as_me:2754: checking whether to chroot" >&5
2755 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
2756 if test ! -z "$with_chroot" ; then
2757 cat >>confdefs.h <<EOF
2758 #define WITH_CHROOT "$withval"
2759 EOF
2760
2761 echo "$as_me:2761: result: to \"$withval\"" >&5
2762 echo "${ECHO_T}to \"$withval\"" >&6
2763 else
2764 echo "$as_me:2764: result: no" >&5
2765 echo "${ECHO_T}no" >&6
2766 fi
2767
2768 echo "$as_me:2768: checking whether to enable ipv6" >&5
2769 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
2770 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2771 if test "${enable_ipv6+set}" = set; then
2772 enableval="$enable_ipv6"
2773 case "$enableval" in
2774 yes) echo "$as_me:2774: result: yes" >&5
2775 echo "${ECHO_T}yes" >&6
2776 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"
2777 cat >>confdefs.h <<\EOF
2778 #define INET6 1
2779 EOF
2780
2781 ipv6=yes
2782 ;;
2783 *)
2784 echo "$as_me:2784: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2786 ipv6=no
2787 ;;
2788 esac
2789 else
2790 if test "$cross_compiling" = yes; then
2791 echo "$as_me:2791: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2793 ipv6=no
2794
2795 else
2796 cat >conftest.$ac_ext <<_ACEOF
2797 #line 2797 "configure"
2798 #include "confdefs.h"
2799 /* AF_INET6 available check */
2800 #include <sys/types.h>
2801 #include <sys/socket.h>
2802 main()
2803 {
2804 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
2805 exit(1);
2806 else
2807 exit(0);
2808 }
2809
2810 _ACEOF
2811 rm -f conftest$ac_exeext
2812 if { (eval echo "$as_me:2812: \"$ac_link\"") >&5
2813 (eval $ac_link) 2>&5
2814 ac_status=$?
2815 echo "$as_me:2815: \$? = $ac_status" >&5
2816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2817 { (eval echo "$as_me:2817: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:2820: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 echo "$as_me:2822: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6
2824 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"
2825 cat >>confdefs.h <<\EOF
2826 #define INET6 1
2827 EOF
2828
2829 ipv6=yes
2830 else
2831 echo "$as_me: program exited with status $ac_status" >&5
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 echo "$as_me:2834: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2836 ipv6=no
2837 fi
2838 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2839 fi
2840 fi;
2841
2842 ipv6type=unknown
2843 ipv6lib=none
2844 ipv6trylibc=no
2845
2846 if test "$ipv6" = "yes"; then
2847 echo "$as_me:2847: checking ipv6 stack type" >&5
2848 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
2849 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
2850 case $i in
2851 inria)
2852 cat >conftest.$ac_ext <<_ACEOF
2853 #line 2853 "configure"
2854 #include "confdefs.h"
2855 #include <netinet/in.h>
2856 #ifdef IPV6_INRIA_VERSION
2857 yes
2858 #endif
2859 _ACEOF
2860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2861 egrep "yes" >/dev/null 2>&1; then
2862 ipv6type=$i;
2863 CFLAGS="-DINET6 $CFLAGS"
2864 fi
2865 rm -f conftest*
2866
2867 ;;
2868 kame)
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line 2870 "configure"
2871 #include "confdefs.h"
2872 #include <netinet/in.h>
2873 #ifdef __KAME__
2874 yes
2875 #endif
2876 _ACEOF
2877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878 egrep "yes" >/dev/null 2>&1; then
2879 ipv6type=$i;
2880 ipv6lib=inet6;
2881 ipv6libdir=/usr/local/v6/lib;
2882 ipv6trylibc=yes;
2883 CFLAGS="-DINET6 $CFLAGS"
2884 fi
2885 rm -f conftest*
2886
2887 ;;
2888 linux-glibc)
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line 2890 "configure"
2891 #include "confdefs.h"
2892 #include <features.h>
2893 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
2894 yes
2895 #endif
2896 _ACEOF
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 egrep "yes" >/dev/null 2>&1; then
2899 ipv6type=$i;
2900 CFLAGS="-DINET6 $CFLAGS"
2901 fi
2902 rm -f conftest*
2903
2904 ;;
2905 linux-libinet6)
2906 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
2907 ipv6type=$i
2908 ipv6lib=inet6
2909 ipv6libdir=/usr/inet6/lib
2910 ipv6trylibc=yes;
2911 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
2912 fi
2913 ;;
2914 toshiba)
2915 cat >conftest.$ac_ext <<_ACEOF
2916 #line 2916 "configure"
2917 #include "confdefs.h"
2918 #include <sys/param.h>
2919 #ifdef _TOSHIBA_INET6
2920 yes
2921 #endif
2922 _ACEOF
2923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2924 egrep "yes" >/dev/null 2>&1; then
2925 ipv6type=$i;
2926 ipv6lib=inet6;
2927 ipv6libdir=/usr/local/v6/lib;
2928 CFLAGS="-DINET6 $CFLAGS"
2929 fi
2930 rm -f conftest*
2931
2932 ;;
2933 v6d)
2934 cat >conftest.$ac_ext <<_ACEOF
2935 #line 2935 "configure"
2936 #include "confdefs.h"
2937 #include </usr/local/v6/include/sys/v6config.h>
2938 #ifdef __V6D__
2939 yes
2940 #endif
2941 _ACEOF
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "yes" >/dev/null 2>&1; then
2944 ipv6type=$i;
2945 ipv6lib=v6;
2946 ipv6libdir=/usr/local/v6/lib;
2947 CFLAGS="-I/usr/local/v6/include $CFLAGS"
2948 fi
2949 rm -f conftest*
2950
2951 ;;
2952 zeta)
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #line 2954 "configure"
2955 #include "confdefs.h"
2956 #include <sys/param.h>
2957 #ifdef _ZETA_MINAMI_INET6
2958 yes
2959 #endif
2960 _ACEOF
2961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962 egrep "yes" >/dev/null 2>&1; then
2963 ipv6type=$i;
2964 ipv6lib=inet6;
2965 ipv6libdir=/usr/local/v6/lib;
2966 CFLAGS="-DINET6 $CFLAGS"
2967 fi
2968 rm -f conftest*
2969
2970 ;;
2971 esac
2972 if test "$ipv6type" != "unknown"; then
2973 break
2974 fi
2975 done
2976 echo "$as_me:2976: result: $ipv6type" >&5
2977 echo "${ECHO_T}$ipv6type" >&6
2978 fi
2979
2980 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
2981 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
2982 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
2983 echo "You have $ipv6lib library, using it"
2984 else
2985 if test "$ipv6trylibc" = "yes"; then
2986 echo "You do not have $ipv6lib library, using libc"
2987 else
2988 echo 'Fatal: no $ipv6lib library found. cannot continue.'
2989 echo "You need to fetch lib$ipv6lib.a from appropriate"
2990 echo 'ipv6 kit and compile beforehand.'
2991 exit 1
2992 fi
2993 fi
2994 fi
2995
2996 if test "$ipv6" = "yes"; then
2997 #
2998 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
2999 # function in libc; there are "ngetaddrinfo()" and
3000 # "ogetaddrinfo()" functions, and <netdb.h> #defines
3001 # "getaddrinfo" to be either "ngetaddrinfo" or
3002 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
3003 # or _XOPEN_SOURCE_EXTENDED are defined or not.
3004 #
3005 # So this test doesn't work on Tru64 5.1, and possibly
3006 # on other 5.x releases. This causes the configure
3007 # script to become confused, and results in libpcap
3008 # being unbuildable.
3009 #
3010 echo "$as_me:3010: checking for library containing getaddrinfo" >&5
3011 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
3012 if test "${ac_cv_search_getaddrinfo+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 ac_func_search_save_LIBS=$LIBS
3016 ac_cv_search_getaddrinfo=no
3017 cat >conftest.$ac_ext <<_ACEOF
3018 #line 3018 "configure"
3019 #include "confdefs.h"
3020
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 #ifdef __cplusplus
3023 extern "C"
3024 #endif
3025 /* We use char because int might match the return type of a gcc2
3026 builtin and then its argument prototype would still apply. */
3027 char getaddrinfo ();
3028 int
3029 main ()
3030 {
3031 getaddrinfo ();
3032 ;
3033 return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.$ac_objext conftest$ac_exeext
3037 if { (eval echo "$as_me:3037: \"$ac_link\"") >&5
3038 (eval $ac_link) 2>&5
3039 ac_status=$?
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -s conftest$ac_exeext'
3043 { (eval echo "$as_me:3043: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:3046: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_search_getaddrinfo="none required"
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3052 fi
3053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3054 if test "$ac_cv_search_getaddrinfo" = no; then
3055 for ac_lib in socket; do
3056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3057 cat >conftest.$ac_ext <<_ACEOF
3058 #line 3058 "configure"
3059 #include "confdefs.h"
3060
3061 /* Override any gcc2 internal prototype to avoid an error. */
3062 #ifdef __cplusplus
3063 extern "C"
3064 #endif
3065 /* We use char because int might match the return type of a gcc2
3066 builtin and then its argument prototype would still apply. */
3067 char getaddrinfo ();
3068 int
3069 main ()
3070 {
3071 getaddrinfo ();
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext conftest$ac_exeext
3077 if { (eval echo "$as_me:3077: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>&5
3079 ac_status=$?
3080 echo "$as_me:3080: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -s conftest$ac_exeext'
3083 { (eval echo "$as_me:3083: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:3086: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_search_getaddrinfo="-l$ac_lib"
3089 break
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3093 fi
3094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3095 done
3096 fi
3097 LIBS=$ac_func_search_save_LIBS
3098 fi
3099 echo "$as_me:3099: result: $ac_cv_search_getaddrinfo" >&5
3100 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
3101 if test "$ac_cv_search_getaddrinfo" != no; then
3102 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
3103 echo "$as_me:3103: checking getaddrinfo bug" >&5
3104 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
3105 if test "${td_cv_buggygetaddrinfo+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 if test "$cross_compiling" = yes; then
3109 td_cv_buggygetaddrinfo=yes
3110 else
3111 cat >conftest.$ac_ext <<_ACEOF
3112 #line 3112 "configure"
3113 #include "confdefs.h"
3114
3115 #include <sys/types.h>
3116 #include <netdb.h>
3117 #include <string.h>
3118 #include <sys/socket.h>
3119 #include <netinet/in.h>
3120
3121 main()
3122 {
3123 int passive, gaierr, inet4 = 0, inet6 = 0;
3124 struct addrinfo hints, *ai, *aitop;
3125 char straddr[INET6_ADDRSTRLEN], strport[16];
3126
3127 for (passive = 0; passive <= 1; passive++) {
3128 memset(&hints, 0, sizeof(hints));
3129 hints.ai_family = AF_UNSPEC;
3130 hints.ai_flags = passive ? AI_PASSIVE : 0;
3131 hints.ai_socktype = SOCK_STREAM;
3132 hints.ai_protocol = IPPROTO_TCP;
3133 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
3134 (void)gai_strerror(gaierr);
3135 goto bad;
3136 }
3137 for (ai = aitop; ai; ai = ai->ai_next) {
3138 if (ai->ai_addr == NULL ||
3139 ai->ai_addrlen == 0 ||
3140 getnameinfo(ai->ai_addr, ai->ai_addrlen,
3141 straddr, sizeof(straddr), strport, sizeof(strport),
3142 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
3143 goto bad;
3144 }
3145 switch (ai->ai_family) {
3146 case AF_INET:
3147 if (strcmp(strport, "54321") != 0) {
3148 goto bad;
3149 }
3150 if (passive) {
3151 if (strcmp(straddr, "0.0.0.0") != 0) {
3152 goto bad;
3153 }
3154 } else {
3155 if (strcmp(straddr, "127.0.0.1") != 0) {
3156 goto bad;
3157 }
3158 }
3159 inet4++;
3160 break;
3161 case AF_INET6:
3162 if (strcmp(strport, "54321") != 0) {
3163 goto bad;
3164 }
3165 if (passive) {
3166 if (strcmp(straddr, "::") != 0) {
3167 goto bad;
3168 }
3169 } else {
3170 if (strcmp(straddr, "::1") != 0) {
3171 goto bad;
3172 }
3173 }
3174 inet6++;
3175 break;
3176 case AF_UNSPEC:
3177 goto bad;
3178 break;
3179 #ifdef AF_UNIX
3180 case AF_UNIX:
3181 #else
3182 #ifdef AF_LOCAL
3183 case AF_LOCAL:
3184 #endif
3185 #endif
3186 default:
3187 /* another family support? */
3188 break;
3189 }
3190 }
3191 }
3192
3193 /* supported family should be 2, unsupported family should be 0 */
3194 if (!(inet4 == 0 || inet4 == 2))
3195 goto bad;
3196 if (!(inet6 == 0 || inet6 == 2))
3197 goto bad;
3198
3199 if (aitop)
3200 freeaddrinfo(aitop);
3201 exit(0);
3202
3203 bad:
3204 if (aitop)
3205 freeaddrinfo(aitop);
3206 exit(1);
3207 }
3208
3209 _ACEOF
3210 rm -f conftest$ac_exeext
3211 if { (eval echo "$as_me:3211: \"$ac_link\"") >&5
3212 (eval $ac_link) 2>&5
3213 ac_status=$?
3214 echo "$as_me:3214: \$? = $ac_status" >&5
3215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3216 { (eval echo "$as_me:3216: \"$ac_try\"") >&5
3217 (eval $ac_try) 2>&5
3218 ac_status=$?
3219 echo "$as_me:3219: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3221 td_cv_buggygetaddrinfo=no
3222 else
3223 echo "$as_me: program exited with status $ac_status" >&5
3224 echo "$as_me: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 td_cv_buggygetaddrinfo=yes
3227 fi
3228 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3229 fi
3230 fi
3231
3232 if test "$td_cv_buggygetaddrinfo" = no; then
3233 echo "$as_me:3233: result: good" >&5
3234 echo "${ECHO_T}good" >&6
3235 else
3236 echo "$as_me:3236: result: buggy" >&5
3237 echo "${ECHO_T}buggy" >&6
3238 fi
3239
3240 if test "$td_cv_buggygetaddrinfo" = "yes"; then
3241 #
3242 # XXX - it doesn't appear that "ipv6type" can ever be
3243 # set to "linux". Should this be testing for
3244 # "linux-glibc", or for that *or* "linux-libinet6"?
3245 # If the latter, note that "linux-libinet6" is also
3246 # the type given to some non-Linux OSes.
3247 #
3248 if test "$ipv6type" != "linux"; then
3249 echo 'Fatal: You must get working getaddrinfo() function.'
3250 echo ' or you can specify "--disable-ipv6"'.
3251 exit 1
3252 else
3253 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
3254 echo ' Better upgrade your system library to newest version'
3255 echo ' of GNU C library (aka glibc).'
3256 fi
3257 fi
3258
3259 fi
3260
3261 for ac_func in getaddrinfo getnameinfo
3262 do
3263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3264 echo "$as_me:3264: checking for $ac_func" >&5
3265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3266 if eval "test \"\${$as_ac_var+set}\" = set"; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line 3270 "configure"
3271 #include "confdefs.h"
3272 /* System header to define __stub macros and hopefully few prototypes,
3273 which can conflict with char $ac_func (); below. */
3274 #include <assert.h>
3275 /* Override any gcc2 internal prototype to avoid an error. */
3276 #ifdef __cplusplus
3277 extern "C"
3278 #endif
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3281 char $ac_func ();
3282 char (*f) ();
3283
3284 int
3285 main ()
3286 {
3287 /* The GNU C library defines this for functions which it implements
3288 to always fail with ENOSYS. Some functions are actually named
3289 something starting with __ and the normal name is an alias. */
3290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3291 choke me
3292 #else
3293 f = $ac_func;
3294 #endif
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 rm -f conftest.$ac_objext conftest$ac_exeext
3301 if { (eval echo "$as_me:3301: \"$ac_link\"") >&5
3302 (eval $ac_link) 2>&5
3303 ac_status=$?
3304 echo "$as_me:3304: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 { ac_try='test -s conftest$ac_exeext'
3307 { (eval echo "$as_me:3307: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:3310: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 eval "$as_ac_var=yes"
3313 else
3314 echo "$as_me: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3316 eval "$as_ac_var=no"
3317 fi
3318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3319 fi
3320 echo "$as_me:3320: result: `eval echo '${'$as_ac_var'}'`" >&5
3321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3322 if test `eval echo '${'$as_ac_var'}'` = yes; then
3323 cat >>confdefs.h <<EOF
3324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3325 EOF
3326
3327 else
3328 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
3329 fi
3330 done
3331
3332 fi
3333
3334 echo "$as_me:3334: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
3335 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
3336 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 cat >conftest.$ac_ext <<_ACEOF
3340 #line 3340 "configure"
3341 #include "confdefs.h"
3342 #include <netdnet/dnetdb.h>
3343
3344 _ACEOF
3345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3346 egrep "dnet_htoa" >/dev/null 2>&1; then
3347 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
3348 else
3349 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
3350 fi
3351 rm -f conftest*
3352
3353 fi
3354 echo "$as_me:3354: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
3355 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
3356 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
3357 cat >>confdefs.h <<\EOF
3358 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
3359 EOF
3360
3361 fi
3362
3363 echo "$as_me:3363: checking for ANSI C header files" >&5
3364 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3365 if test "${ac_cv_header_stdc+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line 3369 "configure"
3370 #include "confdefs.h"
3371 #include <stdlib.h>
3372 #include <stdarg.h>
3373 #include <string.h>
3374 #include <float.h>
3375
3376 _ACEOF
3377 if { (eval echo "$as_me:3377: \"$ac_cpp conftest.$ac_ext\"") >&5
3378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379 ac_status=$?
3380 egrep -v '^ *\+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
3383 echo "$as_me:3383: \$? = $ac_status" >&5
3384 (exit $ac_status); } >/dev/null; then
3385 if test -s conftest.err; then
3386 ac_cpp_err=$ac_c_preproc_warn_flag
3387 else
3388 ac_cpp_err=
3389 fi
3390 else
3391 ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394 ac_cv_header_stdc=yes
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3398 ac_cv_header_stdc=no
3399 fi
3400 rm -f conftest.err conftest.$ac_ext
3401
3402 if test $ac_cv_header_stdc = yes; then
3403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3404 cat >conftest.$ac_ext <<_ACEOF
3405 #line 3405 "configure"
3406 #include "confdefs.h"
3407 #include <string.h>
3408
3409 _ACEOF
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 egrep "memchr" >/dev/null 2>&1; then
3412 :
3413 else
3414 ac_cv_header_stdc=no
3415 fi
3416 rm -f conftest*
3417
3418 fi
3419
3420 if test $ac_cv_header_stdc = yes; then
3421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3422 cat >conftest.$ac_ext <<_ACEOF
3423 #line 3423 "configure"
3424 #include "confdefs.h"
3425 #include <stdlib.h>
3426
3427 _ACEOF
3428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3429 egrep "free" >/dev/null 2>&1; then
3430 :
3431 else
3432 ac_cv_header_stdc=no
3433 fi
3434 rm -f conftest*
3435
3436 fi
3437
3438 if test $ac_cv_header_stdc = yes; then
3439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3440 if test "$cross_compiling" = yes; then
3441 :
3442 else
3443 cat >conftest.$ac_ext <<_ACEOF
3444 #line 3444 "configure"
3445 #include "confdefs.h"
3446 #include <ctype.h>
3447 #if ((' ' & 0x0FF) == 0x020)
3448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3450 #else
3451 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3452 || ('j' <= (c) && (c) <= 'r') \
3453 || ('s' <= (c) && (c) <= 'z'))
3454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3455 #endif
3456
3457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3458 int
3459 main ()
3460 {
3461 int i;
3462 for (i = 0; i < 256; i++)
3463 if (XOR (islower (i), ISLOWER (i))
3464 || toupper (i) != TOUPPER (i))
3465 exit(2);
3466 exit (0);
3467 }
3468 _ACEOF
3469 rm -f conftest$ac_exeext
3470 if { (eval echo "$as_me:3470: \"$ac_link\"") >&5
3471 (eval $ac_link) 2>&5
3472 ac_status=$?
3473 echo "$as_me:3473: \$? = $ac_status" >&5
3474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3475 { (eval echo "$as_me:3475: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:3478: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 :
3481 else
3482 echo "$as_me: program exited with status $ac_status" >&5
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3485 ac_cv_header_stdc=no
3486 fi
3487 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3488 fi
3489 fi
3490 fi
3491 echo "$as_me:3491: result: $ac_cv_header_stdc" >&5
3492 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3493 if test $ac_cv_header_stdc = yes; then
3494
3495 cat >>confdefs.h <<\EOF
3496 #define STDC_HEADERS 1
3497 EOF
3498
3499 fi
3500
3501 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3502
3503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3504 inttypes.h stdint.h unistd.h
3505 do
3506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3507 echo "$as_me:3507: checking for $ac_header" >&5
3508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line 3513 "configure"
3514 #include "confdefs.h"
3515 $ac_includes_default
3516 #include <$ac_header>
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:3519: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3521 ac_status=$?
3522 echo "$as_me:3522: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:3525: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:3528: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 eval "$as_ac_Header=yes"
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3534 eval "$as_ac_Header=no"
3535 fi
3536 rm -f conftest.$ac_objext conftest.$ac_ext
3537 fi
3538 echo "$as_me:3538: result: `eval echo '${'$as_ac_Header'}'`" >&5
3539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3541 cat >>confdefs.h <<EOF
3542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3543 EOF
3544
3545 fi
3546 done
3547
3548 echo "$as_me:3548: checking for char" >&5
3549 echo $ECHO_N "checking for char... $ECHO_C" >&6
3550 if test "${ac_cv_type_char+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line 3554 "configure"
3555 #include "confdefs.h"
3556 $ac_includes_default
3557 int
3558 main ()
3559 {
3560 if ((char *) 0)
3561 return 0;
3562 if (sizeof (char))
3563 return 0;
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (eval echo "$as_me:3569: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>&5
3571 ac_status=$?
3572 echo "$as_me:3572: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:3575: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_type_char=yes
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 ac_cv_type_char=no
3585 fi
3586 rm -f conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 echo "$as_me:3588: result: $ac_cv_type_char" >&5
3589 echo "${ECHO_T}$ac_cv_type_char" >&6
3590
3591 echo "$as_me:3591: checking size of char" >&5
3592 echo $ECHO_N "checking size of char... $ECHO_C" >&6
3593 if test "${ac_cv_sizeof_char+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test "$ac_cv_type_char" = yes; then
3597 if test "$cross_compiling" = yes; then
3598 # Depending upon the size, compute the lo and hi bounds.
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line 3600 "configure"
3601 #include "confdefs.h"
3602 $ac_includes_default
3603 int
3604 main ()
3605 {
3606 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:3612: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>&5
3614 ac_status=$?
3615 echo "$as_me:3615: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -s conftest.$ac_objext'
3618 { (eval echo "$as_me:3618: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:3621: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_lo=0 ac_mid=0
3624 while :; do
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line 3626 "configure"
3627 #include "confdefs.h"
3628 $ac_includes_default
3629 int
3630 main ()
3631 {
3632 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (eval echo "$as_me:3638: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
3640 ac_status=$?
3641 echo "$as_me:3641: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:3644: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:3647: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_hi=$ac_mid; break
3650 else
3651 echo "$as_me: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3653 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3654 fi
3655 rm -f conftest.$ac_objext conftest.$ac_ext
3656 done
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3660 ac_hi=-1 ac_mid=-1
3661 while :; do
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line 3663 "configure"
3664 #include "confdefs.h"
3665 $ac_includes_default
3666 int
3667 main ()
3668 {
3669 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.$ac_objext
3675 if { (eval echo "$as_me:3675: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3677 ac_status=$?
3678 echo "$as_me:3678: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:3681: \"$ac_try\"") >&5
3682 (eval $ac_try) 2>&5
3683 ac_status=$?
3684 echo "$as_me:3684: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 ac_lo=$ac_mid; break
3687 else
3688 echo "$as_me: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3691 fi
3692 rm -f conftest.$ac_objext conftest.$ac_ext
3693 done
3694 fi
3695 rm -f conftest.$ac_objext conftest.$ac_ext
3696 # Binary search between lo and hi bounds.
3697 while test "x$ac_lo" != "x$ac_hi"; do
3698 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3699 cat >conftest.$ac_ext <<_ACEOF
3700 #line 3700 "configure"
3701 #include "confdefs.h"
3702 $ac_includes_default
3703 int
3704 main ()
3705 {
3706 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (eval echo "$as_me:3712: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>&5
3714 ac_status=$?
3715 echo "$as_me:3715: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:3718: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:3721: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_hi=$ac_mid
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 ac_lo=`expr $ac_mid + 1`
3728 fi
3729 rm -f conftest.$ac_objext conftest.$ac_ext
3730 done
3731 ac_cv_sizeof_char=$ac_lo
3732 else
3733 if test "$cross_compiling" = yes; then
3734 { { echo "$as_me:3734: error: cannot run test program while cross compiling" >&5
3735 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3736 { (exit 1); exit 1; }; }
3737 else
3738 cat >conftest.$ac_ext <<_ACEOF
3739 #line 3739 "configure"
3740 #include "confdefs.h"
3741 $ac_includes_default
3742 int
3743 main ()
3744 {
3745 FILE *f = fopen ("conftest.val", "w");
3746 if (!f)
3747 exit (1);
3748 fprintf (f, "%d", (sizeof (char)));
3749 fclose (f);
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest$ac_exeext
3755 if { (eval echo "$as_me:3755: \"$ac_link\"") >&5
3756 (eval $ac_link) 2>&5
3757 ac_status=$?
3758 echo "$as_me:3758: \$? = $ac_status" >&5
3759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3760 { (eval echo "$as_me:3760: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:3763: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_cv_sizeof_char=`cat conftest.val`
3766 else
3767 echo "$as_me: program exited with status $ac_status" >&5
3768 echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 fi
3771 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 fi
3774 rm -f conftest.val
3775 else
3776 ac_cv_sizeof_char=0
3777 fi
3778 fi
3779 echo "$as_me:3779: result: $ac_cv_sizeof_char" >&5
3780 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
3781 cat >>confdefs.h <<EOF
3782 #define SIZEOF_CHAR $ac_cv_sizeof_char
3783 EOF
3784
3785 echo "$as_me:3785: checking for short" >&5
3786 echo $ECHO_N "checking for short... $ECHO_C" >&6
3787 if test "${ac_cv_type_short+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line 3791 "configure"
3792 #include "confdefs.h"
3793 $ac_includes_default
3794 int
3795 main ()
3796 {
3797 if ((short *) 0)
3798 return 0;
3799 if (sizeof (short))
3800 return 0;
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 rm -f conftest.$ac_objext
3806 if { (eval echo "$as_me:3806: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>&5
3808 ac_status=$?
3809 echo "$as_me:3809: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -s conftest.$ac_objext'
3812 { (eval echo "$as_me:3812: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:3815: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 ac_cv_type_short=yes
3818 else
3819 echo "$as_me: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3821 ac_cv_type_short=no
3822 fi
3823 rm -f conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 echo "$as_me:3825: result: $ac_cv_type_short" >&5
3826 echo "${ECHO_T}$ac_cv_type_short" >&6
3827
3828 echo "$as_me:3828: checking size of short" >&5
3829 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3830 if test "${ac_cv_sizeof_short+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833 if test "$ac_cv_type_short" = yes; then
3834 if test "$cross_compiling" = yes; then
3835 # Depending upon the size, compute the lo and hi bounds.
3836 cat >conftest.$ac_ext <<_ACEOF
3837 #line 3837 "configure"
3838 #include "confdefs.h"
3839 $ac_includes_default
3840 int
3841 main ()
3842 {
3843 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (eval echo "$as_me:3849: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>&5
3851 ac_status=$?
3852 echo "$as_me:3852: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:3855: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:3858: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_lo=0 ac_mid=0
3861 while :; do
3862 cat >conftest.$ac_ext <<_ACEOF
3863 #line 3863 "configure"
3864 #include "confdefs.h"
3865 $ac_includes_default
3866 int
3867 main ()
3868 {
3869 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest.$ac_objext
3875 if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5
3876 (eval $ac_compile) 2>&5
3877 ac_status=$?
3878 echo "$as_me:3878: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:3881: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:3884: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_hi=$ac_mid; break
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3891 fi
3892 rm -f conftest.$ac_objext conftest.$ac_ext
3893 done
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3897 ac_hi=-1 ac_mid=-1
3898 while :; do
3899 cat >conftest.$ac_ext <<_ACEOF
3900 #line 3900 "configure"
3901 #include "confdefs.h"
3902 $ac_includes_default
3903 int
3904 main ()
3905 {
3906 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 rm -f conftest.$ac_objext
3912 if { (eval echo "$as_me:3912: \"$ac_compile\"") >&5
3913 (eval $ac_compile) 2>&5
3914 ac_status=$?
3915 echo "$as_me:3915: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -s conftest.$ac_objext'
3918 { (eval echo "$as_me:3918: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:3921: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_lo=$ac_mid; break
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3928 fi
3929 rm -f conftest.$ac_objext conftest.$ac_ext
3930 done
3931 fi
3932 rm -f conftest.$ac_objext conftest.$ac_ext
3933 # Binary search between lo and hi bounds.
3934 while test "x$ac_lo" != "x$ac_hi"; do
3935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3936 cat >conftest.$ac_ext <<_ACEOF
3937 #line 3937 "configure"
3938 #include "confdefs.h"
3939 $ac_includes_default
3940 int
3941 main ()
3942 {
3943 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (eval echo "$as_me:3949: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>&5
3951 ac_status=$?
3952 echo "$as_me:3952: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -s conftest.$ac_objext'
3955 { (eval echo "$as_me:3955: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:3958: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_hi=$ac_mid
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3964 ac_lo=`expr $ac_mid + 1`
3965 fi
3966 rm -f conftest.$ac_objext conftest.$ac_ext
3967 done
3968 ac_cv_sizeof_short=$ac_lo
3969 else
3970 if test "$cross_compiling" = yes; then
3971 { { echo "$as_me:3971: error: cannot run test program while cross compiling" >&5
3972 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3973 { (exit 1); exit 1; }; }
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3978 $ac_includes_default
3979 int
3980 main ()
3981 {
3982 FILE *f = fopen ("conftest.val", "w");
3983 if (!f)
3984 exit (1);
3985 fprintf (f, "%d", (sizeof (short)));
3986 fclose (f);
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest$ac_exeext
3992 if { (eval echo "$as_me:3992: \"$ac_link\"") >&5
3993 (eval $ac_link) 2>&5
3994 ac_status=$?
3995 echo "$as_me:3995: \$? = $ac_status" >&5
3996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3997 { (eval echo "$as_me:3997: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:4000: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 ac_cv_sizeof_short=`cat conftest.val`
4003 else
4004 echo "$as_me: program exited with status $ac_status" >&5
4005 echo "$as_me: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 fi
4008 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4009 fi
4010 fi
4011 rm -f conftest.val
4012 else
4013 ac_cv_sizeof_short=0
4014 fi
4015 fi
4016 echo "$as_me:4016: result: $ac_cv_sizeof_short" >&5
4017 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4018 cat >>confdefs.h <<EOF
4019 #define SIZEOF_SHORT $ac_cv_sizeof_short
4020 EOF
4021
4022 echo "$as_me:4022: checking for int" >&5
4023 echo $ECHO_N "checking for int... $ECHO_C" >&6
4024 if test "${ac_cv_type_int+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line 4028 "configure"
4029 #include "confdefs.h"
4030 $ac_includes_default
4031 int
4032 main ()
4033 {
4034 if ((int *) 0)
4035 return 0;
4036 if (sizeof (int))
4037 return 0;
4038 ;
4039 return 0;
4040 }
4041 _ACEOF
4042 rm -f conftest.$ac_objext
4043 if { (eval echo "$as_me:4043: \"$ac_compile\"") >&5
4044 (eval $ac_compile) 2>&5
4045 ac_status=$?
4046 echo "$as_me:4046: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:4049: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:4052: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_cv_type_int=yes
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4058 ac_cv_type_int=no
4059 fi
4060 rm -f conftest.$ac_objext conftest.$ac_ext
4061 fi
4062 echo "$as_me:4062: result: $ac_cv_type_int" >&5
4063 echo "${ECHO_T}$ac_cv_type_int" >&6
4064
4065 echo "$as_me:4065: checking size of int" >&5
4066 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4067 if test "${ac_cv_sizeof_int+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 if test "$ac_cv_type_int" = yes; then
4071 if test "$cross_compiling" = yes; then
4072 # Depending upon the size, compute the lo and hi bounds.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 #line 4074 "configure"
4075 #include "confdefs.h"
4076 $ac_includes_default
4077 int
4078 main ()
4079 {
4080 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (eval echo "$as_me:4086: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>&5
4088 ac_status=$?
4089 echo "$as_me:4089: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (eval echo "$as_me:4092: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:4095: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_lo=0 ac_mid=0
4098 while :; do
4099 cat >conftest.$ac_ext <<_ACEOF
4100 #line 4100 "configure"
4101 #include "confdefs.h"
4102 $ac_includes_default
4103 int
4104 main ()
4105 {
4106 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (eval echo "$as_me:4112: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>&5
4114 ac_status=$?
4115 echo "$as_me:4115: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:4118: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:4121: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_hi=$ac_mid; break
4124 else
4125 echo "$as_me: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4127 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4128 fi
4129 rm -f conftest.$ac_objext conftest.$ac_ext
4130 done
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4134 ac_hi=-1 ac_mid=-1
4135 while :; do
4136 cat >conftest.$ac_ext <<_ACEOF
4137 #line 4137 "configure"
4138 #include "confdefs.h"
4139 $ac_includes_default
4140 int
4141 main ()
4142 {
4143 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 rm -f conftest.$ac_objext
4149 if { (eval echo "$as_me:4149: \"$ac_compile\"") >&5
4150 (eval $ac_compile) 2>&5
4151 ac_status=$?
4152 echo "$as_me:4152: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:4155: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:4158: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 ac_lo=$ac_mid; break
4161 else
4162 echo "$as_me: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4164 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4165 fi
4166 rm -f conftest.$ac_objext conftest.$ac_ext
4167 done
4168 fi
4169 rm -f conftest.$ac_objext conftest.$ac_ext
4170 # Binary search between lo and hi bounds.
4171 while test "x$ac_lo" != "x$ac_hi"; do
4172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4173 cat >conftest.$ac_ext <<_ACEOF
4174 #line 4174 "configure"
4175 #include "confdefs.h"
4176 $ac_includes_default
4177 int
4178 main ()
4179 {
4180 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest.$ac_objext
4186 if { (eval echo "$as_me:4186: \"$ac_compile\"") >&5
4187 (eval $ac_compile) 2>&5
4188 ac_status=$?
4189 echo "$as_me:4189: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (eval echo "$as_me:4192: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:4195: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_hi=$ac_mid
4198 else
4199 echo "$as_me: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 ac_lo=`expr $ac_mid + 1`
4202 fi
4203 rm -f conftest.$ac_objext conftest.$ac_ext
4204 done
4205 ac_cv_sizeof_int=$ac_lo
4206 else
4207 if test "$cross_compiling" = yes; then
4208 { { echo "$as_me:4208: error: cannot run test program while cross compiling" >&5
4209 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4210 { (exit 1); exit 1; }; }
4211 else
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line 4213 "configure"
4214 #include "confdefs.h"
4215 $ac_includes_default
4216 int
4217 main ()
4218 {
4219 FILE *f = fopen ("conftest.val", "w");
4220 if (!f)
4221 exit (1);
4222 fprintf (f, "%d", (sizeof (int)));
4223 fclose (f);
4224 ;
4225 return 0;
4226 }
4227 _ACEOF
4228 rm -f conftest$ac_exeext
4229 if { (eval echo "$as_me:4229: \"$ac_link\"") >&5
4230 (eval $ac_link) 2>&5
4231 ac_status=$?
4232 echo "$as_me:4232: \$? = $ac_status" >&5
4233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4234 { (eval echo "$as_me:4234: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:4237: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_cv_sizeof_int=`cat conftest.val`
4240 else
4241 echo "$as_me: program exited with status $ac_status" >&5
4242 echo "$as_me: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4244 fi
4245 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246 fi
4247 fi
4248 rm -f conftest.val
4249 else
4250 ac_cv_sizeof_int=0
4251 fi
4252 fi
4253 echo "$as_me:4253: result: $ac_cv_sizeof_int" >&5
4254 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4255 cat >>confdefs.h <<EOF
4256 #define SIZEOF_INT $ac_cv_sizeof_int
4257 EOF
4258
4259 echo "$as_me:4259: checking for long" >&5
4260 echo $ECHO_N "checking for long... $ECHO_C" >&6
4261 if test "${ac_cv_type_long+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line 4265 "configure"
4266 #include "confdefs.h"
4267 $ac_includes_default
4268 int
4269 main ()
4270 {
4271 if ((long *) 0)
4272 return 0;
4273 if (sizeof (long))
4274 return 0;
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:4280: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>&5
4282 ac_status=$?
4283 echo "$as_me:4283: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (eval echo "$as_me:4286: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
4288 ac_status=$?
4289 echo "$as_me:4289: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_cv_type_long=yes
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 ac_cv_type_long=no
4296 fi
4297 rm -f conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 echo "$as_me:4299: result: $ac_cv_type_long" >&5
4300 echo "${ECHO_T}$ac_cv_type_long" >&6
4301
4302 echo "$as_me:4302: checking size of long" >&5
4303 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4304 if test "${ac_cv_sizeof_long+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307 if test "$ac_cv_type_long" = yes; then
4308 if test "$cross_compiling" = yes; then
4309 # Depending upon the size, compute the lo and hi bounds.
4310 cat >conftest.$ac_ext <<_ACEOF
4311 #line 4311 "configure"
4312 #include "confdefs.h"
4313 $ac_includes_default
4314 int
4315 main ()
4316 {
4317 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:4323: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>&5
4325 ac_status=$?
4326 echo "$as_me:4326: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (eval echo "$as_me:4329: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:4332: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 ac_lo=0 ac_mid=0
4335 while :; do
4336 cat >conftest.$ac_ext <<_ACEOF
4337 #line 4337 "configure"
4338 #include "confdefs.h"
4339 $ac_includes_default
4340 int
4341 main ()
4342 {
4343 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (eval echo "$as_me:4349: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>&5
4351 ac_status=$?
4352 echo "$as_me:4352: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:4355: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:4358: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_hi=$ac_mid; break
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4364 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4365 fi
4366 rm -f conftest.$ac_objext conftest.$ac_ext
4367 done
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 ac_hi=-1 ac_mid=-1
4372 while :; do
4373 cat >conftest.$ac_ext <<_ACEOF
4374 #line 4374 "configure"
4375 #include "confdefs.h"
4376 $ac_includes_default
4377 int
4378 main ()
4379 {
4380 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:4386: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
4388 ac_status=$?
4389 echo "$as_me:4389: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -s conftest.$ac_objext'
4392 { (eval echo "$as_me:4392: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:4395: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_lo=$ac_mid; break
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4401 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4402 fi
4403 rm -f conftest.$ac_objext conftest.$ac_ext
4404 done
4405 fi
4406 rm -f conftest.$ac_objext conftest.$ac_ext
4407 # Binary search between lo and hi bounds.
4408 while test "x$ac_lo" != "x$ac_hi"; do
4409 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4410 cat >conftest.$ac_ext <<_ACEOF
4411 #line 4411 "configure"
4412 #include "confdefs.h"
4413 $ac_includes_default
4414 int
4415 main ()
4416 {
4417 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (eval echo "$as_me:4423: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4425 ac_status=$?
4426 echo "$as_me:4426: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:4429: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_hi=$ac_mid
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 ac_lo=`expr $ac_mid + 1`
4439 fi
4440 rm -f conftest.$ac_objext conftest.$ac_ext
4441 done
4442 ac_cv_sizeof_long=$ac_lo
4443 else
4444 if test "$cross_compiling" = yes; then
4445 { { echo "$as_me:4445: error: cannot run test program while cross compiling" >&5
4446 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4447 { (exit 1); exit 1; }; }
4448 else
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line 4450 "configure"
4451 #include "confdefs.h"
4452 $ac_includes_default
4453 int
4454 main ()
4455 {
4456 FILE *f = fopen ("conftest.val", "w");
4457 if (!f)
4458 exit (1);
4459 fprintf (f, "%d", (sizeof (long)));
4460 fclose (f);
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest$ac_exeext
4466 if { (eval echo "$as_me:4466: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>&5
4468 ac_status=$?
4469 echo "$as_me:4469: \$? = $ac_status" >&5
4470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4471 { (eval echo "$as_me:4471: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:4474: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_sizeof_long=`cat conftest.val`
4477 else
4478 echo "$as_me: program exited with status $ac_status" >&5
4479 echo "$as_me: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4481 fi
4482 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4483 fi
4484 fi
4485 rm -f conftest.val
4486 else
4487 ac_cv_sizeof_long=0
4488 fi
4489 fi
4490 echo "$as_me:4490: result: $ac_cv_sizeof_long" >&5
4491 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4492 cat >>confdefs.h <<EOF
4493 #define SIZEOF_LONG $ac_cv_sizeof_long
4494 EOF
4495
4496 echo "$as_me:4496: checking for long long" >&5
4497 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4498 if test "${ac_cv_type_long_long+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line 4502 "configure"
4503 #include "confdefs.h"
4504 $ac_includes_default
4505 int
4506 main ()
4507 {
4508 if ((long long *) 0)
4509 return 0;
4510 if (sizeof (long long))
4511 return 0;
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:4517: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>&5
4519 ac_status=$?
4520 echo "$as_me:4520: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:4523: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:4526: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_type_long_long=yes
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 ac_cv_type_long_long=no
4533 fi
4534 rm -f conftest.$ac_objext conftest.$ac_ext
4535 fi
4536 echo "$as_me:4536: result: $ac_cv_type_long_long" >&5
4537 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4538
4539 echo "$as_me:4539: checking size of long long" >&5
4540 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4541 if test "${ac_cv_sizeof_long_long+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 if test "$ac_cv_type_long_long" = yes; then
4545 if test "$cross_compiling" = yes; then
4546 # Depending upon the size, compute the lo and hi bounds.
4547 cat >conftest.$ac_ext <<_ACEOF
4548 #line 4548 "configure"
4549 #include "confdefs.h"
4550 $ac_includes_default
4551 int
4552 main ()
4553 {
4554 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:4560: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>&5
4562 ac_status=$?
4563 echo "$as_me:4563: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -s conftest.$ac_objext'
4566 { (eval echo "$as_me:4566: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:4569: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_lo=0 ac_mid=0
4572 while :; do
4573 cat >conftest.$ac_ext <<_ACEOF
4574 #line 4574 "configure"
4575 #include "confdefs.h"
4576 $ac_includes_default
4577 int
4578 main ()
4579 {
4580 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4581 ;
4582 return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:4586: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>&5
4588 ac_status=$?
4589 echo "$as_me:4589: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:4592: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:4595: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_hi=$ac_mid; break
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4601 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4602 fi
4603 rm -f conftest.$ac_objext conftest.$ac_ext
4604 done
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 ac_hi=-1 ac_mid=-1
4609 while :; do
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line 4611 "configure"
4612 #include "confdefs.h"
4613 $ac_includes_default
4614 int
4615 main ()
4616 {
4617 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:4623: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>&5
4625 ac_status=$?
4626 echo "$as_me:4626: \$? = $ac_status" >&5
4627 (exit $ac_status); } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:4629: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:4632: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_lo=$ac_mid; break
4635 else
4636 echo "$as_me: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4639 fi
4640 rm -f conftest.$ac_objext conftest.$ac_ext
4641 done
4642 fi
4643 rm -f conftest.$ac_objext conftest.$ac_ext
4644 # Binary search between lo and hi bounds.
4645 while test "x$ac_lo" != "x$ac_hi"; do
4646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4647 cat >conftest.$ac_ext <<_ACEOF
4648 #line 4648 "configure"
4649 #include "confdefs.h"
4650 $ac_includes_default
4651 int
4652 main ()
4653 {
4654 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:4660: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>&5
4662 ac_status=$?
4663 echo "$as_me:4663: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:4666: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:4669: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_hi=$ac_mid
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 ac_lo=`expr $ac_mid + 1`
4676 fi
4677 rm -f conftest.$ac_objext conftest.$ac_ext
4678 done
4679 ac_cv_sizeof_long_long=$ac_lo
4680 else
4681 if test "$cross_compiling" = yes; then
4682 { { echo "$as_me:4682: error: cannot run test program while cross compiling" >&5
4683 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4684 { (exit 1); exit 1; }; }
4685 else
4686 cat >conftest.$ac_ext <<_ACEOF
4687 #line 4687 "configure"
4688 #include "confdefs.h"
4689 $ac_includes_default
4690 int
4691 main ()
4692 {
4693 FILE *f = fopen ("conftest.val", "w");
4694 if (!f)
4695 exit (1);
4696 fprintf (f, "%d", (sizeof (long long)));
4697 fclose (f);
4698 ;
4699 return 0;
4700 }
4701 _ACEOF
4702 rm -f conftest$ac_exeext
4703 if { (eval echo "$as_me:4703: \"$ac_link\"") >&5
4704 (eval $ac_link) 2>&5
4705 ac_status=$?
4706 echo "$as_me:4706: \$? = $ac_status" >&5
4707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708 { (eval echo "$as_me:4708: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:4711: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 ac_cv_sizeof_long_long=`cat conftest.val`
4714 else
4715 echo "$as_me: program exited with status $ac_status" >&5
4716 echo "$as_me: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4718 fi
4719 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 fi
4722 rm -f conftest.val
4723 else
4724 ac_cv_sizeof_long_long=0
4725 fi
4726 fi
4727 echo "$as_me:4727: result: $ac_cv_sizeof_long_long" >&5
4728 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4729 cat >>confdefs.h <<EOF
4730 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4731 EOF
4732
4733 echo "$as_me:4733: checking for addrinfo" >&5
4734 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
4735 if test "${ac_cv_addrinfo+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 cat >conftest.$ac_ext <<_ACEOF
4739 #line 4739 "configure"
4740 #include "confdefs.h"
4741
4742 # include <netdb.h>
4743 int
4744 main ()
4745 {
4746 struct addrinfo a
4747 ;
4748 return 0;
4749 }
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:4752: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>&5
4754 ac_status=$?
4755 echo "$as_me:4755: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:4758: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:4761: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 ac_cv_addrinfo=yes
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4767 ac_cv_addrinfo=no
4768 fi
4769 rm -f conftest.$ac_objext conftest.$ac_ext
4770 fi
4771
4772 echo "$as_me:4772: result: $ac_cv_addrinfo" >&5
4773 echo "${ECHO_T}$ac_cv_addrinfo" >&6
4774 if test $ac_cv_addrinfo = yes; then
4775 cat >>confdefs.h <<\EOF
4776 #define HAVE_ADDRINFO 1
4777 EOF
4778
4779 else
4780 cat >>confdefs.h <<\EOF
4781 #define NEED_ADDRINFO_H 1
4782 EOF
4783
4784 fi
4785
4786 if test "$ac_cv_addrinfo" = no; then
4787 missing_includes=yes
4788 fi
4789
4790 echo "$as_me:4790: checking for NI_MAXSERV" >&5
4791 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
4792 if test "${ac_cv_maxserv+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795 cat >conftest.$ac_ext <<_ACEOF
4796 #line 4796 "configure"
4797 #include "confdefs.h"
4798 #include <netdb.h>
4799 #ifdef NI_MAXSERV
4800 yes
4801 #endif
4802 _ACEOF
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804 egrep "yes" >/dev/null 2>&1; then
4805 ac_cv_maxserv=yes
4806 else
4807 ac_cv_maxserv=no
4808 fi
4809 rm -f conftest*
4810
4811 fi
4812
4813 echo "$as_me:4813: result: $ac_cv_maxserv" >&5
4814 echo "${ECHO_T}$ac_cv_maxserv" >&6
4815 if test $ac_cv_maxserv != yes; then
4816 cat >>confdefs.h <<\EOF
4817 #define NEED_ADDRINFO_H 1
4818 EOF
4819
4820 fi
4821
4822 if test "$ac_cv_maxserv" = no; then
4823 missing_includes=yes
4824 fi
4825
4826 echo "$as_me:4826: checking for NI_NAMEREQD" >&5
4827 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
4828 if test "${ac_cv_namereqd+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 cat >conftest.$ac_ext <<_ACEOF
4832 #line 4832 "configure"
4833 #include "confdefs.h"
4834 #include <netdb.h>
4835 #ifdef NI_NOFQDN
4836 yes
4837 #endif
4838 _ACEOF
4839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840 egrep "yes" >/dev/null 2>&1; then
4841 ac_cv_namereqd=yes
4842 else
4843 ac_cv_namereqd=no
4844 fi
4845 rm -f conftest*
4846
4847 fi
4848
4849 echo "$as_me:4849: result: $ac_cv_namereqd" >&5
4850 echo "${ECHO_T}$ac_cv_namereqd" >&6
4851 if test $ac_cv_namereqd != yes; then
4852 cat >>confdefs.h <<\EOF
4853 #define NEED_ADDRINFO_H 1
4854 EOF
4855
4856 fi
4857
4858 if test "$ac_cv_namereqd" = no; then
4859 missing_includes=yes
4860 fi
4861
4862 echo "$as_me:4862: checking for sockaddr_storage" >&5
4863 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
4864 if test "${ac_cv_sa_storage+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 cat >conftest.$ac_ext <<_ACEOF
4868 #line 4868 "configure"
4869 #include "confdefs.h"
4870
4871 # include <sys/types.h>
4872 # include <sys/socket.h>
4873 int
4874 main ()
4875 {
4876 struct sockaddr_storage s
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:4882: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>&5
4884 ac_status=$?
4885 echo "$as_me:4885: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:4888: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:4891: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_sa_storage=yes
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 ac_cv_sa_storage=no
4898 fi
4899 rm -f conftest.$ac_objext conftest.$ac_ext
4900 fi
4901
4902 echo "$as_me:4902: result: $ac_cv_sa_storage" >&5
4903 echo "${ECHO_T}$ac_cv_sa_storage" >&6
4904 if test $ac_cv_sa_storage = yes; then
4905 cat >>confdefs.h <<\EOF
4906 #define HAVE_SOCKADDR_STORAGE 1
4907 EOF
4908
4909 fi
4910
4911 if test "$ac_cv_sa_storage" = no; then
4912 missing_includes=yes
4913 fi
4914
4915 ac_cv_addrsz=yes
4916 echo "$as_me:4916: checking for INADDRSZ" >&5
4917 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
4918 if test "${ac_cv_inaddrsz+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 cat >conftest.$ac_ext <<_ACEOF
4922 #line 4922 "configure"
4923 #include "confdefs.h"
4924
4925 # include <arpa/nameser.h>
4926 int
4927 main ()
4928 {
4929 int a = INADDRSZ
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:4935: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
4937 ac_status=$?
4938 echo "$as_me:4938: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:4941: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:4944: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_cv_inaddrsz=yes
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4950 ac_cv_inaddrsz=no
4951 fi
4952 rm -f conftest.$ac_objext conftest.$ac_ext
4953 fi
4954
4955 echo "$as_me:4955: result: $ac_cv_inaddrsz" >&5
4956 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
4957 if test $ac_cv_inaddrsz = yes; then
4958 cat >>confdefs.h <<\EOF
4959 #define HAVE_INADDRSZ 1
4960 EOF
4961
4962 else
4963 ac_cv_addrsz=no
4964 fi
4965 echo "$as_me:4965: checking for IN6ADDRSZ" >&5
4966 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
4967 if test "${ac_cv_in6addrsz+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 cat >conftest.$ac_ext <<_ACEOF
4971 #line 4971 "configure"
4972 #include "confdefs.h"
4973
4974 # include <arpa/nameser.h>
4975 int
4976 main ()
4977 {
4978 int a = IN6ADDRSZ
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (eval echo "$as_me:4984: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>&5
4986 ac_status=$?
4987 echo "$as_me:4987: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:4990: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:4993: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_cv_in6addrsz=yes
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
4999 ac_cv_in6addrsz=no
5000 fi
5001 rm -f conftest.$ac_objext conftest.$ac_ext
5002 fi
5003
5004 echo "$as_me:5004: result: $ac_cv_in6addrsz" >&5
5005 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
5006 if test $ac_cv_in6addrsz = yes; then
5007 cat >>confdefs.h <<\EOF
5008 #define HAVE_IN6ADDRSZ 1
5009 EOF
5010
5011 else
5012 ac_cv_addrsz=no
5013 fi
5014
5015 if test "$ac_cv_addrsz" = no; then
5016 missing_includes=yes
5017 fi
5018
5019 echo "$as_me:5019: checking for RES_USE_INET6" >&5
5020 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
5021 if test "${ac_cv_res_inet6+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 cat >conftest.$ac_ext <<_ACEOF
5025 #line 5025 "configure"
5026 #include "confdefs.h"
5027
5028 # include <sys/types.h>
5029 # include <netinet/in.h>
5030 # include <resolv.h>
5031 int
5032 main ()
5033 {
5034 int a = RES_USE_INET6
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:5040: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5042 ac_status=$?
5043 echo "$as_me:5043: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -s conftest.$ac_objext'
5046 { (eval echo "$as_me:5046: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:5049: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_cv_res_inet6=yes
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5055 ac_cv_res_inet6=no
5056 fi
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5058 fi
5059
5060 echo "$as_me:5060: result: $ac_cv_res_inet6" >&5
5061 echo "${ECHO_T}$ac_cv_res_inet6" >&6
5062 if test $ac_cv_res_inet6 = yes; then
5063 cat >>confdefs.h <<\EOF
5064 #define HAVE_RES_USE_INET6 1
5065 EOF
5066
5067 fi
5068
5069 if test "$ac_cv_res_inet6" = no; then
5070 missing_includes=yes
5071 fi
5072
5073 echo "$as_me:5073: checking for res_state_ext" >&5
5074 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
5075 if test "${ac_cv_res_state_ext+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 cat >conftest.$ac_ext <<_ACEOF
5079 #line 5079 "configure"
5080 #include "confdefs.h"
5081
5082 # include <sys/types.h>
5083 # include <netinet/in.h>
5084 # include <netinet6/in6.h>
5085 # include <resolv.h>
5086 int
5087 main ()
5088 {
5089 struct __res_state_ext e
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:5095: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
5097 ac_status=$?
5098 echo "$as_me:5098: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:5101: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:5104: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_cv_res_state_ext=yes
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5110 ac_cv_res_state_ext=no
5111 fi
5112 rm -f conftest.$ac_objext conftest.$ac_ext
5113 fi
5114
5115 echo "$as_me:5115: result: $ac_cv_res_state_ext" >&5
5116 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
5117 if test $ac_cv_res_state_ext = yes; then
5118 cat >>confdefs.h <<\EOF
5119 #define HAVE_RES_STATE_EXT 1
5120 EOF
5121
5122 fi
5123
5124 if test "$ac_cv_res_state_ext" = no; then
5125 missing_includes=yes
5126 fi
5127
5128 echo "$as_me:5128: checking for nsort in res_state" >&5
5129 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
5130 if test "${ac_cv_res_state+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 #line 5134 "configure"
5135 #include "confdefs.h"
5136
5137 # include <sys/types.h>
5138 # include <netinet/in.h>
5139 # include <netinet6/in6.h>
5140 # include <resolv.h>
5141 int
5142 main ()
5143 {
5144 struct __res_state e; e.nsort = 0
5145 ;
5146 return 0;
5147 }
5148 _ACEOF
5149 rm -f conftest.$ac_objext
5150 if { (eval echo "$as_me:5150: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>&5
5152 ac_status=$?
5153 echo "$as_me:5153: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -s conftest.$ac_objext'
5156 { (eval echo "$as_me:5156: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:5159: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 ac_cv_res_state=yes
5162 else
5163 echo "$as_me: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5165 ac_cv_res_state=no
5166 fi
5167 rm -f conftest.$ac_objext conftest.$ac_ext
5168 fi
5169
5170 echo "$as_me:5170: result: $ac_cv_res_state" >&5
5171 echo "${ECHO_T}$ac_cv_res_state" >&6
5172 if test $ac_cv_res_state = yes; then
5173 cat >>confdefs.h <<\EOF
5174 #define HAVE_NEW_RES_STATE 1
5175 EOF
5176
5177 fi
5178
5179 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
5180 do
5181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5182 echo "$as_me:5182: checking for $ac_func" >&5
5183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_var+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 cat >conftest.$ac_ext <<_ACEOF
5188 #line 5188 "configure"
5189 #include "confdefs.h"
5190 /* System header to define __stub macros and hopefully few prototypes,
5191 which can conflict with char $ac_func (); below. */
5192 #include <assert.h>
5193 /* Override any gcc2 internal prototype to avoid an error. */
5194 #ifdef __cplusplus
5195 extern "C"
5196 #endif
5197 /* We use char because int might match the return type of a gcc2
5198 builtin and then its argument prototype would still apply. */
5199 char $ac_func ();
5200 char (*f) ();
5201
5202 int
5203 main ()
5204 {
5205 /* The GNU C library defines this for functions which it implements
5206 to always fail with ENOSYS. Some functions are actually named
5207 something starting with __ and the normal name is an alias. */
5208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5209 choke me
5210 #else
5211 f = $ac_func;
5212 #endif
5213
5214 ;
5215 return 0;
5216 }
5217 _ACEOF
5218 rm -f conftest.$ac_objext conftest$ac_exeext
5219 if { (eval echo "$as_me:5219: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>&5
5221 ac_status=$?
5222 echo "$as_me:5222: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest$ac_exeext'
5225 { (eval echo "$as_me:5225: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:5228: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 eval "$as_ac_var=yes"
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 eval "$as_ac_var=no"
5235 fi
5236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237 fi
5238 echo "$as_me:5238: result: `eval echo '${'$as_ac_var'}'`" >&5
5239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5240 if test `eval echo '${'$as_ac_var'}'` = yes; then
5241 cat >>confdefs.h <<EOF
5242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5243 EOF
5244
5245 else
5246 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5247 fi
5248 done
5249
5250 for ac_func in strftime
5251 do
5252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5253 echo "$as_me:5253: checking for $ac_func" >&5
5254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_var+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 cat >conftest.$ac_ext <<_ACEOF
5259 #line 5259 "configure"
5260 #include "confdefs.h"
5261 /* System header to define __stub macros and hopefully few prototypes,
5262 which can conflict with char $ac_func (); below. */
5263 #include <assert.h>
5264 /* Override any gcc2 internal prototype to avoid an error. */
5265 #ifdef __cplusplus
5266 extern "C"
5267 #endif
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270 char $ac_func ();
5271 char (*f) ();
5272
5273 int
5274 main ()
5275 {
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 choke me
5281 #else
5282 f = $ac_func;
5283 #endif
5284
5285 ;
5286 return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:5290: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5292 ac_status=$?
5293 echo "$as_me:5293: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -s conftest$ac_exeext'
5296 { (eval echo "$as_me:5296: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:5299: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 eval "$as_ac_var=yes"
5302 else
5303 echo "$as_me: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5305 eval "$as_ac_var=no"
5306 fi
5307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5308 fi
5309 echo "$as_me:5309: result: `eval echo '${'$as_ac_var'}'`" >&5
5310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5311 if test `eval echo '${'$as_ac_var'}'` = yes; then
5312 cat >>confdefs.h <<EOF
5313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5314 EOF
5315
5316 fi
5317 done
5318
5319 for ac_func in ether_ntohost
5320 do
5321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5322 echo "$as_me:5322: checking for $ac_func" >&5
5323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_var+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line 5328 "configure"
5329 #include "confdefs.h"
5330 /* System header to define __stub macros and hopefully few prototypes,
5331 which can conflict with char $ac_func (); below. */
5332 #include <assert.h>
5333 /* Override any gcc2 internal prototype to avoid an error. */
5334 #ifdef __cplusplus
5335 extern "C"
5336 #endif
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5339 char $ac_func ();
5340 char (*f) ();
5341
5342 int
5343 main ()
5344 {
5345 /* The GNU C library defines this for functions which it implements
5346 to always fail with ENOSYS. Some functions are actually named
5347 something starting with __ and the normal name is an alias. */
5348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5349 choke me
5350 #else
5351 f = $ac_func;
5352 #endif
5353
5354 ;
5355 return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:5359: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>&5
5361 ac_status=$?
5362 echo "$as_me:5362: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -s conftest$ac_exeext'
5365 { (eval echo "$as_me:5365: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:5368: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 eval "$as_ac_var=yes"
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 eval "$as_ac_var=no"
5375 fi
5376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5377 fi
5378 echo "$as_me:5378: result: `eval echo '${'$as_ac_var'}'`" >&5
5379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5380 if test `eval echo '${'$as_ac_var'}'` = yes; then
5381 cat >>confdefs.h <<EOF
5382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5383 EOF
5384
5385 echo "$as_me:5385: checking for buggy ether_ntohost" >&5
5386 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
5387 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390
5391 if test "$cross_compiling" = yes; then
5392 ac_cv_buggy_ether_ntohost="not while cross-compiling"
5393 else
5394 cat >conftest.$ac_ext <<_ACEOF
5395 #line 5395 "configure"
5396 #include "confdefs.h"
5397
5398 #include <netdb.h>
5399 #include <sys/types.h>
5400 #include <sys/param.h>
5401 #include <sys/socket.h>
5402
5403 int
5404 main(int argc, char **argv)
5405 {
5406 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
5407 char name[MAXHOSTNAMELEN];
5408
5409 ether_ntohost(name, (struct ether_addr *)ea);
5410 exit(0);
5411 }
5412
5413 _ACEOF
5414 rm -f conftest$ac_exeext
5415 if { (eval echo "$as_me:5415: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>&5
5417 ac_status=$?
5418 echo "$as_me:5418: \$? = $ac_status" >&5
5419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5420 { (eval echo "$as_me:5420: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:5423: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_cv_buggy_ether_ntohost=no
5426 else
5427 echo "$as_me: program exited with status $ac_status" >&5
5428 echo "$as_me: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5430 ac_cv_buggy_ether_ntohost=yes
5431 fi
5432 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 fi
5435 echo "$as_me:5435: result: $ac_cv_buggy_ether_ntohost" >&5
5436 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
5437 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
5438 cat >>confdefs.h <<\EOF
5439 #define USE_ETHER_NTOHOST 1
5440 EOF
5441
5442 fi
5443
5444 fi
5445 done
5446
5447 for ac_func in setlinebuf alarm
5448 do
5449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5450 echo "$as_me:5450: checking for $ac_func" >&5
5451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5452 if eval "test \"\${$as_ac_var+set}\" = set"; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 #line 5456 "configure"
5457 #include "confdefs.h"
5458 /* System header to define __stub macros and hopefully few prototypes,
5459 which can conflict with char $ac_func (); below. */
5460 #include <assert.h>
5461 /* Override any gcc2 internal prototype to avoid an error. */
5462 #ifdef __cplusplus
5463 extern "C"
5464 #endif
5465 /* We use char because int might match the return type of a gcc2
5466 builtin and then its argument prototype would still apply. */
5467 char $ac_func ();
5468 char (*f) ();
5469
5470 int
5471 main ()
5472 {
5473 /* The GNU C library defines this for functions which it implements
5474 to always fail with ENOSYS. Some functions are actually named
5475 something starting with __ and the normal name is an alias. */
5476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5477 choke me
5478 #else
5479 f = $ac_func;
5480 #endif
5481
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487 if { (eval echo "$as_me:5487: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
5489 ac_status=$?
5490 echo "$as_me:5490: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest$ac_exeext'
5493 { (eval echo "$as_me:5493: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:5496: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 eval "$as_ac_var=yes"
5499 else
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 eval "$as_ac_var=no"
5503 fi
5504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505 fi
5506 echo "$as_me:5506: result: `eval echo '${'$as_ac_var'}'`" >&5
5507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5508 if test `eval echo '${'$as_ac_var'}'` = yes; then
5509 cat >>confdefs.h <<EOF
5510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5511 EOF
5512
5513 fi
5514 done
5515
5516 needsnprintf=no
5517
5518 for ac_func in vsnprintf snprintf
5519 do
5520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5521 echo "$as_me:5521: checking for $ac_func" >&5
5522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5523 if eval "test \"\${$as_ac_var+set}\" = set"; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 cat >conftest.$ac_ext <<_ACEOF
5527 #line 5527 "configure"
5528 #include "confdefs.h"
5529 /* System header to define __stub macros and hopefully few prototypes,
5530 which can conflict with char $ac_func (); below. */
5531 #include <assert.h>
5532 /* Override any gcc2 internal prototype to avoid an error. */
5533 #ifdef __cplusplus
5534 extern "C"
5535 #endif
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5538 char $ac_func ();
5539 char (*f) ();
5540
5541 int
5542 main ()
5543 {
5544 /* The GNU C library defines this for functions which it implements
5545 to always fail with ENOSYS. Some functions are actually named
5546 something starting with __ and the normal name is an alias. */
5547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5548 choke me
5549 #else
5550 f = $ac_func;
5551 #endif
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext conftest$ac_exeext
5558 if { (eval echo "$as_me:5558: \"$ac_link\"") >&5
5559 (eval $ac_link) 2>&5
5560 ac_status=$?
5561 echo "$as_me:5561: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try='test -s conftest$ac_exeext'
5564 { (eval echo "$as_me:5564: \"$ac_try\"") >&5
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
5567 echo "$as_me:5567: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 eval "$as_ac_var=yes"
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5573 eval "$as_ac_var=no"
5574 fi
5575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5576 fi
5577 echo "$as_me:5577: result: `eval echo '${'$as_ac_var'}'`" >&5
5578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5579 if test `eval echo '${'$as_ac_var'}'` = yes; then
5580 cat >>confdefs.h <<EOF
5581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5582 EOF
5583
5584 else
5585 needsnprintf=yes
5586 fi
5587 done
5588
5589 if test $needsnprintf = yes; then
5590 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5591 fi
5592
5593 echo "$as_me:5593: checking return type of signal handlers" >&5
5594 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5595 if test "${ac_cv_type_signal+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 cat >conftest.$ac_ext <<_ACEOF
5599 #line 5599 "configure"
5600 #include "confdefs.h"
5601 #include <sys/types.h>
5602 #include <signal.h>
5603 #ifdef signal
5604 # undef signal
5605 #endif
5606 #ifdef __cplusplus
5607 extern "C" void (*signal (int, void (*)(int)))(int);
5608 #else
5609 void (*signal ()) ();
5610 #endif
5611
5612 int
5613 main ()
5614 {
5615 int i;
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (eval echo "$as_me:5621: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
5623 ac_status=$?
5624 echo "$as_me:5624: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:5627: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:5630: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_cv_type_signal=void
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5636 ac_cv_type_signal=int
5637 fi
5638 rm -f conftest.$ac_objext conftest.$ac_ext
5639 fi
5640 echo "$as_me:5640: result: $ac_cv_type_signal" >&5
5641 echo "${ECHO_T}$ac_cv_type_signal" >&6
5642
5643 cat >>confdefs.h <<EOF
5644 #define RETSIGTYPE $ac_cv_type_signal
5645 EOF
5646
5647 if test "$ac_cv_type_signal" = void ; then
5648 cat >>confdefs.h <<\EOF
5649 #define RETSIGVAL
5650 EOF
5651
5652 else
5653 cat >>confdefs.h <<\EOF
5654 #define RETSIGVAL (0)
5655 EOF
5656
5657 fi
5658 case "$host_os" in
5659
5660 irix*)
5661 cat >>confdefs.h <<\EOF
5662 #define _BSD_SIGNALS 1
5663 EOF
5664
5665 ;;
5666
5667 *)
5668
5669 for ac_func in sigaction
5670 do
5671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5672 echo "$as_me:5672: checking for $ac_func" >&5
5673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5674 if eval "test \"\${$as_ac_var+set}\" = set"; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 cat >conftest.$ac_ext <<_ACEOF
5678 #line 5678 "configure"
5679 #include "confdefs.h"
5680 /* System header to define __stub macros and hopefully few prototypes,
5681 which can conflict with char $ac_func (); below. */
5682 #include <assert.h>
5683 /* Override any gcc2 internal prototype to avoid an error. */
5684 #ifdef __cplusplus
5685 extern "C"
5686 #endif
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5689 char $ac_func ();
5690 char (*f) ();
5691
5692 int
5693 main ()
5694 {
5695 /* The GNU C library defines this for functions which it implements
5696 to always fail with ENOSYS. Some functions are actually named
5697 something starting with __ and the normal name is an alias. */
5698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5699 choke me
5700 #else
5701 f = $ac_func;
5702 #endif
5703
5704 ;
5705 return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (eval echo "$as_me:5709: \"$ac_link\"") >&5
5710 (eval $ac_link) 2>&5
5711 ac_status=$?
5712 echo "$as_me:5712: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:5715: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:5718: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 eval "$as_ac_var=yes"
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5724 eval "$as_ac_var=no"
5725 fi
5726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5727 fi
5728 echo "$as_me:5728: result: `eval echo '${'$as_ac_var'}'`" >&5
5729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5730 if test `eval echo '${'$as_ac_var'}'` = yes; then
5731 cat >>confdefs.h <<EOF
5732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5733 EOF
5734
5735 fi
5736 done
5737
5738 if test $ac_cv_func_sigaction = no ; then
5739
5740 for ac_func in sigset
5741 do
5742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5743 echo "$as_me:5743: checking for $ac_func" >&5
5744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5745 if eval "test \"\${$as_ac_var+set}\" = set"; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 cat >conftest.$ac_ext <<_ACEOF
5749 #line 5749 "configure"
5750 #include "confdefs.h"
5751 /* System header to define __stub macros and hopefully few prototypes,
5752 which can conflict with char $ac_func (); below. */
5753 #include <assert.h>
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5760 char $ac_func ();
5761 char (*f) ();
5762
5763 int
5764 main ()
5765 {
5766 /* The GNU C library defines this for functions which it implements
5767 to always fail with ENOSYS. Some functions are actually named
5768 something starting with __ and the normal name is an alias. */
5769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5770 choke me
5771 #else
5772 f = $ac_func;
5773 #endif
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:5780: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5782 ac_status=$?
5783 echo "$as_me:5783: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:5786: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:5789: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 eval "$as_ac_var=yes"
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 eval "$as_ac_var=no"
5796 fi
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 fi
5799 echo "$as_me:5799: result: `eval echo '${'$as_ac_var'}'`" >&5
5800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5801 if test `eval echo '${'$as_ac_var'}'` = yes; then
5802 cat >>confdefs.h <<EOF
5803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5804 EOF
5805
5806 fi
5807 done
5808
5809 fi
5810 ;;
5811 esac
5812
5813 echo "$as_me:5813: checking for library containing dnet_htoa" >&5
5814 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
5815 if test "${ac_cv_search_dnet_htoa+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 ac_func_search_save_LIBS=$LIBS
5819 ac_cv_search_dnet_htoa=no
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line 5821 "configure"
5822 #include "confdefs.h"
5823
5824 /* Override any gcc2 internal prototype to avoid an error. */
5825 #ifdef __cplusplus
5826 extern "C"
5827 #endif
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5830 char dnet_htoa ();
5831 int
5832 main ()
5833 {
5834 dnet_htoa ();
5835 ;
5836 return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:5840: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>&5
5842 ac_status=$?
5843 echo "$as_me:5843: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:5846: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:5849: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_search_dnet_htoa="none required"
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 fi
5856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5857 if test "$ac_cv_search_dnet_htoa" = no; then
5858 for ac_lib in dnet; do
5859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5860 cat >conftest.$ac_ext <<_ACEOF
5861 #line 5861 "configure"
5862 #include "confdefs.h"
5863
5864 /* Override any gcc2 internal prototype to avoid an error. */
5865 #ifdef __cplusplus
5866 extern "C"
5867 #endif
5868 /* We use char because int might match the return type of a gcc2
5869 builtin and then its argument prototype would still apply. */
5870 char dnet_htoa ();
5871 int
5872 main ()
5873 {
5874 dnet_htoa ();
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (eval echo "$as_me:5880: \"$ac_link\"") >&5
5881 (eval $ac_link) 2>&5
5882 ac_status=$?
5883 echo "$as_me:5883: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -s conftest$ac_exeext'
5886 { (eval echo "$as_me:5886: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:5889: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_cv_search_dnet_htoa="-l$ac_lib"
5892 break
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5896 fi
5897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5898 done
5899 fi
5900 LIBS=$ac_func_search_save_LIBS
5901 fi
5902 echo "$as_me:5902: result: $ac_cv_search_dnet_htoa" >&5
5903 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
5904 if test "$ac_cv_search_dnet_htoa" != no; then
5905 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
5906 cat >>confdefs.h <<\EOF
5907 #define HAVE_DNET_HTOA 1
5908 EOF
5909
5910 fi
5911
5912 echo "$as_me:5912: checking for main in -lrpc" >&5
5913 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
5914 if test "${ac_cv_lib_rpc_main+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917 ac_check_lib_save_LIBS=$LIBS
5918 LIBS="-lrpc $LIBS"
5919 cat >conftest.$ac_ext <<_ACEOF
5920 #line 5920 "configure"
5921 #include "confdefs.h"
5922
5923 int
5924 main ()
5925 {
5926 main ();
5927 ;
5928 return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (eval echo "$as_me:5932: \"$ac_link\"") >&5
5933 (eval $ac_link) 2>&5
5934 ac_status=$?
5935 echo "$as_me:5935: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -s conftest$ac_exeext'
5938 { (eval echo "$as_me:5938: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:5941: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_lib_rpc_main=yes
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5947 ac_cv_lib_rpc_main=no
5948 fi
5949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5950 LIBS=$ac_check_lib_save_LIBS
5951 fi
5952 echo "$as_me:5952: result: $ac_cv_lib_rpc_main" >&5
5953 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
5954 if test $ac_cv_lib_rpc_main = yes; then
5955 cat >>confdefs.h <<EOF
5956 #define HAVE_LIBRPC 1
5957 EOF
5958
5959 LIBS="-lrpc $LIBS"
5960
5961 fi
5962
5963 echo "$as_me:5963: checking for library containing getrpcbynumber" >&5
5964 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
5965 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968 ac_func_search_save_LIBS=$LIBS
5969 ac_cv_search_getrpcbynumber=no
5970 cat >conftest.$ac_ext <<_ACEOF
5971 #line 5971 "configure"
5972 #include "confdefs.h"
5973
5974 /* Override any gcc2 internal prototype to avoid an error. */
5975 #ifdef __cplusplus
5976 extern "C"
5977 #endif
5978 /* We use char because int might match the return type of a gcc2
5979 builtin and then its argument prototype would still apply. */
5980 char getrpcbynumber ();
5981 int
5982 main ()
5983 {
5984 getrpcbynumber ();
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 rm -f conftest.$ac_objext conftest$ac_exeext
5990 if { (eval echo "$as_me:5990: \"$ac_link\"") >&5
5991 (eval $ac_link) 2>&5
5992 ac_status=$?
5993 echo "$as_me:5993: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -s conftest$ac_exeext'
5996 { (eval echo "$as_me:5996: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:5999: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_search_getrpcbynumber="none required"
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6005 fi
6006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6007 if test "$ac_cv_search_getrpcbynumber" = no; then
6008 for ac_lib in nsl; do
6009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6010 cat >conftest.$ac_ext <<_ACEOF
6011 #line 6011 "configure"
6012 #include "confdefs.h"
6013
6014 /* Override any gcc2 internal prototype to avoid an error. */
6015 #ifdef __cplusplus
6016 extern "C"
6017 #endif
6018 /* We use char because int might match the return type of a gcc2
6019 builtin and then its argument prototype would still apply. */
6020 char getrpcbynumber ();
6021 int
6022 main ()
6023 {
6024 getrpcbynumber ();
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest.$ac_objext conftest$ac_exeext
6030 if { (eval echo "$as_me:6030: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>&5
6032 ac_status=$?
6033 echo "$as_me:6033: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
6035 { ac_try='test -s conftest$ac_exeext'
6036 { (eval echo "$as_me:6036: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:6039: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_cv_search_getrpcbynumber="-l$ac_lib"
6042 break
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6046 fi
6047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6048 done
6049 fi
6050 LIBS=$ac_func_search_save_LIBS
6051 fi
6052 echo "$as_me:6052: result: $ac_cv_search_getrpcbynumber" >&5
6053 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
6054 if test "$ac_cv_search_getrpcbynumber" != no; then
6055 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
6056
6057 fi
6058
6059 # Most operating systems have gethostbyname() in the default searched
6060 # libraries (i.e. libc):
6061 # Some OSes (eg. Solaris) place it in libnsl
6062 # Some strange OSes (SINIX) have it in libsocket:
6063 echo "$as_me:6063: checking for library containing gethostbyname" >&5
6064 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
6065 if test "${ac_cv_search_gethostbyname+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 ac_func_search_save_LIBS=$LIBS
6069 ac_cv_search_gethostbyname=no
6070 cat >conftest.$ac_ext <<_ACEOF
6071 #line 6071 "configure"
6072 #include "confdefs.h"
6073
6074 /* Override any gcc2 internal prototype to avoid an error. */
6075 #ifdef __cplusplus
6076 extern "C"
6077 #endif
6078 /* We use char because int might match the return type of a gcc2
6079 builtin and then its argument prototype would still apply. */
6080 char gethostbyname ();
6081 int
6082 main ()
6083 {
6084 gethostbyname ();
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 rm -f conftest.$ac_objext conftest$ac_exeext
6090 if { (eval echo "$as_me:6090: \"$ac_link\"") >&5
6091 (eval $ac_link) 2>&5
6092 ac_status=$?
6093 echo "$as_me:6093: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -s conftest$ac_exeext'
6096 { (eval echo "$as_me:6096: \"$ac_try\"") >&5
6097 (eval $ac_try) 2>&5
6098 ac_status=$?
6099 echo "$as_me:6099: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 ac_cv_search_gethostbyname="none required"
6102 else
6103 echo "$as_me: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6105 fi
6106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6107 if test "$ac_cv_search_gethostbyname" = no; then
6108 for ac_lib in nsl socket resolv; do
6109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line 6111 "configure"
6112 #include "confdefs.h"
6113
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 #ifdef __cplusplus
6116 extern "C"
6117 #endif
6118 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */
6120 char gethostbyname ();
6121 int
6122 main ()
6123 {
6124 gethostbyname ();
6125 ;
6126 return 0;
6127 }
6128 _ACEOF
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:6130: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>&5
6132 ac_status=$?
6133 echo "$as_me:6133: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try='test -s conftest$ac_exeext'
6136 { (eval echo "$as_me:6136: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:6139: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_search_gethostbyname="-l$ac_lib"
6142 break
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6146 fi
6147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6148 done
6149 fi
6150 LIBS=$ac_func_search_save_LIBS
6151 fi
6152 echo "$as_me:6152: result: $ac_cv_search_gethostbyname" >&5
6153 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
6154 if test "$ac_cv_search_gethostbyname" != no; then
6155 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6156
6157 fi
6158
6159 # Unfortunately libsocket sometimes depends on libnsl and
6160 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6161 if test "$ac_cv_search_gethostbyname" = "no"
6162 then
6163 echo "$as_me:6163: checking for gethostbyname in -lsocket" >&5
6164 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
6165 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 ac_check_lib_save_LIBS=$LIBS
6169 LIBS="-lsocket -lnsl $LIBS"
6170 cat >conftest.$ac_ext <<_ACEOF
6171 #line 6171 "configure"
6172 #include "confdefs.h"
6173
6174 /* Override any gcc2 internal prototype to avoid an error. */
6175 #ifdef __cplusplus
6176 extern "C"
6177 #endif
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6180 char gethostbyname ();
6181 int
6182 main ()
6183 {
6184 gethostbyname ();
6185 ;
6186 return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (eval echo "$as_me:6190: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>&5
6192 ac_status=$?
6193 echo "$as_me:6193: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -s conftest$ac_exeext'
6196 { (eval echo "$as_me:6196: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:6199: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_lib_socket_gethostbyname=yes
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6205 ac_cv_lib_socket_gethostbyname=no
6206 fi
6207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6208 LIBS=$ac_check_lib_save_LIBS
6209 fi
6210 echo "$as_me:6210: result: $ac_cv_lib_socket_gethostbyname" >&5
6211 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
6212 if test $ac_cv_lib_socket_gethostbyname = yes; then
6213 LIBS="-lsocket -lnsl $LIBS"
6214 fi
6215
6216 fi
6217 echo "$as_me:6217: checking for library containing socket" >&5
6218 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
6219 if test "${ac_cv_search_socket+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 ac_func_search_save_LIBS=$LIBS
6223 ac_cv_search_socket=no
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line 6225 "configure"
6226 #include "confdefs.h"
6227
6228 /* Override any gcc2 internal prototype to avoid an error. */
6229 #ifdef __cplusplus
6230 extern "C"
6231 #endif
6232 /* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */
6234 char socket ();
6235 int
6236 main ()
6237 {
6238 socket ();
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (eval echo "$as_me:6244: \"$ac_link\"") >&5
6245 (eval $ac_link) 2>&5
6246 ac_status=$?
6247 echo "$as_me:6247: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -s conftest$ac_exeext'
6250 { (eval echo "$as_me:6250: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_search_socket="none required"
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 fi
6260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6261 if test "$ac_cv_search_socket" = no; then
6262 for ac_lib in socket; do
6263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6264 cat >conftest.$ac_ext <<_ACEOF
6265 #line 6265 "configure"
6266 #include "confdefs.h"
6267
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 #ifdef __cplusplus
6270 extern "C"
6271 #endif
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6274 char socket ();
6275 int
6276 main ()
6277 {
6278 socket ();
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:6284: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6286 ac_status=$?
6287 echo "$as_me:6287: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:6290: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:6293: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_search_socket="-l$ac_lib"
6296 break
6297 else
6298 echo "$as_me: failed program was:" >&5
6299 cat conftest.$ac_ext >&5
6300 fi
6301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6302 done
6303 fi
6304 LIBS=$ac_func_search_save_LIBS
6305 fi
6306 echo "$as_me:6306: result: $ac_cv_search_socket" >&5
6307 echo "${ECHO_T}$ac_cv_search_socket" >&6
6308 if test "$ac_cv_search_socket" != no; then
6309 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
6310
6311 else
6312 echo "$as_me:6312: checking for socket in -lsocket" >&5
6313 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6314 if test "${ac_cv_lib_socket_socket+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 ac_check_lib_save_LIBS=$LIBS
6318 LIBS="-lsocket -lnsl $LIBS"
6319 cat >conftest.$ac_ext <<_ACEOF
6320 #line 6320 "configure"
6321 #include "confdefs.h"
6322
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 #ifdef __cplusplus
6325 extern "C"
6326 #endif
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6329 char socket ();
6330 int
6331 main ()
6332 {
6333 socket ();
6334 ;
6335 return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (eval echo "$as_me:6339: \"$ac_link\"") >&5
6340 (eval $ac_link) 2>&5
6341 ac_status=$?
6342 echo "$as_me:6342: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try='test -s conftest$ac_exeext'
6345 { (eval echo "$as_me:6345: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_lib_socket_socket=yes
6351 else
6352 echo "$as_me: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6354 ac_cv_lib_socket_socket=no
6355 fi
6356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6357 LIBS=$ac_check_lib_save_LIBS
6358 fi
6359 echo "$as_me:6359: result: $ac_cv_lib_socket_socket" >&5
6360 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6361 if test $ac_cv_lib_socket_socket = yes; then
6362 LIBS="-lsocket -lnsl $LIBS"
6363 fi
6364
6365 fi
6366
6367 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6368 echo "$as_me:6368: checking for library containing putmsg" >&5
6369 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
6370 if test "${ac_cv_search_putmsg+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 ac_func_search_save_LIBS=$LIBS
6374 ac_cv_search_putmsg=no
6375 cat >conftest.$ac_ext <<_ACEOF
6376 #line 6376 "configure"
6377 #include "confdefs.h"
6378
6379 /* Override any gcc2 internal prototype to avoid an error. */
6380 #ifdef __cplusplus
6381 extern "C"
6382 #endif
6383 /* We use char because int might match the return type of a gcc2
6384 builtin and then its argument prototype would still apply. */
6385 char putmsg ();
6386 int
6387 main ()
6388 {
6389 putmsg ();
6390 ;
6391 return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (eval echo "$as_me:6395: \"$ac_link\"") >&5
6396 (eval $ac_link) 2>&5
6397 ac_status=$?
6398 echo "$as_me:6398: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -s conftest$ac_exeext'
6401 { (eval echo "$as_me:6401: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:6404: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 ac_cv_search_putmsg="none required"
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6410 fi
6411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6412 if test "$ac_cv_search_putmsg" = no; then
6413 for ac_lib in str; do
6414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line 6416 "configure"
6417 #include "confdefs.h"
6418
6419 /* Override any gcc2 internal prototype to avoid an error. */
6420 #ifdef __cplusplus
6421 extern "C"
6422 #endif
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6425 char putmsg ();
6426 int
6427 main ()
6428 {
6429 putmsg ();
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:6435: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>&5
6437 ac_status=$?
6438 echo "$as_me:6438: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -s conftest$ac_exeext'
6441 { (eval echo "$as_me:6441: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_cv_search_putmsg="-l$ac_lib"
6447 break
6448 else
6449 echo "$as_me: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 fi
6452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6453 done
6454 fi
6455 LIBS=$ac_func_search_save_LIBS
6456 fi
6457 echo "$as_me:6457: result: $ac_cv_search_putmsg" >&5
6458 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
6459 if test "$ac_cv_search_putmsg" != no; then
6460 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
6461
6462 fi
6463
6464 LBL_LIBS="$LIBS"
6465 pfopen=/usr/examples/packetfilter/pfopen.c
6466 if test -f $pfopen ; then
6467
6468 for ac_func in pfopen
6469 do
6470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6471 echo "$as_me:6471: checking for $ac_func" >&5
6472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6473 if eval "test \"\${$as_ac_var+set}\" = set"; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476 cat >conftest.$ac_ext <<_ACEOF
6477 #line 6477 "configure"
6478 #include "confdefs.h"
6479 /* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char $ac_func (); below. */
6481 #include <assert.h>
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 #ifdef __cplusplus
6484 extern "C"
6485 #endif
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char $ac_func ();
6489 char (*f) ();
6490
6491 int
6492 main ()
6493 {
6494 /* The GNU C library defines this for functions which it implements
6495 to always fail with ENOSYS. Some functions are actually named
6496 something starting with __ and the normal name is an alias. */
6497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6498 choke me
6499 #else
6500 f = $ac_func;
6501 #endif
6502
6503 ;
6504 return 0;
6505 }
6506 _ACEOF
6507 rm -f conftest.$ac_objext conftest$ac_exeext
6508 if { (eval echo "$as_me:6508: \"$ac_link\"") >&5
6509 (eval $ac_link) 2>&5
6510 ac_status=$?
6511 echo "$as_me:6511: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
6513 { ac_try='test -s conftest$ac_exeext'
6514 { (eval echo "$as_me:6514: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:6517: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 eval "$as_ac_var=yes"
6520 else
6521 echo "$as_me: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6523 eval "$as_ac_var=no"
6524 fi
6525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6526 fi
6527 echo "$as_me:6527: result: `eval echo '${'$as_ac_var'}'`" >&5
6528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6529 if test `eval echo '${'$as_ac_var'}'` = yes; then
6530 cat >>confdefs.h <<EOF
6531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6532 EOF
6533
6534 fi
6535 done
6536
6537 if test $ac_cv_func_pfopen = "no" ; then
6538 echo "$as_me:6538: result: Using $pfopen" >&5
6539 echo "${ECHO_T}Using $pfopen" >&6
6540 LIBS="$LIBS $pfopen"
6541 fi
6542 fi
6543 echo "$as_me:6543: checking for local pcap library" >&5
6544 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
6545 libpcap=FAIL
6546 lastdir=FAIL
6547 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
6548 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
6549 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
6550 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
6551 if test $lastdir = $basedir ; then
6552 continue;
6553 fi
6554 lastdir=$dir
6555 if test -r $dir/libpcap.a ; then
6556 libpcap=$dir/libpcap.a
6557 d=$dir
6558 fi
6559 done
6560 if test $libpcap = FAIL ; then
6561 echo "$as_me:6561: result: not found" >&5
6562 echo "${ECHO_T}not found" >&6
6563 echo "$as_me:6563: checking for main in -lpcap" >&5
6564 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
6565 if test "${ac_cv_lib_pcap_main+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568 ac_check_lib_save_LIBS=$LIBS
6569 LIBS="-lpcap $LIBS"
6570 cat >conftest.$ac_ext <<_ACEOF
6571 #line 6571 "configure"
6572 #include "confdefs.h"
6573
6574 int
6575 main ()
6576 {
6577 main ();
6578 ;
6579 return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:6583: \"$ac_link\"") >&5
6584 (eval $ac_link) 2>&5
6585 ac_status=$?
6586 echo "$as_me:6586: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:6589: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:6592: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_lib_pcap_main=yes
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 ac_cv_lib_pcap_main=no
6599 fi
6600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6601 LIBS=$ac_check_lib_save_LIBS
6602 fi
6603 echo "$as_me:6603: result: $ac_cv_lib_pcap_main" >&5
6604 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
6605 if test $ac_cv_lib_pcap_main = yes; then
6606 libpcap="-lpcap"
6607 fi
6608
6609 if test $libpcap = FAIL ; then
6610 { { echo "$as_me:6610: error: see the INSTALL doc for more info" >&5
6611 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
6612 { (exit 1); exit 1; }; }
6613 fi
6614 echo "$as_me:6614: checking for extraneous pcap header directories" >&5
6615 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
6616 if test \( ! -r /usr/local/include/pcap.h \) -a \
6617 \( ! -r /usr/include/pcap.h \); then
6618 if test -r /usr/local/include/pcap/pcap.h; then
6619 d="/usr/local/include/pcap"
6620 elif test -r /usr/include/pcap/pcap.h; then
6621 d="/usr/include/pcap"
6622 fi
6623 fi
6624 if test -z "$d" ; then
6625 echo "$as_me:6625: result: not found" >&5
6626 echo "${ECHO_T}not found" >&6
6627 else
6628 V_INCLS="-I$d $V_INCLS"
6629 echo "$as_me:6629: result: found -- -I$d added" >&5
6630 echo "${ECHO_T}found -- -I$d added" >&6
6631 fi
6632 else
6633 V_PCAPDEP=$libpcap
6634 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
6635 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
6636 if test -r $d/pcap.h; then
6637 V_INCLS="-I$d $V_INCLS"
6638 elif test -r $places/pcap.h; then
6639 V_INCLS="-I$places $V_INCLS"
6640 else
6641 { { echo "$as_me:6641: error: cannot find pcap.h" >&5
6642 echo "$as_me: error: cannot find pcap.h" >&2;}
6643 { (exit see INSTALL); exit see INSTALL; }; }
6644 fi
6645 echo "$as_me:6645: result: $libpcap" >&5
6646 echo "${ECHO_T}$libpcap" >&6
6647 fi
6648 LIBS="$libpcap $LIBS"
6649 case "$host_os" in
6650
6651 aix*)
6652 pseexe="/lib/pse.exp"
6653 echo "$as_me:6653: checking for $pseexe" >&5
6654 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
6655 if test -f $pseexe ; then
6656 echo "$as_me:6656: result: yes" >&5
6657 echo "${ECHO_T}yes" >&6
6658 LIBS="$LIBS -I:$pseexe"
6659 fi
6660 #
6661 # We need "-lodm" and "-lcfg", as libpcap requires them on
6662 # AIX, and we just build a static libpcap.a and thus can't
6663 # arrange that when you link with libpcap you automatically
6664 # link with those libraries.
6665 #
6666 LIBS="$LIBS -lodm -lcfg"
6667 ;;
6668 esac
6669
6670 echo "$as_me:6670: checking for pcap_list_datalinks" >&5
6671 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
6672 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 cat >conftest.$ac_ext <<_ACEOF
6676 #line 6676 "configure"
6677 #include "confdefs.h"
6678 /* System header to define __stub macros and hopefully few prototypes,
6679 which can conflict with char pcap_list_datalinks (); below. */
6680 #include <assert.h>
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 #ifdef __cplusplus
6683 extern "C"
6684 #endif
6685 /* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6687 char pcap_list_datalinks ();
6688 char (*f) ();
6689
6690 int
6691 main ()
6692 {
6693 /* The GNU C library defines this for functions which it implements
6694 to always fail with ENOSYS. Some functions are actually named
6695 something starting with __ and the normal name is an alias. */
6696 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
6697 choke me
6698 #else
6699 f = pcap_list_datalinks;
6700 #endif
6701
6702 ;
6703 return 0;
6704 }
6705 _ACEOF
6706 rm -f conftest.$ac_objext conftest$ac_exeext
6707 if { (eval echo "$as_me:6707: \"$ac_link\"") >&5
6708 (eval $ac_link) 2>&5
6709 ac_status=$?
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -s conftest$ac_exeext'
6713 { (eval echo "$as_me:6713: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:6716: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_func_pcap_list_datalinks=yes
6719 else
6720 echo "$as_me: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6722 ac_cv_func_pcap_list_datalinks=no
6723 fi
6724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6725 fi
6726 echo "$as_me:6726: result: $ac_cv_func_pcap_list_datalinks" >&5
6727 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
6728 if test $ac_cv_func_pcap_list_datalinks = yes; then
6729 cat >>confdefs.h <<\EOF
6730 #define HAVE_PCAP_LIST_DATALINKS 1
6731 EOF
6732
6733 else
6734 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
6735 fi
6736
6737 echo "$as_me:6737: checking for pcap_set_datalink" >&5
6738 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
6739 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 #line 6743 "configure"
6744 #include "confdefs.h"
6745 /* System header to define __stub macros and hopefully few prototypes,
6746 which can conflict with char pcap_set_datalink (); below. */
6747 #include <assert.h>
6748 /* Override any gcc2 internal prototype to avoid an error. */
6749 #ifdef __cplusplus
6750 extern "C"
6751 #endif
6752 /* We use char because int might match the return type of a gcc2
6753 builtin and then its argument prototype would still apply. */
6754 char pcap_set_datalink ();
6755 char (*f) ();
6756
6757 int
6758 main ()
6759 {
6760 /* The GNU C library defines this for functions which it implements
6761 to always fail with ENOSYS. Some functions are actually named
6762 something starting with __ and the normal name is an alias. */
6763 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
6764 choke me
6765 #else
6766 f = pcap_set_datalink;
6767 #endif
6768
6769 ;
6770 return 0;
6771 }
6772 _ACEOF
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (eval echo "$as_me:6774: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6776 ac_status=$?
6777 echo "$as_me:6777: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:6780: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:6783: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_func_pcap_set_datalink=yes
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 ac_cv_func_pcap_set_datalink=no
6790 fi
6791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 fi
6793 echo "$as_me:6793: result: $ac_cv_func_pcap_set_datalink" >&5
6794 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
6795 if test $ac_cv_func_pcap_set_datalink = yes; then
6796 cat >>confdefs.h <<\EOF
6797 #define HAVE_PCAP_SET_DATALINK 1
6798 EOF
6799
6800 fi
6801
6802 echo "$as_me:6802: checking for pcap_datalink_name_to_val" >&5
6803 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
6804 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 cat >conftest.$ac_ext <<_ACEOF
6808 #line 6808 "configure"
6809 #include "confdefs.h"
6810 /* System header to define __stub macros and hopefully few prototypes,
6811 which can conflict with char pcap_datalink_name_to_val (); below. */
6812 #include <assert.h>
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 #ifdef __cplusplus
6815 extern "C"
6816 #endif
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819 char pcap_datalink_name_to_val ();
6820 char (*f) ();
6821
6822 int
6823 main ()
6824 {
6825 /* The GNU C library defines this for functions which it implements
6826 to always fail with ENOSYS. Some functions are actually named
6827 something starting with __ and the normal name is an alias. */
6828 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
6829 choke me
6830 #else
6831 f = pcap_datalink_name_to_val;
6832 #endif
6833
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:6839: \"$ac_link\"") >&5
6840 (eval $ac_link) 2>&5
6841 ac_status=$?
6842 echo "$as_me:6842: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:6845: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_func_pcap_datalink_name_to_val=yes
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 ac_cv_func_pcap_datalink_name_to_val=no
6855 fi
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6857 fi
6858 echo "$as_me:6858: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
6859 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
6860 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
6861
6862 cat >>confdefs.h <<\EOF
6863 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
6864 EOF
6865
6866 echo "$as_me:6866: checking for pcap_datalink_val_to_description" >&5
6867 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
6868 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 cat >conftest.$ac_ext <<_ACEOF
6872 #line 6872 "configure"
6873 #include "confdefs.h"
6874 /* System header to define __stub macros and hopefully few prototypes,
6875 which can conflict with char pcap_datalink_val_to_description (); below. */
6876 #include <assert.h>
6877 /* Override any gcc2 internal prototype to avoid an error. */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6883 char pcap_datalink_val_to_description ();
6884 char (*f) ();
6885
6886 int
6887 main ()
6888 {
6889 /* The GNU C library defines this for functions which it implements
6890 to always fail with ENOSYS. Some functions are actually named
6891 something starting with __ and the normal name is an alias. */
6892 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
6893 choke me
6894 #else
6895 f = pcap_datalink_val_to_description;
6896 #endif
6897
6898 ;
6899 return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest.$ac_objext conftest$ac_exeext
6903 if { (eval echo "$as_me:6903: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>&5
6905 ac_status=$?
6906 echo "$as_me:6906: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:6909: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:6912: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_func_pcap_datalink_val_to_description=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6918 ac_cv_func_pcap_datalink_val_to_description=no
6919 fi
6920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6921 fi
6922 echo "$as_me:6922: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
6923 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
6924 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
6925 cat >>confdefs.h <<\EOF
6926 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
6927 EOF
6928
6929 else
6930 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
6931 fi
6932
6933 else
6934 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
6935 fi
6936
6937 for ac_func in pcap_breakloop
6938 do
6939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6940 echo "$as_me:6940: checking for $ac_func" >&5
6941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6942 if eval "test \"\${$as_ac_var+set}\" = set"; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 cat >conftest.$ac_ext <<_ACEOF
6946 #line 6946 "configure"
6947 #include "confdefs.h"
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char $ac_func (); below. */
6950 #include <assert.h>
6951 /* Override any gcc2 internal prototype to avoid an error. */
6952 #ifdef __cplusplus
6953 extern "C"
6954 #endif
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957 char $ac_func ();
6958 char (*f) ();
6959
6960 int
6961 main ()
6962 {
6963 /* The GNU C library defines this for functions which it implements
6964 to always fail with ENOSYS. Some functions are actually named
6965 something starting with __ and the normal name is an alias. */
6966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6967 choke me
6968 #else
6969 f = $ac_func;
6970 #endif
6971
6972 ;
6973 return 0;
6974 }
6975 _ACEOF
6976 rm -f conftest.$ac_objext conftest$ac_exeext
6977 if { (eval echo "$as_me:6977: \"$ac_link\"") >&5
6978 (eval $ac_link) 2>&5
6979 ac_status=$?
6980 echo "$as_me:6980: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try='test -s conftest$ac_exeext'
6983 { (eval echo "$as_me:6983: \"$ac_try\"") >&5
6984 (eval $ac_try) 2>&5
6985 ac_status=$?
6986 echo "$as_me:6986: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 eval "$as_ac_var=yes"
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 eval "$as_ac_var=no"
6993 fi
6994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6995 fi
6996 echo "$as_me:6996: result: `eval echo '${'$as_ac_var'}'`" >&5
6997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6998 if test `eval echo '${'$as_ac_var'}'` = yes; then
6999 cat >>confdefs.h <<EOF
7000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7001 EOF
7002
7003 fi
7004 done
7005
7006 #
7007 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
7008 # libraries (e.g., "-lsocket -lnsl" on Solaris).
7009 #
7010 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
7011 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
7012 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
7013 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
7014 # it does not ship with a libc symbol "inet_ntop()", it ships with
7015 # "_inet_ntop()", and has a #define macro in one of the system headers
7016 # to rename it.
7017 #
7018 echo "$as_me:7018: checking for inet_ntop" >&5
7019 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
7020 cat >conftest.$ac_ext <<_ACEOF
7021 #line 7021 "configure"
7022 #include "confdefs.h"
7023 #include <sys/types.h>
7024 #include <sys/socket.h>
7025 #include <netinet/in.h>
7026 #include <arpa/inet.h>
7027 int
7028 main ()
7029 {
7030 char src[4], dst[128];
7031 inet_ntop(AF_INET, src, dst, sizeof(dst));
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 rm -f conftest.$ac_objext conftest$ac_exeext
7037 if { (eval echo "$as_me:7037: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7039 ac_status=$?
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -s conftest$ac_exeext'
7043 { (eval echo "$as_me:7043: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 echo "$as_me:7048: result: yes" >&5
7049 echo "${ECHO_T}yes" >&6
7050 else
7051 echo "$as_me: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7053 echo "$as_me:7053: result: no" >&5
7054 echo "${ECHO_T}no" >&6
7055 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
7056 fi
7057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7058 echo "$as_me:7058: checking for inet_pton" >&5
7059 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
7060 cat >conftest.$ac_ext <<_ACEOF
7061 #line 7061 "configure"
7062 #include "confdefs.h"
7063 #include <sys/types.h>
7064 #include <sys/socket.h>
7065 #include <netinet/in.h>
7066 #include <arpa/inet.h>
7067 int
7068 main ()
7069 {
7070 char src[128], dst[4];
7071 inet_pton(AF_INET, src, dst);
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:7077: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7079 ac_status=$?
7080 echo "$as_me:7080: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:7083: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:7086: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 echo "$as_me:7088: result: yes" >&5
7089 echo "${ECHO_T}yes" >&6
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 echo "$as_me:7093: result: no" >&5
7094 echo "${ECHO_T}no" >&6
7095 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
7096 fi
7097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7098 echo "$as_me:7098: checking for inet_aton" >&5
7099 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 #line 7101 "configure"
7102 #include "confdefs.h"
7103 #include <sys/types.h>
7104 #include <netinet/in.h>
7105 #include <arpa/inet.h>
7106 int
7107 main ()
7108 {
7109 char src[128];
7110 struct in_addr dst;
7111 inet_aton(src, &dst);
7112 ;
7113 return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:7117: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>&5
7119 ac_status=$?
7120 echo "$as_me:7120: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:7123: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:7126: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 echo "$as_me:7128: result: yes" >&5
7129 echo "${ECHO_T}yes" >&6
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7133 echo "$as_me:7133: result: no" >&5
7134 echo "${ECHO_T}no" >&6
7135 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
7136 fi
7137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7138
7139 echo "$as_me:7139: checking if sockaddr struct has sa_len member" >&5
7140 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
7141 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 cat >conftest.$ac_ext <<_ACEOF
7145 #line 7145 "configure"
7146 #include "confdefs.h"
7147
7148 # include <sys/types.h>
7149 # include <sys/socket.h>
7150 int
7151 main ()
7152 {
7153 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7154 ;
7155 return 0;
7156 }
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (eval echo "$as_me:7159: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>&5
7161 ac_status=$?
7162 echo "$as_me:7162: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:7165: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:7168: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_cv_sockaddr_has_sa_len=yes
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7174 ac_cv_sockaddr_has_sa_len=no
7175 fi
7176 rm -f conftest.$ac_objext conftest.$ac_ext
7177 fi
7178
7179 echo "$as_me:7179: result: $ac_cv_sockaddr_has_sa_len" >&5
7180 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
7181 if test $ac_cv_sockaddr_has_sa_len = yes ; then
7182 cat >>confdefs.h <<\EOF
7183 #define HAVE_SOCKADDR_SA_LEN 1
7184 EOF
7185
7186 fi
7187
7188 if test "$ac_cv_sockaddr_has_sa_len" = no; then
7189 missing_includes=yes
7190 fi
7191
7192 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
7193 do
7194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7195 echo "$as_me:7195: checking for $ac_func" >&5
7196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7197 if eval "test \"\${$as_ac_var+set}\" = set"; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 cat >conftest.$ac_ext <<_ACEOF
7201 #line 7201 "configure"
7202 #include "confdefs.h"
7203 /* System header to define __stub macros and hopefully few prototypes,
7204 which can conflict with char $ac_func (); below. */
7205 #include <assert.h>
7206 /* Override any gcc2 internal prototype to avoid an error. */
7207 #ifdef __cplusplus
7208 extern "C"
7209 #endif
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7212 char $ac_func ();
7213 char (*f) ();
7214
7215 int
7216 main ()
7217 {
7218 /* The GNU C library defines this for functions which it implements
7219 to always fail with ENOSYS. Some functions are actually named
7220 something starting with __ and the normal name is an alias. */
7221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7222 choke me
7223 #else
7224 f = $ac_func;
7225 #endif
7226
7227 ;
7228 return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (eval echo "$as_me:7232: \"$ac_link\"") >&5
7233 (eval $ac_link) 2>&5
7234 ac_status=$?
7235 echo "$as_me:7235: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -s conftest$ac_exeext'
7238 { (eval echo "$as_me:7238: \"$ac_try\"") >&5
7239 (eval $ac_try) 2>&5
7240 ac_status=$?
7241 echo "$as_me:7241: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7243 eval "$as_ac_var=yes"
7244 else
7245 echo "$as_me: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 eval "$as_ac_var=no"
7248 fi
7249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7250 fi
7251 echo "$as_me:7251: result: `eval echo '${'$as_ac_var'}'`" >&5
7252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7253 if test `eval echo '${'$as_ac_var'}'` = yes; then
7254 cat >>confdefs.h <<EOF
7255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7256 EOF
7257
7258 fi
7259 done
7260
7261 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
7262 savedcflags="$CFLAGS"
7263 CFLAGS="$CFLAGS $V_INCLS"
7264 echo "$as_me:7264: checking for pcap_if_t" >&5
7265 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
7266 if test "${ac_cv_type_pcap_if_t+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269 cat >conftest.$ac_ext <<_ACEOF
7270 #line 7270 "configure"
7271 #include "confdefs.h"
7272 #include <pcap.h>
7273
7274 int
7275 main ()
7276 {
7277 if ((pcap_if_t *) 0)
7278 return 0;
7279 if (sizeof (pcap_if_t))
7280 return 0;
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (eval echo "$as_me:7286: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>&5
7288 ac_status=$?
7289 echo "$as_me:7289: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
7291 { ac_try='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:7292: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:7295: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_cv_type_pcap_if_t=yes
7298 else
7299 echo "$as_me: failed program was:" >&5
7300 cat conftest.$ac_ext >&5
7301 ac_cv_type_pcap_if_t=no
7302 fi
7303 rm -f conftest.$ac_objext conftest.$ac_ext
7304 fi
7305 echo "$as_me:7305: result: $ac_cv_type_pcap_if_t" >&5
7306 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
7307 if test $ac_cv_type_pcap_if_t = yes; then
7308
7309 cat >>confdefs.h <<EOF
7310 #define HAVE_PCAP_IF_T 1
7311 EOF
7312
7313 fi
7314
7315 CFLAGS="$savedcflags"
7316 fi
7317
7318 if test $ac_cv_func_pcap_lib_version = "no" ; then
7319 echo "$as_me:7319: checking whether pcap_version is defined by libpcap" >&5
7320 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
7321 cat >conftest.$ac_ext <<_ACEOF
7322 #line 7322 "configure"
7323 #include "confdefs.h"
7324
7325 int
7326 main ()
7327 {
7328
7329 char *
7330 return_pcap_version(void)
7331 {
7332 extern char pcap_version[];
7333
7334 return pcap_version;
7335 }
7336
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 rm -f conftest.$ac_objext conftest$ac_exeext
7342 if { (eval echo "$as_me:7342: \"$ac_link\"") >&5
7343 (eval $ac_link) 2>&5
7344 ac_status=$?
7345 echo "$as_me:7345: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -s conftest$ac_exeext'
7348 { (eval echo "$as_me:7348: \"$ac_try\"") >&5
7349 (eval $ac_try) 2>&5
7350 ac_status=$?
7351 echo "$as_me:7351: \$? = $ac_status" >&5
7352 (exit $ac_status); }; }; then
7353 ac_lbl_cv_pcap_version_defined=yes
7354 else
7355 echo "$as_me: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7357 ac_lbl_cv_pcap_version_defined=no
7358 fi
7359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7360 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
7361 echo "$as_me:7361: result: yes" >&5
7362 echo "${ECHO_T}yes" >&6
7363 cat >>confdefs.h <<\EOF
7364 #define HAVE_PCAP_VERSION 1
7365 EOF
7366
7367 else
7368 echo "$as_me:7368: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7370 fi
7371 fi
7372 echo "$as_me:7372: checking whether pcap_debug is defined by libpcap" >&5
7373 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
7374 cat >conftest.$ac_ext <<_ACEOF
7375 #line 7375 "configure"
7376 #include "confdefs.h"
7377
7378 int
7379 main ()
7380 {
7381
7382 int
7383 return_pcap_debug(void)
7384 {
7385 extern int pcap_debug;
7386
7387 return pcap_debug;
7388 }
7389
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (eval echo "$as_me:7395: \"$ac_link\"") >&5
7396 (eval $ac_link) 2>&5
7397 ac_status=$?
7398 echo "$as_me:7398: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try='test -s conftest$ac_exeext'
7401 { (eval echo "$as_me:7401: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:7404: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7406 ac_lbl_cv_pcap_debug_defined=yes
7407 else
7408 echo "$as_me: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 ac_lbl_cv_pcap_debug_defined=no
7411 fi
7412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7413 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
7414 echo "$as_me:7414: result: yes" >&5
7415 echo "${ECHO_T}yes" >&6
7416 cat >>confdefs.h <<\EOF
7417 #define HAVE_PCAP_DEBUG 1
7418 EOF
7419
7420 else
7421 echo "$as_me:7421: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7423 #
7424 # OK, what about "yydebug"?
7425 #
7426 echo "$as_me:7426: checking whether yydebug is defined by libpcap" >&5
7427 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
7428 cat >conftest.$ac_ext <<_ACEOF
7429 #line 7429 "configure"
7430 #include "confdefs.h"
7431
7432 int
7433 main ()
7434 {
7435
7436 int
7437 return_yydebug(void)
7438 {
7439 extern int yydebug;
7440
7441 return yydebug;
7442 }
7443
7444 ;
7445 return 0;
7446 }
7447 _ACEOF
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (eval echo "$as_me:7449: \"$ac_link\"") >&5
7450 (eval $ac_link) 2>&5
7451 ac_status=$?
7452 echo "$as_me:7452: \$? = $ac_status" >&5
7453 (exit $ac_status); } &&
7454 { ac_try='test -s conftest$ac_exeext'
7455 { (eval echo "$as_me:7455: \"$ac_try\"") >&5
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
7458 echo "$as_me:7458: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_lbl_cv_yydebug_defined=yes
7461 else
7462 echo "$as_me: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7464 ac_lbl_cv_yydebug_defined=no
7465 fi
7466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7467 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
7468 echo "$as_me:7468: result: yes" >&5
7469 echo "${ECHO_T}yes" >&6
7470 cat >>confdefs.h <<\EOF
7471 #define HAVE_YYDEBUG 1
7472 EOF
7473
7474 else
7475 echo "$as_me:7475: result: no" >&5
7476 echo "${ECHO_T}no" >&6
7477 fi
7478 fi
7479
7480 for ac_func in bpf_dump
7481 do
7482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7483 echo "$as_me:7483: checking for $ac_func" >&5
7484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_var+set}\" = set"; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line 7489 "configure"
7490 #include "confdefs.h"
7491 /* System header to define __stub macros and hopefully few prototypes,
7492 which can conflict with char $ac_func (); below. */
7493 #include <assert.h>
7494 /* Override any gcc2 internal prototype to avoid an error. */
7495 #ifdef __cplusplus
7496 extern "C"
7497 #endif
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500 char $ac_func ();
7501 char (*f) ();
7502
7503 int
7504 main ()
7505 {
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7510 choke me
7511 #else
7512 f = $ac_func;
7513 #endif
7514
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:7520: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>&5
7522 ac_status=$?
7523 echo "$as_me:7523: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -s conftest$ac_exeext'
7526 { (eval echo "$as_me:7526: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:7529: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 eval "$as_ac_var=yes"
7532 else
7533 echo "$as_me: failed program was:" >&5
7534 cat conftest.$ac_ext >&5
7535 eval "$as_ac_var=no"
7536 fi
7537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7538 fi
7539 echo "$as_me:7539: result: `eval echo '${'$as_ac_var'}'`" >&5
7540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7541 if test `eval echo '${'$as_ac_var'}'` = yes; then
7542 cat >>confdefs.h <<EOF
7543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7544 EOF
7545
7546 else
7547 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7548 fi
7549 done
7550
7551 V_GROUP=0
7552 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
7553 V_GROUP=wheel
7554 fi
7555 case "$host_os" in
7556
7557 aix*)
7558 cat >>confdefs.h <<\EOF
7559 #define _SUN 1
7560 EOF
7561
7562 ;;
7563
7564 irix*)
7565 V_GROUP=sys
7566 ;;
7567
7568 osf*)
7569 V_GROUP=system
7570 ;;
7571
7572 solaris*)
7573 V_GROUP=sys
7574 ;;
7575 esac
7576
7577 if test -f /dev/bpf0 ; then
7578 V_GROUP=bpf
7579 fi
7580
7581 echo "$as_me:7581: checking for int8_t using $CC" >&5
7582 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
7583 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586 cat >conftest.$ac_ext <<_ACEOF
7587 #line 7587 "configure"
7588 #include "confdefs.h"
7589
7590 # include "confdefs.h"
7591 # include <sys/types.h>
7592 # if STDC_HEADERS
7593 # include <stdlib.h>
7594 # include <stddef.h>
7595 # endif
7596 int
7597 main ()
7598 {
7599 int8_t i
7600 ;
7601 return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:7605: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>&5
7607 ac_status=$?
7608 echo "$as_me:7608: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -s conftest.$ac_objext'
7611 { (eval echo "$as_me:7611: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:7614: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 ac_cv_lbl_have_int8_t=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 ac_cv_lbl_have_int8_t=no
7621 fi
7622 rm -f conftest.$ac_objext conftest.$ac_ext
7623 fi
7624
7625 echo "$as_me:7625: result: $ac_cv_lbl_have_int8_t" >&5
7626 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
7627 if test $ac_cv_lbl_have_int8_t = no ; then
7628 cat >>confdefs.h <<\EOF
7629 #define int8_t signed char
7630 EOF
7631
7632 fi
7633 echo "$as_me:7633: checking for u_int8_t using $CC" >&5
7634 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
7635 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638 cat >conftest.$ac_ext <<_ACEOF
7639 #line 7639 "configure"
7640 #include "confdefs.h"
7641
7642 # include "confdefs.h"
7643 # include <sys/types.h>
7644 # if STDC_HEADERS
7645 # include <stdlib.h>
7646 # include <stddef.h>
7647 # endif
7648 int
7649 main ()
7650 {
7651 u_int8_t i
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (eval echo "$as_me:7657: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>&5
7659 ac_status=$?
7660 echo "$as_me:7660: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:7663: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:7666: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_cv_lbl_have_u_int8_t=yes
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7672 ac_cv_lbl_have_u_int8_t=no
7673 fi
7674 rm -f conftest.$ac_objext conftest.$ac_ext
7675 fi
7676
7677 echo "$as_me:7677: result: $ac_cv_lbl_have_u_int8_t" >&5
7678 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
7679 if test $ac_cv_lbl_have_u_int8_t = no ; then
7680 cat >>confdefs.h <<\EOF
7681 #define u_int8_t u_char
7682 EOF
7683
7684 fi
7685 echo "$as_me:7685: checking for int16_t using $CC" >&5
7686 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
7687 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 cat >conftest.$ac_ext <<_ACEOF
7691 #line 7691 "configure"
7692 #include "confdefs.h"
7693
7694 # include "confdefs.h"
7695 # include <sys/types.h>
7696 # if STDC_HEADERS
7697 # include <stdlib.h>
7698 # include <stddef.h>
7699 # endif
7700 int
7701 main ()
7702 {
7703 int16_t i
7704 ;
7705 return 0;
7706 }
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (eval echo "$as_me:7709: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>&5
7711 ac_status=$?
7712 echo "$as_me:7712: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:7715: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:7718: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_lbl_have_int16_t=yes
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7724 ac_cv_lbl_have_int16_t=no
7725 fi
7726 rm -f conftest.$ac_objext conftest.$ac_ext
7727 fi
7728
7729 echo "$as_me:7729: result: $ac_cv_lbl_have_int16_t" >&5
7730 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
7731 if test $ac_cv_lbl_have_int16_t = no ; then
7732 cat >>confdefs.h <<\EOF
7733 #define int16_t short
7734 EOF
7735
7736 fi
7737 echo "$as_me:7737: checking for u_int16_t using $CC" >&5
7738 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
7739 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 cat >conftest.$ac_ext <<_ACEOF
7743 #line 7743 "configure"
7744 #include "confdefs.h"
7745
7746 # include "confdefs.h"
7747 # include <sys/types.h>
7748 # if STDC_HEADERS
7749 # include <stdlib.h>
7750 # include <stddef.h>
7751 # endif
7752 int
7753 main ()
7754 {
7755 u_int16_t i
7756 ;
7757 return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (eval echo "$as_me:7761: \"$ac_compile\"") >&5
7762 (eval $ac_compile) 2>&5
7763 ac_status=$?
7764 echo "$as_me:7764: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -s conftest.$ac_objext'
7767 { (eval echo "$as_me:7767: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:7770: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 ac_cv_lbl_have_u_int16_t=yes
7773 else
7774 echo "$as_me: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 ac_cv_lbl_have_u_int16_t=no
7777 fi
7778 rm -f conftest.$ac_objext conftest.$ac_ext
7779 fi
7780
7781 echo "$as_me:7781: result: $ac_cv_lbl_have_u_int16_t" >&5
7782 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
7783 if test $ac_cv_lbl_have_u_int16_t = no ; then
7784 cat >>confdefs.h <<\EOF
7785 #define u_int16_t u_short
7786 EOF
7787
7788 fi
7789 echo "$as_me:7789: checking for int32_t using $CC" >&5
7790 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
7791 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794 cat >conftest.$ac_ext <<_ACEOF
7795 #line 7795 "configure"
7796 #include "confdefs.h"
7797
7798 # include "confdefs.h"
7799 # include <sys/types.h>
7800 # if STDC_HEADERS
7801 # include <stdlib.h>
7802 # include <stddef.h>
7803 # endif
7804 int
7805 main ()
7806 {
7807 int32_t i
7808 ;
7809 return 0;
7810 }
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:7813: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>&5
7815 ac_status=$?
7816 echo "$as_me:7816: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -s conftest.$ac_objext'
7819 { (eval echo "$as_me:7819: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:7822: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 ac_cv_lbl_have_int32_t=yes
7825 else
7826 echo "$as_me: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7828 ac_cv_lbl_have_int32_t=no
7829 fi
7830 rm -f conftest.$ac_objext conftest.$ac_ext
7831 fi
7832
7833 echo "$as_me:7833: result: $ac_cv_lbl_have_int32_t" >&5
7834 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
7835 if test $ac_cv_lbl_have_int32_t = no ; then
7836 cat >>confdefs.h <<\EOF
7837 #define int32_t int
7838 EOF
7839
7840 fi
7841 echo "$as_me:7841: checking for u_int32_t using $CC" >&5
7842 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
7843 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 cat >conftest.$ac_ext <<_ACEOF
7847 #line 7847 "configure"
7848 #include "confdefs.h"
7849
7850 # include "confdefs.h"
7851 # include <sys/types.h>
7852 # if STDC_HEADERS
7853 # include <stdlib.h>
7854 # include <stddef.h>
7855 # endif
7856 int
7857 main ()
7858 {
7859 u_int32_t i
7860 ;
7861 return 0;
7862 }
7863 _ACEOF
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:7865: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>&5
7867 ac_status=$?
7868 echo "$as_me:7868: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -s conftest.$ac_objext'
7871 { (eval echo "$as_me:7871: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_cv_lbl_have_u_int32_t=yes
7877 else
7878 echo "$as_me: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 ac_cv_lbl_have_u_int32_t=no
7881 fi
7882 rm -f conftest.$ac_objext conftest.$ac_ext
7883 fi
7884
7885 echo "$as_me:7885: result: $ac_cv_lbl_have_u_int32_t" >&5
7886 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
7887 if test $ac_cv_lbl_have_u_int32_t = no ; then
7888 cat >>confdefs.h <<\EOF
7889 #define u_int32_t u_int
7890 EOF
7891
7892 fi
7893 echo "$as_me:7893: checking for int64_t using $CC" >&5
7894 echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
7895 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898 cat >conftest.$ac_ext <<_ACEOF
7899 #line 7899 "configure"
7900 #include "confdefs.h"
7901
7902 # include "confdefs.h"
7903 # include <sys/types.h>
7904 # if STDC_HEADERS
7905 # include <stdlib.h>
7906 # include <stddef.h>
7907 # endif
7908 int
7909 main ()
7910 {
7911 int64_t i
7912 ;
7913 return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (eval echo "$as_me:7917: \"$ac_compile\"") >&5
7918 (eval $ac_compile) 2>&5
7919 ac_status=$?
7920 echo "$as_me:7920: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -s conftest.$ac_objext'
7923 { (eval echo "$as_me:7923: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:7926: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_lbl_have_int64_t=yes
7929 else
7930 echo "$as_me: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7932 ac_cv_lbl_have_int64_t=no
7933 fi
7934 rm -f conftest.$ac_objext conftest.$ac_ext
7935 fi
7936
7937 echo "$as_me:7937: result: $ac_cv_lbl_have_int64_t" >&5
7938 echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
7939 if test $ac_cv_lbl_have_int64_t = no ; then
7940 cat >>confdefs.h <<\EOF
7941 #define int64_t long long
7942 EOF
7943
7944 fi
7945 echo "$as_me:7945: checking for u_int64_t using $CC" >&5
7946 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
7947 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 cat >conftest.$ac_ext <<_ACEOF
7951 #line 7951 "configure"
7952 #include "confdefs.h"
7953
7954 # include "confdefs.h"
7955 # include <sys/types.h>
7956 # if STDC_HEADERS
7957 # include <stdlib.h>
7958 # include <stddef.h>
7959 # endif
7960 int
7961 main ()
7962 {
7963 u_int64_t i
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext
7969 if { (eval echo "$as_me:7969: \"$ac_compile\"") >&5
7970 (eval $ac_compile) 2>&5
7971 ac_status=$?
7972 echo "$as_me:7972: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -s conftest.$ac_objext'
7975 { (eval echo "$as_me:7975: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:7978: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_lbl_have_u_int64_t=yes
7981 else
7982 echo "$as_me: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7984 ac_cv_lbl_have_u_int64_t=no
7985 fi
7986 rm -f conftest.$ac_objext conftest.$ac_ext
7987 fi
7988
7989 echo "$as_me:7989: result: $ac_cv_lbl_have_u_int64_t" >&5
7990 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
7991 if test $ac_cv_lbl_have_u_int64_t = no ; then
7992 cat >>confdefs.h <<\EOF
7993 #define u_int64_t unsigned long long
7994 EOF
7995
7996 fi
7997
7998 #
7999 # We can't just check for <inttypes.h> - some systems have one that
8000 # doesn't define all the PRI[doxu]64 macros.
8001 #
8002
8003 for ac_header in inttypes.h
8004 do
8005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8006 echo "$as_me:8006: checking for $ac_header" >&5
8007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 cat >conftest.$ac_ext <<_ACEOF
8012 #line 8012 "configure"
8013 #include "confdefs.h"
8014 #include <$ac_header>
8015 _ACEOF
8016 if { (eval echo "$as_me:8016: \"$ac_cpp conftest.$ac_ext\"") >&5
8017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8018 ac_status=$?
8019 egrep -v '^ *\+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:8022: \$? = $ac_status" >&5
8023 (exit $ac_status); } >/dev/null; then
8024 if test -s conftest.err; then
8025 ac_cpp_err=$ac_c_preproc_warn_flag
8026 else
8027 ac_cpp_err=
8028 fi
8029 else
8030 ac_cpp_err=yes
8031 fi
8032 if test -z "$ac_cpp_err"; then
8033 eval "$as_ac_Header=yes"
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8037 eval "$as_ac_Header=no"
8038 fi
8039 rm -f conftest.err conftest.$ac_ext
8040 fi
8041 echo "$as_me:8041: result: `eval echo '${'$as_ac_Header'}'`" >&5
8042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044 cat >>confdefs.h <<EOF
8045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046 EOF
8047
8048 #
8049 # OK, we have inttypes.h, but does it define those macros?
8050 #
8051 echo "$as_me:8051: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
8052 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
8053 cat >conftest.$ac_ext <<_ACEOF
8054
8055 #line 8055 "configure"
8056 #include "confdefs.h"
8057
8058 #include <inttypes.h>
8059 #include <stdio.h>
8060 #include <sys/types.h>
8061
8062 main()
8063 {
8064 printf("%" PRId64 "\n", (u_int64_t)1);
8065 printf("%" PRIo64 "\n", (u_int64_t)1);
8066 printf("%" PRIx64 "\n", (u_int64_t)1);
8067 printf("%" PRIu64 "\n", (u_int64_t)1);
8068 }
8069
8070 _ACEOF
8071 rm -f conftest.$ac_objext
8072 if { (eval echo "$as_me:8072: \"$ac_compile\"") >&5
8073 (eval $ac_compile) 2>&5
8074 ac_status=$?
8075 echo "$as_me:8075: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -s conftest.$ac_objext'
8078 { (eval echo "$as_me:8078: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:8081: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083
8084 echo "$as_me:8084: result: yes" >&5
8085 echo "${ECHO_T}yes" >&6
8086 ac_lbl_inttypes_h_defines_formats=yes
8087
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091
8092 echo "$as_me:8092: result: no" >&5
8093 echo "${ECHO_T}no" >&6
8094 ac_lbl_inttypes_h_defines_formats=no
8095
8096 fi
8097 rm -f conftest.$ac_objext conftest.$ac_ext
8098
8099 else
8100
8101 #
8102 # We don't have inttypes.h, so it obviously can't define those
8103 # macros.
8104 #
8105 ac_lbl_inttypes_h_defines_formats=no
8106
8107 fi
8108 done
8109
8110 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
8111 cat >>confdefs.h <<\EOF
8112 #define INTTYPES_H_DEFINES_FORMATS 1
8113 EOF
8114
8115 else
8116
8117 echo "$as_me:8117: checking whether %llx can be used to format 64-bit integers" >&5
8118 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
8119 if test "$cross_compiling" = yes; then
8120 { { echo "$as_me:8120: error: cannot run test program while cross compiling" >&5
8121 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8122 { (exit 1); exit 1; }; }
8123 else
8124 cat >conftest.$ac_ext <<_ACEOF
8125
8126 #line 8126 "configure"
8127 #include "confdefs.h"
8128
8129 # ifdef HAVE_INTTYPES_H
8130 #include <inttypes.h>
8131 # endif
8132 #include <stdio.h>
8133 #include <sys/types.h>
8134
8135 main()
8136 {
8137 u_int64_t t = 1;
8138 char strbuf[16+1];
8139 sprintf(strbuf, "%016llx", t << 32);
8140 if (strcmp(strbuf, "0000000100000000") == 0)
8141 exit(0);
8142 else
8143 exit(1);
8144 }
8145
8146 _ACEOF
8147 rm -f conftest$ac_exeext
8148 if { (eval echo "$as_me:8148: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>&5
8150 ac_status=$?
8151 echo "$as_me:8151: \$? = $ac_status" >&5
8152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8153 { (eval echo "$as_me:8153: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:8156: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158
8159 cat >>confdefs.h <<\EOF
8160 #define PRId64 "lld"
8161 EOF
8162
8163 cat >>confdefs.h <<\EOF
8164 #define PRIo64 "llo"
8165 EOF
8166
8167 cat >>confdefs.h <<\EOF
8168 #define PRIx64 "llx"
8169 EOF
8170
8171 cat >>confdefs.h <<\EOF
8172 #define PRIu64 "llu"
8173 EOF
8174
8175 echo "$as_me:8175: result: yes" >&5
8176 echo "${ECHO_T}yes" >&6
8177
8178 else
8179 echo "$as_me: program exited with status $ac_status" >&5
8180 echo "$as_me: failed program was:" >&5
8181 cat conftest.$ac_ext >&5
8182
8183 echo "$as_me:8183: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8185
8186 echo "$as_me:8186: checking whether %Lx can be used to format 64-bit integers" >&5
8187 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
8188 if test "$cross_compiling" = yes; then
8189 { { echo "$as_me:8189: error: cannot run test program while cross compiling" >&5
8190 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8191 { (exit 1); exit 1; }; }
8192 else
8193 cat >conftest.$ac_ext <<_ACEOF
8194
8195 #line 8195 "configure"
8196 #include "confdefs.h"
8197
8198 # ifdef HAVE_INTTYPES_H
8199 #include <inttypes.h>
8200 # endif
8201 #include <stdio.h>
8202 #include <sys/types.h>
8203
8204 main()
8205 {
8206 u_int64_t t = 1;
8207 char strbuf[16+1];
8208 sprintf(strbuf, "%016Lx", t << 32);
8209 if (strcmp(strbuf, "0000000100000000") == 0)
8210 exit(0);
8211 else
8212 exit(1);
8213 }
8214
8215 _ACEOF
8216 rm -f conftest$ac_exeext
8217 if { (eval echo "$as_me:8217: \"$ac_link\"") >&5
8218 (eval $ac_link) 2>&5
8219 ac_status=$?
8220 echo "$as_me:8220: \$? = $ac_status" >&5
8221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8222 { (eval echo "$as_me:8222: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:8225: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227
8228 cat >>confdefs.h <<\EOF
8229 #define PRId64 "Ld"
8230 EOF
8231
8232 cat >>confdefs.h <<\EOF
8233 #define PRIo64 "Lo"
8234 EOF
8235
8236 cat >>confdefs.h <<\EOF
8237 #define PRIx64 "Lx"
8238 EOF
8239
8240 cat >>confdefs.h <<\EOF
8241 #define PRIu64 "Lu"
8242 EOF
8243
8244 echo "$as_me:8244: result: yes" >&5
8245 echo "${ECHO_T}yes" >&6
8246
8247 else
8248 echo "$as_me: program exited with status $ac_status" >&5
8249 echo "$as_me: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8251
8252 echo "$as_me:8252: result: no" >&5
8253 echo "${ECHO_T}no" >&6
8254
8255 echo "$as_me:8255: checking whether %qx can be used to format 64-bit integers" >&5
8256 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
8257 if test "$cross_compiling" = yes; then
8258 { { echo "$as_me:8258: error: cannot run test program while cross compiling" >&5
8259 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8260 { (exit 1); exit 1; }; }
8261 else
8262 cat >conftest.$ac_ext <<_ACEOF
8263
8264 #line 8264 "configure"
8265 #include "confdefs.h"
8266
8267 # ifdef HAVE_INTTYPES_H
8268 #include <inttypes.h>
8269 # endif
8270 #include <stdio.h>
8271 #include <sys/types.h>
8272
8273 main()
8274 {
8275 u_int64_t t = 1;
8276 char strbuf[16+1];
8277 sprintf(strbuf, "%016qx", t << 32);
8278 if (strcmp(strbuf, "0000000100000000") == 0)
8279 exit(0);
8280 else
8281 exit(1);
8282 }
8283
8284 _ACEOF
8285 rm -f conftest$ac_exeext
8286 if { (eval echo "$as_me:8286: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>&5
8288 ac_status=$?
8289 echo "$as_me:8289: \$? = $ac_status" >&5
8290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8291 { (eval echo "$as_me:8291: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:8294: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296
8297 cat >>confdefs.h <<\EOF
8298 #define PRId64 "qd"
8299 EOF
8300
8301 cat >>confdefs.h <<\EOF
8302 #define PRIo64 "qo"
8303 EOF
8304
8305 cat >>confdefs.h <<\EOF
8306 #define PRIx64 "qx"
8307 EOF
8308
8309 cat >>confdefs.h <<\EOF
8310 #define PRIu64 "qu"
8311 EOF
8312
8313 echo "$as_me:8313: result: yes" >&5
8314 echo "${ECHO_T}yes" >&6
8315
8316 else
8317 echo "$as_me: program exited with status $ac_status" >&5
8318 echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320
8321 echo "$as_me:8321: result: no" >&5
8322 echo "${ECHO_T}no" >&6
8323
8324 { { echo "$as_me:8324: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
8325 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
8326 { (exit 1); exit 1; }; }
8327
8328 fi
8329 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8330 fi
8331
8332 fi
8333 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8334 fi
8335
8336 fi
8337 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8338 fi
8339
8340 fi
8341
8342 rm -f os-proto.h
8343 if test "${LBL_CFLAGS+set}" = set; then
8344 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8345 fi
8346 if test -f .devel ; then
8347 if test "$GCC" = yes ; then
8348 if test "${LBL_CFLAGS+set}" != set; then
8349 if test "$ac_cv_prog_cc_g" = yes ; then
8350 V_CCOPT="-g $V_CCOPT"
8351 fi
8352 V_CCOPT="$V_CCOPT -Wall"
8353 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
8354 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
8355 fi
8356 fi
8357 else
8358 case "$host_os" in
8359
8360 irix6*)
8361 V_CCOPT="$V_CCOPT -n32"
8362 ;;
8363
8364 *)
8365 ;;
8366 esac
8367 fi
8368 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8369 name="lbl/os-$os.h"
8370 if test -f $name ; then
8371 ln -s $name os-proto.h
8372 cat >>confdefs.h <<\EOF
8373 #define HAVE_OS_PROTO_H 1
8374 EOF
8375
8376 else
8377 { echo "$as_me:8377: WARNING: can't find $name" >&5
8378 echo "$as_me: WARNING: can't find $name" >&2;}
8379 fi
8380 fi
8381
8382 echo "$as_me:8382: checking if sockaddr struct has sa_len member" >&5
8383 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
8384 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 cat >conftest.$ac_ext <<_ACEOF
8388 #line 8388 "configure"
8389 #include "confdefs.h"
8390
8391 # include <sys/types.h>
8392 # include <sys/socket.h>
8393 int
8394 main ()
8395 {
8396 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8397 ;
8398 return 0;
8399 }
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:8402: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>&5
8404 ac_status=$?
8405 echo "$as_me:8405: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -s conftest.$ac_objext'
8408 { (eval echo "$as_me:8408: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:8411: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_cv_lbl_sockaddr_has_sa_len=yes
8414 else
8415 echo "$as_me: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8417 ac_cv_lbl_sockaddr_has_sa_len=no
8418 fi
8419 rm -f conftest.$ac_objext conftest.$ac_ext
8420 fi
8421
8422 echo "$as_me:8422: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8423 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
8424 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8425 cat >>confdefs.h <<\EOF
8426 #define HAVE_SOCKADDR_SA_LEN 1
8427 EOF
8428
8429 fi
8430
8431 echo "$as_me:8431: checking if unaligned accesses fail" >&5
8432 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
8433 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436 case "$host_cpu" in
8437
8438 #
8439 # These are CPU types where:
8440 #
8441 # the CPU faults on an unaligned access, but at least some
8442 # OSes that support that CPU catch the fault and simulate
8443 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8444 # the simulation is slow, so we don't want to use it;
8445 #
8446 # the CPU, I infer (from the old
8447 #
8448 # XXX: should also check that they don't do weird things (like on arm)
8449 #
8450 # comment) doesn't fault on unaligned accesses, but doesn't
8451 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8452 #
8453 # for whatever reason, the test program doesn't work
8454 # (this has been claimed to be the case for several of those
8455 # CPUs - I don't know what the problem is; the problem
8456 # was reported as "the test program dumps core" for SuperH,
8457 # but that's what the test program is *supposed* to do -
8458 # it dumps core before it writes anything, so the test
8459 # for an empty output file should find an empty output
8460 # file and conclude that unaligned accesses don't work).
8461 #
8462 # This run-time test won't work if you're cross-compiling, so
8463 # in order to support cross-compiling for a particular CPU,
8464 # we have to wire in the list of CPU types anyway, as far as
8465 # I know, so perhaps we should just have a set of CPUs on
8466 # which we know it doesn't work, a set of CPUs on which we
8467 # know it does work, and have the script just fail on other
8468 # cpu types and update it when such a failure occurs.
8469 #
8470 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
8471 ac_cv_lbl_unaligned_fail=yes
8472 ;;
8473
8474 *)
8475 cat >conftest.c <<EOF
8476 # include <sys/types.h>
8477 # include <sys/wait.h>
8478 # include <stdio.h>
8479 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8480 main() {
8481 unsigned int i;
8482 pid_t pid;
8483 int status;
8484 /* avoid "core dumped" message */
8485 pid = fork();
8486 if (pid < 0)
8487 exit(2);
8488 if (pid > 0) {
8489 /* parent */
8490 pid = waitpid(pid, &status, 0);
8491 if (pid < 0)
8492 exit(3);
8493 exit(!WIFEXITED(status));
8494 }
8495 /* child */
8496 i = *(unsigned int *)&a[1];
8497 printf("%d\n", i);
8498 exit(0);
8499 }
8500 EOF
8501 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
8502 conftest.c $LIBS >/dev/null 2>&1
8503 if test ! -x conftest ; then
8504 ac_cv_lbl_unaligned_fail=yes
8505 else
8506 ./conftest >conftest.out
8507 if test ! -s conftest.out ; then
8508 ac_cv_lbl_unaligned_fail=yes
8509 else
8510 ac_cv_lbl_unaligned_fail=no
8511 fi
8512 fi
8513 rm -f conftest* core core.conftest
8514 ;;
8515 esac
8516 fi
8517
8518 echo "$as_me:8518: result: $ac_cv_lbl_unaligned_fail" >&5
8519 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
8520 if test $ac_cv_lbl_unaligned_fail = yes ; then
8521 cat >>confdefs.h <<\EOF
8522 #define LBL_ALIGN 1
8523 EOF
8524
8525 fi
8526
8527 echo "$as_me:8527: checking for h_errno" >&5
8528 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
8529 if test "${ac_cv_var_h_errno+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line 8533 "configure"
8534 #include "confdefs.h"
8535
8536 # include <sys/types.h>
8537 # include <netdb.h>
8538 int
8539 main ()
8540 {
8541 int foo = h_errno;
8542 ;
8543 return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest.$ac_objext
8547 if { (eval echo "$as_me:8547: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>&5
8549 ac_status=$?
8550 echo "$as_me:8550: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -s conftest.$ac_objext'
8553 { (eval echo "$as_me:8553: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:8556: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_var_h_errno=yes
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8562 ac_cv_var_h_errno=no
8563 fi
8564 rm -f conftest.$ac_objext conftest.$ac_ext
8565 fi
8566
8567 echo "$as_me:8567: result: $ac_cv_var_h_errno" >&5
8568 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
8569 if test "$ac_cv_var_h_errno" = "yes"; then
8570 cat >>confdefs.h <<\EOF
8571 #define HAVE_H_ERRNO 1
8572 EOF
8573
8574 fi
8575
8576 # Check whether --with-crypto or --without-crypto was given.
8577 if test "${with_crypto+set}" = set; then
8578 withval="$with_crypto"
8579
8580 else
8581
8582 echo "$as_me:8582: checking for SSLeay" >&5
8583 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
8584 ac_cv_ssleay_path=no
8585 incdir=no
8586
8587 Xprefix=`eval echo $prefix`
8588
8589 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
8590 #
8591 # XXX - is there a better way to check if a given library is
8592 # in a given directory than checking each of the possible
8593 # shared library suffixes?
8594 #
8595 # Are there any other suffixes we need to look for? Do we have to
8596 # worry about ".so.{version}"?
8597 #
8598 # Or should we just look for "libcrypto.*"?
8599 #
8600 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
8601 -f $dir/lib/libcrypto.so -o \
8602 -f $dir/lib/libcrypto.sl -o \
8603 -f $dir/lib/libcrypto.dylib \); then
8604 ac_cv_ssleay_path=$dir
8605 fi
8606 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
8607 incdir="-I$dir/include"
8608 fi
8609 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
8610 break;
8611 else
8612 ac_cv_ssleay_path=no
8613 incdir=no
8614 fi
8615 done
8616 echo "$as_me:8616: result: $ac_cv_ssleay_path" >&5
8617 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
8618 if test "$ac_cv_ssleay_path" != no; then
8619 V_INCLS="$V_INCLS $incdir"
8620 LDFLAGS="-L$dir/lib $LDFLAGS"
8621 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
8622 LIBS="$LIBS -lRSAglue"
8623 fi
8624 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
8625 LIBS="$LIBS -lrsaref"
8626 fi
8627
8628 echo "$as_me:8628: checking for DES_cbc_encrypt in -lcrypto" >&5
8629 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
8630 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633 ac_check_lib_save_LIBS=$LIBS
8634 LIBS="-lcrypto $LIBS"
8635 cat >conftest.$ac_ext <<_ACEOF
8636 #line 8636 "configure"
8637 #include "confdefs.h"
8638
8639 /* Override any gcc2 internal prototype to avoid an error. */
8640 #ifdef __cplusplus
8641 extern "C"
8642 #endif
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8645 char DES_cbc_encrypt ();
8646 int
8647 main ()
8648 {
8649 DES_cbc_encrypt ();
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 rm -f conftest.$ac_objext conftest$ac_exeext
8655 if { (eval echo "$as_me:8655: \"$ac_link\"") >&5
8656 (eval $ac_link) 2>&5
8657 ac_status=$?
8658 echo "$as_me:8658: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:8661: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:8664: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_lib_crypto_DES_cbc_encrypt=yes
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 ac_cv_lib_crypto_DES_cbc_encrypt=no
8671 fi
8672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8674 fi
8675 echo "$as_me:8675: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
8676 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
8677 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
8678 cat >>confdefs.h <<EOF
8679 #define HAVE_LIBCRYPTO 1
8680 EOF
8681
8682 LIBS="-lcrypto $LIBS"
8683
8684 fi
8685
8686 CPPFLAGS="$CPPFLAGS $V_INCLS"
8687
8688 for ac_header in openssl/evp.h
8689 do
8690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 echo "$as_me:8691: checking for $ac_header" >&5
8692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line 8697 "configure"
8698 #include "confdefs.h"
8699 #include <$ac_header>
8700 _ACEOF
8701 if { (eval echo "$as_me:8701: \"$ac_cpp conftest.$ac_ext\"") >&5
8702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8703 ac_status=$?
8704 egrep -v '^ *\+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:8707: \$? = $ac_status" >&5
8708 (exit $ac_status); } >/dev/null; then
8709 if test -s conftest.err; then
8710 ac_cpp_err=$ac_c_preproc_warn_flag
8711 else
8712 ac_cpp_err=
8713 fi
8714 else
8715 ac_cpp_err=yes
8716 fi
8717 if test -z "$ac_cpp_err"; then
8718 eval "$as_ac_Header=yes"
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8722 eval "$as_ac_Header=no"
8723 fi
8724 rm -f conftest.err conftest.$ac_ext
8725 fi
8726 echo "$as_me:8726: result: `eval echo '${'$as_ac_Header'}'`" >&5
8727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8729 cat >>confdefs.h <<EOF
8730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8731 EOF
8732
8733 fi
8734 done
8735
8736 fi
8737
8738 fi;
8739
8740 if test "$missing_includes" = "yes"; then
8741 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
8742 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
8743 fi
8744
8745 # Find a good install program. We prefer a C program (faster),
8746 # so one script is as good as another. But avoid the broken or
8747 # incompatible versions:
8748 # SysV /etc/install, /usr/sbin/install
8749 # SunOS /usr/etc/install
8750 # IRIX /sbin/install
8751 # AIX /bin/install
8752 # AmigaOS /C/install, which installs bootblocks on floppy discs
8753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8756 # ./install, which can be erroneously created by make from ./install.sh.
8757 echo "$as_me:8757: checking for a BSD compatible install" >&5
8758 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8759 if test -z "$INSTALL"; then
8760 if test "${ac_cv_path_install+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 ac_save_IFS=$IFS; IFS=$ac_path_separator
8764 for ac_dir in $PATH; do
8765 IFS=$ac_save_IFS
8766 # Account for people who put trailing slashes in PATH elements.
8767 case $ac_dir/ in
8768 / | ./ | .// | /cC/* \
8769 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
8770 | /usr/ucb/* ) ;;
8771 *)
8772 # OSF1 and SCO ODT 3.0 have their own names for install.
8773 # Don't use installbsd from OSF since it installs stuff as root
8774 # by default.
8775 for ac_prog in ginstall scoinst install; do
8776 if $as_executable_p "$ac_dir/$ac_prog"; then
8777 if test $ac_prog = install &&
8778 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
8779 # AIX install. It has an incompatible calling convention.
8780 :
8781 elif test $ac_prog = install &&
8782 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
8783 # program-specific install script used by HP pwplus--don't use.
8784 :
8785 else
8786 ac_cv_path_install="$ac_dir/$ac_prog -c"
8787 break 2
8788 fi
8789 fi
8790 done
8791 ;;
8792 esac
8793 done
8794
8795 fi
8796 if test "${ac_cv_path_install+set}" = set; then
8797 INSTALL=$ac_cv_path_install
8798 else
8799 # As a last resort, use the slow shell script. We don't cache a
8800 # path for INSTALL within a source directory, because that will
8801 # break other packages using the cache if that directory is
8802 # removed, or if the path is relative.
8803 INSTALL=$ac_install_sh
8804 fi
8805 fi
8806 echo "$as_me:8806: result: $INSTALL" >&5
8807 echo "${ECHO_T}$INSTALL" >&6
8808
8809 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8810 # It thinks the first close brace ends the variable substitution.
8811 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8812
8813 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8814
8815 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8816
8817 ac_config_headers="$ac_config_headers config.h"
8818
8819 ac_config_commands="$ac_config_commands default-1"
8820
8821 ac_config_files="$ac_config_files Makefile"
8822 cat >confcache <<\_ACEOF
8823 # This file is a shell script that caches the results of configure
8824 # tests run on this system so they can be shared between configure
8825 # scripts and configure runs, see configure's option --config-cache.
8826 # It is not useful on other systems. If it contains results you don't
8827 # want to keep, you may remove or edit it.
8828 #
8829 # config.status only pays attention to the cache file if you give it
8830 # the --recheck option to rerun configure.
8831 #
8832 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8834 # following values.
8835
8836 _ACEOF
8837
8838 # The following way of writing the cache mishandles newlines in values,
8839 # but we know of no workaround that is simple, portable, and efficient.
8840 # So, don't put newlines in cache variables' values.
8841 # Ultrix sh set writes to stderr and can't be redirected directly,
8842 # and sets the high bit in the cache file unless we assign to the vars.
8843 {
8844 (set) 2>&1 |
8845 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8846 *ac_space=\ *)
8847 # `set' does not quote correctly, so add quotes (double-quote
8848 # substitution turns \\\\ into \\, and sed turns \\ into \).
8849 sed -n \
8850 "s/'/'\\\\''/g;
8851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8852 ;;
8853 *)
8854 # `set' quotes correctly as required by POSIX, so do not add quotes.
8855 sed -n \
8856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8857 ;;
8858 esac;
8859 } |
8860 sed '
8861 t clear
8862 : clear
8863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8864 t end
8865 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8866 : end' >>confcache
8867 if cmp -s $cache_file confcache; then :; else
8868 if test -w $cache_file; then
8869 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8870 cat confcache >$cache_file
8871 else
8872 echo "not updating unwritable cache $cache_file"
8873 fi
8874 fi
8875 rm -f confcache
8876
8877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8878 # Let make expand exec_prefix.
8879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8880
8881 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8882 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8883 # trailing colons and then remove the whole line if VPATH becomes empty
8884 # (actually we leave an empty line to preserve line numbers).
8885 if test "x$srcdir" = x.; then
8886 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8887 s/:*\$(srcdir):*/:/;
8888 s/:*\${srcdir}:*/:/;
8889 s/:*@srcdir@:*/:/;
8890 s/^\([^=]*=[ ]*\):*/\1/;
8891 s/:*$//;
8892 s/^[^=]*=[ ]*$//;
8893 }'
8894 fi
8895
8896 DEFS=-DHAVE_CONFIG_H
8897
8898 : ${CONFIG_STATUS=./config.status}
8899 ac_clean_files_save=$ac_clean_files
8900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8901 { echo "$as_me:8901: creating $CONFIG_STATUS" >&5
8902 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8903 cat >$CONFIG_STATUS <<_ACEOF
8904 #! $SHELL
8905 # Generated automatically by configure.
8906 # Run this file to recreate the current configuration.
8907 # Compiler output produced by configure, useful for debugging
8908 # configure, is in config.log if it exists.
8909
8910 debug=false
8911 SHELL=\${CONFIG_SHELL-$SHELL}
8912 ac_cs_invocation="\$0 \$@"
8913
8914 _ACEOF
8915
8916 cat >>$CONFIG_STATUS <<\_ACEOF
8917 # Be Bourne compatible
8918 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8919 emulate sh
8920 NULLCMD=:
8921 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8922 set -o posix
8923 fi
8924
8925 # Name of the executable.
8926 as_me=`echo "$0" |sed 's,.*[\\/],,'`
8927
8928 if expr a : '\(a\)' >/dev/null 2>&1; then
8929 as_expr=expr
8930 else
8931 as_expr=false
8932 fi
8933
8934 rm -f conf$$ conf$$.exe conf$$.file
8935 echo >conf$$.file
8936 if ln -s conf$$.file conf$$ 2>/dev/null; then
8937 # We could just check for DJGPP; but this test a) works b) is more generic
8938 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8939 if test -f conf$$.exe; then
8940 # Don't use ln at all; we don't have any links
8941 as_ln_s='cp -p'
8942 else
8943 as_ln_s='ln -s'
8944 fi
8945 elif ln conf$$.file conf$$ 2>/dev/null; then
8946 as_ln_s=ln
8947 else
8948 as_ln_s='cp -p'
8949 fi
8950 rm -f conf$$ conf$$.exe conf$$.file
8951
8952 as_executable_p="test -f"
8953
8954 # Support unset when possible.
8955 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8956 as_unset=unset
8957 else
8958 as_unset=false
8959 fi
8960
8961 # NLS nuisances.
8962 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8963 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8964 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8965 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8966 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8967 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8968 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8969 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8970
8971 # IFS
8972 # We need space, tab and new line, in precisely that order.
8973 as_nl='
8974 '
8975 IFS=" $as_nl"
8976
8977 # CDPATH.
8978 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8979
8980 exec 6>&1
8981
8982 _ACEOF
8983
8984 # Files that config.status was made for.
8985 if test -n "$ac_config_files"; then
8986 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8987 fi
8988
8989 if test -n "$ac_config_headers"; then
8990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8991 fi
8992
8993 if test -n "$ac_config_links"; then
8994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8995 fi
8996
8997 if test -n "$ac_config_commands"; then
8998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8999 fi
9000
9001 cat >>$CONFIG_STATUS <<\EOF
9002
9003 ac_cs_usage="\
9004 \`$as_me' instantiates files from templates according to the
9005 current configuration.
9006
9007 Usage: $0 [OPTIONS] [FILE]...
9008
9009 -h, --help print this help, then exit
9010 -V, --version print version number, then exit
9011 -d, --debug don't remove temporary files
9012 --recheck update $as_me by reconfiguring in the same conditions
9013 --file=FILE[:TEMPLATE]
9014 instantiate the configuration file FILE
9015 --header=FILE[:TEMPLATE]
9016 instantiate the configuration header FILE
9017
9018 Configuration files:
9019 $config_files
9020
9021 Configuration headers:
9022 $config_headers
9023
9024 Configuration commands:
9025 $config_commands
9026
9027 Report bugs to <bug-autoconf@gnu.org>."
9028 EOF
9029
9030 cat >>$CONFIG_STATUS <<EOF
9031 ac_cs_version="\\
9032 config.status
9033 configured by $0, generated by GNU Autoconf 2.52,
9034 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9035
9036 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9037 Free Software Foundation, Inc.
9038 This config.status script is free software; the Free Software Foundation
9039 gives unlimited permission to copy, distribute and modify it."
9040 srcdir=$srcdir
9041 INSTALL="$INSTALL"
9042 EOF
9043
9044 cat >>$CONFIG_STATUS <<\EOF
9045 # If no file are specified by the user, then we need to provide default
9046 # value. By we need to know if files were specified by the user.
9047 ac_need_defaults=:
9048 while test $# != 0
9049 do
9050 case $1 in
9051 --*=*)
9052 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9053 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9054 shift
9055 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9056 shift
9057 ;;
9058 -*);;
9059 *) # This is not an option, so the user has probably given explicit
9060 # arguments.
9061 ac_need_defaults=false;;
9062 esac
9063
9064 case $1 in
9065 # Handling of the options.
9066 EOF
9067 cat >>$CONFIG_STATUS <<EOF
9068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9069 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9070 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9071 EOF
9072 cat >>$CONFIG_STATUS <<\EOF
9073 --version | --vers* | -V )
9074 echo "$ac_cs_version"; exit 0 ;;
9075 --he | --h)
9076 # Conflict between --help and --header
9077 { { echo "$as_me:9077: error: ambiguous option: $1
9078 Try \`$0 --help' for more information." >&5
9079 echo "$as_me: error: ambiguous option: $1
9080 Try \`$0 --help' for more information." >&2;}
9081 { (exit 1); exit 1; }; };;
9082 --help | --hel | -h )
9083 echo "$ac_cs_usage"; exit 0 ;;
9084 --debug | --d* | -d )
9085 debug=: ;;
9086 --file | --fil | --fi | --f )
9087 shift
9088 CONFIG_FILES="$CONFIG_FILES $1"
9089 ac_need_defaults=false;;
9090 --header | --heade | --head | --hea )
9091 shift
9092 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9093 ac_need_defaults=false;;
9094
9095 # This is an error.
9096 -*) { { echo "$as_me:9096: error: unrecognized option: $1
9097 Try \`$0 --help' for more information." >&5
9098 echo "$as_me: error: unrecognized option: $1
9099 Try \`$0 --help' for more information." >&2;}
9100 { (exit 1); exit 1; }; } ;;
9101
9102 *) ac_config_targets="$ac_config_targets $1" ;;
9103
9104 esac
9105 shift
9106 done
9107
9108 exec 5>>config.log
9109 cat >&5 << _ACEOF
9110
9111 ## ----------------------- ##
9112 ## Running config.status. ##
9113 ## ----------------------- ##
9114
9115 This file was extended by $as_me 2.52, executed with
9116 CONFIG_FILES = $CONFIG_FILES
9117 CONFIG_HEADERS = $CONFIG_HEADERS
9118 CONFIG_LINKS = $CONFIG_LINKS
9119 CONFIG_COMMANDS = $CONFIG_COMMANDS
9120 > $ac_cs_invocation
9121 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9122
9123 _ACEOF
9124 EOF
9125
9126 cat >>$CONFIG_STATUS <<EOF
9127 #
9128 # INIT-COMMANDS section.
9129 #
9130
9131 EOF
9132
9133 cat >>$CONFIG_STATUS <<\EOF
9134 for ac_config_target in $ac_config_targets
9135 do
9136 case "$ac_config_target" in
9137 # Handling of arguments.
9138 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9139 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9140 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9141 *) { { echo "$as_me:9141: error: invalid argument: $ac_config_target" >&5
9142 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9143 { (exit 1); exit 1; }; };;
9144 esac
9145 done
9146
9147 # If the user did not use the arguments to specify the items to instantiate,
9148 # then the envvar interface is used. Set only those that are not.
9149 # We use the long form for the default assignment because of an extremely
9150 # bizarre bug on SunOS 4.1.3.
9151 if $ac_need_defaults; then
9152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9153 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9154 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9155 fi
9156
9157 # Create a temporary directory, and hook for its removal unless debugging.
9158 $debug ||
9159 {
9160 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9161 trap '{ (exit 1); exit 1; }' 1 2 13 15
9162 }
9163
9164 # Create a (secure) tmp directory for tmp files.
9165 : ${TMPDIR=/tmp}
9166 {
9167 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9168 test -n "$tmp" && test -d "$tmp"
9169 } ||
9170 {
9171 tmp=$TMPDIR/cs$$-$RANDOM
9172 (umask 077 && mkdir $tmp)
9173 } ||
9174 {
9175 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9176 { (exit 1); exit 1; }
9177 }
9178
9179 EOF
9180
9181 cat >>$CONFIG_STATUS <<EOF
9182
9183 #
9184 # CONFIG_FILES section.
9185 #
9186
9187 # No need to generate the scripts if there are no CONFIG_FILES.
9188 # This happens for instance when ./config.status config.h
9189 if test -n "\$CONFIG_FILES"; then
9190 # Protect against being on the right side of a sed subst in config.status.
9191 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9192 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9193 s,@SHELL@,$SHELL,;t t
9194 s,@exec_prefix@,$exec_prefix,;t t
9195 s,@prefix@,$prefix,;t t
9196 s,@program_transform_name@,$program_transform_name,;t t
9197 s,@bindir@,$bindir,;t t
9198 s,@sbindir@,$sbindir,;t t
9199 s,@libexecdir@,$libexecdir,;t t
9200 s,@datadir@,$datadir,;t t
9201 s,@sysconfdir@,$sysconfdir,;t t
9202 s,@sharedstatedir@,$sharedstatedir,;t t
9203 s,@localstatedir@,$localstatedir,;t t
9204 s,@libdir@,$libdir,;t t
9205 s,@includedir@,$includedir,;t t
9206 s,@oldincludedir@,$oldincludedir,;t t
9207 s,@infodir@,$infodir,;t t
9208 s,@mandir@,$mandir,;t t
9209 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9210 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9211 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9212 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9213 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9214 s,@build_alias@,$build_alias,;t t
9215 s,@host_alias@,$host_alias,;t t
9216 s,@target_alias@,$target_alias,;t t
9217 s,@ECHO_C@,$ECHO_C,;t t
9218 s,@ECHO_N@,$ECHO_N,;t t
9219 s,@ECHO_T@,$ECHO_T,;t t
9220 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9221 s,@DEFS@,$DEFS,;t t
9222 s,@LIBS@,$LIBS,;t t
9223 s,@build@,$build,;t t
9224 s,@build_cpu@,$build_cpu,;t t
9225 s,@build_vendor@,$build_vendor,;t t
9226 s,@build_os@,$build_os,;t t
9227 s,@host@,$host,;t t
9228 s,@host_cpu@,$host_cpu,;t t
9229 s,@host_vendor@,$host_vendor,;t t
9230 s,@host_os@,$host_os,;t t
9231 s,@SHLICC2@,$SHLICC2,;t t
9232 s,@CC@,$CC,;t t
9233 s,@CFLAGS@,$CFLAGS,;t t
9234 s,@LDFLAGS@,$LDFLAGS,;t t
9235 s,@CPPFLAGS@,$CPPFLAGS,;t t
9236 s,@ac_ct_CC@,$ac_ct_CC,;t t
9237 s,@EXEEXT@,$EXEEXT,;t t
9238 s,@OBJEXT@,$OBJEXT,;t t
9239 s,@CPP@,$CPP,;t t
9240 s,@LIBOBJS@,$LIBOBJS,;t t
9241 s,@V_CCOPT@,$V_CCOPT,;t t
9242 s,@V_DEFS@,$V_DEFS,;t t
9243 s,@V_GROUP@,$V_GROUP,;t t
9244 s,@V_INCLS@,$V_INCLS,;t t
9245 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
9246 s,@LOCALSRC@,$LOCALSRC,;t t
9247 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9248 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9249 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9250 CEOF
9251
9252 EOF
9253
9254 cat >>$CONFIG_STATUS <<\EOF
9255 # Split the substitutions into bite-sized pieces for seds with
9256 # small command number limits, like on Digital OSF/1 and HP-UX.
9257 ac_max_sed_lines=48
9258 ac_sed_frag=1 # Number of current file.
9259 ac_beg=1 # First line for current file.
9260 ac_end=$ac_max_sed_lines # Line after last line for current file.
9261 ac_more_lines=:
9262 ac_sed_cmds=
9263 while $ac_more_lines; do
9264 if test $ac_beg -gt 1; then
9265 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9266 else
9267 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9268 fi
9269 if test ! -s $tmp/subs.frag; then
9270 ac_more_lines=false
9271 else
9272 # The purpose of the label and of the branching condition is to
9273 # speed up the sed processing (if there are no `@' at all, there
9274 # is no need to browse any of the substitutions).
9275 # These are the two extra sed commands mentioned above.
9276 (echo ':t
9277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9278 if test -z "$ac_sed_cmds"; then
9279 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9280 else
9281 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9282 fi
9283 ac_sed_frag=`expr $ac_sed_frag + 1`
9284 ac_beg=$ac_end
9285 ac_end=`expr $ac_end + $ac_max_sed_lines`
9286 fi
9287 done
9288 if test -z "$ac_sed_cmds"; then
9289 ac_sed_cmds=cat
9290 fi
9291 fi # test -n "$CONFIG_FILES"
9292
9293 EOF
9294 cat >>$CONFIG_STATUS <<\EOF
9295 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9297 case $ac_file in
9298 - | *:- | *:-:* ) # input from stdin
9299 cat >$tmp/stdin
9300 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9302 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9304 * ) ac_file_in=$ac_file.in ;;
9305 esac
9306
9307 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9308 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9309 X"$ac_file" : 'X\(//\)[^/]' \| \
9310 X"$ac_file" : 'X\(//\)$' \| \
9311 X"$ac_file" : 'X\(/\)' \| \
9312 . : '\(.\)' 2>/dev/null ||
9313 echo X"$ac_file" |
9314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9316 /^X\(\/\/\)$/{ s//\1/; q; }
9317 /^X\(\/\).*/{ s//\1/; q; }
9318 s/.*/./; q'`
9319 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9320 { case "$ac_dir" in
9321 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9322 *) as_incr_dir=.;;
9323 esac
9324 as_dummy="$ac_dir"
9325 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9326 case $as_mkdir_dir in
9327 # Skip DOS drivespec
9328 ?:) as_incr_dir=$as_mkdir_dir ;;
9329 *)
9330 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9331 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9332 ;;
9333 esac
9334 done; }
9335
9336 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9337 # A "../" for each directory in $ac_dir_suffix.
9338 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9339 else
9340 ac_dir_suffix= ac_dots=
9341 fi
9342
9343 case $srcdir in
9344 .) ac_srcdir=.
9345 if test -z "$ac_dots"; then
9346 ac_top_srcdir=.
9347 else
9348 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9349 fi ;;
9350 [\\/]* | ?:[\\/]* )
9351 ac_srcdir=$srcdir$ac_dir_suffix;
9352 ac_top_srcdir=$srcdir ;;
9353 *) # Relative path.
9354 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9355 ac_top_srcdir=$ac_dots$srcdir ;;
9356 esac
9357
9358 case $INSTALL in
9359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9360 *) ac_INSTALL=$ac_dots$INSTALL ;;
9361 esac
9362
9363 if test x"$ac_file" != x-; then
9364 { echo "$as_me:9364: creating $ac_file" >&5
9365 echo "$as_me: creating $ac_file" >&6;}
9366 rm -f "$ac_file"
9367 fi
9368 # Let's still pretend it is `configure' which instantiates (i.e., don't
9369 # use $as_me), people would be surprised to read:
9370 # /* config.h. Generated automatically by config.status. */
9371 configure_input="Generated automatically from `echo $ac_file_in |
9372 sed 's,.*/,,'` by configure."
9373
9374 # First look for the input files in the build tree, otherwise in the
9375 # src tree.
9376 ac_file_inputs=`IFS=:
9377 for f in $ac_file_in; do
9378 case $f in
9379 -) echo $tmp/stdin ;;
9380 [\\/$]*)
9381 # Absolute (can't be DOS-style, as IFS=:)
9382 test -f "$f" || { { echo "$as_me:9382: error: cannot find input file: $f" >&5
9383 echo "$as_me: error: cannot find input file: $f" >&2;}
9384 { (exit 1); exit 1; }; }
9385 echo $f;;
9386 *) # Relative
9387 if test -f "$f"; then
9388 # Build tree
9389 echo $f
9390 elif test -f "$srcdir/$f"; then
9391 # Source tree
9392 echo $srcdir/$f
9393 else
9394 # /dev/null tree
9395 { { echo "$as_me:9395: error: cannot find input file: $f" >&5
9396 echo "$as_me: error: cannot find input file: $f" >&2;}
9397 { (exit 1); exit 1; }; }
9398 fi;;
9399 esac
9400 done` || { (exit 1); exit 1; }
9401 EOF
9402 cat >>$CONFIG_STATUS <<EOF
9403 sed "$ac_vpsub
9404 $extrasub
9405 EOF
9406 cat >>$CONFIG_STATUS <<\EOF
9407 :t
9408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9409 s,@configure_input@,$configure_input,;t t
9410 s,@srcdir@,$ac_srcdir,;t t
9411 s,@top_srcdir@,$ac_top_srcdir,;t t
9412 s,@INSTALL@,$ac_INSTALL,;t t
9413 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9414 rm -f $tmp/stdin
9415 if test x"$ac_file" != x-; then
9416 mv $tmp/out $ac_file
9417 else
9418 cat $tmp/out
9419 rm -f $tmp/out
9420 fi
9421
9422 done
9423 EOF
9424 cat >>$CONFIG_STATUS <<\EOF
9425
9426 #
9427 # CONFIG_HEADER section.
9428 #
9429
9430 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9431 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9432 #
9433 # ac_d sets the value in "#define NAME VALUE" lines.
9434 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9435 ac_dB='[ ].*$,\1#\2'
9436 ac_dC=' '
9437 ac_dD=',;t'
9438 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9439 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9440 ac_uB='$,\1#\2define\3'
9441 ac_uC=' '
9442 ac_uD=',;t'
9443
9444 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9446 case $ac_file in
9447 - | *:- | *:-:* ) # input from stdin
9448 cat >$tmp/stdin
9449 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9451 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9453 * ) ac_file_in=$ac_file.in ;;
9454 esac
9455
9456 test x"$ac_file" != x- && { echo "$as_me:9456: creating $ac_file" >&5
9457 echo "$as_me: creating $ac_file" >&6;}
9458
9459 # First look for the input files in the build tree, otherwise in the
9460 # src tree.
9461 ac_file_inputs=`IFS=:
9462 for f in $ac_file_in; do
9463 case $f in
9464 -) echo $tmp/stdin ;;
9465 [\\/$]*)
9466 # Absolute (can't be DOS-style, as IFS=:)
9467 test -f "$f" || { { echo "$as_me:9467: error: cannot find input file: $f" >&5
9468 echo "$as_me: error: cannot find input file: $f" >&2;}
9469 { (exit 1); exit 1; }; }
9470 echo $f;;
9471 *) # Relative
9472 if test -f "$f"; then
9473 # Build tree
9474 echo $f
9475 elif test -f "$srcdir/$f"; then
9476 # Source tree
9477 echo $srcdir/$f
9478 else
9479 # /dev/null tree
9480 { { echo "$as_me:9480: error: cannot find input file: $f" >&5
9481 echo "$as_me: error: cannot find input file: $f" >&2;}
9482 { (exit 1); exit 1; }; }
9483 fi;;
9484 esac
9485 done` || { (exit 1); exit 1; }
9486 # Remove the trailing spaces.
9487 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9488
9489 EOF
9490
9491 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9492 # `conftest.undefs', that substitutes the proper values into
9493 # config.h.in to produce config.h. The first handles `#define'
9494 # templates, and the second `#undef' templates.
9495 # And first: Protect against being on the right side of a sed subst in
9496 # config.status. Protect against being in an unquoted here document
9497 # in config.status.
9498 rm -f conftest.defines conftest.undefs
9499 # Using a here document instead of a string reduces the quoting nightmare.
9500 # Putting comments in sed scripts is not portable.
9501 #
9502 # `end' is used to avoid that the second main sed command (meant for
9503 # 0-ary CPP macros) applies to n-ary macro definitions.
9504 # See the Autoconf documentation for `clear'.
9505 cat >confdef2sed.sed <<\EOF
9506 s/[\\&,]/\\&/g
9507 s,[\\$`],\\&,g
9508 t clear
9509 : clear
9510 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9511 t end
9512 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9513 : end
9514 EOF
9515 # If some macros were called several times there might be several times
9516 # the same #defines, which is useless. Nevertheless, we may not want to
9517 # sort them, since we want the *last* AC-DEFINE to be honored.
9518 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9519 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9520 rm -f confdef2sed.sed
9521
9522 # This sed command replaces #undef with comments. This is necessary, for
9523 # example, in the case of _POSIX_SOURCE, which is predefined and required
9524 # on some systems where configure will not decide to define it.
9525 cat >>conftest.undefs <<\EOF
9526 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9527 EOF
9528
9529 # Break up conftest.defines because some shells have a limit on the size
9530 # of here documents, and old seds have small limits too (100 cmds).
9531 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9532 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9533 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9534 echo ' :' >>$CONFIG_STATUS
9535 rm -f conftest.tail
9536 while grep . conftest.defines >/dev/null
9537 do
9538 # Write a limited-size here document to $tmp/defines.sed.
9539 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9540 # Speed up: don't consider the non `#define' lines.
9541 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9542 # Work around the forget-to-reset-the-flag bug.
9543 echo 't clr' >>$CONFIG_STATUS
9544 echo ': clr' >>$CONFIG_STATUS
9545 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9546 echo 'CEOF
9547 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9548 rm -f $tmp/in
9549 mv $tmp/out $tmp/in
9550 ' >>$CONFIG_STATUS
9551 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9552 rm -f conftest.defines
9553 mv conftest.tail conftest.defines
9554 done
9555 rm -f conftest.defines
9556 echo ' fi # egrep' >>$CONFIG_STATUS
9557 echo >>$CONFIG_STATUS
9558
9559 # Break up conftest.undefs because some shells have a limit on the size
9560 # of here documents, and old seds have small limits too (100 cmds).
9561 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9562 rm -f conftest.tail
9563 while grep . conftest.undefs >/dev/null
9564 do
9565 # Write a limited-size here document to $tmp/undefs.sed.
9566 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9567 # Speed up: don't consider the non `#undef'
9568 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9569 # Work around the forget-to-reset-the-flag bug.
9570 echo 't clr' >>$CONFIG_STATUS
9571 echo ': clr' >>$CONFIG_STATUS
9572 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9573 echo 'CEOF
9574 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9575 rm -f $tmp/in
9576 mv $tmp/out $tmp/in
9577 ' >>$CONFIG_STATUS
9578 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9579 rm -f conftest.undefs
9580 mv conftest.tail conftest.undefs
9581 done
9582 rm -f conftest.undefs
9583
9584 cat >>$CONFIG_STATUS <<\EOF
9585 # Let's still pretend it is `configure' which instantiates (i.e., don't
9586 # use $as_me), people would be surprised to read:
9587 # /* config.h. Generated automatically by config.status. */
9588 if test x"$ac_file" = x-; then
9589 echo "/* Generated automatically by configure. */" >$tmp/config.h
9590 else
9591 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9592 fi
9593 cat $tmp/in >>$tmp/config.h
9594 rm -f $tmp/in
9595 if test x"$ac_file" != x-; then
9596 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9597 { echo "$as_me:9597: $ac_file is unchanged" >&5
9598 echo "$as_me: $ac_file is unchanged" >&6;}
9599 else
9600 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9601 X"$ac_file" : 'X\(//\)[^/]' \| \
9602 X"$ac_file" : 'X\(//\)$' \| \
9603 X"$ac_file" : 'X\(/\)' \| \
9604 . : '\(.\)' 2>/dev/null ||
9605 echo X"$ac_file" |
9606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9608 /^X\(\/\/\)$/{ s//\1/; q; }
9609 /^X\(\/\).*/{ s//\1/; q; }
9610 s/.*/./; q'`
9611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9612 { case "$ac_dir" in
9613 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9614 *) as_incr_dir=.;;
9615 esac
9616 as_dummy="$ac_dir"
9617 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9618 case $as_mkdir_dir in
9619 # Skip DOS drivespec
9620 ?:) as_incr_dir=$as_mkdir_dir ;;
9621 *)
9622 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9623 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9624 ;;
9625 esac
9626 done; }
9627
9628 fi
9629 rm -f $ac_file
9630 mv $tmp/config.h $ac_file
9631 fi
9632 else
9633 cat $tmp/config.h
9634 rm -f $tmp/config.h
9635 fi
9636 done
9637 EOF
9638 cat >>$CONFIG_STATUS <<\EOF
9639
9640 #
9641 # CONFIG_COMMANDS section.
9642 #
9643 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9644 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9646
9647 case $ac_dest in
9648 default-1 ) if test -f .devel; then
9649 echo timestamp > stamp-h
9650 cat Makefile-devel-adds >> Makefile
9651 make depend
9652 fi ;;
9653 esac
9654 done
9655 EOF
9656
9657 cat >>$CONFIG_STATUS <<\EOF
9658
9659 { (exit 0); exit 0; }
9660 EOF
9661 chmod +x $CONFIG_STATUS
9662 ac_clean_files=$ac_clean_files_save
9663
9664 # configure is writing to config.log, and then calls config.status.
9665 # config.status does its own redirection, appending to config.log.
9666 # Unfortunately, on DOS this fails, as config.log is still kept open
9667 # by configure, so config.status won't be able to write to it; its
9668 # output is simply discarded. So we exec the FD to /dev/null,
9669 # effectively closing config.log, so it can be properly (re)opened and
9670 # appended to by config.status. When coming back to configure, we
9671 # need to make the FD available again.
9672 if test "$no_create" != yes; then
9673 ac_cs_success=:
9674 exec 5>/dev/null
9675 $SHELL $CONFIG_STATUS || ac_cs_success=false
9676 exec 5>>config.log
9677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9678 # would make configure fail if this is the last instruction.
9679 $ac_cs_success || { (exit 1); exit 1; }
9680 fi
9681
9682 exit 0