2 # From configure.in Revision: 1.181 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.
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.
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
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
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"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
32 # Name of the executable.
33 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a
: '\(a\)' >/dev
/null
2>&1; then
41 rm -f conf$$ conf$$.exe 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
52 elif ln conf$$.
file conf$$
2>/dev
/null
; then
57 rm -f conf$$ conf$$.exe conf$$.
file
59 as_executable_p
="test -f"
61 # Support unset when possible.
62 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
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
; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
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`
97 ac_default_prefix
=/usr
/local
101 SHELL
=${CONFIG_SHELL-/bin/sh}
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}
108 ac_unique_file
="tcpdump.c"
109 # Factoring default headers for most tests.
110 ac_includes_default
="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version
=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name
=s
,x
,x
,
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'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
209 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
212 -build |
--build |
--buil |
--bui |
--bu)
213 ac_prev
=build_alias
;;
214 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
215 build_alias
=$ac_optarg ;;
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 ;;
225 cache_file
=config.cache
;;
227 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
229 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
231 datadir
=$ac_optarg ;;
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" ;;
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'`
250 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
264 -gas |
--gas |
--ga |
--g)
265 # Obsolete; use --with-gas.
268 -help |
--help |
--hel |
--he |
-h)
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
;;
275 -host |
--host |
--hos |
--ho)
276 ac_prev
=host_alias
;;
277 -host=* |
--host=* |
--hos=* |
--ho=*)
278 host_alias
=$ac_optarg ;;
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 ;;
287 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
289 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
290 infodir
=$ac_optarg ;;
292 -libdir |
--libdir |
--libdi |
--libd)
294 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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 ;;
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 ;;
313 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
315 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
319 # Obsolete; use --without-fp.
322 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
326 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
327 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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 ;;
339 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
341 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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 ;;
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 ;;
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 ;;
375 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
376 |
-silent |
--silent |
--silen |
--sile |
--sil)
379 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
381 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
383 sbindir
=$ac_optarg ;;
385 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
386 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
387 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
389 ac_prev
=sharedstatedir
;;
390 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
391 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
392 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
394 sharedstatedir
=$ac_optarg ;;
396 -site |
--site |
--sit)
398 -site=* |
--site=* |
--sit=*)
401 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
403 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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 ;;
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 ;;
418 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
421 -version |
--version |
--versio |
--versi |
--vers |
-V)
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'`
432 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
447 # Obsolete; use --with-x.
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 ;;
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 ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
496 # Be sure to have absolute paths.
497 for ac_var
in exec_prefix prefix
499 eval ac_val
=$
`echo $ac_var`
501 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
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
511 eval ac_val
=$
`echo $ac_var`
513 [\\/$
]* | ?
:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
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
537 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
539 test "$silent" = yes && exec 6>/dev
/null
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.
546 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted
=no
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; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
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}
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
599 # Report the --help message.
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.
605 \`configure' configures this package to adapt to many kinds of systems.
607 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
612 Defaults for the options are specified in brackets.
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 \`..']
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
639 For better control, use the options below.
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]
659 --build=BUILD configure
for building on BUILD
[guessed
]
660 --host=HOST build programs to run on HOST
[BUILD
]
664 if test -n "$ac_init_help"; then
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
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
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>
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.
699 if test "$ac_init_help" = "recursive"; then
700 # If there are subdirs, report their specific --help.
702 for ac_subdir
in : $ac_subdirs_all; do test "x$ac_subdir" = x
: && continue
704 # A "../" for each directory in /$ac_subdir.
705 ac_dots
=`echo $ac_subdir |
706 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
709 .
) # No --srcdir option. We are building in place.
710 ac_sub_srcdir
=$srcdir ;;
711 [\\/]* | ?
:[\\/]* ) # Absolute path.
712 ac_sub_srcdir
=$srcdir/$ac_subdir ;;
714 ac_sub_srcdir
=$ac_dots$srcdir/$ac_subdir ;;
717 # Check for guested configure; otherwise get Cygnus style configure.
718 if test -f $ac_sub_srcdir/configure.gnu
; then
720 $SHELL $ac_sub_srcdir/configure.gnu
--help=recursive
721 elif test -f $ac_sub_srcdir/configure
; then
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
729 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
735 test -n "$ac_init_help" && exit 0
736 if $ac_init_version; then
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.
748 This file contains any messages produced by compilers while
749 running configure, to aid debugging if configure makes a mistake.
751 It was created by $as_me, which was
752 generated by GNU Autoconf 2.52. Invocation command line was
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`
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`
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`
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.
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'"
808 *) ac_configure_args
="$ac_configure_args$ac_sep$ac_arg"
811 # Get rid of the leading space.
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.
818 # Save into config.log some information that might help in debugging.
820 echo "## ----------------- ##" >&5
821 echo "## Cache variables. ##" >&5
822 echo "## ----------------- ##" >&5
824 # The following way of writing the cache mishandles newlines in values,
827 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
830 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
839 sed "/^$/d" confdefs.h >conftest.log
840 if test -s conftest.log; then
842 echo "## ------------ ##" >&5
843 echo "## confdefs.h. ##" >&5
844 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 &&
855 for ac_signal
in 1 2 13 15; do
856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
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"
871 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
890 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
895 { echo "$as_me:895: creating cache $cache_file" >&5
896 echo "$as_me: creating cache $cache_file" >&6;}
900 # Check that the precious variables saved in the cache have kept the same
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
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
=: ;;
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
=: ;;
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;}
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
934 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
936 ac_configure_args
="$ac_configure_args '$ac_arg'"
938 *) ac_configure_args
="$ac_configure_args $ac_var=$ac_new_val"
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; }; }
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
957 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
958 *c
*,-n*) ECHO_N
= ECHO_C
='
960 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
961 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
963 echo "#! $SHELL" >conftest.sh
964 echo "exit 0" >>conftest.sh
966 if { (echo "$as_me:966: PATH=\".;.\"; conftest.sh") >&5
967 (PATH
=".;."; conftest.sh
) 2>&5
969 echo "$as_me:969: \$? = $ac_status" >&5
970 (exit $ac_status); }; then
971 ac_path_separator
=';'
975 PATH_SEPARATOR
="$ac_path_separator"
979 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
980 if test -f $ac_dir/install-sh
; then
982 ac_install_sh
="$ac_aux_dir/install-sh -c"
984 elif test -f $ac_dir/install.sh
; then
986 ac_install_sh
="$ac_aux_dir/install.sh -c"
988 elif test -f $ac_dir/shtool
; then
990 ac_install_sh
="$ac_aux_dir/shtool install -c"
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; }; }
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.
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; }; }
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
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; }; }
1027 echo "$as_me:1027: result: $ac_cv_build" >&5
1028 echo "${ECHO_T}$ac_cv_build" >&6
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/'`
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
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; }; }
1048 echo "$as_me:1048: result: $ac_cv_host" >&5
1049 echo "${ECHO_T}$ac_cv_host" >&6
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/'`
1055 # Check whether --with-gcc or --without-gcc was given.
1056 if test "${with_gcc+set}" = set; then
1062 if test "${srcdir}" != "." ; then
1063 V_INCLS
="-I\$(srcdir)"
1065 if test "${CFLAGS+set}" = set; then
1066 LBL_CFLAGS
="$CFLAGS"
1068 if test -z "$CC" ; then
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
1079 if test -n "$SHLICC2"; then
1080 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1082 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1084 for ac_dir
in $ac_dummy; do
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
1093 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
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
1101 echo "$as_me:1101: result: no" >&5
1102 echo "${ECHO_T}no" >&6
1105 if test $SHLICC2 = yes ; then
1112 if test -z "$CC" -a "$with_gcc" = no
; then
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
1129 if test -n "$CC"; then
1130 ac_cv_prog_CC
="$CC" # Let the user override the test.
1132 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1134 for ac_dir
in $ac_dummy; do
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
1146 if test -n "$CC"; then
1147 echo "$as_me:1147: result: $CC" >&5
1148 echo "${ECHO_T}$CC" >&6
1150 echo "$as_me:1150: result: no" >&5
1151 echo "${ECHO_T}no" >&6
1155 if test -z "$ac_cv_prog_CC"; then
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
1164 if test -n "$ac_ct_CC"; then
1165 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1167 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1169 for ac_dir
in $ac_dummy; do
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
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
1185 echo "$as_me:1185: result: no" >&5
1186 echo "${ECHO_T}no" >&6
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
1203 if test -n "$CC"; then
1204 ac_cv_prog_CC
="$CC" # Let the user override the test.
1206 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1208 for ac_dir
in $ac_dummy; do
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
1220 if test -n "$CC"; then
1221 echo "$as_me:1221: result: $CC" >&5
1222 echo "${ECHO_T}$CC" >&6
1224 echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1229 if test -z "$ac_cv_prog_CC"; then
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
1238 if test -n "$ac_ct_CC"; then
1239 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1241 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1243 for ac_dir
in $ac_dummy; do
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
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
1259 echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
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
1277 if test -n "$CC"; then
1278 ac_cv_prog_CC
="$CC" # Let the user override the test.
1281 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1283 for ac_dir
in $ac_dummy; do
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
1292 echo "$as_me:1292: found $ac_dir/$ac_word" >&5
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
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.
1305 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1313 if test -n "$CC"; then
1314 echo "$as_me:1314: result: $CC" >&5
1315 echo "${ECHO_T}$CC" >&6
1317 echo "$as_me:1317: result: no" >&5
1318 echo "${ECHO_T}no" >&6
1322 if test -z "$CC"; then
1323 if test -n "$ac_tool_prefix"; then
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
1333 if test -n "$CC"; then
1334 ac_cv_prog_CC
="$CC" # Let the user override the test.
1336 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1338 for ac_dir
in $ac_dummy; do
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
1350 if test -n "$CC"; then
1351 echo "$as_me:1351: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1354 echo "$as_me:1354: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1358 test -n "$CC" && break
1361 if test -z "$CC"; then
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
1372 if test -n "$ac_ct_CC"; then
1373 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1375 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1377 for ac_dir
in $ac_dummy; do
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
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
1393 echo "$as_me:1393: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1397 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
1426 echo "$as_me:1426: \$? = $ac_status" >&5
1427 (exit $ac_status); }
1429 cat >conftest.
$ac_ext <<_ACEOF
1430 #line 1430 "configure"
1431 #include "confdefs.h"
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
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
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
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
1461 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1462 a.out
) # We found the default executable, but exeext='' is most
1465 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1466 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
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; }; }
1480 ac_exeext
=$ac_cv_exeext
1481 echo "$as_me:1481: result: $ac_file" >&5
1482 echo "${ECHO_T}$ac_file" >&6
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
1495 echo "$as_me:1495: \$? = $ac_status" >&5
1496 (exit $ac_status); }; }; then
1499 if test "$cross_compiling" = maybe
; then
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; }; }
1510 echo "$as_me:1510: result: yes" >&5
1511 echo "${ECHO_T}yes" >&6
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
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
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
1533 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1535 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1536 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
1552 rm -f conftest.
$ac_ext
1553 EXEEXT
=$ac_cv_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
1560 cat >conftest.
$ac_ext <<_ACEOF
1561 #line 1561 "configure"
1562 #include "confdefs.h"
1572 rm -f conftest.o conftest.obj
1573 if { (eval echo "$as_me:1573: \"$ac_compile\"") >&5
1574 (eval $ac_compile) 2>&5
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
1580 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1581 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
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; }; }
1593 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1595 echo "$as_me:1595: result: $ac_cv_objext" >&5
1596 echo "${ECHO_T}$ac_cv_objext" >&6
1597 OBJEXT
=$ac_cv_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
1604 cat >conftest.
$ac_ext <<_ACEOF
1605 #line 1605 "configure"
1606 #include "confdefs.h"
1619 rm -f conftest.
$ac_objext
1620 if { (eval echo "$as_me:1620: \"$ac_compile\"") >&5
1621 (eval $ac_compile) 2>&5
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
1629 echo "$as_me:1629: \$? = $ac_status" >&5
1630 (exit $ac_status); }; }; then
1633 echo "$as_me: failed program was:" >&5
1634 cat conftest.
$ac_ext >&5
1637 rm -f conftest.
$ac_objext conftest.
$ac_ext
1638 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
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
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
1652 cat >conftest.
$ac_ext <<_ACEOF
1653 #line 1653 "configure"
1654 #include "confdefs.h"
1664 rm -f conftest.
$ac_objext
1665 if { (eval echo "$as_me:1665: \"$ac_compile\"") >&5
1666 (eval $ac_compile) 2>&5
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
1674 echo "$as_me:1674: \$? = $ac_status" >&5
1675 (exit $ac_status); }; }; then
1678 echo "$as_me: failed program was:" >&5
1679 cat conftest.
$ac_ext >&5
1682 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
1695 if test "$GCC" = yes; then
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
1710 rm -f conftest.
$ac_objext
1711 if { (eval echo "$as_me:1711: \"$ac_compile\"") >&5
1712 (eval $ac_compile) 2>&5
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
1720 echo "$as_me:1720: \$? = $ac_status" >&5
1721 (exit $ac_status); }; }; then
1722 for ac_declaration
in \
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);' \
1731 cat >conftest.
$ac_ext <<_ACEOF
1732 #line 1732 "configure"
1733 #include "confdefs.h"
1744 rm -f conftest.
$ac_objext
1745 if { (eval echo "$as_me:1745: \"$ac_compile\"") >&5
1746 (eval $ac_compile) 2>&5
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
1754 echo "$as_me:1754: \$? = $ac_status" >&5
1755 (exit $ac_status); }; }; then
1758 echo "$as_me: failed program was:" >&5
1759 cat conftest.
$ac_ext >&5
1762 rm -f conftest.
$ac_objext conftest.
$ac_ext
1763 cat >conftest.
$ac_ext <<_ACEOF
1764 #line 1764 "configure"
1765 #include "confdefs.h"
1775 rm -f conftest.
$ac_objext
1776 if { (eval echo "$as_me:1776: \"$ac_compile\"") >&5
1777 (eval $ac_compile) 2>&5
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
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1789 echo "$as_me: failed program was:" >&5
1790 cat conftest.
$ac_ext >&5
1792 rm -f conftest.
$ac_objext conftest.
$ac_ext
1795 if test -n "$ac_declaration"; then
1796 echo '#ifdef __cplusplus' >>confdefs.h
1797 echo $ac_declaration >>confdefs.h
1798 echo '#endif' >>confdefs.h
1802 echo "$as_me: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1805 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
1812 if test "$GCC" = yes ; then
1813 if test "$SHLICC2" = yes ; then
1814 ac_cv_lbl_gcc_vers
=2
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
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]*//' \
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
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
1842 cat >conftest.
$ac_ext <<_ACEOF
1843 #line 1843 "configure"
1844 #include "confdefs.h"
1845 #include <sys/types.h>
1849 int frob(int, char *)
1854 rm -f conftest.
$ac_objext
1855 if { (eval echo "$as_me:1855: \"$ac_compile\"") >&5
1856 (eval $ac_compile) 2>&5
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
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); }; }; then
1866 ac_cv_lbl_cc_ansi_prototypes
=yes
1868 echo "$as_me: failed program was:" >&5
1869 cat conftest.
$ac_ext >&5
1870 ac_cv_lbl_cc_ansi_prototypes
=no
1872 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
1888 cat >conftest.
$ac_ext <<_ACEOF
1889 #line 1889 "configure"
1890 #include "confdefs.h"
1891 #include <sys/types.h>
1895 int frob(int, char *)
1900 rm -f conftest.
$ac_objext
1901 if { (eval echo "$as_me:1901: \"$ac_compile\"") >&5
1902 (eval $ac_compile) 2>&5
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
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1912 ac_cv_lbl_cc_hpux_cc_aa
=yes
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.
$ac_ext >&5
1916 ac_cv_lbl_cc_hpux_cc_aa
=no
1918 rm -f conftest.
$ac_objext conftest.
$ac_ext
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; }; }
1928 CFLAGS
="$savedcflags"
1929 V_CCOPT
="-Aa $V_CCOPT"
1930 cat >>confdefs.h
<<\EOF
1931 #define _HPUX_SOURCE 1
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; }; }
1943 V_INCLS
="$V_INCLS -I/usr/local/include"
1944 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1949 V_CCOPT
="$V_CCOPT -xansi -signed -O"
1953 V_CCOPT
="$V_CCOPT -std1 -O"
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
1962 cat >conftest.
$ac_ext <<_ACEOF
1963 #line 1963 "configure"
1964 #include "confdefs.h"
1965 #include <sys/types.h>
1969 struct a { int b; };
1970 void c(const struct a *)
1975 rm -f conftest.
$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
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
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 ac_cv_lbl_cc_const_proto
=yes
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.
$ac_ext >&5
1991 ac_cv_lbl_cc_const_proto
=no
1993 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
2016 for ac_lbl_inline
in inline __inline__ __inline
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);
2028 static inline struct iltest *
2031 static struct iltest xxx;
2043 rm -f conftest.
$ac_objext
2044 if { (eval echo "$as_me:2044: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>&5
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
2053 echo "$as_me:2053: \$? = $ac_status" >&5
2054 (exit $ac_status); }; }; then
2055 ac_lbl_cc_inline
=yes
2057 echo "$as_me: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 rm -f conftest.
$ac_objext conftest.
$ac_ext
2061 if test "$ac_lbl_cc_inline" = yes ; then
2065 if test "$ac_lbl_cc_inline" = yes ; then
2066 ac_cv_lbl_inline
=$ac_lbl_inline
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
2074 echo "$as_me:2074: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2078 cat >>confdefs.h
<<EOF
2079 #define inline $ac_cv_lbl_inline
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
2088 cat >conftest.
$ac_ext <<_ACEOF
2089 #line 2089 "configure"
2090 #include "confdefs.h"
2098 static void foo(void) __attribute__ ((noreturn));
2110 rm -f conftest.
$ac_objext
2111 if { (eval echo "$as_me:2111: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>&5
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
2120 echo "$as_me:2120: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 ac_cv___attribute__
=yes
2124 echo "$as_me: failed program was:" >&5
2125 cat conftest.
$ac_ext >&5
2126 ac_cv___attribute__
=no
2128 rm -f conftest.
$ac_objext conftest.
$ac_ext
2131 if test "$ac_cv___attribute__" = "yes"; then
2133 cat >>confdefs.h
<<\EOF
2134 #define HAVE___ATTRIBUTE__ 1
2137 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2139 V_DEFS
="$V_DEFS -D_U_=\"\""
2141 echo "$as_me:2141: result: $ac_cv___attribute__" >&5
2142 echo "${ECHO_T}$ac_cv___attribute__" >&6
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
2155 if test -z "$CPP"; then
2156 if test "${ac_cv_prog_CPP+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 # Double quotes because CPP needs to be expanded
2160 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2163 for ac_c_preproc_warn_flag
in '' yes
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"
2175 if { (eval echo "$as_me:2175: \"$ac_cpp conftest.$ac_ext\"") >&5
2176 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2178 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2191 if test -z "$ac_cpp_err"; then
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.
$ac_ext >&5
2196 # Broken: fails on valid input.
2199 rm -f conftest.err conftest.
$ac_ext
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>
2208 if { (eval echo "$as_me:2208: \"$ac_cpp conftest.$ac_ext\"") >&5
2209 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2211 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2224 if test -z "$ac_cpp_err"; then
2225 # Broken: success on invalid input.
2228 echo "$as_me: failed program was:" >&5
2229 cat conftest.
$ac_ext >&5
2230 # Passes both tests.
2234 rm -f conftest.err conftest.
$ac_ext
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
2251 echo "$as_me:2251: result: $CPP" >&5
2252 echo "${ECHO_T}$CPP" >&6
2254 for ac_c_preproc_warn_flag
in '' yes
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"
2266 if { (eval echo "$as_me:2266: \"$ac_cpp conftest.$ac_ext\"") >&5
2267 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2269 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2282 if test -z "$ac_cpp_err"; then
2285 echo "$as_me: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2287 # Broken: fails on valid input.
2290 rm -f conftest.err conftest.
$ac_ext
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>
2299 if { (eval echo "$as_me:2299: \"$ac_cpp conftest.$ac_ext\"") >&5
2300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2302 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2315 if test -z "$ac_cpp_err"; then
2316 # Broken: success on invalid input.
2319 echo "$as_me: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2321 # Passes both tests.
2325 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
2344 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h netinet
/ether.h
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
2352 cat >conftest.
$ac_ext <<_ACEOF
2353 #line 2353 "configure"
2354 #include "confdefs.h"
2355 #include <$ac_header>
2357 if { (eval echo "$as_me:2357: \"$ac_cpp conftest.$ac_ext\"") >&5
2358 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2360 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2373 if test -z "$ac_cpp_err"; then
2374 eval "$as_ac_Header=yes"
2376 echo "$as_me: failed program was:" >&5
2377 cat conftest.
$ac_ext >&5
2378 eval "$as_ac_Header=no"
2380 rm -f conftest.err conftest.
$ac_ext
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
2392 for ac_header
in netinet
/if_ether.h
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
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>
2407 rm -f conftest.
$ac_objext
2408 if { (eval echo "$as_me:2408: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>&5
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
2417 echo "$as_me:2417: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 eval "$as_ac_Header=yes"
2421 echo "$as_me: failed program was:" >&5
2422 cat conftest.
$ac_ext >&5
2423 eval "$as_ac_Header=no"
2425 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
2442 cat >conftest.
$ac_ext <<_ACEOF
2443 #line 2443 "configure"
2444 #include "confdefs.h"
2445 #include <sys/types.h>
2446 #include <sys/time.h>
2452 if ((struct tm *) 0)
2458 rm -f conftest.
$ac_objext
2459 if { (eval echo "$as_me:2459: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>&5
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
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_header_time
=yes
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.
$ac_ext >&5
2474 ac_cv_header_time
=no
2476 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
2482 cat >>confdefs.h
<<\EOF
2483 #define TIME_WITH_SYS_TIME 1
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
2497 ac_cv_linux_vers
=unknown
2501 if test "${ac_cv_linux_vers+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 ac_cv_linux_vers
=`uname -r 2>&1 | \
2505 sed -n -e '$s/.* //' -e '$s/\..*//p'`
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; }; }
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; }; }
2527 for ac_header
in smi.h
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
2535 cat >conftest.
$ac_ext <<_ACEOF
2536 #line 2536 "configure"
2537 #include "confdefs.h"
2538 #include <$ac_header>
2540 if { (eval echo "$as_me:2540: \"$ac_cpp conftest.$ac_ext\"") >&5
2541 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2543 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2556 if test -z "$ac_cpp_err"; then
2557 eval "$as_ac_Header=yes"
2559 echo "$as_me: failed program was:" >&5
2560 cat conftest.
$ac_ext >&5
2561 eval "$as_ac_Header=no"
2563 rm -f conftest.err conftest.
$ac_ext
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
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
2580 ac_check_lib_save_LIBS
=$LIBS
2582 cat >conftest.
$ac_ext <<_ACEOF
2583 #line 2583 "configure"
2584 #include "confdefs.h"
2586 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
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
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
2611 echo "$as_me:2611: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 ac_cv_lib_smi_smiInit
=yes
2615 echo "$as_me: failed program was:" >&5
2616 cat conftest.
$ac_ext >&5
2617 ac_cv_lib_smi_smiInit
=no
2619 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2620 LIBS
=$ac_check_lib_save_LIBS
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
2633 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
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
2643 cat >conftest.
$ac_ext <<_ACEOF
2644 #line 2644 "configure"
2645 #include "confdefs.h"
2646 /* libsmi available check */
2650 int current, revision, age, n;
2651 const int required = 2;
2654 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
2656 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
2659 if (required < current - age || required > current)
2665 rm -f conftest
$ac_exeext
2666 if { (eval echo "$as_me:2666: \"$ac_link\"") >&5
2667 (eval $ac_link) 2>&5
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
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
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
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 ;;
2701 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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"
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
2723 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
2725 *) echo "$as_me:2725: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2730 # Check whether --with-user or --without-user was given.
2731 if test "${with_user+set}" = set; then
2732 withval
="$with_user"
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"
2742 echo "$as_me:2742: result: to \"$withval\"" >&5
2743 echo "${ECHO_T}to \"$withval\"" >&6
2745 echo "$as_me:2745: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2749 # Check whether --with-chroot or --without-chroot was given.
2750 if test "${with_chroot+set}" = set; then
2751 withval
="$with_chroot"
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"
2761 echo "$as_me:2761: result: to \"$withval\"" >&5
2762 echo "${ECHO_T}to \"$withval\"" >&6
2764 echo "$as_me:2764: result: no" >&5
2765 echo "${ECHO_T}no" >&6
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
2784 echo "$as_me:2784: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2790 if test "$cross_compiling" = yes; then
2791 echo "$as_me:2791: result: no" >&5
2792 echo "${ECHO_T}no" >&6
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>
2804 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
2811 rm -f conftest
$ac_exeext
2812 if { (eval echo "$as_me:2812: \"$ac_link\"") >&5
2813 (eval $ac_link) 2>&5
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
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
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
2838 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
2852 cat >conftest.
$ac_ext <<_ACEOF
2853 #line 2853 "configure"
2854 #include "confdefs.h"
2855 #include <netinet/in.h>
2856 #ifdef IPV6_INRIA_VERSION
2860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2861 egrep "yes" >/dev
/null
2>&1; then
2863 CFLAGS
="-DINET6 $CFLAGS"
2869 cat >conftest.
$ac_ext <<_ACEOF
2870 #line 2870 "configure"
2871 #include "confdefs.h"
2872 #include <netinet/in.h>
2877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878 egrep "yes" >/dev
/null
2>&1; then
2881 ipv6libdir
=/usr
/local
/v
6/lib
;
2883 CFLAGS
="-DINET6 $CFLAGS"
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
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 egrep "yes" >/dev
/null
2>&1; then
2900 CFLAGS
="-DINET6 $CFLAGS"
2906 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
2909 ipv6libdir
=/usr
/inet
6/lib
2911 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
2915 cat >conftest.
$ac_ext <<_ACEOF
2916 #line 2916 "configure"
2917 #include "confdefs.h"
2918 #include <sys/param.h>
2919 #ifdef _TOSHIBA_INET6
2923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2924 egrep "yes" >/dev
/null
2>&1; then
2927 ipv6libdir
=/usr
/local
/v
6/lib
;
2928 CFLAGS
="-DINET6 $CFLAGS"
2934 cat >conftest.
$ac_ext <<_ACEOF
2935 #line 2935 "configure"
2936 #include "confdefs.h"
2937 #include </usr/local/v6/include/sys/v6config.h>
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "yes" >/dev
/null
2>&1; then
2946 ipv6libdir
=/usr
/local
/v
6/lib
;
2947 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
2953 cat >conftest.
$ac_ext <<_ACEOF
2954 #line 2954 "configure"
2955 #include "confdefs.h"
2956 #include <sys/param.h>
2957 #ifdef _ZETA_MINAMI_INET6
2961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962 egrep "yes" >/dev
/null
2>&1; then
2965 ipv6libdir
=/usr
/local
/v
6/lib
;
2966 CFLAGS
="-DINET6 $CFLAGS"
2972 if test "$ipv6type" != "unknown"; then
2976 echo "$as_me:2976: result: $ipv6type" >&5
2977 echo "${ECHO_T}$ipv6type" >&6
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"
2985 if test "$ipv6trylibc" = "yes"; then
2986 echo "You do not have $ipv6lib library, using libc"
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.'
2996 if test "$ipv6" = "yes"; then
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.
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.
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
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"
3021 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
3046 echo "$as_me:3046: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_search_getaddrinfo
="none required"
3050 echo "$as_me: failed program was:" >&5
3051 cat conftest.
$ac_ext >&5
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"
3061 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
3086 echo "$as_me:3086: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_search_getaddrinfo
="-l$ac_lib"
3091 echo "$as_me: failed program was:" >&5
3092 cat conftest.
$ac_ext >&5
3094 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3097 LIBS
=$ac_func_search_save_LIBS
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
3108 if test "$cross_compiling" = yes; then
3109 td_cv_buggygetaddrinfo
=yes
3111 cat >conftest.
$ac_ext <<_ACEOF
3112 #line 3112 "configure"
3113 #include "confdefs.h"
3115 #include <sys/types.h>
3118 #include <sys/socket.h>
3119 #include <netinet/in.h>
3123 int passive, gaierr, inet4 = 0, inet6 = 0;
3124 struct addrinfo hints, *ai, *aitop;
3125 char straddr[INET6_ADDRSTRLEN], strport[16];
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);
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) {
3145 switch (ai->ai_family) {
3147 if (strcmp(strport, "54321") != 0) {
3151 if (strcmp(straddr, "0.0.0.0") != 0) {
3155 if (strcmp(straddr, "127.0.0.1") != 0) {
3162 if (strcmp(strport, "54321") != 0) {
3166 if (strcmp(straddr, "::") != 0) {
3170 if (strcmp(straddr, "::1") != 0) {
3187 /* another family support? */
3193 /* supported family should be 2, unsupported family should be 0 */
3194 if (!(inet4 == 0 || inet4 == 2))
3196 if (!(inet6 == 0 || inet6 == 2))
3200 freeaddrinfo(aitop);
3205 freeaddrinfo(aitop);
3210 rm -f conftest
$ac_exeext
3211 if { (eval echo "$as_me:3211: \"$ac_link\"") >&5
3212 (eval $ac_link) 2>&5
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
3219 echo "$as_me:3219: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3221 td_cv_buggygetaddrinfo
=no
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
3228 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3232 if test "$td_cv_buggygetaddrinfo" = no
; then
3233 echo "$as_me:3233: result: good" >&5
3234 echo "${ECHO_T}good" >&6
3236 echo "$as_me:3236: result: buggy" >&5
3237 echo "${ECHO_T}buggy" >&6
3240 if test "$td_cv_buggygetaddrinfo" = "yes"; then
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.
3248 if test "$ipv6type" != "linux"; then
3249 echo 'Fatal: You must get working getaddrinfo() function.'
3250 echo ' or you can specify "--disable-ipv6"'.
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).'
3261 for ac_func
in getaddrinfo getnameinfo
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
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. */
3275 /* Override any gcc2 internal prototype to avoid an error. */
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
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)
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
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
3310 echo "$as_me:3310: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 eval "$as_ac_var=yes"
3314 echo "$as_me: failed program was:" >&5
3315 cat conftest.
$ac_ext >&5
3316 eval "$as_ac_var=no"
3318 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
3328 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
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
3339 cat >conftest.
$ac_ext <<_ACEOF
3340 #line 3340 "configure"
3341 #include "confdefs.h"
3342 #include <netdnet/dnetdb.h>
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
3349 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
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
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
3368 cat >conftest.
$ac_ext <<_ACEOF
3369 #line 3369 "configure"
3370 #include "confdefs.h"
3377 if { (eval echo "$as_me:3377: \"$ac_cpp conftest.$ac_ext\"") >&5
3378 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3380 egrep -v '^ *\+' conftest.er1
>conftest.err
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
3393 if test -z "$ac_cpp_err"; then
3394 ac_cv_header_stdc
=yes
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.
$ac_ext >&5
3398 ac_cv_header_stdc
=no
3400 rm -f conftest.err conftest.
$ac_ext
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"
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 egrep "memchr" >/dev
/null
2>&1; then
3414 ac_cv_header_stdc
=no
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"
3428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3429 egrep "free" >/dev
/null
2>&1; then
3432 ac_cv_header_stdc
=no
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
3443 cat >conftest.
$ac_ext <<_ACEOF
3444 #line 3444 "configure"
3445 #include "confdefs.h"
3447 #if ((' ' & 0x0FF) == 0x020)
3448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3462 for (i = 0; i < 256; i++)
3463 if (XOR (islower (i), ISLOWER (i))
3464 || toupper (i) != TOUPPER (i))
3469 rm -f conftest
$ac_exeext
3470 if { (eval echo "$as_me:3470: \"$ac_link\"") >&5
3471 (eval $ac_link) 2>&5
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
3478 echo "$as_me:3478: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
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
3487 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
3495 cat >>confdefs.h
<<\EOF
3496 #define STDC_HEADERS 1
3501 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
3512 cat >conftest.
$ac_ext <<_ACEOF
3513 #line 3513 "configure"
3514 #include "confdefs.h"
3515 $ac_includes_default
3516 #include <$ac_header>
3518 rm -f conftest.
$ac_objext
3519 if { (eval echo "$as_me:3519: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
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
3528 echo "$as_me:3528: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 eval "$as_ac_Header=yes"
3532 echo "$as_me: failed program was:" >&5
3533 cat conftest.
$ac_ext >&5
3534 eval "$as_ac_Header=no"
3536 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
3553 cat >conftest.
$ac_ext <<_ACEOF
3554 #line 3554 "configure"
3555 #include "confdefs.h"
3556 $ac_includes_default
3568 rm -f conftest.
$ac_objext
3569 if { (eval echo "$as_me:3569: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>&5
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
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3582 echo "$as_me: failed program was:" >&5
3583 cat conftest.
$ac_ext >&5
3586 rm -f conftest.
$ac_objext conftest.
$ac_ext
3588 echo "$as_me:3588: result: $ac_cv_type_char" >&5
3589 echo "${ECHO_T}$ac_cv_type_char" >&6
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
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
3606 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
3611 rm -f conftest.
$ac_objext
3612 if { (eval echo "$as_me:3612: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>&5
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
3621 echo "$as_me:3621: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3625 cat >conftest.
$ac_ext <<_ACEOF
3626 #line 3626 "configure"
3627 #include "confdefs.h"
3628 $ac_includes_default
3632 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3637 rm -f conftest.
$ac_objext
3638 if { (eval echo "$as_me:3638: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
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
3647 echo "$as_me:3647: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_hi
=$ac_mid; break
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`
3655 rm -f conftest.
$ac_objext conftest.
$ac_ext
3658 echo "$as_me: failed program was:" >&5
3659 cat conftest.
$ac_ext >&5
3662 cat >conftest.
$ac_ext <<_ACEOF
3663 #line 3663 "configure"
3664 #include "confdefs.h"
3665 $ac_includes_default
3669 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
3674 rm -f conftest.
$ac_objext
3675 if { (eval echo "$as_me:3675: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
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
3684 echo "$as_me:3684: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 ac_lo
=$ac_mid; break
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`
3692 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
3706 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3711 rm -f conftest.
$ac_objext
3712 if { (eval echo "$as_me:3712: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>&5
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
3721 echo "$as_me:3721: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3725 echo "$as_me: failed program was:" >&5
3726 cat conftest.
$ac_ext >&5
3727 ac_lo
=`expr $ac_mid + 1`
3729 rm -f conftest.
$ac_objext conftest.
$ac_ext
3731 ac_cv_sizeof_char
=$ac_lo
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; }; }
3738 cat >conftest.
$ac_ext <<_ACEOF
3739 #line 3739 "configure"
3740 #include "confdefs.h"
3741 $ac_includes_default
3745 FILE *f = fopen ("conftest.val", "w");
3748 fprintf (f, "%d", (sizeof (char)));
3754 rm -f conftest
$ac_exeext
3755 if { (eval echo "$as_me:3755: \"$ac_link\"") >&5
3756 (eval $ac_link) 2>&5
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
3763 echo "$as_me:3763: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_cv_sizeof_char
=`cat conftest.val`
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
3771 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
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
3790 cat >conftest.
$ac_ext <<_ACEOF
3791 #line 3791 "configure"
3792 #include "confdefs.h"
3793 $ac_includes_default
3805 rm -f conftest.
$ac_objext
3806 if { (eval echo "$as_me:3806: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>&5
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
3815 echo "$as_me:3815: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 ac_cv_type_short
=yes
3819 echo "$as_me: failed program was:" >&5
3820 cat conftest.
$ac_ext >&5
3823 rm -f conftest.
$ac_objext conftest.
$ac_ext
3825 echo "$as_me:3825: result: $ac_cv_type_short" >&5
3826 echo "${ECHO_T}$ac_cv_type_short" >&6
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
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
3843 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
3848 rm -f conftest.
$ac_objext
3849 if { (eval echo "$as_me:3849: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>&5
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
3858 echo "$as_me:3858: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3862 cat >conftest.
$ac_ext <<_ACEOF
3863 #line 3863 "configure"
3864 #include "confdefs.h"
3865 $ac_includes_default
3869 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3874 rm -f conftest.
$ac_objext
3875 if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5
3876 (eval $ac_compile) 2>&5
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
3884 echo "$as_me:3884: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_hi
=$ac_mid; break
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`
3892 rm -f conftest.
$ac_objext conftest.
$ac_ext
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.
$ac_ext >&5
3899 cat >conftest.
$ac_ext <<_ACEOF
3900 #line 3900 "configure"
3901 #include "confdefs.h"
3902 $ac_includes_default
3906 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
3911 rm -f conftest.
$ac_objext
3912 if { (eval echo "$as_me:3912: \"$ac_compile\"") >&5
3913 (eval $ac_compile) 2>&5
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
3921 echo "$as_me:3921: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_lo
=$ac_mid; break
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`
3929 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
3943 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3948 rm -f conftest.
$ac_objext
3949 if { (eval echo "$as_me:3949: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>&5
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
3958 echo "$as_me:3958: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3962 echo "$as_me: failed program was:" >&5
3963 cat conftest.
$ac_ext >&5
3964 ac_lo
=`expr $ac_mid + 1`
3966 rm -f conftest.
$ac_objext conftest.
$ac_ext
3968 ac_cv_sizeof_short
=$ac_lo
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; }; }
3975 cat >conftest.
$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3978 $ac_includes_default
3982 FILE *f = fopen ("conftest.val", "w");
3985 fprintf (f, "%d", (sizeof (short)));
3991 rm -f conftest
$ac_exeext
3992 if { (eval echo "$as_me:3992: \"$ac_link\"") >&5
3993 (eval $ac_link) 2>&5
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
4000 echo "$as_me:4000: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 ac_cv_sizeof_short
=`cat conftest.val`
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
4008 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4013 ac_cv_sizeof_short
=0
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
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
4027 cat >conftest.
$ac_ext <<_ACEOF
4028 #line 4028 "configure"
4029 #include "confdefs.h"
4030 $ac_includes_default
4042 rm -f conftest.
$ac_objext
4043 if { (eval echo "$as_me:4043: \"$ac_compile\"") >&5
4044 (eval $ac_compile) 2>&5
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
4052 echo "$as_me:4052: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4056 echo "$as_me: failed program was:" >&5
4057 cat conftest.
$ac_ext >&5
4060 rm -f conftest.
$ac_objext conftest.
$ac_ext
4062 echo "$as_me:4062: result: $ac_cv_type_int" >&5
4063 echo "${ECHO_T}$ac_cv_type_int" >&6
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
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
4080 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
4085 rm -f conftest.
$ac_objext
4086 if { (eval echo "$as_me:4086: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>&5
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
4095 echo "$as_me:4095: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4099 cat >conftest.
$ac_ext <<_ACEOF
4100 #line 4100 "configure"
4101 #include "confdefs.h"
4102 $ac_includes_default
4106 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4111 rm -f conftest.
$ac_objext
4112 if { (eval echo "$as_me:4112: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>&5
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
4121 echo "$as_me:4121: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_hi
=$ac_mid; break
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`
4129 rm -f conftest.
$ac_objext conftest.
$ac_ext
4132 echo "$as_me: failed program was:" >&5
4133 cat conftest.
$ac_ext >&5
4136 cat >conftest.
$ac_ext <<_ACEOF
4137 #line 4137 "configure"
4138 #include "confdefs.h"
4139 $ac_includes_default
4143 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
4148 rm -f conftest.
$ac_objext
4149 if { (eval echo "$as_me:4149: \"$ac_compile\"") >&5
4150 (eval $ac_compile) 2>&5
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
4158 echo "$as_me:4158: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 ac_lo
=$ac_mid; break
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`
4166 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4180 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4185 rm -f conftest.
$ac_objext
4186 if { (eval echo "$as_me:4186: \"$ac_compile\"") >&5
4187 (eval $ac_compile) 2>&5
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
4195 echo "$as_me:4195: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4199 echo "$as_me: failed program was:" >&5
4200 cat conftest.
$ac_ext >&5
4201 ac_lo
=`expr $ac_mid + 1`
4203 rm -f conftest.
$ac_objext conftest.
$ac_ext
4205 ac_cv_sizeof_int
=$ac_lo
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; }; }
4212 cat >conftest.
$ac_ext <<_ACEOF
4213 #line 4213 "configure"
4214 #include "confdefs.h"
4215 $ac_includes_default
4219 FILE *f = fopen ("conftest.val", "w");
4222 fprintf (f, "%d", (sizeof (int)));
4228 rm -f conftest
$ac_exeext
4229 if { (eval echo "$as_me:4229: \"$ac_link\"") >&5
4230 (eval $ac_link) 2>&5
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
4237 echo "$as_me:4237: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_cv_sizeof_int
=`cat conftest.val`
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
4245 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
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
4264 cat >conftest.
$ac_ext <<_ACEOF
4265 #line 4265 "configure"
4266 #include "confdefs.h"
4267 $ac_includes_default
4279 rm -f conftest.
$ac_objext
4280 if { (eval echo "$as_me:4280: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>&5
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
4289 echo "$as_me:4289: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4293 echo "$as_me: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4297 rm -f conftest.
$ac_objext conftest.
$ac_ext
4299 echo "$as_me:4299: result: $ac_cv_type_long" >&5
4300 echo "${ECHO_T}$ac_cv_type_long" >&6
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
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
4317 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
4322 rm -f conftest.
$ac_objext
4323 if { (eval echo "$as_me:4323: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>&5
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
4332 echo "$as_me:4332: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4336 cat >conftest.
$ac_ext <<_ACEOF
4337 #line 4337 "configure"
4338 #include "confdefs.h"
4339 $ac_includes_default
4343 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4348 rm -f conftest.
$ac_objext
4349 if { (eval echo "$as_me:4349: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>&5
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
4358 echo "$as_me:4358: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_hi
=$ac_mid; break
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`
4366 rm -f conftest.
$ac_objext conftest.
$ac_ext
4369 echo "$as_me: failed program was:" >&5
4370 cat conftest.
$ac_ext >&5
4373 cat >conftest.
$ac_ext <<_ACEOF
4374 #line 4374 "configure"
4375 #include "confdefs.h"
4376 $ac_includes_default
4380 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
4385 rm -f conftest.
$ac_objext
4386 if { (eval echo "$as_me:4386: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
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
4395 echo "$as_me:4395: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_lo
=$ac_mid; break
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`
4403 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4417 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4422 rm -f conftest.
$ac_objext
4423 if { (eval echo "$as_me:4423: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
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
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.
$ac_ext >&5
4438 ac_lo
=`expr $ac_mid + 1`
4440 rm -f conftest.
$ac_objext conftest.
$ac_ext
4442 ac_cv_sizeof_long
=$ac_lo
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; }; }
4449 cat >conftest.
$ac_ext <<_ACEOF
4450 #line 4450 "configure"
4451 #include "confdefs.h"
4452 $ac_includes_default
4456 FILE *f = fopen ("conftest.val", "w");
4459 fprintf (f, "%d", (sizeof (long)));
4465 rm -f conftest
$ac_exeext
4466 if { (eval echo "$as_me:4466: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>&5
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
4474 echo "$as_me:4474: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_sizeof_long
=`cat conftest.val`
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
4482 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
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
4501 cat >conftest.
$ac_ext <<_ACEOF
4502 #line 4502 "configure"
4503 #include "confdefs.h"
4504 $ac_includes_default
4508 if ((long long *) 0)
4510 if (sizeof (long long))
4516 rm -f conftest.
$ac_objext
4517 if { (eval echo "$as_me:4517: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>&5
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
4526 echo "$as_me:4526: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_type_long_long
=yes
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.
$ac_ext >&5
4532 ac_cv_type_long_long
=no
4534 rm -f conftest.
$ac_objext conftest.
$ac_ext
4536 echo "$as_me:4536: result: $ac_cv_type_long_long" >&5
4537 echo "${ECHO_T}$ac_cv_type_long_long" >&6
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
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
4554 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
4559 rm -f conftest.
$ac_objext
4560 if { (eval echo "$as_me:4560: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>&5
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
4569 echo "$as_me:4569: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4573 cat >conftest.
$ac_ext <<_ACEOF
4574 #line 4574 "configure"
4575 #include "confdefs.h"
4576 $ac_includes_default
4580 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4585 rm -f conftest.
$ac_objext
4586 if { (eval echo "$as_me:4586: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>&5
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
4595 echo "$as_me:4595: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_hi
=$ac_mid; break
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`
4603 rm -f conftest.
$ac_objext conftest.
$ac_ext
4606 echo "$as_me: failed program was:" >&5
4607 cat conftest.
$ac_ext >&5
4610 cat >conftest.
$ac_ext <<_ACEOF
4611 #line 4611 "configure"
4612 #include "confdefs.h"
4613 $ac_includes_default
4617 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
4622 rm -f conftest.
$ac_objext
4623 if { (eval echo "$as_me:4623: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>&5
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
4632 echo "$as_me:4632: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_lo
=$ac_mid; break
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`
4640 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4654 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4659 rm -f conftest.
$ac_objext
4660 if { (eval echo "$as_me:4660: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>&5
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
4669 echo "$as_me:4669: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4673 echo "$as_me: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4675 ac_lo
=`expr $ac_mid + 1`
4677 rm -f conftest.
$ac_objext conftest.
$ac_ext
4679 ac_cv_sizeof_long_long
=$ac_lo
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; }; }
4686 cat >conftest.
$ac_ext <<_ACEOF
4687 #line 4687 "configure"
4688 #include "confdefs.h"
4689 $ac_includes_default
4693 FILE *f = fopen ("conftest.val", "w");
4696 fprintf (f, "%d", (sizeof (long long)));
4702 rm -f conftest
$ac_exeext
4703 if { (eval echo "$as_me:4703: \"$ac_link\"") >&5
4704 (eval $ac_link) 2>&5
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
4711 echo "$as_me:4711: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 ac_cv_sizeof_long_long
=`cat conftest.val`
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
4719 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4724 ac_cv_sizeof_long_long
=0
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
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
4738 cat >conftest.
$ac_ext <<_ACEOF
4739 #line 4739 "configure"
4740 #include "confdefs.h"
4751 rm -f conftest.
$ac_objext
4752 if { (eval echo "$as_me:4752: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>&5
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
4761 echo "$as_me:4761: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4765 echo "$as_me: failed program was:" >&5
4766 cat conftest.
$ac_ext >&5
4769 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4780 cat >>confdefs.h
<<\EOF
4781 #define NEED_ADDRINFO_H 1
4786 if test "$ac_cv_addrinfo" = no
; then
4787 missing_includes
=yes
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
4795 cat >conftest.
$ac_ext <<_ACEOF
4796 #line 4796 "configure"
4797 #include "confdefs.h"
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804 egrep "yes" >/dev
/null
2>&1; then
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
4822 if test "$ac_cv_maxserv" = no
; then
4823 missing_includes
=yes
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
4831 cat >conftest.
$ac_ext <<_ACEOF
4832 #line 4832 "configure"
4833 #include "confdefs.h"
4839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840 egrep "yes" >/dev
/null
2>&1; then
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
4858 if test "$ac_cv_namereqd" = no
; then
4859 missing_includes
=yes
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
4867 cat >conftest.
$ac_ext <<_ACEOF
4868 #line 4868 "configure"
4869 #include "confdefs.h"
4871 # include <sys/types.h>
4872 # include <sys/socket.h>
4876 struct sockaddr_storage s
4881 rm -f conftest.
$ac_objext
4882 if { (eval echo "$as_me:4882: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>&5
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
4891 echo "$as_me:4891: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_sa_storage
=yes
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.
$ac_ext >&5
4899 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4911 if test "$ac_cv_sa_storage" = no
; then
4912 missing_includes
=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
4921 cat >conftest.
$ac_ext <<_ACEOF
4922 #line 4922 "configure"
4923 #include "confdefs.h"
4925 # include <arpa/nameser.h>
4934 rm -f conftest.
$ac_objext
4935 if { (eval echo "$as_me:4935: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
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
4944 echo "$as_me:4944: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4948 echo "$as_me: failed program was:" >&5
4949 cat conftest.
$ac_ext >&5
4952 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
4970 cat >conftest.
$ac_ext <<_ACEOF
4971 #line 4971 "configure"
4972 #include "confdefs.h"
4974 # include <arpa/nameser.h>
4983 rm -f conftest.
$ac_objext
4984 if { (eval echo "$as_me:4984: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>&5
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
4993 echo "$as_me:4993: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4997 echo "$as_me: failed program was:" >&5
4998 cat conftest.
$ac_ext >&5
5001 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
5015 if test "$ac_cv_addrsz" = no
; then
5016 missing_includes
=yes
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
5024 cat >conftest.
$ac_ext <<_ACEOF
5025 #line 5025 "configure"
5026 #include "confdefs.h"
5028 # include <sys/types.h>
5029 # include <netinet/in.h>
5030 # include <resolv.h>
5034 int a = RES_USE_INET6
5039 rm -f conftest.
$ac_objext
5040 if { (eval echo "$as_me:5040: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
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
5049 echo "$as_me:5049: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5053 echo "$as_me: failed program was:" >&5
5054 cat conftest.
$ac_ext >&5
5057 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
5069 if test "$ac_cv_res_inet6" = no
; then
5070 missing_includes
=yes
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
5078 cat >conftest.
$ac_ext <<_ACEOF
5079 #line 5079 "configure"
5080 #include "confdefs.h"
5082 # include <sys/types.h>
5083 # include <netinet/in.h>
5084 # include <netinet6/in6.h>
5085 # include <resolv.h>
5089 struct __res_state_ext e
5094 rm -f conftest.
$ac_objext
5095 if { (eval echo "$as_me:5095: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
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
5104 echo "$as_me:5104: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_cv_res_state_ext
=yes
5108 echo "$as_me: failed program was:" >&5
5109 cat conftest.
$ac_ext >&5
5110 ac_cv_res_state_ext
=no
5112 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
5124 if test "$ac_cv_res_state_ext" = no
; then
5125 missing_includes
=yes
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
5133 cat >conftest.
$ac_ext <<_ACEOF
5134 #line 5134 "configure"
5135 #include "confdefs.h"
5137 # include <sys/types.h>
5138 # include <netinet/in.h>
5139 # include <netinet6/in6.h>
5140 # include <resolv.h>
5144 struct __res_state e; e.nsort = 0
5149 rm -f conftest.
$ac_objext
5150 if { (eval echo "$as_me:5150: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>&5
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
5159 echo "$as_me:5159: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5163 echo "$as_me: failed program was:" >&5
5164 cat conftest.
$ac_ext >&5
5167 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
5179 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
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
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. */
5193 /* Override any gcc2 internal prototype to avoid an error. */
5197 /* We use char because int might match the return type of a gcc2
5198 builtin and then its argument prototype would still apply. */
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)
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
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
5228 echo "$as_me:5228: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 eval "$as_ac_var=yes"
5232 echo "$as_me: failed program was:" >&5
5233 cat conftest.
$ac_ext >&5
5234 eval "$as_ac_var=no"
5236 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5246 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5250 for ac_func
in strftime
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
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. */
5264 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
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)
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
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
5299 echo "$as_me:5299: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 eval "$as_ac_var=yes"
5303 echo "$as_me: failed program was:" >&5
5304 cat conftest.
$ac_ext >&5
5305 eval "$as_ac_var=no"
5307 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5319 for ac_func
in ether_ntohost
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
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. */
5333 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
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)
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
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
5368 echo "$as_me:5368: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 eval "$as_ac_var=yes"
5372 echo "$as_me: failed program was:" >&5
5373 cat conftest.
$ac_ext >&5
5374 eval "$as_ac_var=no"
5376 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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
5391 if test "$cross_compiling" = yes; then
5392 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
5394 cat >conftest.
$ac_ext <<_ACEOF
5395 #line 5395 "configure"
5396 #include "confdefs.h"
5399 #include <sys/types.h>
5400 #include <sys/param.h>
5401 #include <sys/socket.h>
5404 main(int argc, char **argv)
5406 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
5407 char name[MAXHOSTNAMELEN];
5409 ether_ntohost(name, (struct ether_addr *)ea);
5414 rm -f conftest
$ac_exeext
5415 if { (eval echo "$as_me:5415: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>&5
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
5423 echo "$as_me:5423: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_cv_buggy_ether_ntohost
=no
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
5432 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
5447 for ac_func
in setlinebuf alarm
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
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. */
5461 /* Override any gcc2 internal prototype to avoid an error. */
5465 /* We use char because int might match the return type of a gcc2
5466 builtin and then its argument prototype would still apply. */
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)
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
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
5496 echo "$as_me:5496: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 eval "$as_ac_var=yes"
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.
$ac_ext >&5
5502 eval "$as_ac_var=no"
5504 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5518 for ac_func
in vsnprintf snprintf
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
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. */
5532 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
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)
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
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
5567 echo "$as_me:5567: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 eval "$as_ac_var=yes"
5571 echo "$as_me: failed program was:" >&5
5572 cat conftest.
$ac_ext >&5
5573 eval "$as_ac_var=no"
5575 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5589 if test $needsnprintf = yes; then
5590 LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
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
5598 cat >conftest.
$ac_ext <<_ACEOF
5599 #line 5599 "configure"
5600 #include "confdefs.h"
5601 #include <sys/types.h>
5607 extern "C" void (*signal (int, void (*)(int)))(int);
5609 void (*signal ()) ();
5620 rm -f conftest.
$ac_objext
5621 if { (eval echo "$as_me:5621: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
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
5630 echo "$as_me:5630: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_cv_type_signal
=void
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.
$ac_ext >&5
5636 ac_cv_type_signal
=int
5638 rm -f conftest.
$ac_objext conftest.
$ac_ext
5640 echo "$as_me:5640: result: $ac_cv_type_signal" >&5
5641 echo "${ECHO_T}$ac_cv_type_signal" >&6
5643 cat >>confdefs.h
<<EOF
5644 #define RETSIGTYPE $ac_cv_type_signal
5647 if test "$ac_cv_type_signal" = void
; then
5648 cat >>confdefs.h
<<\EOF
5653 cat >>confdefs.h
<<\EOF
5654 #define RETSIGVAL (0)
5661 cat >>confdefs.h
<<\EOF
5662 #define _BSD_SIGNALS 1
5669 for ac_func
in sigaction
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
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. */
5683 /* Override any gcc2 internal prototype to avoid an error. */
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
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)
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
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
5718 echo "$as_me:5718: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 eval "$as_ac_var=yes"
5722 echo "$as_me: failed program was:" >&5
5723 cat conftest.
$ac_ext >&5
5724 eval "$as_ac_var=no"
5726 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
5738 if test $ac_cv_func_sigaction = no
; then
5740 for ac_func
in sigset
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
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. */
5754 /* Override any gcc2 internal prototype to avoid an error. */
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
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)
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
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
5789 echo "$as_me:5789: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 eval "$as_ac_var=yes"
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.
$ac_ext >&5
5795 eval "$as_ac_var=no"
5797 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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
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"
5824 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
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
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
5849 echo "$as_me:5849: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_search_dnet_htoa
="none required"
5853 echo "$as_me: failed program was:" >&5
5854 cat conftest.
$ac_ext >&5
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"
5864 /* Override any gcc2 internal prototype to avoid an error. */
5868 /* We use char because int might match the return type of a gcc2
5869 builtin and then its argument prototype would still apply. */
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
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
5889 echo "$as_me:5889: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_cv_search_dnet_htoa
="-l$ac_lib"
5894 echo "$as_me: failed program was:" >&5
5895 cat conftest.
$ac_ext >&5
5897 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5900 LIBS
=$ac_func_search_save_LIBS
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
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
5917 ac_check_lib_save_LIBS
=$LIBS
5919 cat >conftest.
$ac_ext <<_ACEOF
5920 #line 5920 "configure"
5921 #include "confdefs.h"
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
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
5941 echo "$as_me:5941: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_lib_rpc_main
=yes
5945 echo "$as_me: failed program was:" >&5
5946 cat conftest.
$ac_ext >&5
5947 ac_cv_lib_rpc_main
=no
5949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5950 LIBS
=$ac_check_lib_save_LIBS
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
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
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"
5974 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5999 echo "$as_me:5999: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_search_getrpcbynumber
="none required"
6003 echo "$as_me: failed program was:" >&5
6004 cat conftest.
$ac_ext >&5
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"
6014 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
6039 echo "$as_me:6039: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_cv_search_getrpcbynumber
="-l$ac_lib"
6044 echo "$as_me: failed program was:" >&5
6045 cat conftest.
$ac_ext >&5
6047 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6050 LIBS
=$ac_func_search_save_LIBS
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"
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
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"
6074 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
6099 echo "$as_me:6099: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 ac_cv_search_gethostbyname
="none required"
6103 echo "$as_me: failed program was:" >&5
6104 cat conftest.
$ac_ext >&5
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"
6114 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
6139 echo "$as_me:6139: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_search_gethostbyname
="-l$ac_lib"
6144 echo "$as_me: failed program was:" >&5
6145 cat conftest.
$ac_ext >&5
6147 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6150 LIBS
=$ac_func_search_save_LIBS
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"
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"
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
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"
6174 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
6199 echo "$as_me:6199: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_lib_socket_gethostbyname
=yes
6203 echo "$as_me: failed program was:" >&5
6204 cat conftest.
$ac_ext >&5
6205 ac_cv_lib_socket_gethostbyname
=no
6207 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6208 LIBS
=$ac_check_lib_save_LIBS
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"
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
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"
6228 /* Override any gcc2 internal prototype to avoid an error. */
6232 /* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */
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
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
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_search_socket
="none required"
6257 echo "$as_me: failed program was:" >&5
6258 cat conftest.
$ac_ext >&5
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"
6268 /* Override any gcc2 internal prototype to avoid an error. */
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
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
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
6293 echo "$as_me:6293: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_search_socket
="-l$ac_lib"
6298 echo "$as_me: failed program was:" >&5
6299 cat conftest.
$ac_ext >&5
6301 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6304 LIBS
=$ac_func_search_save_LIBS
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"
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
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"
6323 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
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
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
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_lib_socket_socket
=yes
6352 echo "$as_me: failed program was:" >&5
6353 cat conftest.
$ac_ext >&5
6354 ac_cv_lib_socket_socket
=no
6356 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6357 LIBS
=$ac_check_lib_save_LIBS
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"
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
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"
6379 /* Override any gcc2 internal prototype to avoid an error. */
6383 /* We use char because int might match the return type of a gcc2
6384 builtin and then its argument prototype would still apply. */
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
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
6404 echo "$as_me:6404: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 ac_cv_search_putmsg
="none required"
6408 echo "$as_me: failed program was:" >&5
6409 cat conftest.
$ac_ext >&5
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"
6419 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
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
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
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_cv_search_putmsg
="-l$ac_lib"
6449 echo "$as_me: failed program was:" >&5
6450 cat conftest.
$ac_ext >&5
6452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6455 LIBS
=$ac_func_search_save_LIBS
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"
6465 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
6466 if test -f $pfopen ; then
6468 for ac_func
in pfopen
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
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. */
6482 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
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)
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
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
6517 echo "$as_me:6517: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 eval "$as_ac_var=yes"
6521 echo "$as_me: failed program was:" >&5
6522 cat conftest.
$ac_ext >&5
6523 eval "$as_ac_var=no"
6525 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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"
6543 echo "$as_me:6543: checking for local pcap library" >&5
6544 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
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
6555 if test -r $dir/libpcap.a
; then
6556 libpcap
=$dir/libpcap.a
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
6568 ac_check_lib_save_LIBS
=$LIBS
6570 cat >conftest.
$ac_ext <<_ACEOF
6571 #line 6571 "configure"
6572 #include "confdefs.h"
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
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
6592 echo "$as_me:6592: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_lib_pcap_main
=yes
6596 echo "$as_me: failed program was:" >&5
6597 cat conftest.
$ac_ext >&5
6598 ac_cv_lib_pcap_main
=no
6600 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6601 LIBS
=$ac_check_lib_save_LIBS
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
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; }; }
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"
6624 if test -z "$d" ; then
6625 echo "$as_me:6625: result: not found" >&5
6626 echo "${ECHO_T}not found" >&6
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
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"
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
; }; }
6645 echo "$as_me:6645: result: $libpcap" >&5
6646 echo "${ECHO_T}$libpcap" >&6
6648 LIBS
="$libpcap $LIBS"
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"
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.
6666 LIBS
="$LIBS -lodm -lcfg"
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
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. */
6681 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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)
6699 f = pcap_list_datalinks;
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
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
6716 echo "$as_me:6716: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_func_pcap_list_datalinks
=yes
6720 echo "$as_me: failed program was:" >&5
6721 cat conftest.
$ac_ext >&5
6722 ac_cv_func_pcap_list_datalinks
=no
6724 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
6734 LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
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
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. */
6748 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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)
6766 f = pcap_set_datalink;
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
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
6783 echo "$as_me:6783: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_func_pcap_set_datalink
=yes
6787 echo "$as_me: failed program was:" >&5
6788 cat conftest.
$ac_ext >&5
6789 ac_cv_func_pcap_set_datalink
=no
6791 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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
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. */
6813 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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)
6831 f = pcap_datalink_name_to_val;
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
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
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_func_pcap_datalink_name_to_val
=yes
6852 echo "$as_me: failed program was:" >&5
6853 cat conftest.
$ac_ext >&5
6854 ac_cv_func_pcap_datalink_name_to_val
=no
6856 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
6862 cat >>confdefs.h
<<\EOF
6863 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
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
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. */
6877 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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)
6895 f = pcap_datalink_val_to_description;
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
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
6912 echo "$as_me:6912: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_func_pcap_datalink_val_to_description
=yes
6916 echo "$as_me: failed program was:" >&5
6917 cat conftest.
$ac_ext >&5
6918 ac_cv_func_pcap_datalink_val_to_description
=no
6920 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
6930 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
6934 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
6937 for ac_func
in pcap_breakloop
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
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. */
6951 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
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)
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
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
6986 echo "$as_me:6986: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 eval "$as_ac_var=yes"
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.
$ac_ext >&5
6992 eval "$as_ac_var=no"
6994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
7007 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
7008 # libraries (e.g., "-lsocket -lnsl" on Solaris).
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
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>
7030 char src[4], dst[128];
7031 inet_ntop(AF_INET, src, dst, sizeof(dst));
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
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
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
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"
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>
7070 char src[128], dst[4];
7071 inet_pton(AF_INET, src, dst);
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
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
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
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"
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>
7111 inet_aton(src, &dst);
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
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
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
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"
7137 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
7144 cat >conftest.
$ac_ext <<_ACEOF
7145 #line 7145 "configure"
7146 #include "confdefs.h"
7148 # include <sys/types.h>
7149 # include <sys/socket.h>
7153 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7158 rm -f conftest.
$ac_objext
7159 if { (eval echo "$as_me:7159: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>&5
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
7168 echo "$as_me:7168: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_cv_sockaddr_has_sa_len
=yes
7172 echo "$as_me: failed program was:" >&5
7173 cat conftest.
$ac_ext >&5
7174 ac_cv_sockaddr_has_sa_len
=no
7176 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
7188 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
7189 missing_includes
=yes
7192 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
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
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. */
7206 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
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)
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
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
7241 echo "$as_me:7241: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7243 eval "$as_ac_var=yes"
7245 echo "$as_me: failed program was:" >&5
7246 cat conftest.
$ac_ext >&5
7247 eval "$as_ac_var=no"
7249 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
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
7269 cat >conftest.
$ac_ext <<_ACEOF
7270 #line 7270 "configure"
7271 #include "confdefs.h"
7277 if ((pcap_if_t *) 0)
7279 if (sizeof (pcap_if_t))
7285 rm -f conftest.
$ac_objext
7286 if { (eval echo "$as_me:7286: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>&5
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
7295 echo "$as_me:7295: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_cv_type_pcap_if_t
=yes
7299 echo "$as_me: failed program was:" >&5
7300 cat conftest.
$ac_ext >&5
7301 ac_cv_type_pcap_if_t
=no
7303 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
7309 cat >>confdefs.h
<<EOF
7310 #define HAVE_PCAP_IF_T 1
7315 CFLAGS
="$savedcflags"
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"
7330 return_pcap_version(void)
7332 extern char pcap_version[];
7334 return pcap_version;
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
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
7351 echo "$as_me:7351: \$? = $ac_status" >&5
7352 (exit $ac_status); }; }; then
7353 ac_lbl_cv_pcap_version_defined
=yes
7355 echo "$as_me: failed program was:" >&5
7356 cat conftest.
$ac_ext >&5
7357 ac_lbl_cv_pcap_version_defined
=no
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
7368 echo "$as_me:7368: result: no" >&5
7369 echo "${ECHO_T}no" >&6
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"
7383 return_pcap_debug(void)
7385 extern int pcap_debug;
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
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
7404 echo "$as_me:7404: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7406 ac_lbl_cv_pcap_debug_defined
=yes
7408 echo "$as_me: failed program was:" >&5
7409 cat conftest.
$ac_ext >&5
7410 ac_lbl_cv_pcap_debug_defined
=no
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
7421 echo "$as_me:7421: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7424 # OK, what about "yydebug"?
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"
7437 return_yydebug(void)
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
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
7458 echo "$as_me:7458: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_lbl_cv_yydebug_defined
=yes
7462 echo "$as_me: failed program was:" >&5
7463 cat conftest.
$ac_ext >&5
7464 ac_lbl_cv_yydebug_defined
=no
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
7475 echo "$as_me:7475: result: no" >&5
7476 echo "${ECHO_T}no" >&6
7480 for ac_func
in bpf_dump
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
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. */
7494 /* Override any gcc2 internal prototype to avoid an error. */
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
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)
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
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
7529 echo "$as_me:7529: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 eval "$as_ac_var=yes"
7533 echo "$as_me: failed program was:" >&5
7534 cat conftest.
$ac_ext >&5
7535 eval "$as_ac_var=no"
7537 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
7547 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
7552 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
7558 cat >>confdefs.h
<<\EOF
7577 if test -f /dev
/bpf0
; then
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
7586 cat >conftest.
$ac_ext <<_ACEOF
7587 #line 7587 "configure"
7588 #include "confdefs.h"
7590 # include "confdefs.h"
7591 # include <sys/types.h>
7593 # include <stdlib.h>
7594 # include <stddef.h>
7604 rm -f conftest.
$ac_objext
7605 if { (eval echo "$as_me:7605: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>&5
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
7614 echo "$as_me:7614: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 ac_cv_lbl_have_int8_t
=yes
7618 echo "$as_me: failed program was:" >&5
7619 cat conftest.
$ac_ext >&5
7620 ac_cv_lbl_have_int8_t
=no
7622 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7638 cat >conftest.
$ac_ext <<_ACEOF
7639 #line 7639 "configure"
7640 #include "confdefs.h"
7642 # include "confdefs.h"
7643 # include <sys/types.h>
7645 # include <stdlib.h>
7646 # include <stddef.h>
7656 rm -f conftest.
$ac_objext
7657 if { (eval echo "$as_me:7657: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>&5
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
7666 echo "$as_me:7666: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_cv_lbl_have_u_int8_t
=yes
7670 echo "$as_me: failed program was:" >&5
7671 cat conftest.
$ac_ext >&5
7672 ac_cv_lbl_have_u_int8_t
=no
7674 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7690 cat >conftest.
$ac_ext <<_ACEOF
7691 #line 7691 "configure"
7692 #include "confdefs.h"
7694 # include "confdefs.h"
7695 # include <sys/types.h>
7697 # include <stdlib.h>
7698 # include <stddef.h>
7708 rm -f conftest.
$ac_objext
7709 if { (eval echo "$as_me:7709: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>&5
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
7718 echo "$as_me:7718: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_lbl_have_int16_t
=yes
7722 echo "$as_me: failed program was:" >&5
7723 cat conftest.
$ac_ext >&5
7724 ac_cv_lbl_have_int16_t
=no
7726 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7742 cat >conftest.
$ac_ext <<_ACEOF
7743 #line 7743 "configure"
7744 #include "confdefs.h"
7746 # include "confdefs.h"
7747 # include <sys/types.h>
7749 # include <stdlib.h>
7750 # include <stddef.h>
7760 rm -f conftest.
$ac_objext
7761 if { (eval echo "$as_me:7761: \"$ac_compile\"") >&5
7762 (eval $ac_compile) 2>&5
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
7770 echo "$as_me:7770: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 ac_cv_lbl_have_u_int16_t
=yes
7774 echo "$as_me: failed program was:" >&5
7775 cat conftest.
$ac_ext >&5
7776 ac_cv_lbl_have_u_int16_t
=no
7778 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7794 cat >conftest.
$ac_ext <<_ACEOF
7795 #line 7795 "configure"
7796 #include "confdefs.h"
7798 # include "confdefs.h"
7799 # include <sys/types.h>
7801 # include <stdlib.h>
7802 # include <stddef.h>
7812 rm -f conftest.
$ac_objext
7813 if { (eval echo "$as_me:7813: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>&5
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
7822 echo "$as_me:7822: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 ac_cv_lbl_have_int32_t
=yes
7826 echo "$as_me: failed program was:" >&5
7827 cat conftest.
$ac_ext >&5
7828 ac_cv_lbl_have_int32_t
=no
7830 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7846 cat >conftest.
$ac_ext <<_ACEOF
7847 #line 7847 "configure"
7848 #include "confdefs.h"
7850 # include "confdefs.h"
7851 # include <sys/types.h>
7853 # include <stdlib.h>
7854 # include <stddef.h>
7864 rm -f conftest.
$ac_objext
7865 if { (eval echo "$as_me:7865: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>&5
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
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_cv_lbl_have_u_int32_t
=yes
7878 echo "$as_me: failed program was:" >&5
7879 cat conftest.
$ac_ext >&5
7880 ac_cv_lbl_have_u_int32_t
=no
7882 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7898 cat >conftest.
$ac_ext <<_ACEOF
7899 #line 7899 "configure"
7900 #include "confdefs.h"
7902 # include "confdefs.h"
7903 # include <sys/types.h>
7905 # include <stdlib.h>
7906 # include <stddef.h>
7916 rm -f conftest.
$ac_objext
7917 if { (eval echo "$as_me:7917: \"$ac_compile\"") >&5
7918 (eval $ac_compile) 2>&5
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
7926 echo "$as_me:7926: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_lbl_have_int64_t
=yes
7930 echo "$as_me: failed program was:" >&5
7931 cat conftest.
$ac_ext >&5
7932 ac_cv_lbl_have_int64_t
=no
7934 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
7950 cat >conftest.
$ac_ext <<_ACEOF
7951 #line 7951 "configure"
7952 #include "confdefs.h"
7954 # include "confdefs.h"
7955 # include <sys/types.h>
7957 # include <stdlib.h>
7958 # include <stddef.h>
7968 rm -f conftest.
$ac_objext
7969 if { (eval echo "$as_me:7969: \"$ac_compile\"") >&5
7970 (eval $ac_compile) 2>&5
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
7978 echo "$as_me:7978: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_lbl_have_u_int64_t
=yes
7982 echo "$as_me: failed program was:" >&5
7983 cat conftest.
$ac_ext >&5
7984 ac_cv_lbl_have_u_int64_t
=no
7986 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
7999 # We can't just check for <inttypes.h> - some systems have one that
8000 # doesn't define all the PRI[doxu]64 macros.
8003 for ac_header
in inttypes.h
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
8011 cat >conftest.
$ac_ext <<_ACEOF
8012 #line 8012 "configure"
8013 #include "confdefs.h"
8014 #include <$ac_header>
8016 if { (eval echo "$as_me:8016: \"$ac_cpp conftest.$ac_ext\"") >&5
8017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8019 egrep -v '^ *\+' conftest.er1
>conftest.err
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
8032 if test -z "$ac_cpp_err"; then
8033 eval "$as_ac_Header=yes"
8035 echo "$as_me: failed program was:" >&5
8036 cat conftest.
$ac_ext >&5
8037 eval "$as_ac_Header=no"
8039 rm -f conftest.err conftest.
$ac_ext
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
8049 # OK, we have inttypes.h, but does it define those macros?
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
8055 #line 8055 "configure"
8056 #include "confdefs.h"
8058 #include <inttypes.h>
8060 #include <sys/types.h>
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);
8071 rm -f conftest.
$ac_objext
8072 if { (eval echo "$as_me:8072: \"$ac_compile\"") >&5
8073 (eval $ac_compile) 2>&5
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
8081 echo "$as_me:8081: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8084 echo "$as_me:8084: result: yes" >&5
8085 echo "${ECHO_T}yes" >&6
8086 ac_lbl_inttypes_h_defines_formats
=yes
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.
$ac_ext >&5
8092 echo "$as_me:8092: result: no" >&5
8093 echo "${ECHO_T}no" >&6
8094 ac_lbl_inttypes_h_defines_formats
=no
8097 rm -f conftest.
$ac_objext conftest.
$ac_ext
8102 # We don't have inttypes.h, so it obviously can't define those
8105 ac_lbl_inttypes_h_defines_formats
=no
8110 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
8111 cat >>confdefs.h
<<\EOF
8112 #define INTTYPES_H_DEFINES_FORMATS 1
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; }; }
8124 cat >conftest.
$ac_ext <<_ACEOF
8126 #line 8126 "configure"
8127 #include "confdefs.h"
8129 # ifdef HAVE_INTTYPES_H
8130 #include <inttypes.h>
8133 #include <sys/types.h>
8139 sprintf(strbuf, "%016llx", t << 32);
8140 if (strcmp(strbuf, "0000000100000000") == 0)
8147 rm -f conftest
$ac_exeext
8148 if { (eval echo "$as_me:8148: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>&5
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
8156 echo "$as_me:8156: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8159 cat >>confdefs.h
<<\EOF
8160 #define PRId64 "lld"
8163 cat >>confdefs.h
<<\EOF
8164 #define PRIo64 "llo"
8167 cat >>confdefs.h
<<\EOF
8168 #define PRIx64 "llx"
8171 cat >>confdefs.h
<<\EOF
8172 #define PRIu64 "llu"
8175 echo "$as_me:8175: result: yes" >&5
8176 echo "${ECHO_T}yes" >&6
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
8183 echo "$as_me:8183: result: no" >&5
8184 echo "${ECHO_T}no" >&6
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; }; }
8193 cat >conftest.
$ac_ext <<_ACEOF
8195 #line 8195 "configure"
8196 #include "confdefs.h"
8198 # ifdef HAVE_INTTYPES_H
8199 #include <inttypes.h>
8202 #include <sys/types.h>
8208 sprintf(strbuf, "%016Lx", t << 32);
8209 if (strcmp(strbuf, "0000000100000000") == 0)
8216 rm -f conftest
$ac_exeext
8217 if { (eval echo "$as_me:8217: \"$ac_link\"") >&5
8218 (eval $ac_link) 2>&5
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
8225 echo "$as_me:8225: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8228 cat >>confdefs.h
<<\EOF
8232 cat >>confdefs.h
<<\EOF
8236 cat >>confdefs.h
<<\EOF
8240 cat >>confdefs.h
<<\EOF
8244 echo "$as_me:8244: result: yes" >&5
8245 echo "${ECHO_T}yes" >&6
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
8252 echo "$as_me:8252: result: no" >&5
8253 echo "${ECHO_T}no" >&6
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; }; }
8262 cat >conftest.
$ac_ext <<_ACEOF
8264 #line 8264 "configure"
8265 #include "confdefs.h"
8267 # ifdef HAVE_INTTYPES_H
8268 #include <inttypes.h>
8271 #include <sys/types.h>
8277 sprintf(strbuf, "%016qx", t << 32);
8278 if (strcmp(strbuf, "0000000100000000") == 0)
8285 rm -f conftest
$ac_exeext
8286 if { (eval echo "$as_me:8286: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>&5
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
8294 echo "$as_me:8294: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8297 cat >>confdefs.h
<<\EOF
8301 cat >>confdefs.h
<<\EOF
8305 cat >>confdefs.h
<<\EOF
8309 cat >>confdefs.h
<<\EOF
8313 echo "$as_me:8313: result: yes" >&5
8314 echo "${ECHO_T}yes" >&6
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
8321 echo "$as_me:8321: result: no" >&5
8322 echo "${ECHO_T}no" >&6
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; }; }
8329 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8333 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8337 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8343 if test "${LBL_CFLAGS+set}" = set; then
8344 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
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"
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"
8361 V_CCOPT
="$V_CCOPT -n32"
8368 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
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
8377 { echo "$as_me:8377: WARNING: can't find $name" >&5
8378 echo "$as_me: WARNING: can't find $name" >&2;}
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
8387 cat >conftest.
$ac_ext <<_ACEOF
8388 #line 8388 "configure"
8389 #include "confdefs.h"
8391 # include <sys/types.h>
8392 # include <sys/socket.h>
8396 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8401 rm -f conftest.
$ac_objext
8402 if { (eval echo "$as_me:8402: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>&5
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
8411 echo "$as_me:8411: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_cv_lbl_sockaddr_has_sa_len
=yes
8415 echo "$as_me: failed program was:" >&5
8416 cat conftest.
$ac_ext >&5
8417 ac_cv_lbl_sockaddr_has_sa_len
=no
8419 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
8439 # These are CPU types where:
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;
8446 # the CPU, I infer (from the old
8448 # XXX: should also check that they don't do weird things (like on arm)
8450 # comment) doesn't fault on unaligned accesses, but doesn't
8451 # do a normal unaligned fetch, either (e.g., presumably, ARM);
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).
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.
8470 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
8471 ac_cv_lbl_unaligned_fail
=yes
8475 cat >conftest.c
<<EOF
8476 # include <sys/types.h>
8477 # include <sys/wait.h>
8479 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8484 /* avoid "core dumped" message */
8490 pid = waitpid(pid, &status, 0);
8493 exit(!WIFEXITED(status));
8496 i = *(unsigned int *)&a[1];
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
8506 .
/conftest
>conftest.out
8507 if test ! -s conftest.out
; then
8508 ac_cv_lbl_unaligned_fail
=yes
8510 ac_cv_lbl_unaligned_fail
=no
8513 rm -f conftest
* core core.conftest
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
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
8532 cat >conftest.
$ac_ext <<_ACEOF
8533 #line 8533 "configure"
8534 #include "confdefs.h"
8536 # include <sys/types.h>
8546 rm -f conftest.
$ac_objext
8547 if { (eval echo "$as_me:8547: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>&5
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
8556 echo "$as_me:8556: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_var_h_errno
=yes
8560 echo "$as_me: failed program was:" >&5
8561 cat conftest.
$ac_ext >&5
8562 ac_cv_var_h_errno
=no
8564 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
8576 # Check whether --with-crypto or --without-crypto was given.
8577 if test "${with_crypto+set}" = set; then
8578 withval
="$with_crypto"
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
8587 Xprefix
=`eval echo $prefix`
8589 for dir
in $Xprefix /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
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?
8595 # Are there any other suffixes we need to look for? Do we have to
8596 # worry about ".so.{version}"?
8598 # Or should we just look for "libcrypto.*"?
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
8606 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
8607 incdir
="-I$dir/include"
8609 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
8612 ac_cv_ssleay_path
=no
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"
8624 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
8625 LIBS
="$LIBS -lrsaref"
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
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"
8639 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
8664 echo "$as_me:8664: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
8668 echo "$as_me: failed program was:" >&5
8669 cat conftest.
$ac_ext >&5
8670 ac_cv_lib_crypto_DES_cbc_encrypt
=no
8672 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8673 LIBS
=$ac_check_lib_save_LIBS
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
8682 LIBS
="-lcrypto $LIBS"
8686 CPPFLAGS
="$CPPFLAGS $V_INCLS"
8688 for ac_header
in openssl
/evp.h
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
8696 cat >conftest.
$ac_ext <<_ACEOF
8697 #line 8697 "configure"
8698 #include "confdefs.h"
8699 #include <$ac_header>
8701 if { (eval echo "$as_me:8701: \"$ac_cpp conftest.$ac_ext\"") >&5
8702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8704 egrep -v '^ *\+' conftest.er1
>conftest.err
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
8717 if test -z "$ac_cpp_err"; then
8718 eval "$as_ac_Header=yes"
8720 echo "$as_me: failed program was:" >&5
8721 cat conftest.
$ac_ext >&5
8722 eval "$as_ac_Header=no"
8724 rm -f conftest.err conftest.
$ac_ext
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
8740 if test "$missing_includes" = "yes"; then
8741 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
8742 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
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
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
8763 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8764 for ac_dir
in $PATH; do
8766 # Account for people who put trailing slashes in PATH elements.
8768 / | .
/ | .
// |
/cC
/* \
8769 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
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
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.
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.
8786 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8796 if test "${ac_cv_path_install+set}" = set; then
8797 INSTALL
=$ac_cv_path_install
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
8806 echo "$as_me:8806: result: $INSTALL" >&5
8807 echo "${ECHO_T}$INSTALL" >&6
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}'
8813 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8815 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8817 ac_config_headers
="$ac_config_headers config.h"
8819 ac_config_commands
="$ac_config_commands default-1"
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.
8829 # config.status only pays attention to the cache file if you give it
8830 # the --recheck option to rerun configure.
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
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.
8845 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8847 # `set' does not quote correctly, so add quotes (double-quote
8848 # substitution turns \\\\ into \\, and sed turns \\ into \).
8851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8854 # `set' quotes correctly as required by POSIX, so do not add quotes.
8856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8865 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
8872 echo "not updating unwritable cache $cache_file"
8877 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8878 # Let make expand exec_prefix.
8879 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
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}:*/:/;
8890 s/^\([^=]*=[ ]*\):*/\1/;
8896 DEFS
=-DHAVE_CONFIG_H
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
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.
8911 SHELL=\${CONFIG_SHELL-$SHELL}
8912 ac_cs_invocation="\$0 \$@"
8916 cat >>$CONFIG_STATUS <<\_ACEOF
8917 # Be Bourne compatible
8918 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8921 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8925 # Name of the executable.
8926 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
8928 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8934 rm -f conf$$ conf$$.exe 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
8945 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8950 rm -f conf$$ conf$$.exe conf$$.
file
8952 as_executable_p
="test -f"
8954 # Support unset when possible.
8955 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
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
; }
8972 # We need space, tab and new line, in precisely that order.
8978 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
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
8989 if test -n "$ac_config_headers"; then
8990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8993 if test -n "$ac_config_links"; then
8994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8997 if test -n "$ac_config_commands"; then
8998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9001 cat >>$CONFIG_STATUS <<\EOF
9004 \`$as_me' instantiates files from templates according to the
9005 current configuration.
9007 Usage: $0 [OPTIONS] [FILE]...
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
9018 Configuration files:
9021 Configuration headers:
9024 Configuration commands:
9027 Report bugs to <bug-autoconf@gnu.org>."
9030 cat >>$CONFIG_STATUS <<EOF
9033 configured by $0, generated by GNU Autoconf 2.52,
9034 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
9052 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9053 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9055 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9059 *) # This is not an option, so the user has probably given explicit
9061 ac_need_defaults
=false
;;
9065 # Handling of the options.
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 ;;
9072 cat >>$CONFIG_STATUS <<\EOF
9073 --version |
--vers* |
-V )
9074 echo "$ac_cs_version"; exit 0 ;;
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 )
9086 --file |
--fil |
--fi |
--f )
9088 CONFIG_FILES
="$CONFIG_FILES $1"
9089 ac_need_defaults
=false
;;
9090 --header |
--heade |
--head |
--hea )
9092 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9093 ac_need_defaults
=false
;;
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; }; } ;;
9102 *) ac_config_targets
="$ac_config_targets $1" ;;
9111 ## ----------------------- ##
9112 ## Running config.status. ##
9113 ## ----------------------- ##
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
9121 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9126 cat >>$CONFIG_STATUS <<EOF
9128 # INIT-COMMANDS section.
9133 cat >>$CONFIG_STATUS <<\EOF
9134 for ac_config_target
in $ac_config_targets
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; }; };;
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
9157 # Create a temporary directory, and hook for its removal unless debugging.
9160 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9161 trap '{ (exit 1); exit 1; }' 1 2 13 15
9164 # Create a (secure) tmp directory for tmp files.
9167 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9168 test -n "$tmp" && test -d "$tmp"
9171 tmp
=$TMPDIR/cs$$
-$RANDOM
9172 (umask 077 && mkdir
$tmp)
9175 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9176 { (exit 1); exit 1; }
9181 cat >>$CONFIG_STATUS <<EOF
9184 # CONFIG_FILES section.
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
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
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
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
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
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.
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.
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
9267 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9269 if test ! -s $tmp/subs.frag
; then
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.
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"
9281 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9283 ac_sed_frag
=`expr $ac_sed_frag + 1`
9285 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9288 if test -z "$ac_sed_cmds"; then
9291 fi # test -n "$CONFIG_FILES"
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".
9298 - |
*:- |
*:-:* ) # input from 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 ;;
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 ||
9314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9316 /^X\(\/\/\)$/{ s//\1/; q; }
9317 /^X\(\/\).*/{ s//\1/; q; }
9319 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9321 [\\/]* | ?
:[\\/]* ) as_incr_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 ;;
9330 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9331 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
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'`
9340 ac_dir_suffix
= ac_dots
=
9345 if test -z "$ac_dots"; then
9348 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
9351 ac_srcdir
=$srcdir$ac_dir_suffix;
9352 ac_top_srcdir
=$srcdir ;;
9354 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
9355 ac_top_srcdir
=$ac_dots$srcdir ;;
9359 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9360 *) ac_INSTALL
=$ac_dots$INSTALL ;;
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;}
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."
9374 # First look for the input files in the build tree, otherwise in the
9376 ac_file_inputs
=`IFS=:
9377 for f in $ac_file_in; do
9379 -) echo $tmp/stdin ;;
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; }; }
9387 if test -f "$f"; then
9390 elif test -f "$srcdir/$f"; then
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; }; }
9400 done` ||
{ (exit 1); exit 1; }
9402 cat >>$CONFIG_STATUS <<EOF
9406 cat >>$CONFIG_STATUS <<\EOF
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
9415 if test x"$ac_file" != x-; then
9416 mv $tmp/out $ac_file
9424 cat >>$CONFIG_STATUS <<\EOF
9427 # CONFIG_HEADER section.
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.
9433 # ac_d sets the value in "#define NAME VALUE" lines.
9434 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9435 ac_dB
='[ ].*$,\1#\2'
9438 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9439 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9440 ac_uB
='$,\1#\2define\3'
9444 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9447 - |
*:- |
*:-:* ) # input from 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 ;;
9456 test x
"$ac_file" != x-
&& { echo "$as_me:9456: creating $ac_file" >&5
9457 echo "$as_me: creating $ac_file" >&6;}
9459 # First look for the input files in the build tree, otherwise in the
9461 ac_file_inputs
=`IFS=:
9462 for f in $ac_file_in; do
9464 -) echo $tmp/stdin ;;
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; }; }
9472 if test -f "$f"; then
9475 elif test -f "$srcdir/$f"; then
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; }; }
9485 done` ||
{ (exit 1); exit 1; }
9486 # Remove the trailing spaces.
9487 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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
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.
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
9510 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9512 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
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]*,/* & */,
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
9536 while grep . conftest.defines >/dev/null
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
9547 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9551 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9552 rm -f conftest.defines
9553 mv conftest.
tail conftest.defines
9555 rm -f conftest.defines
9556 echo ' fi # egrep' >>$CONFIG_STATUS
9557 echo >>$CONFIG_STATUS
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
9563 while grep . conftest.undefs
>/dev
/null
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
9574 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9578 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9579 rm -f conftest.undefs
9580 mv conftest.tail conftest.undefs
9582 rm -f conftest.undefs
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
9591 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9593 cat $tmp/in >>$tmp/config.h
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;}
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 ||
9606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9608 /^X\(\/\/\)$/{ s//\1/; q; }
9609 /^X\(\/\).*/{ s//\1/; q; }
9611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9613 [\\/]* | ?
:[\\/]* ) as_incr_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 ;;
9622 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9623 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
9630 mv $tmp/config.h
$ac_file
9638 cat >>$CONFIG_STATUS <<\EOF
9641 # CONFIG_COMMANDS section.
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,[^:]*:,,'`
9648 default-1
) if test -f .devel
; then
9649 echo timestamp
> stamp-h
9650 cat Makefile-devel-adds
>> Makefile
9657 cat >>$CONFIG_STATUS <<\EOF
9659 { (exit 0); exit 0; }
9661 chmod +x
$CONFIG_STATUS
9662 ac_clean_files
=$ac_clean_files_save
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
9675 $SHELL $CONFIG_STATUS || ac_cs_success
=false
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; }