3 # From configure.in Revision: 1.145
65 # Guess values for system-dependent variables and create Makefiles.
66 # Generated automatically using autoconf version 2.13
67 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
69 # This configure script is free software; the Free Software Foundation
70 # gives unlimited permission to copy, distribute and modify it.
74 ac_default_prefix
=/usr
/local
75 # Any additions from configure.in:
77 --without-gcc don't use gcc"
79 --enable-smb enable possibly-buggy SMB printer [default=yes]
80 --disable-smb disable possibly-buggy SMB printer"
82 --enable-ipv6 enable ipv6 (with ipv4) support
83 --disable-ipv6 disable ipv6 support"
85 --without-crypto disable crypto support"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
108 bindir
='${exec_prefix}/bin'
109 sbindir
='${exec_prefix}/sbin'
110 libexecdir
='${exec_prefix}/libexec'
111 datadir
='${prefix}/share'
112 sysconfdir
='${prefix}/etc'
113 sharedstatedir
='${prefix}/com'
114 localstatedir
='${prefix}/var'
115 libdir
='${exec_prefix}/lib'
116 includedir
='${prefix}/include'
117 oldincludedir
='/usr/include'
118 infodir
='${prefix}/info'
119 mandir
='${prefix}/man'
121 # Initialize some other variables.
124 SHELL
=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
150 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
151 bindir
="$ac_optarg" ;;
153 -build |
--build |
--buil |
--bui |
--bu)
155 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
156 build
="$ac_optarg" ;;
158 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
159 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
160 ac_prev
=cache_file
;;
161 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
162 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
163 cache_file
="$ac_optarg" ;;
165 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
167 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
169 datadir
="$ac_optarg" ;;
171 -disable-* |
--disable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* |
--enable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
194 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
195 |
--exec |
--exe |
--ex)
196 ac_prev
=exec_prefix
;;
197 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
198 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
199 |
--exec=* |
--exe=* |
--ex=*)
200 exec_prefix
="$ac_optarg" ;;
202 -gas |
--gas |
--ga |
--g)
203 # Obsolete; use --with-gas.
206 -help |
--help |
--hel |
--he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host |
--host |
--hos |
--ho)
263 -host=* |
--host=* |
--hos=* |
--ho=*)
266 -includedir |
--includedir |
--includedi |
--included |
--include \
267 |
--includ |
--inclu |
--incl |
--inc)
268 ac_prev
=includedir
;;
269 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
270 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
271 includedir
="$ac_optarg" ;;
273 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
275 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
276 infodir
="$ac_optarg" ;;
278 -libdir |
--libdir |
--libdi |
--libd)
280 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
281 libdir
="$ac_optarg" ;;
283 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
284 |
--libexe |
--libex |
--libe)
285 ac_prev
=libexecdir
;;
286 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
287 |
--libexe=* |
--libex=* |
--libe=*)
288 libexecdir
="$ac_optarg" ;;
290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
291 |
--localstate |
--localstat |
--localsta |
--localst \
292 |
--locals |
--local |
--loca |
--loc |
--lo)
293 ac_prev
=localstatedir
;;
294 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
295 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
296 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
297 localstatedir
="$ac_optarg" ;;
299 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
301 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
302 mandir
="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
312 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
313 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
316 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
317 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
318 |
--oldin |
--oldi |
--old |
--ol |
--o)
319 ac_prev
=oldincludedir
;;
320 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
321 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
322 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
323 oldincludedir
="$ac_optarg" ;;
325 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
327 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
328 prefix
="$ac_optarg" ;;
330 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
331 |
--program-pre |
--program-pr |
--program-p)
332 ac_prev
=program_prefix
;;
333 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
334 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
335 program_prefix
="$ac_optarg" ;;
337 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
338 |
--program-suf |
--program-su |
--program-s)
339 ac_prev
=program_suffix
;;
340 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
341 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
342 program_suffix
="$ac_optarg" ;;
344 -program-transform-name |
--program-transform-name \
345 |
--program-transform-nam |
--program-transform-na \
346 |
--program-transform-n |
--program-transform- \
347 |
--program-transform |
--program-transfor \
348 |
--program-transfo |
--program-transf \
349 |
--program-trans |
--program-tran \
350 |
--progr-tra |
--program-tr |
--program-t)
351 ac_prev
=program_transform_name
;;
352 -program-transform-name=* |
--program-transform-name=* \
353 |
--program-transform-nam=* |
--program-transform-na=* \
354 |
--program-transform-n=* |
--program-transform-=* \
355 |
--program-transform=* |
--program-transfor=* \
356 |
--program-transfo=* |
--program-transf=* \
357 |
--program-trans=* |
--program-tran=* \
358 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
359 program_transform_name
="$ac_optarg" ;;
361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
362 |
-silent |
--silent |
--silen |
--sile |
--sil)
365 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
367 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
369 sbindir
="$ac_optarg" ;;
371 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
372 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
373 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
375 ac_prev
=sharedstatedir
;;
376 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
377 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
378 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
380 sharedstatedir
="$ac_optarg" ;;
382 -site |
--site |
--sit)
384 -site=* |
--site=* |
--sit=*)
387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
390 srcdir
="$ac_optarg" ;;
392 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
393 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
394 ac_prev
=sysconfdir
;;
395 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
396 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
397 sysconfdir
="$ac_optarg" ;;
399 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
401 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
402 target
="$ac_optarg" ;;
404 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
407 -version |
--version |
--versio |
--versi |
--vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* |
--without-*)
425 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
438 |
--x-incl |
--x-inc |
--x-in |
--x-i)
439 ac_prev
=x_includes
;;
440 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
441 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
442 x_includes
="$ac_optarg" ;;
444 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
445 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
446 ac_prev
=x_libraries
;;
447 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
448 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
449 x_libraries
="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE
; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
500 |
--no-cr |
--no-c) ;;
501 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
502 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
503 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest
* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file
=tcpdump.c
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted
=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted
=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE
; then
554 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file
in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp
='$CPP $CPPFLAGS'
577 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling
=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
592 ac_n
= ac_c
='\c' ac_t
=
598 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
599 if test -f $ac_dir/install-sh
; then
601 ac_install_sh
="$ac_aux_dir/install-sh -c"
603 elif test -f $ac_dir/install.sh
; then
605 ac_install_sh
="$ac_aux_dir/install.sh -c"
609 if test -z "$ac_aux_dir"; then
610 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
612 ac_config_guess
=$ac_aux_dir/config.guess
613 ac_config_sub
=$ac_aux_dir/config.sub
614 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
617 # Make sure we can run config.sub.
618 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
619 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
622 echo $ac_n "checking host system type""... $ac_c" 1>&6
623 echo "configure:624: checking host system type" >&5
626 case "$host_alias" in
630 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
631 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
633 *) host_alias
=$nonopt ;;
637 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
638 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$host" 1>&6
648 # Check whether --with-gcc or --without-gcc was given.
649 if test "${with_gcc+set}" = set; then
656 if test "${srcdir}" != "." ; then
657 V_INCLS
="-I\$(srcdir)"
659 if test "${CFLAGS+set}" = set; then
662 if test -z "$CC" ; then
666 # Extract the first word of "shlicc2", so it can be a program name with args.
667 set dummy shlicc2
; ac_word
=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$SHLICC2"; then
674 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
678 for ac_dir
in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir
=.
680 if test -f $ac_dir/$ac_word; then
681 ac_cv_prog_SHLICC2
="yes"
686 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
689 SHLICC2
="$ac_cv_prog_SHLICC2"
690 if test -n "$SHLICC2"; then
691 echo "$ac_t""$SHLICC2" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test $SHLICC2 = yes ; then
703 if test -z "$CC" -a "$with_gcc" = no
; then
707 # Extract the first word of "gcc", so it can be a program name with args.
708 set dummy gcc
; ac_word
=$2
709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710 echo "configure:711: checking for $ac_word" >&5
711 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
714 if test -n "$CC"; then
715 ac_cv_prog_CC
="$CC" # Let the user override the test.
717 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
719 for ac_dir
in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir
=.
721 if test -f $ac_dir/$ac_word; then
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
733 echo "$ac_t""no" 1>&6
736 if test -z "$CC"; then
737 # Extract the first word of "cc", so it can be a program name with args.
738 set dummy cc
; ac_word
=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$CC"; then
745 ac_cv_prog_CC
="$CC" # Let the user override the test.
747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
750 for ac_dir
in $ac_dummy; do
751 test -z "$ac_dir" && ac_dir
=.
752 if test -f $ac_dir/$ac_word; then
753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
762 if test $ac_prog_rejected = yes; then
763 # We found a bogon in the path, so make sure we never use it.
764 set dummy
$ac_cv_prog_CC
766 if test $# -gt 0; then
767 # We chose a different compiler from the bogus one.
768 # However, it has the same basename, so the bogon will be chosen
769 # first if we set CC to just the basename; use the full file name.
771 set dummy
"$ac_dir/$ac_word" "$@"
779 if test -n "$CC"; then
780 echo "$ac_t""$CC" 1>&6
782 echo "$ac_t""no" 1>&6
785 if test -z "$CC"; then
788 # Extract the first word of "cl", so it can be a program name with args.
789 set dummy cl
; ac_word
=$2
790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
791 echo "configure:792: checking for $ac_word" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 if test -n "$CC"; then
796 ac_cv_prog_CC
="$CC" # Let the user override the test.
798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
800 for ac_dir
in $ac_dummy; do
801 test -z "$ac_dir" && ac_dir
=.
802 if test -f $ac_dir/$ac_word; then
811 if test -n "$CC"; then
812 echo "$ac_t""$CC" 1>&6
814 echo "$ac_t""no" 1>&6
819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
823 echo "configure:824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
827 ac_cpp
='$CPP $CPPFLAGS'
828 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
829 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
830 cross_compiling
=$ac_cv_prog_cc_cross
832 cat > conftest.
$ac_ext << EOF
834 #line 835 "configure"
835 #include "confdefs.h"
839 if { (eval echo configure
:840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
840 ac_cv_prog_cc_works
=yes
841 # If we can't run a trivial program, we are probably using a cross compiler.
842 if (.
/conftest
; exit) 2>/dev
/null
; then
843 ac_cv_prog_cc_cross
=no
845 ac_cv_prog_cc_cross
=yes
848 echo "configure: failed program was:" >&5
849 cat conftest.
$ac_ext >&5
850 ac_cv_prog_cc_works
=no
854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
855 ac_cpp
='$CPP $CPPFLAGS'
856 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
857 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
858 cross_compiling
=$ac_cv_prog_cc_cross
860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
861 if test $ac_cv_prog_cc_works = no
; then
862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
865 echo "configure:866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
867 cross_compiling
=$ac_cv_prog_cc_cross
869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
870 echo "configure:871: checking whether we are using GNU C" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 cat > conftest.c
<<EOF
879 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
888 if test $ac_cv_prog_gcc = yes; then
894 ac_test_CFLAGS
="${CFLAGS+set}"
895 ac_save_CFLAGS
="$CFLAGS"
897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
898 echo "configure:899: checking whether ${CC-cc} accepts -g" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 echo 'void f(){}' > conftest.c
903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
913 if test "$ac_test_CFLAGS" = set; then
914 CFLAGS
="$ac_save_CFLAGS"
915 elif test $ac_cv_prog_cc_g = yes; then
916 if test "$GCC" = yes; then
922 if test "$GCC" = yes; then
929 if test "$GCC" = yes ; then
930 if test "$SHLICC2" = yes ; then
934 echo $ac_n "checking gcc version""... $ac_c" 1>&6
935 echo "configure:936: checking gcc version" >&5
936 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
940 sed -e '/^gcc version /!d' \
941 -e 's/^gcc version //' \
942 -e 's/ .*//' -e 's/^[^0-9]*//' \
946 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
947 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
952 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
953 echo "configure:954: checking that $CC handles ansi prototypes" >&5
954 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 cat > conftest.
$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
960 #include <sys/types.h>
962 int frob(int, char *)
965 if { (eval echo configure
:966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
967 ac_cv_lbl_cc_ansi_prototypes
=yes
969 echo "configure: failed program was:" >&5
970 cat conftest.
$ac_ext >&5
972 ac_cv_lbl_cc_ansi_prototypes
=no
977 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
978 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
982 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
983 echo "configure:984: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
984 savedcflags
="$CFLAGS"
985 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
986 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 cat > conftest.
$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
992 #include <sys/types.h>
994 int frob(int, char *)
997 if { (eval echo configure
:998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
999 ac_cv_lbl_cc_hpux_cc_aa
=yes
1001 echo "configure: failed program was:" >&5
1002 cat conftest.
$ac_ext >&5
1004 ac_cv_lbl_cc_hpux_cc_aa
=no
1009 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1010 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1011 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1013 CFLAGS
="$savedcflags"
1014 V_CCOPT
="-Aa $V_CCOPT"
1015 cat >> confdefs.h
<<\EOF
1016 #define _HPUX_SOURCE 1
1022 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1026 V_INCLS
="$V_INCLS -I/usr/local/include"
1027 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1032 V_CCOPT
="$V_CCOPT -xansi -signed -O"
1036 V_CCOPT
="$V_CCOPT -std1 -O"
1040 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1041 echo "configure:1042: checking that Ultrix $CC hacks const in prototypes" >&5
1042 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 cat > conftest.
$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1048 #include <sys/types.h>
1050 struct a { int b; };
1051 void c(const struct a *)
1054 if { (eval echo configure
:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1056 ac_cv_lbl_cc_const_proto
=yes
1058 echo "configure: failed program was:" >&5
1059 cat conftest.
$ac_ext >&5
1061 ac_cv_lbl_cc_const_proto
=no
1066 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1067 if test $ac_cv_lbl_cc_const_proto = no
; then
1068 cat >> confdefs.h
<<\EOF
1077 echo $ac_n "checking for inline""... $ac_c" 1>&6
1078 echo "configure:1079: checking for inline" >&5
1079 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1083 for ac_kw
in inline __inline__ __inline
; do
1084 cat > conftest.
$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1092 if { (eval echo configure
:1093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1094 ac_cv_c_inline
=$ac_kw; break
1096 echo "configure: failed program was:" >&5
1097 cat conftest.
$ac_ext >&5
1104 echo "$ac_t""$ac_cv_c_inline" 1>&6
1105 case "$ac_cv_c_inline" in
1107 no
) cat >> confdefs.h
<<\EOF
1111 *) cat >> confdefs.h
<<EOF
1112 #define inline $ac_cv_c_inline
1118 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1119 echo "configure:1120: checking for __attribute__" >&5
1120 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1124 cat > conftest.
$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1132 static void foo(void) __attribute__ ((noreturn));
1142 if { (eval echo configure
:1143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1144 ac_cv___attribute__
=yes
1146 echo "configure: failed program was:" >&5
1147 cat conftest.
$ac_ext >&5
1149 ac_cv___attribute__
=no
1154 if test "$ac_cv___attribute__" = "yes"; then
1155 cat >> confdefs.h
<<\EOF
1156 #define HAVE___ATTRIBUTE__ 1
1160 echo "$ac_t""$ac_cv___attribute__" 1>&6
1163 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1164 echo "configure:1165: checking how to run the C preprocessor" >&5
1165 # On Suns, sometimes $CPP names a directory.
1166 if test -n "$CPP" && test -d "$CPP"; then
1169 if test -z "$CPP"; then
1170 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 # This must be in double quotes, not single quotes, because CPP may get
1174 # substituted into the Makefile and "${CC-cc}" will confuse make.
1176 # On the NeXT, cc -E runs the code through the compiler's parser,
1177 # not just through cpp.
1178 cat > conftest.
$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1184 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1185 { (eval echo configure
:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1186 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1187 if test -z "$ac_err"; then
1191 echo "configure: failed program was:" >&5
1192 cat conftest.
$ac_ext >&5
1194 CPP
="${CC-cc} -E -traditional-cpp"
1195 cat > conftest.
$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1202 { (eval echo configure
:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1203 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1204 if test -z "$ac_err"; then
1208 echo "configure: failed program was:" >&5
1209 cat conftest.
$ac_ext >&5
1211 CPP
="${CC-cc} -nologo -E"
1212 cat > conftest.
$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1218 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1219 { (eval echo configure
:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1220 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1221 if test -z "$ac_err"; then
1225 echo "configure: failed program was:" >&5
1226 cat conftest.
$ac_ext >&5
1235 ac_cv_prog_CPP
="$CPP"
1237 CPP
="$ac_cv_prog_CPP"
1239 ac_cv_prog_CPP
="$CPP"
1241 echo "$ac_t""$CPP" 1>&6
1243 for ac_hdr
in fcntl.h rpc
/rpcent.h netinet
/if_ether.h
1245 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_hdr" >&5
1248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 cat > conftest.
$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1256 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1257 { (eval echo configure
:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1258 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1259 if test -z "$ac_err"; then
1261 eval "ac_cv_header_$ac_safe=yes"
1264 echo "configure: failed program was:" >&5
1265 cat conftest.
$ac_ext >&5
1267 eval "ac_cv_header_$ac_safe=no"
1271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1272 echo "$ac_t""yes" 1>&6
1273 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1274 cat >> confdefs.h
<<EOF
1275 #define $ac_tr_hdr 1
1279 echo "$ac_t""no" 1>&6
1283 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether time.h and sys/time.h may both be included" >&5
1285 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1291 #include <sys/types.h>
1292 #include <sys/time.h>
1298 if { (eval echo configure
:1299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1300 ac_cv_header_time
=yes
1302 echo "configure: failed program was:" >&5
1303 cat conftest.
$ac_ext >&5
1305 ac_cv_header_time
=no
1310 echo "$ac_t""$ac_cv_header_time" 1>&6
1311 if test $ac_cv_header_time = yes; then
1312 cat >> confdefs.h
<<\EOF
1313 #define TIME_WITH_SYS_TIME 1
1322 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1323 echo "configure:1324: checking Linux kernel version" >&5
1324 if test "$cross_compiling" = yes; then
1325 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 ac_cv_linux_vers
=unknown
1332 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 ac_cv_linux_vers
=`uname -r 2>&1 | \
1336 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1340 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1341 if test $ac_cv_linux_vers = unknown
; then
1342 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1344 if test $ac_cv_linux_vers -lt 2 ; then
1345 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1356 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_hdr" >&5
1359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 cat > conftest.
$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1368 { (eval echo configure
:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1369 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1370 if test -z "$ac_err"; then
1372 eval "ac_cv_header_$ac_safe=yes"
1375 echo "configure: failed program was:" >&5
1376 cat conftest.
$ac_ext >&5
1378 eval "ac_cv_header_$ac_safe=no"
1382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1383 echo "$ac_t""yes" 1>&6
1384 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1385 cat >> confdefs.h
<<EOF
1386 #define $ac_tr_hdr 1
1390 echo "$ac_t""no" 1>&6
1394 echo $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6
1395 echo "configure:1396: checking for smiInit in -lsmi" >&5
1396 ac_lib_var
=`echo smi'_'smiInit | sed 'y%./+-%__p_%'`
1397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 ac_save_LIBS
="$LIBS"
1402 cat > conftest.
$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 /* Override any gcc2 internal prototype to avoid an error. */
1406 /* We use char because int might match the return type of a gcc2
1407 builtin and then its argument prototype would still apply. */
1414 if { (eval echo configure
:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1416 eval "ac_cv_lib_$ac_lib_var=yes"
1418 echo "configure: failed program was:" >&5
1419 cat conftest.
$ac_ext >&5
1421 eval "ac_cv_lib_$ac_lib_var=no"
1424 LIBS
="$ac_save_LIBS"
1427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1428 echo "$ac_t""yes" 1>&6
1429 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1431 cat >> confdefs.h
<<EOF
1432 #define $ac_tr_lib 1
1438 echo "$ac_t""no" 1>&6
1441 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
1443 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether to enable libsmi" >&5
1445 if test "$cross_compiling" = yes; then
1446 echo "$ac_t""not when cross-compiling" 1>&6
1450 cat > conftest.
$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 /* libsmi available check */
1457 int current, revision, age, n;
1458 const int required = 2;
1461 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
1463 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
1466 if (required < current - age || required > current)
1472 if { (eval echo configure
:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1474 echo "$ac_t""yes" 1>&6
1475 cat >> confdefs.h
<<\EOF
1481 echo "configure: failed program was:" >&5
1482 cat conftest.
$ac_ext >&5
1485 1) echo "$ac_t""no - smiInit failed" 1>&6 ;;
1486 2) echo "$ac_t""no - header/library version mismatch" 1>&6 ;;
1487 3) echo "$ac_t""no - can't determine library version" 1>&6 ;;
1488 4) echo "$ac_t""no - too old" 1>&6 ;;
1489 *) echo "$ac_t""no" 1>&6 ;;
1498 echo $ac_n "checking whether to enable the possibly-buggy SMB printer""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether to enable the possibly-buggy SMB printer" >&5
1500 # Check whether --enable-smb or --disable-smb was given.
1501 if test "${enable_smb+set}" = set; then
1502 enableval
="$enable_smb"
1508 case "$enableval" in
1509 yes) echo "$ac_t""yes" 1>&6
1510 echo "configure: warning: The SMB printer may have exploitable buffer overflows!!!" 1>&2
1511 cat >> confdefs.h
<<\EOF
1512 #define TCPDUMP_DO_SMB 1
1515 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
1517 *) echo "$ac_t""no" 1>&6
1521 CFLAGS
="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
1522 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether to enable ipv6" >&5
1524 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1525 if test "${enable_ipv6+set}" = set; then
1526 enableval
="$enable_ipv6"
1527 case "$enableval" in
1528 yes) echo "$ac_t""yes" 1>&6
1529 LOCALSRC
="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
1530 cat >> confdefs.h
<<\EOF
1537 echo "$ac_t""no" 1>&6
1542 if test "$cross_compiling" = yes; then
1543 echo "$ac_t""no" 1>&6
1547 cat > conftest.
$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 /* AF_INET6 available check */
1551 #include <sys/types.h>
1552 #include <sys/socket.h>
1555 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1562 if { (eval echo configure
:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1564 echo "$ac_t""yes" 1>&6
1565 LOCALSRC
="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
1566 cat >> confdefs.h
<<\EOF
1572 echo "configure: failed program was:" >&5
1573 cat conftest.
$ac_ext >&5
1575 echo "$ac_t""no" 1>&6
1588 if test "$ipv6" = "yes"; then
1589 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1590 echo "configure:1591: checking ipv6 stack type" >&5
1591 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1598 #include <netinet/in.h>
1599 #ifdef IPV6_INRIA_VERSION
1603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1604 egrep "yes" >/dev
/null
2>&1; then
1607 CFLAGS
="-DINET6 $CFLAGS"
1613 cat > conftest.
$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1617 #include <netinet/in.h>
1622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1623 egrep "yes" >/dev
/null
2>&1; then
1627 ipv6libdir
=/usr
/local
/v
6/lib
;
1629 CFLAGS
="-DINET6 $CFLAGS"
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1639 #include <features.h>
1640 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1645 egrep "yes" >/dev
/null
2>&1; then
1648 CFLAGS
="-DINET6 $CFLAGS"
1654 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1657 ipv6libdir
=/usr
/inet
6/lib
1659 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1663 cat > conftest.
$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1667 #include <sys/param.h>
1668 #ifdef _TOSHIBA_INET6
1672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1673 egrep "yes" >/dev
/null
2>&1; then
1677 ipv6libdir
=/usr
/local
/v
6/lib
;
1678 CFLAGS
="-DINET6 $CFLAGS"
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1688 #include </usr/local/v6/include/sys/v6config.h>
1693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1694 egrep "yes" >/dev
/null
2>&1; then
1698 ipv6libdir
=/usr
/local
/v
6/lib
;
1699 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1705 cat > conftest.
$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1709 #include <sys/param.h>
1710 #ifdef _ZETA_MINAMI_INET6
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715 egrep "yes" >/dev
/null
2>&1; then
1719 ipv6libdir
=/usr
/local
/v
6/lib
;
1720 CFLAGS
="-DINET6 $CFLAGS"
1726 if test "$ipv6type" != "unknown"; then
1730 echo "$ac_t""$ipv6type" 1>&6
1733 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1734 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1735 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1736 echo "You have $ipv6lib library, using it"
1738 if test "$ipv6trylibc" = "yes"; then
1739 echo "You do not have $ipv6lib library, using libc"
1741 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1742 echo "You need to fetch lib$ipv6lib.a from appropriate"
1743 echo 'ipv6 kit and compile beforehand.'
1750 if test "$ipv6" = "yes"; then
1752 echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6
1753 echo "configure:1754: checking for library containing getaddrinfo" >&5
1754 if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 ac_func_search_save_LIBS
="$LIBS"
1758 ac_cv_search_getaddrinfo
="no"
1759 cat > conftest.
$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1763 /* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1771 if { (eval echo configure
:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1773 ac_cv_search_getaddrinfo
="none required"
1775 echo "configure: failed program was:" >&5
1776 cat conftest.
$ac_ext >&5
1779 test "$ac_cv_search_getaddrinfo" = "no" && for i
in socket
; do
1780 LIBS
="-l$i $ac_func_search_save_LIBS"
1781 cat > conftest.
$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 /* Override any gcc2 internal prototype to avoid an error. */
1785 /* We use char because int might match the return type of a gcc2
1786 builtin and then its argument prototype would still apply. */
1793 if { (eval echo configure
:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1795 ac_cv_search_getaddrinfo
="-l$i"
1798 echo "configure: failed program was:" >&5
1799 cat conftest.
$ac_ext >&5
1803 LIBS
="$ac_func_search_save_LIBS"
1806 echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6
1807 if test "$ac_cv_search_getaddrinfo" != "no"; then
1808 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
1809 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1810 echo "configure:1811: checking getaddrinfo bug" >&5
1811 if test "$cross_compiling" = yes; then
1812 echo "$ac_t""buggy" 1>&6
1813 buggygetaddrinfo
=yes
1815 cat > conftest.
$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1819 #include <sys/types.h>
1822 #include <sys/socket.h>
1823 #include <netinet/in.h>
1827 int passive, gaierr, inet4 = 0, inet6 = 0;
1828 struct addrinfo hints, *ai, *aitop;
1829 char straddr[INET6_ADDRSTRLEN], strport[16];
1831 for (passive = 0; passive <= 1; passive++) {
1832 memset(&hints, 0, sizeof(hints));
1833 hints.ai_family = AF_UNSPEC;
1834 hints.ai_flags = passive ? AI_PASSIVE : 0;
1835 hints.ai_socktype = SOCK_STREAM;
1836 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1837 (void)gai_strerror(gaierr);
1840 for (ai = aitop; ai; ai = ai->ai_next) {
1841 if (ai->ai_addr == NULL ||
1842 ai->ai_addrlen == 0 ||
1843 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1844 straddr, sizeof(straddr), strport, sizeof(strport),
1845 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1848 switch (ai->ai_family) {
1850 if (strcmp(strport, "54321") != 0) {
1854 if (strcmp(straddr, "0.0.0.0") != 0) {
1858 if (strcmp(straddr, "127.0.0.1") != 0) {
1865 if (strcmp(strport, "54321") != 0) {
1869 if (strcmp(straddr, "::") != 0) {
1873 if (strcmp(straddr, "::1") != 0) {
1890 /* another family support? */
1896 /* supported family should be 2, unsupported family should be 0 */
1897 if (!(inet4 == 0 || inet4 == 2))
1899 if (!(inet6 == 0 || inet6 == 2))
1903 freeaddrinfo(aitop);
1908 freeaddrinfo(aitop);
1913 if { (eval echo configure
:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1915 echo "$ac_t""good" 1>&6
1918 echo "configure: failed program was:" >&5
1919 cat conftest.
$ac_ext >&5
1921 echo "$ac_t""buggy" 1>&6
1922 buggygetaddrinfo
=yes
1928 buggygetaddrinfo
=yes
1931 if test "$buggygetaddrinfo" = "yes"; then
1932 if test "$ipv6type" != "linux"; then
1933 echo 'Fatal: You must get working getaddrinfo() function.'
1934 echo ' or you can specify "--disable-ipv6"'.
1937 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1938 echo ' Better upgreade your system library to newest version'
1939 echo ' of GNU C library (aka glibc).'
1942 for ac_func
in getaddrinfo getnameinfo
1944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1945 echo "configure:1946: checking for $ac_func" >&5
1946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 cat > conftest.
$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1952 /* System header to define __stub macros and hopefully few prototypes,
1953 which can conflict with char $ac_func(); below. */
1955 /* Override any gcc2 internal prototype to avoid an error. */
1956 /* We use char because int might match the return type of a gcc2
1957 builtin and then its argument prototype would still apply. */
1962 /* The GNU C library defines this for functions which it implements
1963 to always fail with ENOSYS. Some functions are actually named
1964 something starting with __ and the normal name is an alias. */
1965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1973 if { (eval echo configure
:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1975 eval "ac_cv_func_$ac_func=yes"
1977 echo "configure: failed program was:" >&5
1978 cat conftest.
$ac_ext >&5
1980 eval "ac_cv_func_$ac_func=no"
1985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1988 cat >> confdefs.h
<<EOF
1989 #define $ac_tr_func 1
1993 echo "$ac_t""no" 1>&6
1994 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2000 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
2001 echo "configure:2002: checking for inet_ntop" >&5
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 #include <sys/types.h>
2006 #include <sys/socket.h>
2007 #include <netinet/in.h>
2008 #include <arpa/inet.h>
2010 char src[4], dst[128];
2011 inet_ntop(AF_INET, src, dst, sizeof(dst));
2014 if { (eval echo configure
:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2016 echo "$ac_t""yes" 1>&6
2018 echo "configure: failed program was:" >&5
2019 cat conftest.
$ac_ext >&5
2021 echo "$ac_t""no" 1>&6
2022 for ac_func
in inet_ntop
2024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2025 echo "configure:2026: checking for $ac_func" >&5
2026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 /* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char $ac_func(); below. */
2035 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2042 /* The GNU C library defines this for functions which it implements
2043 to always fail with ENOSYS. Some functions are actually named
2044 something starting with __ and the normal name is an alias. */
2045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2053 if { (eval echo configure
:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2055 eval "ac_cv_func_$ac_func=yes"
2057 echo "configure: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 eval "ac_cv_func_$ac_func=no"
2065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2068 cat >> confdefs.h
<<EOF
2069 #define $ac_tr_func 1
2073 echo "$ac_t""no" 1>&6
2074 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2081 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
2082 echo "configure:2083: checking for inet_pton" >&5
2083 cat > conftest.
$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 #include <sys/types.h>
2087 #include <sys/socket.h>
2088 #include <netinet/in.h>
2089 #include <arpa/inet.h>
2091 char src[128], dst[4];
2092 inet_pton(AF_INET, src, dst);
2095 if { (eval echo configure
:2096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2097 echo "$ac_t""yes" 1>&6
2099 echo "configure: failed program was:" >&5
2100 cat conftest.
$ac_ext >&5
2102 echo "$ac_t""no" 1>&6
2103 for ac_func
in inet_pton
2105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2106 echo "configure:2107: checking for $ac_func" >&5
2107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 cat > conftest.
$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 /* System header to define __stub macros and hopefully few prototypes,
2114 which can conflict with char $ac_func(); below. */
2116 /* Override any gcc2 internal prototype to avoid an error. */
2117 /* We use char because int might match the return type of a gcc2
2118 builtin and then its argument prototype would still apply. */
2123 /* The GNU C library defines this for functions which it implements
2124 to always fail with ENOSYS. Some functions are actually named
2125 something starting with __ and the normal name is an alias. */
2126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2134 if { (eval echo configure
:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2136 eval "ac_cv_func_$ac_func=yes"
2138 echo "configure: failed program was:" >&5
2139 cat conftest.
$ac_ext >&5
2141 eval "ac_cv_func_$ac_func=no"
2146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2149 cat >> confdefs.h
<<EOF
2150 #define $ac_tr_func 1
2154 echo "$ac_t""no" 1>&6
2155 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2162 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
2163 echo "configure:2164: checking for inet_aton" >&5
2164 cat > conftest.
$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 #include <sys/types.h>
2168 #include <netinet/in.h>
2169 #include <arpa/inet.h>
2173 inet_aton(src, &dst);
2176 if { (eval echo configure
:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2178 echo "$ac_t""yes" 1>&6
2180 echo "configure: failed program was:" >&5
2181 cat conftest.
$ac_ext >&5
2183 echo "$ac_t""no" 1>&6
2184 for ac_func
in inet_aton
2186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_func" >&5
2188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.
$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* System header to define __stub macros and hopefully few prototypes,
2195 which can conflict with char $ac_func(); below. */
2197 /* Override any gcc2 internal prototype to avoid an error. */
2198 /* We use char because int might match the return type of a gcc2
2199 builtin and then its argument prototype would still apply. */
2204 /* The GNU C library defines this for functions which it implements
2205 to always fail with ENOSYS. Some functions are actually named
2206 something starting with __ and the normal name is an alias. */
2207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2215 if { (eval echo configure
:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2217 eval "ac_cv_func_$ac_func=yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.
$ac_ext >&5
2222 eval "ac_cv_func_$ac_func=no"
2227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2230 cat >> confdefs.h
<<EOF
2231 #define $ac_tr_func 1
2235 echo "$ac_t""no" 1>&6
2236 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2245 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2246 echo "configure:2247: checking if sockaddr struct has sa_len member" >&5
2247 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 cat > conftest.
$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2254 # include <sys/types.h>
2255 # include <sys/socket.h>
2257 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2260 if { (eval echo configure
:2261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2262 ac_cv_sockaddr_has_sa_len
=yes
2264 echo "configure: failed program was:" >&5
2265 cat conftest.
$ac_ext >&5
2267 ac_cv_sockaddr_has_sa_len
=no
2272 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
2273 if test $ac_cv_sockaddr_has_sa_len = yes ; then
2274 cat >> confdefs.h
<<\EOF
2275 #define HAVE_SOCKADDR_SA_LEN 1
2280 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
2281 missing_includes
=yes
2284 echo $ac_n "checking size of char""... $ac_c" 1>&6
2285 echo "configure:2286: checking size of char" >&5
2286 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 if test "$cross_compiling" = yes; then
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2298 FILE *f=fopen("conftestval", "w");
2300 fprintf(f, "%d\n", sizeof(char));
2304 if { (eval echo configure
:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2306 ac_cv_sizeof_char
=`cat conftestval`
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2317 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2318 cat >> confdefs.h
<<EOF
2319 #define SIZEOF_CHAR $ac_cv_sizeof_char
2323 echo $ac_n "checking size of short""... $ac_c" 1>&6
2324 echo "configure:2325: checking size of short" >&5
2325 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 if test "$cross_compiling" = yes; then
2329 ac_cv_sizeof_short
=2
2331 cat > conftest.
$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2337 FILE *f=fopen("conftestval", "w");
2339 fprintf(f, "%d\n", sizeof(short));
2343 if { (eval echo configure
:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2345 ac_cv_sizeof_short
=`cat conftestval`
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2350 ac_cv_sizeof_short
=0
2356 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2357 cat >> confdefs.h
<<EOF
2358 #define SIZEOF_SHORT $ac_cv_sizeof_short
2362 echo $ac_n "checking size of int""... $ac_c" 1>&6
2363 echo "configure:2364: checking size of int" >&5
2364 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 if test "$cross_compiling" = yes; then
2370 cat > conftest.
$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2376 FILE *f=fopen("conftestval", "w");
2378 fprintf(f, "%d\n", sizeof(int));
2382 if { (eval echo configure
:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2384 ac_cv_sizeof_int
=`cat conftestval`
2386 echo "configure: failed program was:" >&5
2387 cat conftest.
$ac_ext >&5
2395 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2396 cat >> confdefs.h
<<EOF
2397 #define SIZEOF_INT $ac_cv_sizeof_int
2401 echo $ac_n "checking size of long""... $ac_c" 1>&6
2402 echo "configure:2403: checking size of long" >&5
2403 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 if test "$cross_compiling" = yes; then
2409 cat > conftest.
$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2415 FILE *f=fopen("conftestval", "w");
2417 fprintf(f, "%d\n", sizeof(long));
2421 if { (eval echo configure
:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2423 ac_cv_sizeof_long
=`cat conftestval`
2425 echo "configure: failed program was:" >&5
2426 cat conftest.
$ac_ext >&5
2434 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2435 cat >> confdefs.h
<<EOF
2436 #define SIZEOF_LONG $ac_cv_sizeof_long
2443 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2444 echo "configure:2445: checking for addrinfo" >&5
2445 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 cat > conftest.
$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2457 if { (eval echo configure
:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2461 echo "configure: failed program was:" >&5
2462 cat conftest.
$ac_ext >&5
2469 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2470 if test $ac_cv_addrinfo = yes; then
2471 cat >> confdefs.h
<<\EOF
2472 #define HAVE_ADDRINFO 1
2476 cat >> confdefs.h
<<\EOF
2477 #define NEED_ADDRINFO_H 1
2482 if test "$ac_cv_addrinfo" = no
; then
2483 missing_includes
=yes
2487 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6
2488 echo "configure:2489: checking for NI_MAXSERV" >&5
2489 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 cat > conftest.
$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2501 egrep "yes" >/dev
/null
2>&1; then
2512 echo "$ac_t""$ac_cv_maxserv" 1>&6
2513 if test $ac_cv_maxserv != yes; then
2514 cat >> confdefs.h
<<\EOF
2515 #define NEED_ADDRINFO_H 1
2520 if test "$ac_cv_maxserv" = no
; then
2521 missing_includes
=yes
2525 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6
2526 echo "configure:2527: checking for NI_NAMEREQD" >&5
2527 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 cat > conftest.
$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2539 egrep "yes" >/dev
/null
2>&1; then
2550 echo "$ac_t""$ac_cv_namereqd" 1>&6
2551 if test $ac_cv_namereqd != yes; then
2552 cat >> confdefs.h
<<\EOF
2553 #define NEED_ADDRINFO_H 1
2558 if test "$ac_cv_namereqd" = no
; then
2559 missing_includes
=yes
2563 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2564 echo "configure:2565: checking for sockaddr_storage" >&5
2565 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.
$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2572 # include <sys/types.h>
2573 # include <sys/socket.h>
2575 struct sockaddr_storage s
2578 if { (eval echo configure
:2579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2580 ac_cv_sa_storage
=yes
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2590 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2591 if test $ac_cv_sa_storage = yes; then
2592 cat >> confdefs.h
<<\EOF
2593 #define HAVE_SOCKADDR_STORAGE 1
2598 if test "$ac_cv_sa_storage" = no
; then
2599 missing_includes
=yes
2604 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2605 echo "configure:2606: checking for INADDRSZ" >&5
2606 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.
$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2613 # include <arpa/nameser.h>
2618 if { (eval echo configure
:2619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2622 echo "configure: failed program was:" >&5
2623 cat conftest.
$ac_ext >&5
2630 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2631 if test $ac_cv_inaddrsz = yes; then
2632 cat >> confdefs.h
<<\EOF
2633 #define HAVE_INADDRSZ 1
2639 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2640 echo "configure:2641: checking for IN6ADDRSZ" >&5
2641 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.
$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2648 # include <arpa/nameser.h>
2653 if { (eval echo configure
:2654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2657 echo "configure: failed program was:" >&5
2658 cat conftest.
$ac_ext >&5
2665 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2666 if test $ac_cv_in6addrsz = yes; then
2667 cat >> confdefs.h
<<\EOF
2668 #define HAVE_IN6ADDRSZ 1
2675 if test "$ac_cv_addrsz" = no
; then
2676 missing_includes
=yes
2680 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2681 echo "configure:2682: checking for RES_USE_INET6" >&5
2682 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 cat > conftest.
$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2689 # include <sys/types.h>
2690 # include <netinet/in.h>
2691 # include <resolv.h>
2693 int a = RES_USE_INET6
2696 if { (eval echo configure
:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2708 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2709 if test $ac_cv_res_inet6 = yes; then
2710 cat >> confdefs.h
<<\EOF
2711 #define HAVE_RES_USE_INET6 1
2716 if test "$ac_cv_res_inet6" = no
; then
2717 missing_includes
=yes
2721 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2722 echo "configure:2723: checking for res_state_ext" >&5
2723 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2730 # include <sys/types.h>
2731 # include <netinet/in.h>
2732 # include <netinet6/in6.h>
2733 # include <resolv.h>
2735 struct __res_state_ext e
2738 if { (eval echo configure
:2739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2740 ac_cv_res_state_ext
=yes
2742 echo "configure: failed program was:" >&5
2743 cat conftest.
$ac_ext >&5
2745 ac_cv_res_state_ext
=no
2750 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2751 if test $ac_cv_res_state_ext = yes; then
2752 cat >> confdefs.h
<<\EOF
2753 #define HAVE_RES_STATE_EXT 1
2758 if test "$ac_cv_res_state_ext" = no
; then
2759 missing_includes
=yes
2763 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2764 echo "configure:2765: checking for nsort in res_state" >&5
2765 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 cat > conftest.
$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2772 # include <sys/types.h>
2773 # include <netinet/in.h>
2774 # include <netinet6/in6.h>
2775 # include <resolv.h>
2777 struct __res_state e; e.nsort = 0
2780 if { (eval echo configure
:2781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2784 echo "configure: failed program was:" >&5
2785 cat conftest.
$ac_ext >&5
2792 echo "$ac_t""$ac_cv_res_state" 1>&6
2793 if test $ac_cv_res_state = yes; then
2794 cat >> confdefs.h
<<\EOF
2795 #define HAVE_NEW_RES_STATE 1
2801 if test "$missing_includes" = "yes"; then
2802 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2803 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2807 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup
2809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_func" >&5
2811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* System header to define __stub macros and hopefully few prototypes,
2818 which can conflict with char $ac_func(); below. */
2820 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2827 /* The GNU C library defines this for functions which it implements
2828 to always fail with ENOSYS. Some functions are actually named
2829 something starting with __ and the normal name is an alias. */
2830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2838 if { (eval echo configure
:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2840 eval "ac_cv_func_$ac_func=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2845 eval "ac_cv_func_$ac_func=no"
2850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2853 cat >> confdefs.h
<<EOF
2854 #define $ac_tr_func 1
2858 echo "$ac_t""no" 1>&6
2859 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2864 for ac_func
in ether_ntohost
2866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_func" >&5
2868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.
$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 /* System header to define __stub macros and hopefully few prototypes,
2875 which can conflict with char $ac_func(); below. */
2877 /* Override any gcc2 internal prototype to avoid an error. */
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2884 /* The GNU C library defines this for functions which it implements
2885 to always fail with ENOSYS. Some functions are actually named
2886 something starting with __ and the normal name is an alias. */
2887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2895 if { (eval echo configure
:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2897 eval "ac_cv_func_$ac_func=yes"
2899 echo "configure: failed program was:" >&5
2900 cat conftest.
$ac_ext >&5
2902 eval "ac_cv_func_$ac_func=no"
2907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2908 echo "$ac_t""yes" 1>&6
2909 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2910 cat >> confdefs.h
<<EOF
2911 #define $ac_tr_func 1
2914 echo $ac_n "checking for buggy ether_ntohost""... $ac_c" 1>&6
2915 echo "configure:2916: checking for buggy ether_ntohost" >&5
2916 if eval "test \"`echo '$''{'ac_cv_buggy_ether_ntohost'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2920 if test "$cross_compiling" = yes; then
2921 ac_cv_buggy_ether_ntohost
=not
while cross-compiling
2923 cat > conftest.
$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2928 #include <sys/types.h>
2929 #include <sys/param.h>
2930 #include <sys/socket.h>
2933 main(int argc, char **argv)
2935 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
2936 char name[MAXHOSTNAMELEN];
2938 ether_ntohost(name, (struct ether_addr *)ea);
2943 if { (eval echo configure
:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2945 ac_cv_buggy_ether_ntohost
=no
2947 echo "configure: failed program was:" >&5
2948 cat conftest.
$ac_ext >&5
2950 ac_cv_buggy_ether_ntohost
=yes
2957 echo "$ac_t""$ac_cv_buggy_ether_ntohost" 1>&6
2958 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
2959 cat >> confdefs.h
<<\EOF
2960 #define USE_ETHER_NTOHOST 1
2966 echo "$ac_t""no" 1>&6
2970 for ac_func
in setlinebuf
2972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_func" >&5
2974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 cat > conftest.
$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 /* System header to define __stub macros and hopefully few prototypes,
2981 which can conflict with char $ac_func(); below. */
2983 /* Override any gcc2 internal prototype to avoid an error. */
2984 /* We use char because int might match the return type of a gcc2
2985 builtin and then its argument prototype would still apply. */
2990 /* The GNU C library defines this for functions which it implements
2991 to always fail with ENOSYS. Some functions are actually named
2992 something starting with __ and the normal name is an alias. */
2993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3001 if { (eval echo configure
:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3003 eval "ac_cv_func_$ac_func=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.
$ac_ext >&5
3008 eval "ac_cv_func_$ac_func=no"
3013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3014 echo "$ac_t""yes" 1>&6
3015 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3016 cat >> confdefs.h
<<EOF
3017 #define $ac_tr_func 1
3021 echo "$ac_t""no" 1>&6
3027 for ac_func
in vsnprintf snprintf
3029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_func" >&5
3031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.
$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char $ac_func(); below. */
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 /* We use char because int might match the return type of a gcc2
3042 builtin and then its argument prototype would still apply. */
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3058 if { (eval echo configure
:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3060 eval "ac_cv_func_$ac_func=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.
$ac_ext >&5
3065 eval "ac_cv_func_$ac_func=no"
3070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3072 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3073 cat >> confdefs.h
<<EOF
3074 #define $ac_tr_func 1
3078 echo "$ac_t""no" 1>&6
3083 if test $needsnprintf = yes; then
3084 LIBOBJS
="$LIBOBJS snprintf.o"
3088 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3089 echo "configure:3090: checking return type of signal handlers" >&5
3090 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.
$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 #include <sys/types.h>
3102 extern "C" void (*signal (int, void (*)(int)))(int);
3104 void (*signal ()) ();
3111 if { (eval echo configure
:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113 ac_cv_type_signal
=void
3115 echo "configure: failed program was:" >&5
3116 cat conftest.
$ac_ext >&5
3118 ac_cv_type_signal
=int
3123 echo "$ac_t""$ac_cv_type_signal" 1>&6
3124 cat >> confdefs.h
<<EOF
3125 #define RETSIGTYPE $ac_cv_type_signal
3129 if test "$ac_cv_type_signal" = void
; then
3130 cat >> confdefs.h
<<\EOF
3135 cat >> confdefs.h
<<\EOF
3136 #define RETSIGVAL (0)
3143 cat >> confdefs.h
<<\EOF
3144 #define _BSD_SIGNALS 1
3150 for ac_func
in sigset
3152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_func" >&5
3154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.
$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 /* System header to define __stub macros and hopefully few prototypes,
3161 which can conflict with char $ac_func(); below. */
3163 /* Override any gcc2 internal prototype to avoid an error. */
3164 /* We use char because int might match the return type of a gcc2
3165 builtin and then its argument prototype would still apply. */
3170 /* The GNU C library defines this for functions which it implements
3171 to always fail with ENOSYS. Some functions are actually named
3172 something starting with __ and the normal name is an alias. */
3173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3181 if { (eval echo configure
:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3183 eval "ac_cv_func_$ac_func=yes"
3185 echo "configure: failed program was:" >&5
3186 cat conftest.
$ac_ext >&5
3188 eval "ac_cv_func_$ac_func=no"
3193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3196 cat >> confdefs.h
<<EOF
3197 #define $ac_tr_func 1
3201 echo "$ac_t""no" 1>&6
3205 if test $ac_cv_func_sigset = no
; then
3206 for ac_func
in sigaction
3208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3209 echo "configure:3210: checking for $ac_func" >&5
3210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.
$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 /* System header to define __stub macros and hopefully few prototypes,
3217 which can conflict with char $ac_func(); below. */
3219 /* Override any gcc2 internal prototype to avoid an error. */
3220 /* We use char because int might match the return type of a gcc2
3221 builtin and then its argument prototype would still apply. */
3226 /* The GNU C library defines this for functions which it implements
3227 to always fail with ENOSYS. Some functions are actually named
3228 something starting with __ and the normal name is an alias. */
3229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3237 if { (eval echo configure
:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3239 eval "ac_cv_func_$ac_func=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3244 eval "ac_cv_func_$ac_func=no"
3249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3252 cat >> confdefs.h
<<EOF
3253 #define $ac_tr_func 1
3257 echo "$ac_t""no" 1>&6
3265 echo $ac_n "checking for dnet_htoa in -ldnet""... $ac_c" 1>&6
3266 echo "configure:3267: checking for dnet_htoa in -ldnet" >&5
3267 ac_lib_var
=`echo dnet'_'dnet_htoa | sed 'y%./+-%__p_%'`
3268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3271 ac_save_LIBS
="$LIBS"
3273 cat > conftest.
$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 /* Override any gcc2 internal prototype to avoid an error. */
3277 /* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3285 if { (eval echo configure
:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3287 eval "ac_cv_lib_$ac_lib_var=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.
$ac_ext >&5
3292 eval "ac_cv_lib_$ac_lib_var=no"
3295 LIBS
="$ac_save_LIBS"
3298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3299 echo "$ac_t""yes" 1>&6
3300 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3302 cat >> confdefs.h
<<EOF
3303 #define $ac_tr_lib 1
3309 echo "$ac_t""no" 1>&6
3313 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
3314 echo "configure:3315: checking for main in -lrpc" >&5
3315 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
3316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 ac_save_LIBS
="$LIBS"
3321 cat > conftest.
$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3329 if { (eval echo configure
:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3331 eval "ac_cv_lib_$ac_lib_var=yes"
3333 echo "configure: failed program was:" >&5
3334 cat conftest.
$ac_ext >&5
3336 eval "ac_cv_lib_$ac_lib_var=no"
3339 LIBS
="$ac_save_LIBS"
3342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3343 echo "$ac_t""yes" 1>&6
3344 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3346 cat >> confdefs.h
<<EOF
3347 #define $ac_tr_lib 1
3353 echo "$ac_t""no" 1>&6
3357 echo $ac_n "checking for library containing getrpcbynumber""... $ac_c" 1>&6
3358 echo "configure:3359: checking for library containing getrpcbynumber" >&5
3359 if eval "test \"`echo '$''{'ac_cv_search_getrpcbynumber'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 ac_func_search_save_LIBS
="$LIBS"
3363 ac_cv_search_getrpcbynumber
="no"
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* Override any gcc2 internal prototype to avoid an error. */
3368 /* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3370 char getrpcbynumber();
3376 if { (eval echo configure
:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3378 ac_cv_search_getrpcbynumber
="none required"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.
$ac_ext >&5
3384 test "$ac_cv_search_getrpcbynumber" = "no" && for i
in nsl
; do
3385 LIBS
="-l$i $ac_func_search_save_LIBS"
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 /* Override any gcc2 internal prototype to avoid an error. */
3390 /* We use char because int might match the return type of a gcc2
3391 builtin and then its argument prototype would still apply. */
3392 char getrpcbynumber();
3398 if { (eval echo configure
:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3400 ac_cv_search_getrpcbynumber
="-l$i"
3403 echo "configure: failed program was:" >&5
3404 cat conftest.
$ac_ext >&5
3408 LIBS
="$ac_func_search_save_LIBS"
3411 echo "$ac_t""$ac_cv_search_getrpcbynumber" 1>&6
3412 if test "$ac_cv_search_getrpcbynumber" != "no"; then
3413 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
3421 # Most operating systems have gethostbyname() in the default searched
3422 # libraries (i.e. libc):
3423 # Some OSes (eg. Solaris) place it in libnsl
3424 # Some strange OSes (SINIX) have it in libsocket:
3426 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3427 echo "configure:3428: checking for library containing gethostbyname" >&5
3428 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 ac_func_search_save_LIBS
="$LIBS"
3432 ac_cv_search_gethostbyname
="no"
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 /* Override any gcc2 internal prototype to avoid an error. */
3437 /* We use char because int might match the return type of a gcc2
3438 builtin and then its argument prototype would still apply. */
3439 char gethostbyname();
3445 if { (eval echo configure
:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3447 ac_cv_search_gethostbyname
="none required"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.
$ac_ext >&5
3453 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl socket resolv
; do
3454 LIBS
="-l$i $ac_func_search_save_LIBS"
3455 cat > conftest.
$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 /* Override any gcc2 internal prototype to avoid an error. */
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3461 char gethostbyname();
3467 if { (eval echo configure
:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3469 ac_cv_search_gethostbyname
="-l$i"
3472 echo "configure: failed program was:" >&5
3473 cat conftest.
$ac_ext >&5
3477 LIBS
="$ac_func_search_save_LIBS"
3480 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3481 if test "$ac_cv_search_gethostbyname" != "no"; then
3482 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3487 # Unfortunately libsocket sometimes depends on libnsl and
3488 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3489 if test "$ac_cv_search_gethostbyname" = "no"
3491 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3492 echo "configure:3493: checking for gethostbyname in -lsocket" >&5
3493 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 ac_save_LIBS
="$LIBS"
3498 LIBS
="-lsocket -lnsl $LIBS"
3499 cat > conftest.
$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3505 char gethostbyname();
3511 if { (eval echo configure
:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3513 eval "ac_cv_lib_$ac_lib_var=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.
$ac_ext >&5
3518 eval "ac_cv_lib_$ac_lib_var=no"
3521 LIBS
="$ac_save_LIBS"
3524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3526 LIBS
="-lsocket -lnsl $LIBS"
3528 echo "$ac_t""no" 1>&6
3533 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
3534 echo "configure:3535: checking for library containing socket" >&5
3535 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 ac_func_search_save_LIBS
="$LIBS"
3539 ac_cv_search_socket
="no"
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3552 if { (eval echo configure
:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3554 ac_cv_search_socket
="none required"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3560 test "$ac_cv_search_socket" = "no" && for i
in socket
; do
3561 LIBS
="-l$i $ac_func_search_save_LIBS"
3562 cat > conftest.
$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 /* Override any gcc2 internal prototype to avoid an error. */
3566 /* We use char because int might match the return type of a gcc2
3567 builtin and then its argument prototype would still apply. */
3574 if { (eval echo configure
:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3576 ac_cv_search_socket
="-l$i"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.
$ac_ext >&5
3584 LIBS
="$ac_func_search_save_LIBS"
3587 echo "$ac_t""$ac_cv_search_socket" 1>&6
3588 if test "$ac_cv_search_socket" != "no"; then
3589 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
3592 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3593 echo "configure:3594: checking for socket in -lsocket" >&5
3594 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 ac_save_LIBS
="$LIBS"
3599 LIBS
="-lsocket -lnsl $LIBS"
3600 cat > conftest.
$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* Override any gcc2 internal prototype to avoid an error. */
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3612 if { (eval echo configure
:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3614 eval "ac_cv_lib_$ac_lib_var=yes"
3616 echo "configure: failed program was:" >&5
3617 cat conftest.
$ac_ext >&5
3619 eval "ac_cv_lib_$ac_lib_var=no"
3622 LIBS
="$ac_save_LIBS"
3625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3626 echo "$ac_t""yes" 1>&6
3627 LIBS
="-lsocket -lnsl $LIBS"
3629 echo "$ac_t""no" 1>&6
3633 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3635 echo $ac_n "checking for library containing putmsg""... $ac_c" 1>&6
3636 echo "configure:3637: checking for library containing putmsg" >&5
3637 if eval "test \"`echo '$''{'ac_cv_search_putmsg'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 ac_func_search_save_LIBS
="$LIBS"
3641 ac_cv_search_putmsg
="no"
3642 cat > conftest.
$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 /* We use char because int might match the return type of a gcc2
3647 builtin and then its argument prototype would still apply. */
3654 if { (eval echo configure
:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3656 ac_cv_search_putmsg
="none required"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.
$ac_ext >&5
3662 test "$ac_cv_search_putmsg" = "no" && for i
in str
; do
3663 LIBS
="-l$i $ac_func_search_save_LIBS"
3664 cat > conftest.
$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 /* Override any gcc2 internal prototype to avoid an error. */
3668 /* We use char because int might match the return type of a gcc2
3669 builtin and then its argument prototype would still apply. */
3676 if { (eval echo configure
:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3678 ac_cv_search_putmsg
="-l$i"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.
$ac_ext >&5
3686 LIBS
="$ac_func_search_save_LIBS"
3689 echo "$ac_t""$ac_cv_search_putmsg" 1>&6
3690 if test "$ac_cv_search_putmsg" != "no"; then
3691 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
3699 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3700 if test -f $pfopen ; then
3701 for ac_func
in pfopen
3703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3704 echo "configure:3705: checking for $ac_func" >&5
3705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 cat > conftest.
$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 /* System header to define __stub macros and hopefully few prototypes,
3712 which can conflict with char $ac_func(); below. */
3714 /* Override any gcc2 internal prototype to avoid an error. */
3715 /* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3721 /* The GNU C library defines this for functions which it implements
3722 to always fail with ENOSYS. Some functions are actually named
3723 something starting with __ and the normal name is an alias. */
3724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3732 if { (eval echo configure
:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3734 eval "ac_cv_func_$ac_func=yes"
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3739 eval "ac_cv_func_$ac_func=no"
3744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3747 cat >> confdefs.h
<<EOF
3748 #define $ac_tr_func 1
3752 echo "$ac_t""no" 1>&6
3756 if test $ac_cv_func_pfopen = "no" ; then
3757 echo "$ac_t""Using $pfopen" 1>&6
3758 LIBS
="$LIBS $pfopen"
3761 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3762 echo "configure:3763: checking for local pcap library" >&5
3765 places
=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
3766 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3767 for dir
in $places ..
/libpcap libpcap
; do
3768 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3769 if test $lastdir = $basedir ; then
3773 if test -r $dir/libpcap.a
; then
3774 libpcap
=$dir/libpcap.a
3778 if test $libpcap = FAIL
; then
3779 echo "$ac_t""not found" 1>&6
3780 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3781 echo "configure:3782: checking for main in -lpcap" >&5
3782 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3786 ac_save_LIBS
="$LIBS"
3788 cat > conftest.
$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3796 if { (eval echo configure
:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3798 eval "ac_cv_lib_$ac_lib_var=yes"
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 eval "ac_cv_lib_$ac_lib_var=no"
3806 LIBS
="$ac_save_LIBS"
3809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3813 echo "$ac_t""no" 1>&6
3816 if test $libpcap = FAIL
; then
3817 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3821 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3822 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3823 if test -r $d/pcap.h
; then
3824 V_INCLS
="-I$d $V_INCLS"
3825 elif test -r $places/pcap.h
; then
3826 V_INCLS
="-I$places $V_INCLS"
3828 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3830 echo "$ac_t""$libpcap" 1>&6
3832 LIBS
="$libpcap $LIBS"
3836 pseexe
="/lib/pse.exp"
3837 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3838 echo "configure:3839: checking for $pseexe" >&5
3839 if test -f $pseexe ; then
3840 echo "$ac_t""yes" 1>&6
3841 LIBS
="$LIBS -I:$pseexe"
3846 for ac_func
in bpf_dump
3848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3849 echo "configure:3850: checking for $ac_func" >&5
3850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 cat > conftest.
$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 /* System header to define __stub macros and hopefully few prototypes,
3857 which can conflict with char $ac_func(); below. */
3859 /* Override any gcc2 internal prototype to avoid an error. */
3860 /* We use char because int might match the return type of a gcc2
3861 builtin and then its argument prototype would still apply. */
3866 /* The GNU C library defines this for functions which it implements
3867 to always fail with ENOSYS. Some functions are actually named
3868 something starting with __ and the normal name is an alias. */
3869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3877 if { (eval echo configure
:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3879 eval "ac_cv_func_$ac_func=yes"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.
$ac_ext >&5
3884 eval "ac_cv_func_$ac_func=no"
3889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3892 cat >> confdefs.h
<<EOF
3893 #define $ac_tr_func 1
3897 echo "$ac_t""no" 1>&6
3898 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3904 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
3910 cat >> confdefs.h
<<\EOF
3929 if test -f /dev
/bpf0
; then
3933 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
3934 echo "configure:3935: checking for u_int8_t using $CC" >&5
3935 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3942 # include "confdefs.h"
3943 # include <sys/types.h>
3945 # include <stdlib.h>
3946 # include <stddef.h>
3952 if { (eval echo configure
:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 ac_cv_lbl_have_u_int8_t
=yes
3956 echo "configure: failed program was:" >&5
3957 cat conftest.
$ac_ext >&5
3959 ac_cv_lbl_have_u_int8_t
=no
3964 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
3965 if test $ac_cv_lbl_have_u_int8_t = no
; then
3966 cat >> confdefs.h
<<\EOF
3967 #define u_int8_t u_char
3971 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
3972 echo "configure:3973: checking for int16_t using $CC" >&5
3973 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3980 # include "confdefs.h"
3981 # include <sys/types.h>
3983 # include <stdlib.h>
3984 # include <stddef.h>
3990 if { (eval echo configure
:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3992 ac_cv_lbl_have_int16_t
=yes
3994 echo "configure: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 ac_cv_lbl_have_int16_t
=no
4002 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
4003 if test $ac_cv_lbl_have_int16_t = no
; then
4004 cat >> confdefs.h
<<\EOF
4005 #define int16_t short
4009 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
4010 echo "configure:4011: checking for u_int16_t using $CC" >&5
4011 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 cat > conftest.
$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4018 # include "confdefs.h"
4019 # include <sys/types.h>
4021 # include <stdlib.h>
4022 # include <stddef.h>
4028 if { (eval echo configure
:4029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4030 ac_cv_lbl_have_u_int16_t
=yes
4032 echo "configure: failed program was:" >&5
4033 cat conftest.
$ac_ext >&5
4035 ac_cv_lbl_have_u_int16_t
=no
4040 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
4041 if test $ac_cv_lbl_have_u_int16_t = no
; then
4042 cat >> confdefs.h
<<\EOF
4043 #define u_int16_t u_short
4047 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
4048 echo "configure:4049: checking for int32_t using $CC" >&5
4049 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.
$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4056 # include "confdefs.h"
4057 # include <sys/types.h>
4059 # include <stdlib.h>
4060 # include <stddef.h>
4066 if { (eval echo configure
:4067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4068 ac_cv_lbl_have_int32_t
=yes
4070 echo "configure: failed program was:" >&5
4071 cat conftest.
$ac_ext >&5
4073 ac_cv_lbl_have_int32_t
=no
4078 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
4079 if test $ac_cv_lbl_have_int32_t = no
; then
4080 cat >> confdefs.h
<<\EOF
4085 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
4086 echo "configure:4087: checking for u_int32_t using $CC" >&5
4087 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.
$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4094 # include "confdefs.h"
4095 # include <sys/types.h>
4097 # include <stdlib.h>
4098 # include <stddef.h>
4104 if { (eval echo configure
:4105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4106 ac_cv_lbl_have_u_int32_t
=yes
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 ac_cv_lbl_have_u_int32_t
=no
4116 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
4117 if test $ac_cv_lbl_have_u_int32_t = no
; then
4118 cat >> confdefs.h
<<\EOF
4119 #define u_int32_t u_int
4125 if test "${LBL_CFLAGS+set}" = set; then
4126 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
4128 if test -f .devel
; then
4129 if test "$GCC" = yes ; then
4130 if test "${LBL_CFLAGS+set}" != set; then
4131 if test "$ac_cv_prog_cc_g" = yes ; then
4132 V_CCOPT
="-g $V_CCOPT"
4134 V_CCOPT
="$V_CCOPT -Wall"
4135 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4136 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
4143 V_CCOPT
="$V_CCOPT -n32"
4150 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4152 if test -f $name ; then
4153 ln -s $name os-proto.h
4154 cat >> confdefs.h
<<\EOF
4155 #define HAVE_OS_PROTO_H 1
4159 echo "configure: warning: can't find $name" 1>&2
4163 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4164 echo "configure:4165: checking if sockaddr struct has sa_len member" >&5
4165 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 cat > conftest.
$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4172 # include <sys/types.h>
4173 # include <sys/socket.h>
4175 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4178 if { (eval echo configure
:4179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4180 ac_cv_lbl_sockaddr_has_sa_len
=yes
4182 echo "configure: failed program was:" >&5
4183 cat conftest.
$ac_ext >&5
4185 ac_cv_lbl_sockaddr_has_sa_len
=no
4190 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4191 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4192 cat >> confdefs.h
<<\EOF
4193 #define HAVE_SOCKADDR_SA_LEN 1
4198 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4199 echo "configure:4200: checking if unaligned accesses fail" >&5
4200 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4205 # XXX: should also check that they don't do weird things (like on arm)
4206 alpha
*|arm
*|hp
*|mips
*|sparc
*|ia64
)
4207 ac_cv_lbl_unaligned_fail
=yes
4211 cat >conftest.c
<<EOF
4212 # include <sys/types.h>
4213 # include <sys/wait.h>
4215 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4220 /* avoid "core dumped" message */
4226 pid = waitpid(pid, &status, 0);
4229 exit(!WIFEXITED(status));
4232 i = *(unsigned int *)&a[1];
4237 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4238 conftest.c
$LIBS >/dev
/null
2>&1
4239 if test ! -x conftest
; then
4240 ac_cv_lbl_unaligned_fail
=yes
4242 .
/conftest
>conftest.out
4243 if test ! -s conftest.out
; then
4244 ac_cv_lbl_unaligned_fail
=yes
4246 ac_cv_lbl_unaligned_fail
=no
4249 rm -f conftest
* core core.conftest
4254 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4255 if test $ac_cv_lbl_unaligned_fail = yes ; then
4256 cat >> confdefs.h
<<\EOF
4263 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4264 echo "configure:4265: checking for h_errno" >&5
4265 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4268 cat > conftest.
$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4272 # include <sys/types.h>
4278 if { (eval echo configure
:4279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4280 ac_cv_var_h_errno
=yes
4282 echo "configure: failed program was:" >&5
4283 cat conftest.
$ac_ext >&5
4285 ac_cv_var_h_errno
=no
4290 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4291 if test "$ac_cv_var_h_errno" = "yes"; then
4292 cat >> confdefs.h
<<\EOF
4293 #define HAVE_H_ERRNO 1
4299 # Check whether --with-crypto or --without-crypto was given.
4300 if test "${with_crypto+set}" = set; then
4301 withval
="$with_crypto"
4305 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4306 echo "configure:4307: checking for SSLeay" >&5
4307 ac_cv_ssleay_path
=no
4309 for dir
in /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4310 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4311 ac_cv_ssleay_path
=$dir
4313 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4314 incdir
="-I$dir/include"
4316 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4319 ac_cv_ssleay_path
=no
4323 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4324 if test "$ac_cv_ssleay_path" != no
; then
4325 V_INCLS
="$V_INCLS $incdir"
4326 LDFLAGS
="-L$dir/lib $LDFLAGS"
4327 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4328 LIBS
="$LIBS -lRSAglue"
4330 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4331 LIBS
="$LIBS -lrsaref"
4333 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4334 echo "configure:4335: checking for des_cbc_encrypt in -lcrypto" >&5
4335 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 ac_save_LIBS
="$LIBS"
4340 LIBS
="-lcrypto $LIBS"
4341 cat > conftest.
$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4347 char des_cbc_encrypt();
4353 if { (eval echo configure
:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4355 eval "ac_cv_lib_$ac_lib_var=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.
$ac_ext >&5
4360 eval "ac_cv_lib_$ac_lib_var=no"
4363 LIBS
="$ac_save_LIBS"
4366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4368 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4370 cat >> confdefs.h
<<EOF
4371 #define $ac_tr_lib 1
4374 LIBS
="-lcrypto $LIBS"
4377 echo "$ac_t""no" 1>&6
4381 bak_CPPFLAGS
=$CPPFLAGS
4382 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4383 for ac_hdr
in cast.h
4385 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4387 echo "configure:4388: checking for $ac_hdr" >&5
4388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4391 cat > conftest.
$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4396 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4397 { (eval echo configure
:4398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4398 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4399 if test -z "$ac_err"; then
4401 eval "ac_cv_header_$ac_safe=yes"
4404 echo "configure: failed program was:" >&5
4405 cat conftest.
$ac_ext >&5
4407 eval "ac_cv_header_$ac_safe=no"
4411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4414 cat >> confdefs.h
<<EOF
4415 #define $ac_tr_hdr 1
4419 echo "$ac_t""no" 1>&6
4424 if test "$ac_cv_header_cast_h" = "yes"; then
4425 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4426 echo "configure:4427: checking for buggy CAST128" >&5
4427 if test "$cross_compiling" = yes; then
4428 buggy_cast128
="cross-compiling, assume yes"
4430 cat > conftest.
$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4437 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
4438 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
4439 unsigned char out[sizeof(in)];
4440 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
4442 CAST_set_key(&ks, sizeof(key), key);
4443 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
4444 if (memcmp(out, ok, sizeof(ok)) != 0)
4450 if { (eval echo configure
:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4462 echo "$ac_t""$buggy_cast128" 1>&6
4463 if test "$buggy_cast128" != no
; then
4464 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4465 echo "disabling CAST128 support."
4466 cat >> confdefs.h
<<\EOF
4467 #define HAVE_BUGGY_CAST128 1
4473 CPPFLAGS
=$bak_CPPFLAGS
4480 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4482 echo "configure:4483: checking for $ac_hdr" >&5
4483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 cat > conftest.
$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4491 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4492 { (eval echo configure
:4493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4493 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4494 if test -z "$ac_err"; then
4496 eval "ac_cv_header_$ac_safe=yes"
4499 echo "configure: failed program was:" >&5
4500 cat conftest.
$ac_ext >&5
4502 eval "ac_cv_header_$ac_safe=no"
4506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4507 echo "$ac_t""yes" 1>&6
4508 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4509 cat >> confdefs.h
<<EOF
4510 #define $ac_tr_hdr 1
4514 echo "$ac_t""no" 1>&6
4525 # Find a good install program. We prefer a C program (faster),
4526 # so one script is as good as another. But avoid the broken or
4527 # incompatible versions:
4528 # SysV /etc/install, /usr/sbin/install
4529 # SunOS /usr/etc/install
4530 # IRIX /sbin/install
4532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4535 # ./install, which can be erroneously created by make from ./install.sh.
4536 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4537 echo "configure:4538: checking for a BSD compatible install" >&5
4538 if test -z "$INSTALL"; then
4539 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4543 for ac_dir
in $PATH; do
4544 # Account for people who put trailing slashes in PATH elements.
4546 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4548 # OSF1 and SCO ODT 3.0 have their own names for install.
4549 # Don't use installbsd from OSF since it installs stuff as root
4551 for ac_prog
in ginstall scoinst
install; do
4552 if test -f $ac_dir/$ac_prog; then
4553 if test $ac_prog = install &&
4554 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4555 # AIX install. It has an incompatible calling convention.
4558 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4569 if test "${ac_cv_path_install+set}" = set; then
4570 INSTALL
="$ac_cv_path_install"
4572 # As a last resort, use the slow shell script. We don't cache a
4573 # path for INSTALL within a source directory, because that will
4574 # break other packages using the cache if that directory is
4575 # removed, or if the path is relative.
4576 INSTALL
="$ac_install_sh"
4579 echo "$ac_t""$INSTALL" 1>&6
4581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4582 # It thinks the first close brace ends the variable substitution.
4583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4587 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4594 cat > confcache
<<\EOF
4595 # This file is a shell script that caches the results of configure
4596 # tests run on this system so they can be shared between configure
4597 # scripts and configure runs. It is not useful on other systems.
4598 # If it contains results you don't want to keep, you may remove or edit it.
4600 # By default, configure uses ./config.cache as the cache file,
4601 # creating it if it does not exist already. You can give configure
4602 # the --cache-file=FILE option to use a different cache file; that is
4603 # what configure does when it calls configure scripts in
4604 # subdirectories, so they share the cache.
4605 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4606 # config.status only pays attention to the cache file if you give it the
4607 # --recheck option to rerun configure.
4610 # The following way of writing the cache mishandles newlines in values,
4611 # but we know of no workaround that is simple, portable, and efficient.
4612 # So, don't put newlines in cache variables' values.
4613 # Ultrix sh set writes to stderr and can't be redirected directly,
4614 # and sets the high bit in the cache file unless we assign to the vars.
4616 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4618 # `set' does not quote correctly, so add quotes (double-quote substitution
4619 # turns \\\\ into \\, and sed turns \\ into \).
4621 -e "s/'/'\\\\''/g" \
4622 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4625 # `set' quotes correctly as required by POSIX, so do not add quotes.
4626 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4629 if cmp -s $cache_file confcache
; then
4632 if test -w $cache_file; then
4633 echo "updating cache $cache_file"
4634 cat confcache
> $cache_file
4636 echo "not updating unwritable cache $cache_file"
4641 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4643 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4644 # Let make expand exec_prefix.
4645 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4647 # Any assignment to VPATH causes Sun make to only execute
4648 # the first set of double-colon rules, so remove it if not needed.
4649 # If there is a colon in the path, we need to keep it.
4650 if test "x$srcdir" = x.
; then
4651 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4654 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4656 DEFS
=-DHAVE_CONFIG_H
4658 # Without the "./", some shells look in PATH for config.status.
4659 : ${CONFIG_STATUS=./config.status}
4661 echo creating
$CONFIG_STATUS
4662 rm -f $CONFIG_STATUS
4663 cat > $CONFIG_STATUS <<EOF
4665 # Generated automatically by configure.
4666 # Run this file to recreate the current configuration.
4667 # This directory was configured as follows,
4668 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4670 # $0 $ac_configure_args
4672 # Compiler output produced by configure, useful for debugging
4673 # configure, is in ./config.log if it exists.
4675 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4678 case "\$ac_option" in
4679 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4680 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4681 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4682 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4683 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4685 -help | --help | --hel | --he | --h)
4686 echo "\$ac_cs_usage"; exit 0 ;;
4687 *) echo "\$ac_cs_usage"; exit 1 ;;
4691 ac_given_srcdir=$srcdir
4692 ac_given_INSTALL="$INSTALL"
4694 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4696 cat >> $CONFIG_STATUS <<EOF
4698 # Protect against being on the right side of a sed subst in config.status.
4699 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4700 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4704 s%@CFLAGS@%$CFLAGS%g
4705 s%@CPPFLAGS@%$CPPFLAGS%g
4706 s%@CXXFLAGS@%$CXXFLAGS%g
4707 s%@FFLAGS@%$FFLAGS%g
4709 s%@LDFLAGS@%$LDFLAGS%g
4711 s%@exec_prefix@%$exec_prefix%g
4712 s%@prefix@%$prefix%g
4713 s%@program_transform_name@%$program_transform_name%g
4714 s%@bindir@%$bindir%g
4715 s%@sbindir@%$sbindir%g
4716 s%@libexecdir@%$libexecdir%g
4717 s%@datadir@%$datadir%g
4718 s%@sysconfdir@%$sysconfdir%g
4719 s%@sharedstatedir@%$sharedstatedir%g
4720 s%@localstatedir@%$localstatedir%g
4721 s%@libdir@%$libdir%g
4722 s%@includedir@%$includedir%g
4723 s%@oldincludedir@%$oldincludedir%g
4724 s%@infodir@%$infodir%g
4725 s%@mandir@%$mandir%g
4727 s%@host_alias@%$host_alias%g
4728 s%@host_cpu@%$host_cpu%g
4729 s%@host_vendor@%$host_vendor%g
4730 s%@host_os@%$host_os%g
4731 s%@SHLICC2@%$SHLICC2%g
4734 s%@LIBOBJS@%$LIBOBJS%g
4735 s%@V_CCOPT@%$V_CCOPT%g
4736 s%@V_GROUP@%$V_GROUP%g
4737 s%@V_INCLS@%$V_INCLS%g
4738 s%@V_PCAPDEP@%$V_PCAPDEP%g
4739 s%@LOCALSRC@%$LOCALSRC%g
4740 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4741 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4742 s%@INSTALL_DATA@%$INSTALL_DATA%g
4747 cat >> $CONFIG_STATUS <<\EOF
4749 # Split the substitutions into bite-sized pieces for seds with
4750 # small command number limits, like on Digital OSF/1 and HP-UX.
4751 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4752 ac_file
=1 # Number of current file.
4753 ac_beg
=1 # First line for current file.
4754 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4757 while $ac_more_lines; do
4758 if test $ac_beg -gt 1; then
4759 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4761 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4763 if test ! -s conftest.s
$ac_file; then
4765 rm -f conftest.s
$ac_file
4767 if test -z "$ac_sed_cmds"; then
4768 ac_sed_cmds
="sed -f conftest.s$ac_file"
4770 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4772 ac_file
=`expr $ac_file + 1`
4774 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4777 if test -z "$ac_sed_cmds"; then
4782 cat >> $CONFIG_STATUS <<EOF
4784 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4786 cat >> $CONFIG_STATUS <<\EOF
4787 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4788 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4790 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4791 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4792 *) ac_file_in
="${ac_file}.in" ;;
4795 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4797 # Remove last slash and all that follows it. Not all systems have dirname.
4798 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4799 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4800 # The file is in a subdirectory.
4801 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4802 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4803 # A "../" for each directory in $ac_dir_suffix.
4804 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4806 ac_dir_suffix
= ac_dots
=
4809 case "$ac_given_srcdir" in
4811 if test -z "$ac_dots"; then top_srcdir
=.
4812 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4813 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4815 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4816 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4819 case "$ac_given_INSTALL" in
4820 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4821 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4824 echo creating
"$ac_file"
4826 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4828 *Makefile
*) ac_comsub
="1i\\
4829 # $configure_input" ;;
4833 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4835 s%@configure_input@%$configure_input%g
4836 s%@srcdir@%$srcdir%g
4837 s%@top_srcdir@%$top_srcdir%g
4838 s%@INSTALL@%$INSTALL%g
4839 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4843 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4844 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4846 # ac_d sets the value in "#define NAME VALUE" lines.
4847 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4848 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4851 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4852 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4853 ac_uB
='\([ ]\)%\1#\2define\3'
4856 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4857 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4858 ac_eB
='$%\1#\2define\3'
4862 if test "${CONFIG_HEADERS+set}" != set; then
4864 cat >> $CONFIG_STATUS <<EOF
4865 CONFIG_HEADERS="config.h"
4867 cat >> $CONFIG_STATUS <<\EOF
4869 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4870 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4872 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4873 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4874 *) ac_file_in
="${ac_file}.in" ;;
4877 echo creating
$ac_file
4879 rm -f conftest.frag conftest.
in conftest.out
4880 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4881 cat $ac_file_inputs > conftest.
in
4885 # Transform confdefs.h into a sed script conftest.vals that substitutes
4886 # the proper values into config.h.in to produce config.h. And first:
4887 # Protect against being on the right side of a sed subst in config.status.
4888 # Protect against being in an unquoted here document in config.status.
4890 cat > conftest.hdr
<<\EOF
4893 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4897 sed -n -f conftest.hdr confdefs.h > conftest.vals
4900 # This sed command replaces #undef with comments. This is necessary, for
4901 # example, in the case of _POSIX_SOURCE, which is predefined and required
4902 # on some systems where configure will not decide to define it.
4903 cat >> conftest.vals <<\EOF
4904 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4907 # Break up conftest.vals because some shells have a limit on
4908 # the size of here documents, and old seds have small limits too.
4913 ac_lines=`grep -c . conftest.vals
`
4914 # grep -c gives empty output for an empty file on some AIX systems.
4915 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4916 # Write a limited-size here document to conftest.frag.
4917 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4918 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4920 sed -f conftest.frag conftest.in > conftest.out
4922 mv conftest.out conftest.in
4924 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4926 mv conftest.tail conftest.vals
4930 cat >> $CONFIG_STATUS <<\EOF
4931 rm -f conftest.frag conftest.h
4932 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4933 cat conftest.in >> conftest.h
4935 if cmp -s $ac_file conftest.h 2>/dev/null; then
4936 echo "$ac_file is unchanged"
4939 # Remove last slash and all that follows it. Not all systems have dirname.
4940 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4941 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4942 # The file is in a subdirectory.
4943 test ! -d "$ac_dir" && mkdir "$ac_dir"
4946 mv conftest.h $ac_file
4951 cat >> $CONFIG_STATUS <<EOF
4955 cat >> $CONFIG_STATUS <<\EOF
4956 if test -f .devel; then
4957 echo timestamp > stamp-h
4958 cat Makefile-devel-adds >> Makefile
4964 chmod +x $CONFIG_STATUS
4965 rm -fr confdefs* $ac_clean_files
4966 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1