3 # From configure.in Revision: 1.141
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-ipv6 enable ipv6 (with ipv4) support
80 --disable-ipv6 disable ipv6 support"
82 --without-crypto disable crypto support"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
88 cache_file
=.
/config.cache
97 program_transform_name
=s
,x
,x
,
105 bindir
='${exec_prefix}/bin'
106 sbindir
='${exec_prefix}/sbin'
107 libexecdir
='${exec_prefix}/libexec'
108 datadir
='${prefix}/share'
109 sysconfdir
='${prefix}/etc'
110 sharedstatedir
='${prefix}/com'
111 localstatedir
='${prefix}/var'
112 libdir
='${exec_prefix}/lib'
113 includedir
='${prefix}/include'
114 oldincludedir
='/usr/include'
115 infodir
='${prefix}/info'
116 mandir
='${prefix}/man'
118 # Initialize some other variables.
121 SHELL
=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
147 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
148 bindir
="$ac_optarg" ;;
150 -build |
--build |
--buil |
--bui |
--bu)
152 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
153 build
="$ac_optarg" ;;
155 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
156 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
157 ac_prev
=cache_file
;;
158 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
159 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
160 cache_file
="$ac_optarg" ;;
162 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
164 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
166 datadir
="$ac_optarg" ;;
168 -disable-* |
--disable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* |
--enable-*)
178 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
191 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
192 |
--exec |
--exe |
--ex)
193 ac_prev
=exec_prefix
;;
194 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
195 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
196 |
--exec=* |
--exe=* |
--ex=*)
197 exec_prefix
="$ac_optarg" ;;
199 -gas |
--gas |
--ga |
--g)
200 # Obsolete; use --with-gas.
203 -help |
--help |
--hel |
--he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host |
--host |
--hos |
--ho)
260 -host=* |
--host=* |
--hos=* |
--ho=*)
263 -includedir |
--includedir |
--includedi |
--included |
--include \
264 |
--includ |
--inclu |
--incl |
--inc)
265 ac_prev
=includedir
;;
266 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
267 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
268 includedir
="$ac_optarg" ;;
270 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
272 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
273 infodir
="$ac_optarg" ;;
275 -libdir |
--libdir |
--libdi |
--libd)
277 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
278 libdir
="$ac_optarg" ;;
280 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
281 |
--libexe |
--libex |
--libe)
282 ac_prev
=libexecdir
;;
283 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
284 |
--libexe=* |
--libex=* |
--libe=*)
285 libexecdir
="$ac_optarg" ;;
287 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
288 |
--localstate |
--localstat |
--localsta |
--localst \
289 |
--locals |
--local |
--loca |
--loc |
--lo)
290 ac_prev
=localstatedir
;;
291 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
292 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
293 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
294 localstatedir
="$ac_optarg" ;;
296 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
298 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
299 mandir
="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
309 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
310 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
313 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
314 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
315 |
--oldin |
--oldi |
--old |
--ol |
--o)
316 ac_prev
=oldincludedir
;;
317 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
318 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
319 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
320 oldincludedir
="$ac_optarg" ;;
322 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
324 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
325 prefix
="$ac_optarg" ;;
327 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
328 |
--program-pre |
--program-pr |
--program-p)
329 ac_prev
=program_prefix
;;
330 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
331 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
332 program_prefix
="$ac_optarg" ;;
334 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
335 |
--program-suf |
--program-su |
--program-s)
336 ac_prev
=program_suffix
;;
337 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
338 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
339 program_suffix
="$ac_optarg" ;;
341 -program-transform-name |
--program-transform-name \
342 |
--program-transform-nam |
--program-transform-na \
343 |
--program-transform-n |
--program-transform- \
344 |
--program-transform |
--program-transfor \
345 |
--program-transfo |
--program-transf \
346 |
--program-trans |
--program-tran \
347 |
--progr-tra |
--program-tr |
--program-t)
348 ac_prev
=program_transform_name
;;
349 -program-transform-name=* |
--program-transform-name=* \
350 |
--program-transform-nam=* |
--program-transform-na=* \
351 |
--program-transform-n=* |
--program-transform-=* \
352 |
--program-transform=* |
--program-transfor=* \
353 |
--program-transfo=* |
--program-transf=* \
354 |
--program-trans=* |
--program-tran=* \
355 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
356 program_transform_name
="$ac_optarg" ;;
358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
359 |
-silent |
--silent |
--silen |
--sile |
--sil)
362 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
364 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
366 sbindir
="$ac_optarg" ;;
368 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
369 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
370 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
372 ac_prev
=sharedstatedir
;;
373 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
374 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
375 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
377 sharedstatedir
="$ac_optarg" ;;
379 -site |
--site |
--sit)
381 -site=* |
--site=* |
--sit=*)
384 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
386 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
387 srcdir
="$ac_optarg" ;;
389 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
390 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
391 ac_prev
=sysconfdir
;;
392 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
393 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
394 sysconfdir
="$ac_optarg" ;;
396 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
398 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
399 target
="$ac_optarg" ;;
401 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
404 -version |
--version |
--versio |
--versi |
--vers)
405 echo "configure generated by autoconf version 2.13"
409 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* |
--without-*)
422 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package
=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
431 # Obsolete; use --with-x.
434 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
435 |
--x-incl |
--x-inc |
--x-in |
--x-i)
436 ac_prev
=x_includes
;;
437 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
438 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
439 x_includes
="$ac_optarg" ;;
441 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
442 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
443 ac_prev
=x_libraries
;;
444 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
445 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
446 x_libraries
="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE
; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
496 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
497 |
--no-cr |
--no-c) ;;
498 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
499 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
500 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest
* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file
=tcpdump.c
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted
=yes
528 # Try the directory containing this script, then its parent.
530 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
533 if test ! -r $srcdir/$ac_unique_file; then
537 ac_srcdir_defaulted
=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE
; then
551 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
553 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file
in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp
='$CPP $CPPFLAGS'
574 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling
=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
589 ac_n
= ac_c
='\c' ac_t
=
595 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
596 if test -f $ac_dir/install-sh
; then
598 ac_install_sh
="$ac_aux_dir/install-sh -c"
600 elif test -f $ac_dir/install.sh
; then
602 ac_install_sh
="$ac_aux_dir/install.sh -c"
606 if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
609 ac_config_guess
=$ac_aux_dir/config.guess
610 ac_config_sub
=$ac_aux_dir/config.sub
611 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
614 # Do some error checking and defaulting for the host and target type.
616 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
619 # 1. You are not allowed to specify --host, --target, and nonopt at the
621 # 2. Host defaults to nonopt.
622 # 3. If nonopt is not specified, then host defaults to the current host,
623 # as determined by config.guess.
624 # 4. Target and build default to nonopt.
625 # 5. If nonopt is not specified, then target and build default to host.
627 # The aliases save the names the user supplied, while $host etc.
628 # will get canonicalized.
629 case $host---$target---$nonopt in
630 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
631 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
635 # Make sure we can run config.sub.
636 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
637 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
640 echo $ac_n "checking host system type""... $ac_c" 1>&6
641 echo "configure:642: checking host system type" >&5
644 case "$host_alias" in
648 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
649 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
651 *) host_alias
=$nonopt ;;
655 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
656 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
659 echo "$ac_t""$host" 1>&6
661 echo $ac_n "checking target system type""... $ac_c" 1>&6
662 echo "configure:663: checking target system type" >&5
665 case "$target_alias" in
668 NONE
) target_alias
=$host_alias ;;
669 *) target_alias
=$nonopt ;;
673 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
674 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$target" 1>&6
679 echo $ac_n "checking build system type""... $ac_c" 1>&6
680 echo "configure:681: checking build system type" >&5
683 case "$build_alias" in
686 NONE
) build_alias
=$host_alias ;;
687 *) build_alias
=$nonopt ;;
691 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
692 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$build" 1>&6
697 test "$host_alias" != "$target_alias" &&
698 test "$program_prefix$program_suffix$program_transform_name" = \
700 program_prefix
=${target_alias}-
707 # Check whether --with-gcc or --without-gcc was given.
708 if test "${with_gcc+set}" = set; then
715 if test "${srcdir}" != "." ; then
716 V_INCLS
="-I\$(srcdir)"
718 if test "${CFLAGS+set}" = set; then
721 if test -z "$CC" ; then
725 # Extract the first word of "shlicc2", so it can be a program name with args.
726 set dummy shlicc2
; ac_word
=$2
727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
728 echo "configure:729: checking for $ac_word" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
732 if test -n "$SHLICC2"; then
733 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
735 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
737 for ac_dir
in $ac_dummy; do
738 test -z "$ac_dir" && ac_dir
=.
739 if test -f $ac_dir/$ac_word; then
740 ac_cv_prog_SHLICC2
="yes"
745 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
748 SHLICC2
="$ac_cv_prog_SHLICC2"
749 if test -n "$SHLICC2"; then
750 echo "$ac_t""$SHLICC2" 1>&6
752 echo "$ac_t""no" 1>&6
755 if test $SHLICC2 = yes ; then
762 if test -z "$CC" -a "$with_gcc" = no
; then
766 # Extract the first word of "gcc", so it can be a program name with args.
767 set dummy gcc
; ac_word
=$2
768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769 echo "configure:770: checking for $ac_word" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 if test -n "$CC"; then
774 ac_cv_prog_CC
="$CC" # Let the user override the test.
776 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
778 for ac_dir
in $ac_dummy; do
779 test -z "$ac_dir" && ac_dir
=.
780 if test -f $ac_dir/$ac_word; then
789 if test -n "$CC"; then
790 echo "$ac_t""$CC" 1>&6
792 echo "$ac_t""no" 1>&6
795 if test -z "$CC"; then
796 # Extract the first word of "cc", so it can be a program name with args.
797 set dummy cc
; ac_word
=$2
798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
799 echo "configure:800: checking for $ac_word" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 if test -n "$CC"; then
804 ac_cv_prog_CC
="$CC" # Let the user override the test.
806 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
809 for ac_dir
in $ac_dummy; do
810 test -z "$ac_dir" && ac_dir
=.
811 if test -f $ac_dir/$ac_word; then
812 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
821 if test $ac_prog_rejected = yes; then
822 # We found a bogon in the path, so make sure we never use it.
823 set dummy
$ac_cv_prog_CC
825 if test $# -gt 0; then
826 # We chose a different compiler from the bogus one.
827 # However, it has the same basename, so the bogon will be chosen
828 # first if we set CC to just the basename; use the full file name.
830 set dummy
"$ac_dir/$ac_word" "$@"
838 if test -n "$CC"; then
839 echo "$ac_t""$CC" 1>&6
841 echo "$ac_t""no" 1>&6
844 if test -z "$CC"; then
847 # Extract the first word of "cl", so it can be a program name with args.
848 set dummy cl
; ac_word
=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 echo "configure:851: checking for $ac_word" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 if test -n "$CC"; then
855 ac_cv_prog_CC
="$CC" # Let the user override the test.
857 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
859 for ac_dir
in $ac_dummy; do
860 test -z "$ac_dir" && ac_dir
=.
861 if test -f $ac_dir/$ac_word; then
870 if test -n "$CC"; then
871 echo "$ac_t""$CC" 1>&6
873 echo "$ac_t""no" 1>&6
878 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
882 echo "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
886 ac_cpp
='$CPP $CPPFLAGS'
887 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
888 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
889 cross_compiling
=$ac_cv_prog_cc_cross
891 cat > conftest.
$ac_ext << EOF
893 #line 894 "configure"
894 #include "confdefs.h"
898 if { (eval echo configure
:899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
899 ac_cv_prog_cc_works
=yes
900 # If we can't run a trivial program, we are probably using a cross compiler.
901 if (.
/conftest
; exit) 2>/dev
/null
; then
902 ac_cv_prog_cc_cross
=no
904 ac_cv_prog_cc_cross
=yes
907 echo "configure: failed program was:" >&5
908 cat conftest.
$ac_ext >&5
909 ac_cv_prog_cc_works
=no
913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
914 ac_cpp
='$CPP $CPPFLAGS'
915 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
916 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
917 cross_compiling
=$ac_cv_prog_cc_cross
919 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
920 if test $ac_cv_prog_cc_works = no
; then
921 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
924 echo "configure:925: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
925 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
926 cross_compiling
=$ac_cv_prog_cc_cross
928 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
929 echo "configure:930: checking whether we are using GNU C" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 cat > conftest.c
<<EOF
938 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
945 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
947 if test $ac_cv_prog_gcc = yes; then
953 ac_test_CFLAGS
="${CFLAGS+set}"
954 ac_save_CFLAGS
="$CFLAGS"
956 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
957 echo "configure:958: checking whether ${CC-cc} accepts -g" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 echo 'void f(){}' > conftest.c
962 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
971 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
972 if test "$ac_test_CFLAGS" = set; then
973 CFLAGS
="$ac_save_CFLAGS"
974 elif test $ac_cv_prog_cc_g = yes; then
975 if test "$GCC" = yes; then
981 if test "$GCC" = yes; then
988 if test "$GCC" = yes ; then
989 if test "$SHLICC2" = yes ; then
993 echo $ac_n "checking gcc version""... $ac_c" 1>&6
994 echo "configure:995: checking gcc version" >&5
995 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
999 sed -e '/^gcc version /!d' \
1000 -e 's/^gcc version //' \
1001 -e 's/ .*//' -e 's/^[^0-9]*//' \
1005 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
1006 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1011 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
1012 echo "configure:1013: checking that $CC handles ansi prototypes" >&5
1013 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 cat > conftest.
$ac_ext <<EOF
1017 #line 1018 "configure"
1018 #include "confdefs.h"
1019 #include <sys/types.h>
1021 int frob(int, char *)
1024 if { (eval echo configure
:1025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1026 ac_cv_lbl_cc_ansi_prototypes
=yes
1028 echo "configure: failed program was:" >&5
1029 cat conftest.
$ac_ext >&5
1031 ac_cv_lbl_cc_ansi_prototypes
=no
1036 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
1037 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
1038 case "$target_os" in
1041 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
1042 echo "configure:1043: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1043 savedcflags
="$CFLAGS"
1044 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
1045 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 cat > conftest.
$ac_ext <<EOF
1049 #line 1050 "configure"
1050 #include "confdefs.h"
1051 #include <sys/types.h>
1053 int frob(int, char *)
1056 if { (eval echo configure
:1057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1058 ac_cv_lbl_cc_hpux_cc_aa
=yes
1060 echo "configure: failed program was:" >&5
1061 cat conftest.
$ac_ext >&5
1063 ac_cv_lbl_cc_hpux_cc_aa
=no
1068 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1069 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1070 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1072 CFLAGS
="$savedcflags"
1073 V_CCOPT
="-Aa $V_CCOPT"
1074 cat >> confdefs.h
<<\EOF
1075 #define _HPUX_SOURCE 1
1081 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1085 V_INCLS
="$V_INCLS -I/usr/local/include"
1086 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1088 case "$target_os" in
1091 V_CCOPT
="$V_CCOPT -xansi -signed -O"
1095 V_CCOPT
="$V_CCOPT -std1 -O"
1099 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1100 echo "configure:1101: checking that Ultrix $CC hacks const in prototypes" >&5
1101 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 cat > conftest.
$ac_ext <<EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1107 #include <sys/types.h>
1109 struct a { int b; };
1110 void c(const struct a *)
1113 if { (eval echo configure
:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1115 ac_cv_lbl_cc_const_proto
=yes
1117 echo "configure: failed program was:" >&5
1118 cat conftest.
$ac_ext >&5
1120 ac_cv_lbl_cc_const_proto
=no
1125 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1126 if test $ac_cv_lbl_cc_const_proto = no
; then
1127 cat >> confdefs.h
<<\EOF
1136 echo $ac_n "checking for inline""... $ac_c" 1>&6
1137 echo "configure:1138: checking for inline" >&5
1138 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1142 for ac_kw
in inline __inline__ __inline
; do
1143 cat > conftest.
$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1151 if { (eval echo configure
:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1153 ac_cv_c_inline
=$ac_kw; break
1155 echo "configure: failed program was:" >&5
1156 cat conftest.
$ac_ext >&5
1163 echo "$ac_t""$ac_cv_c_inline" 1>&6
1164 case "$ac_cv_c_inline" in
1166 no
) cat >> confdefs.h
<<\EOF
1170 *) cat >> confdefs.h
<<EOF
1171 #define inline $ac_cv_c_inline
1177 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1178 echo "configure:1179: checking for __attribute__" >&5
1179 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.
$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1191 static void foo(void) __attribute__ ((noreturn));
1201 if { (eval echo configure
:1202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1203 ac_cv___attribute__
=yes
1205 echo "configure: failed program was:" >&5
1206 cat conftest.
$ac_ext >&5
1208 ac_cv___attribute__
=no
1213 if test "$ac_cv___attribute__" = "yes"; then
1214 cat >> confdefs.h
<<\EOF
1215 #define HAVE___ATTRIBUTE__ 1
1219 echo "$ac_t""$ac_cv___attribute__" 1>&6
1222 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1223 echo "configure:1224: checking how to run the C preprocessor" >&5
1224 # On Suns, sometimes $CPP names a directory.
1225 if test -n "$CPP" && test -d "$CPP"; then
1228 if test -z "$CPP"; then
1229 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 # This must be in double quotes, not single quotes, because CPP may get
1233 # substituted into the Makefile and "${CC-cc}" will confuse make.
1235 # On the NeXT, cc -E runs the code through the compiler's parser,
1236 # not just through cpp.
1237 cat > conftest.
$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1243 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1244 { (eval echo configure
:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1245 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1246 if test -z "$ac_err"; then
1250 echo "configure: failed program was:" >&5
1251 cat conftest.
$ac_ext >&5
1253 CPP
="${CC-cc} -E -traditional-cpp"
1254 cat > conftest.
$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1260 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261 { (eval echo configure
:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1262 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1263 if test -z "$ac_err"; then
1267 echo "configure: failed program was:" >&5
1268 cat conftest.
$ac_ext >&5
1270 CPP
="${CC-cc} -nologo -E"
1271 cat > conftest.
$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1277 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure
:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1284 echo "configure: failed program was:" >&5
1285 cat conftest.
$ac_ext >&5
1294 ac_cv_prog_CPP
="$CPP"
1296 CPP
="$ac_cv_prog_CPP"
1298 ac_cv_prog_CPP
="$CPP"
1300 echo "$ac_t""$CPP" 1>&6
1302 for ac_hdr
in fcntl.h rpc
/rpcent.h netinet
/if_ether.h
1304 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1306 echo "configure:1307: checking for $ac_hdr" >&5
1307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftest.
$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1315 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1316 { (eval echo configure
:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1317 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1318 if test -z "$ac_err"; then
1320 eval "ac_cv_header_$ac_safe=yes"
1323 echo "configure: failed program was:" >&5
1324 cat conftest.
$ac_ext >&5
1326 eval "ac_cv_header_$ac_safe=no"
1330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1331 echo "$ac_t""yes" 1>&6
1332 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1333 cat >> confdefs.h
<<EOF
1334 #define $ac_tr_hdr 1
1338 echo "$ac_t""no" 1>&6
1342 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1343 echo "configure:1344: checking whether time.h and sys/time.h may both be included" >&5
1344 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 cat > conftest.
$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350 #include <sys/types.h>
1351 #include <sys/time.h>
1357 if { (eval echo configure
:1358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1359 ac_cv_header_time
=yes
1361 echo "configure: failed program was:" >&5
1362 cat conftest.
$ac_ext >&5
1364 ac_cv_header_time
=no
1369 echo "$ac_t""$ac_cv_header_time" 1>&6
1370 if test $ac_cv_header_time = yes; then
1371 cat >> confdefs.h
<<\EOF
1372 #define TIME_WITH_SYS_TIME 1
1378 case "$target_os" in
1381 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1382 echo "configure:1383: checking Linux kernel version" >&5
1383 if test "$cross_compiling" = yes; then
1384 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 ac_cv_linux_vers
=unknown
1391 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 ac_cv_linux_vers
=`uname -r 2>&1 | \
1395 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1399 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1400 if test $ac_cv_linux_vers = unknown
; then
1401 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1403 if test $ac_cv_linux_vers -lt 2 ; then
1404 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1415 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1417 echo "configure:1418: checking for $ac_hdr" >&5
1418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 cat > conftest.
$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1426 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1427 { (eval echo configure
:1428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1428 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1429 if test -z "$ac_err"; then
1431 eval "ac_cv_header_$ac_safe=yes"
1434 echo "configure: failed program was:" >&5
1435 cat conftest.
$ac_ext >&5
1437 eval "ac_cv_header_$ac_safe=no"
1441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1444 cat >> confdefs.h
<<EOF
1445 #define $ac_tr_hdr 1
1449 echo "$ac_t""no" 1>&6
1453 echo $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6
1454 echo "configure:1455: checking for smiInit in -lsmi" >&5
1455 ac_lib_var
=`echo smi'_'smiInit | sed 'y%./+-%__p_%'`
1456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 ac_save_LIBS
="$LIBS"
1461 cat > conftest.
$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 /* Override any gcc2 internal prototype to avoid an error. */
1465 /* We use char because int might match the return type of a gcc2
1466 builtin and then its argument prototype would still apply. */
1473 if { (eval echo configure
:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1475 eval "ac_cv_lib_$ac_lib_var=yes"
1477 echo "configure: failed program was:" >&5
1478 cat conftest.
$ac_ext >&5
1480 eval "ac_cv_lib_$ac_lib_var=no"
1483 LIBS
="$ac_save_LIBS"
1486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1487 echo "$ac_t""yes" 1>&6
1488 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1490 cat >> confdefs.h
<<EOF
1491 #define $ac_tr_lib 1
1497 echo "$ac_t""no" 1>&6
1500 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
1502 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1503 echo "configure:1504: checking whether to enable libsmi" >&5
1504 if test "$cross_compiling" = yes; then
1505 echo "$ac_t""not when cross-compiling" 1>&6
1509 cat > conftest.
$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1512 /* libsmi available check */
1516 int current, revision, age, n;
1517 const int required = 2;
1520 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
1522 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
1525 if (required < current - age || required > current)
1531 if { (eval echo configure
:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1533 echo "$ac_t""yes" 1>&6
1534 cat >> confdefs.h
<<\EOF
1540 echo "configure: failed program was:" >&5
1541 cat conftest.
$ac_ext >&5
1544 1) echo "$ac_t""no - smiInit failed" 1>&6 ;;
1545 2) echo "$ac_t""no - header/library version mismatch" 1>&6 ;;
1546 3) echo "$ac_t""no - can't determine library version" 1>&6 ;;
1547 4) echo "$ac_t""no - too old" 1>&6 ;;
1548 *) echo "$ac_t""no" 1>&6 ;;
1557 CFLAGS
="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
1558 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether to enable ipv6" >&5
1560 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1561 if test "${enable_ipv6+set}" = set; then
1562 enableval
="$enable_ipv6"
1563 case "$enableval" in
1564 yes) 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
1573 echo "$ac_t""no" 1>&6
1578 if test "$cross_compiling" = yes; then
1579 echo "$ac_t""no" 1>&6
1583 cat > conftest.
$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1586 /* AF_INET6 available check */
1587 #include <sys/types.h>
1588 #include <sys/socket.h>
1591 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1598 if { (eval echo configure
:1599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1600 echo "$ac_t""yes" 1>&6
1601 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"
1602 cat >> confdefs.h
<<\EOF
1608 echo "configure: failed program was:" >&5
1609 cat conftest.
$ac_ext >&5
1611 echo "$ac_t""no" 1>&6
1624 if test "$ipv6" = "yes"; then
1625 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1626 echo "configure:1627: checking ipv6 stack type" >&5
1627 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1630 cat > conftest.
$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1634 #include <netinet/in.h>
1635 #ifdef IPV6_INRIA_VERSION
1639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1640 egrep "yes" >/dev
/null
2>&1; then
1643 CFLAGS
="-DINET6 $CFLAGS"
1649 cat > conftest.
$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1653 #include <netinet/in.h>
1658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1659 egrep "yes" >/dev
/null
2>&1; then
1663 ipv6libdir
=/usr
/local
/v
6/lib
;
1665 CFLAGS
="-DINET6 $CFLAGS"
1671 cat > conftest.
$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1675 #include <features.h>
1676 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1681 egrep "yes" >/dev
/null
2>&1; then
1684 CFLAGS
="-DINET6 $CFLAGS"
1690 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1693 ipv6libdir
=/usr
/inet
6/lib
1695 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1699 cat > conftest.
$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1703 #include <sys/param.h>
1704 #ifdef _TOSHIBA_INET6
1708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1709 egrep "yes" >/dev
/null
2>&1; then
1713 ipv6libdir
=/usr
/local
/v
6/lib
;
1714 CFLAGS
="-DINET6 $CFLAGS"
1720 cat > conftest.
$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1724 #include </usr/local/v6/include/sys/v6config.h>
1729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1730 egrep "yes" >/dev
/null
2>&1; then
1734 ipv6libdir
=/usr
/local
/v
6/lib
;
1735 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1741 cat > conftest.
$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1745 #include <sys/param.h>
1746 #ifdef _ZETA_MINAMI_INET6
1750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1751 egrep "yes" >/dev
/null
2>&1; then
1755 ipv6libdir
=/usr
/local
/v
6/lib
;
1756 CFLAGS
="-DINET6 $CFLAGS"
1762 if test "$ipv6type" != "unknown"; then
1766 echo "$ac_t""$ipv6type" 1>&6
1769 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1770 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1771 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1772 echo "You have $ipv6lib library, using it"
1774 if test "$ipv6trylibc" = "yes"; then
1775 echo "You do not have $ipv6lib library, using libc"
1777 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1778 echo "You need to fetch lib$ipv6lib.a from appropriate"
1779 echo 'ipv6 kit and compile beforehand.'
1786 if test "$ipv6" = "yes"; then
1788 echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6
1789 echo "configure:1790: checking for library containing getaddrinfo" >&5
1790 if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 ac_func_search_save_LIBS
="$LIBS"
1794 ac_cv_search_getaddrinfo
="no"
1795 cat > conftest.
$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 /* Override any gcc2 internal prototype to avoid an error. */
1799 /* We use char because int might match the return type of a gcc2
1800 builtin and then its argument prototype would still apply. */
1807 if { (eval echo configure
:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1809 ac_cv_search_getaddrinfo
="none required"
1811 echo "configure: failed program was:" >&5
1812 cat conftest.
$ac_ext >&5
1815 test "$ac_cv_search_getaddrinfo" = "no" && for i
in socket
; do
1816 LIBS
="-l$i $ac_func_search_save_LIBS"
1817 cat > conftest.
$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1829 if { (eval echo configure
:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1831 ac_cv_search_getaddrinfo
="-l$i"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.
$ac_ext >&5
1839 LIBS
="$ac_func_search_save_LIBS"
1842 echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6
1843 if test "$ac_cv_search_getaddrinfo" != "no"; then
1844 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
1845 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1846 echo "configure:1847: checking getaddrinfo bug" >&5
1847 if test "$cross_compiling" = yes; then
1848 echo "$ac_t""buggy" 1>&6
1849 buggygetaddrinfo
=yes
1851 cat > conftest.
$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1855 #include <sys/types.h>
1858 #include <sys/socket.h>
1859 #include <netinet/in.h>
1863 int passive, gaierr, inet4 = 0, inet6 = 0;
1864 struct addrinfo hints, *ai, *aitop;
1865 char straddr[INET6_ADDRSTRLEN], strport[16];
1867 for (passive = 0; passive <= 1; passive++) {
1868 memset(&hints, 0, sizeof(hints));
1869 hints.ai_family = AF_UNSPEC;
1870 hints.ai_flags = passive ? AI_PASSIVE : 0;
1871 hints.ai_socktype = SOCK_STREAM;
1872 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1873 (void)gai_strerror(gaierr);
1876 for (ai = aitop; ai; ai = ai->ai_next) {
1877 if (ai->ai_addr == NULL ||
1878 ai->ai_addrlen == 0 ||
1879 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1880 straddr, sizeof(straddr), strport, sizeof(strport),
1881 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1884 switch (ai->ai_family) {
1886 if (strcmp(strport, "54321") != 0) {
1890 if (strcmp(straddr, "0.0.0.0") != 0) {
1894 if (strcmp(straddr, "127.0.0.1") != 0) {
1901 if (strcmp(strport, "54321") != 0) {
1905 if (strcmp(straddr, "::") != 0) {
1909 if (strcmp(straddr, "::1") != 0) {
1926 /* another family support? */
1932 /* supported family should be 2, unsupported family should be 0 */
1933 if (!(inet4 == 0 || inet4 == 2))
1935 if (!(inet6 == 0 || inet6 == 2))
1939 freeaddrinfo(aitop);
1944 freeaddrinfo(aitop);
1949 if { (eval echo configure
:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1951 echo "$ac_t""good" 1>&6
1954 echo "configure: failed program was:" >&5
1955 cat conftest.
$ac_ext >&5
1957 echo "$ac_t""buggy" 1>&6
1958 buggygetaddrinfo
=yes
1964 buggygetaddrinfo
=yes
1967 if test "$buggygetaddrinfo" = "yes"; then
1968 if test "$ipv6type" != "linux"; then
1969 echo 'Fatal: You must get working getaddrinfo() function.'
1970 echo ' or you can specify "--disable-ipv6"'.
1973 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1974 echo ' Better upgreade your system library to newest version'
1975 echo ' of GNU C library (aka glibc).'
1978 for ac_func
in getaddrinfo getnameinfo
1980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_func" >&5
1982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 cat > conftest.
$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 /* System header to define __stub macros and hopefully few prototypes,
1989 which can conflict with char $ac_func(); below. */
1991 /* Override any gcc2 internal prototype to avoid an error. */
1992 /* We use char because int might match the return type of a gcc2
1993 builtin and then its argument prototype would still apply. */
1998 /* The GNU C library defines this for functions which it implements
1999 to always fail with ENOSYS. Some functions are actually named
2000 something starting with __ and the normal name is an alias. */
2001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2009 if { (eval echo configure
:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2011 eval "ac_cv_func_$ac_func=yes"
2013 echo "configure: failed program was:" >&5
2014 cat conftest.
$ac_ext >&5
2016 eval "ac_cv_func_$ac_func=no"
2021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2024 cat >> confdefs.h
<<EOF
2025 #define $ac_tr_func 1
2029 echo "$ac_t""no" 1>&6
2030 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2036 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
2037 echo "configure:2038: checking for inet_ntop" >&5
2038 cat > conftest.
$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2041 #include <sys/types.h>
2042 #include <sys/socket.h>
2043 #include <netinet/in.h>
2044 #include <arpa/inet.h>
2046 char src[4], dst[128];
2047 inet_ntop(AF_INET, src, dst, sizeof(dst));
2050 if { (eval echo configure
:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2052 echo "$ac_t""yes" 1>&6
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 echo "$ac_t""no" 1>&6
2058 for ac_func
in inet_ntop
2060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_func" >&5
2062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.
$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 /* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $ac_func(); below. */
2071 /* Override any gcc2 internal prototype to avoid an error. */
2072 /* We use char because int might match the return type of a gcc2
2073 builtin and then its argument prototype would still apply. */
2078 /* The GNU C library defines this for functions which it implements
2079 to always fail with ENOSYS. Some functions are actually named
2080 something starting with __ and the normal name is an alias. */
2081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2089 if { (eval echo configure
:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2091 eval "ac_cv_func_$ac_func=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.
$ac_ext >&5
2096 eval "ac_cv_func_$ac_func=no"
2101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2103 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2104 cat >> confdefs.h
<<EOF
2105 #define $ac_tr_func 1
2109 echo "$ac_t""no" 1>&6
2110 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2117 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
2118 echo "configure:2119: checking for inet_pton" >&5
2119 cat > conftest.
$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 #include <sys/types.h>
2123 #include <sys/socket.h>
2124 #include <netinet/in.h>
2125 #include <arpa/inet.h>
2127 char src[128], dst[4];
2128 inet_pton(AF_INET, src, dst);
2131 if { (eval echo configure
:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2133 echo "$ac_t""yes" 1>&6
2135 echo "configure: failed program was:" >&5
2136 cat conftest.
$ac_ext >&5
2138 echo "$ac_t""no" 1>&6
2139 for ac_func
in inet_pton
2141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_func" >&5
2143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 /* System header to define __stub macros and hopefully few prototypes,
2150 which can conflict with char $ac_func(); below. */
2152 /* Override any gcc2 internal prototype to avoid an error. */
2153 /* We use char because int might match the return type of a gcc2
2154 builtin and then its argument prototype would still apply. */
2159 /* The GNU C library defines this for functions which it implements
2160 to always fail with ENOSYS. Some functions are actually named
2161 something starting with __ and the normal name is an alias. */
2162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2170 if { (eval echo configure
:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2172 eval "ac_cv_func_$ac_func=yes"
2174 echo "configure: failed program was:" >&5
2175 cat conftest.
$ac_ext >&5
2177 eval "ac_cv_func_$ac_func=no"
2182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2183 echo "$ac_t""yes" 1>&6
2184 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2185 cat >> confdefs.h
<<EOF
2186 #define $ac_tr_func 1
2190 echo "$ac_t""no" 1>&6
2191 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2198 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
2199 echo "configure:2200: checking for inet_aton" >&5
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <sys/types.h>
2204 #include <netinet/in.h>
2205 #include <arpa/inet.h>
2209 inet_aton(src, &dst);
2212 if { (eval echo configure
:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2214 echo "$ac_t""yes" 1>&6
2216 echo "configure: failed program was:" >&5
2217 cat conftest.
$ac_ext >&5
2219 echo "$ac_t""no" 1>&6
2220 for ac_func
in inet_aton
2222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2223 echo "configure:2224: checking for $ac_func" >&5
2224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 /* System header to define __stub macros and hopefully few prototypes,
2231 which can conflict with char $ac_func(); below. */
2233 /* Override any gcc2 internal prototype to avoid an error. */
2234 /* We use char because int might match the return type of a gcc2
2235 builtin and then its argument prototype would still apply. */
2240 /* The GNU C library defines this for functions which it implements
2241 to always fail with ENOSYS. Some functions are actually named
2242 something starting with __ and the normal name is an alias. */
2243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2251 if { (eval echo configure
:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2253 eval "ac_cv_func_$ac_func=yes"
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 eval "ac_cv_func_$ac_func=no"
2263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2266 cat >> confdefs.h
<<EOF
2267 #define $ac_tr_func 1
2271 echo "$ac_t""no" 1>&6
2272 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2281 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2282 echo "configure:2283: checking if sockaddr struct has sa_len member" >&5
2283 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 cat > conftest.
$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2290 # include <sys/types.h>
2291 # include <sys/socket.h>
2293 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2296 if { (eval echo configure
:2297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2298 ac_cv_sockaddr_has_sa_len
=yes
2300 echo "configure: failed program was:" >&5
2301 cat conftest.
$ac_ext >&5
2303 ac_cv_sockaddr_has_sa_len
=no
2308 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
2309 if test $ac_cv_sockaddr_has_sa_len = yes ; then
2310 cat >> confdefs.h
<<\EOF
2311 #define HAVE_SOCKADDR_SA_LEN 1
2316 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
2317 missing_includes
=yes
2320 echo $ac_n "checking size of char""... $ac_c" 1>&6
2321 echo "configure:2322: checking size of char" >&5
2322 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 if test "$cross_compiling" = yes; then
2328 cat > conftest.
$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2334 FILE *f=fopen("conftestval", "w");
2336 fprintf(f, "%d\n", sizeof(char));
2340 if { (eval echo configure
:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2342 ac_cv_sizeof_char
=`cat conftestval`
2344 echo "configure: failed program was:" >&5
2345 cat conftest.
$ac_ext >&5
2353 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2354 cat >> confdefs.h
<<EOF
2355 #define SIZEOF_CHAR $ac_cv_sizeof_char
2359 echo $ac_n "checking size of short""... $ac_c" 1>&6
2360 echo "configure:2361: checking size of short" >&5
2361 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2364 if test "$cross_compiling" = yes; then
2365 ac_cv_sizeof_short
=2
2367 cat > conftest.
$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2373 FILE *f=fopen("conftestval", "w");
2375 fprintf(f, "%d\n", sizeof(short));
2379 if { (eval echo configure
:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2381 ac_cv_sizeof_short
=`cat conftestval`
2383 echo "configure: failed program was:" >&5
2384 cat conftest.
$ac_ext >&5
2386 ac_cv_sizeof_short
=0
2392 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2393 cat >> confdefs.h
<<EOF
2394 #define SIZEOF_SHORT $ac_cv_sizeof_short
2398 echo $ac_n "checking size of int""... $ac_c" 1>&6
2399 echo "configure:2400: checking size of int" >&5
2400 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 if test "$cross_compiling" = yes; then
2406 cat > conftest.
$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2412 FILE *f=fopen("conftestval", "w");
2414 fprintf(f, "%d\n", sizeof(int));
2418 if { (eval echo configure
:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2420 ac_cv_sizeof_int
=`cat conftestval`
2422 echo "configure: failed program was:" >&5
2423 cat conftest.
$ac_ext >&5
2431 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2432 cat >> confdefs.h
<<EOF
2433 #define SIZEOF_INT $ac_cv_sizeof_int
2437 echo $ac_n "checking size of long""... $ac_c" 1>&6
2438 echo "configure:2439: checking size of long" >&5
2439 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 if test "$cross_compiling" = yes; then
2445 cat > conftest.
$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2451 FILE *f=fopen("conftestval", "w");
2453 fprintf(f, "%d\n", sizeof(long));
2457 if { (eval echo configure
:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2459 ac_cv_sizeof_long
=`cat conftestval`
2461 echo "configure: failed program was:" >&5
2462 cat conftest.
$ac_ext >&5
2470 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2471 cat >> confdefs.h
<<EOF
2472 #define SIZEOF_LONG $ac_cv_sizeof_long
2479 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2480 echo "configure:2481: checking for addrinfo" >&5
2481 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.
$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2493 if { (eval echo configure
:2494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2497 echo "configure: failed program was:" >&5
2498 cat conftest.
$ac_ext >&5
2505 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2506 if test $ac_cv_addrinfo = yes; then
2507 cat >> confdefs.h
<<\EOF
2508 #define HAVE_ADDRINFO 1
2512 cat >> confdefs.h
<<\EOF
2513 #define NEED_ADDRINFO_H 1
2518 if test "$ac_cv_addrinfo" = no
; then
2519 missing_includes
=yes
2523 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6
2524 echo "configure:2525: checking for NI_MAXSERV" >&5
2525 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2537 egrep "yes" >/dev
/null
2>&1; then
2548 echo "$ac_t""$ac_cv_maxserv" 1>&6
2549 if test $ac_cv_maxserv != yes; then
2550 cat >> confdefs.h
<<\EOF
2551 #define NEED_ADDRINFO_H 1
2556 if test "$ac_cv_maxserv" = no
; then
2557 missing_includes
=yes
2561 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6
2562 echo "configure:2563: checking for NI_NAMEREQD" >&5
2563 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.
$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2575 egrep "yes" >/dev
/null
2>&1; then
2586 echo "$ac_t""$ac_cv_namereqd" 1>&6
2587 if test $ac_cv_namereqd != yes; then
2588 cat >> confdefs.h
<<\EOF
2589 #define NEED_ADDRINFO_H 1
2594 if test "$ac_cv_namereqd" = no
; then
2595 missing_includes
=yes
2599 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2600 echo "configure:2601: checking for sockaddr_storage" >&5
2601 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.
$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2608 # include <sys/types.h>
2609 # include <sys/socket.h>
2611 struct sockaddr_storage s
2614 if { (eval echo configure
:2615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2616 ac_cv_sa_storage
=yes
2618 echo "configure: failed program was:" >&5
2619 cat conftest.
$ac_ext >&5
2626 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2627 if test $ac_cv_sa_storage = yes; then
2628 cat >> confdefs.h
<<\EOF
2629 #define HAVE_SOCKADDR_STORAGE 1
2634 if test "$ac_cv_sa_storage" = no
; then
2635 missing_includes
=yes
2640 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2641 echo "configure:2642: checking for INADDRSZ" >&5
2642 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 cat > conftest.
$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2649 # include <arpa/nameser.h>
2654 if { (eval echo configure
:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2658 echo "configure: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2666 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2667 if test $ac_cv_inaddrsz = yes; then
2668 cat >> confdefs.h
<<\EOF
2669 #define HAVE_INADDRSZ 1
2675 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2676 echo "configure:2677: checking for IN6ADDRSZ" >&5
2677 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.
$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2684 # include <arpa/nameser.h>
2689 if { (eval echo configure
:2690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2693 echo "configure: failed program was:" >&5
2694 cat conftest.
$ac_ext >&5
2701 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2702 if test $ac_cv_in6addrsz = yes; then
2703 cat >> confdefs.h
<<\EOF
2704 #define HAVE_IN6ADDRSZ 1
2711 if test "$ac_cv_addrsz" = no
; then
2712 missing_includes
=yes
2716 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2717 echo "configure:2718: checking for RES_USE_INET6" >&5
2718 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.
$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2725 # include <sys/types.h>
2726 # include <netinet/in.h>
2727 # include <resolv.h>
2729 int a = RES_USE_INET6
2732 if { (eval echo configure
:2733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2736 echo "configure: failed program was:" >&5
2737 cat conftest.
$ac_ext >&5
2744 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2745 if test $ac_cv_res_inet6 = yes; then
2746 cat >> confdefs.h
<<\EOF
2747 #define HAVE_RES_USE_INET6 1
2752 if test "$ac_cv_res_inet6" = no
; then
2753 missing_includes
=yes
2757 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2758 echo "configure:2759: checking for res_state_ext" >&5
2759 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.
$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2766 # include <sys/types.h>
2767 # include <netinet/in.h>
2768 # include <netinet6/in6.h>
2769 # include <resolv.h>
2771 struct __res_state_ext e
2774 if { (eval echo configure
:2775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2776 ac_cv_res_state_ext
=yes
2778 echo "configure: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2781 ac_cv_res_state_ext
=no
2786 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2787 if test $ac_cv_res_state_ext = yes; then
2788 cat >> confdefs.h
<<\EOF
2789 #define HAVE_RES_STATE_EXT 1
2794 if test "$ac_cv_res_state_ext" = no
; then
2795 missing_includes
=yes
2799 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2800 echo "configure:2801: checking for nsort in res_state" >&5
2801 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2808 # include <sys/types.h>
2809 # include <netinet/in.h>
2810 # include <netinet6/in6.h>
2811 # include <resolv.h>
2813 struct __res_state e; e.nsort = 0
2816 if { (eval echo configure
:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2820 echo "configure: failed program was:" >&5
2821 cat conftest.
$ac_ext >&5
2828 echo "$ac_t""$ac_cv_res_state" 1>&6
2829 if test $ac_cv_res_state = yes; then
2830 cat >> confdefs.h
<<\EOF
2831 #define HAVE_NEW_RES_STATE 1
2837 if test "$missing_includes" = "yes"; then
2838 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2839 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2843 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup
2845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_func" >&5
2847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 /* System header to define __stub macros and hopefully few prototypes,
2854 which can conflict with char $ac_func(); below. */
2856 /* Override any gcc2 internal prototype to avoid an error. */
2857 /* We use char because int might match the return type of a gcc2
2858 builtin and then its argument prototype would still apply. */
2863 /* The GNU C library defines this for functions which it implements
2864 to always fail with ENOSYS. Some functions are actually named
2865 something starting with __ and the normal name is an alias. */
2866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2874 if { (eval echo configure
:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2876 eval "ac_cv_func_$ac_func=yes"
2878 echo "configure: failed program was:" >&5
2879 cat conftest.
$ac_ext >&5
2881 eval "ac_cv_func_$ac_func=no"
2886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2887 echo "$ac_t""yes" 1>&6
2888 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2889 cat >> confdefs.h
<<EOF
2890 #define $ac_tr_func 1
2894 echo "$ac_t""no" 1>&6
2895 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2900 for ac_func
in ether_ntohost
2902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_func" >&5
2904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.
$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 /* System header to define __stub macros and hopefully few prototypes,
2911 which can conflict with char $ac_func(); below. */
2913 /* Override any gcc2 internal prototype to avoid an error. */
2914 /* We use char because int might match the return type of a gcc2
2915 builtin and then its argument prototype would still apply. */
2920 /* The GNU C library defines this for functions which it implements
2921 to always fail with ENOSYS. Some functions are actually named
2922 something starting with __ and the normal name is an alias. */
2923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2931 if { (eval echo configure
:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2933 eval "ac_cv_func_$ac_func=yes"
2935 echo "configure: failed program was:" >&5
2936 cat conftest.
$ac_ext >&5
2938 eval "ac_cv_func_$ac_func=no"
2943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2944 echo "$ac_t""yes" 1>&6
2945 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2946 cat >> confdefs.h
<<EOF
2947 #define $ac_tr_func 1
2950 echo $ac_n "checking for buggy ether_ntohost""... $ac_c" 1>&6
2951 echo "configure:2952: checking for buggy ether_ntohost" >&5
2952 if eval "test \"`echo '$''{'ac_cv_buggy_ether_ntohost'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2956 if test "$cross_compiling" = yes; then
2957 ac_cv_buggy_ether_ntohost
=not
while cross-compiling
2959 cat > conftest.
$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2964 #include <sys/types.h>
2965 #include <sys/param.h>
2966 #include <sys/socket.h>
2969 main(int argc, char **argv)
2971 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
2972 char name[MAXHOSTNAMELEN];
2974 ether_ntohost(name, (struct ether_addr *)ea);
2979 if { (eval echo configure
:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2981 ac_cv_buggy_ether_ntohost
=no
2983 echo "configure: failed program was:" >&5
2984 cat conftest.
$ac_ext >&5
2986 ac_cv_buggy_ether_ntohost
=yes
2993 echo "$ac_t""$ac_cv_buggy_ether_ntohost" 1>&6
2994 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
2995 cat >> confdefs.h
<<\EOF
2996 #define USE_ETHER_NTOHOST 1
3002 echo "$ac_t""no" 1>&6
3006 for ac_func
in setlinebuf
3008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3009 echo "configure:3010: checking for $ac_func" >&5
3010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.
$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 /* System header to define __stub macros and hopefully few prototypes,
3017 which can conflict with char $ac_func(); below. */
3019 /* Override any gcc2 internal prototype to avoid an error. */
3020 /* We use char because int might match the return type of a gcc2
3021 builtin and then its argument prototype would still apply. */
3026 /* The GNU C library defines this for functions which it implements
3027 to always fail with ENOSYS. Some functions are actually named
3028 something starting with __ and the normal name is an alias. */
3029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3037 if { (eval echo configure
:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3039 eval "ac_cv_func_$ac_func=yes"
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3044 eval "ac_cv_func_$ac_func=no"
3049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3050 echo "$ac_t""yes" 1>&6
3051 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3052 cat >> confdefs.h
<<EOF
3053 #define $ac_tr_func 1
3057 echo "$ac_t""no" 1>&6
3063 for ac_func
in vsnprintf snprintf
3065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_func" >&5
3067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.
$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 /* System header to define __stub macros and hopefully few prototypes,
3074 which can conflict with char $ac_func(); below. */
3076 /* Override any gcc2 internal prototype to avoid an error. */
3077 /* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
3083 /* The GNU C library defines this for functions which it implements
3084 to always fail with ENOSYS. Some functions are actually named
3085 something starting with __ and the normal name is an alias. */
3086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3094 if { (eval echo configure
:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3096 eval "ac_cv_func_$ac_func=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.
$ac_ext >&5
3101 eval "ac_cv_func_$ac_func=no"
3106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3109 cat >> confdefs.h
<<EOF
3110 #define $ac_tr_func 1
3114 echo "$ac_t""no" 1>&6
3119 if test $needsnprintf = yes; then
3120 LIBOBJS
="$LIBOBJS snprintf.o"
3124 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3125 echo "configure:3126: checking return type of signal handlers" >&5
3126 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.
$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 #include <sys/types.h>
3138 extern "C" void (*signal (int, void (*)(int)))(int);
3140 void (*signal ()) ();
3147 if { (eval echo configure
:3148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3149 ac_cv_type_signal
=void
3151 echo "configure: failed program was:" >&5
3152 cat conftest.
$ac_ext >&5
3154 ac_cv_type_signal
=int
3159 echo "$ac_t""$ac_cv_type_signal" 1>&6
3160 cat >> confdefs.h
<<EOF
3161 #define RETSIGTYPE $ac_cv_type_signal
3165 if test "$ac_cv_type_signal" = void
; then
3166 cat >> confdefs.h
<<\EOF
3171 cat >> confdefs.h
<<\EOF
3172 #define RETSIGVAL (0)
3176 case "$target_os" in
3179 cat >> confdefs.h
<<\EOF
3180 #define _BSD_SIGNALS 1
3186 for ac_func
in sigset
3188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_func" >&5
3190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 cat > conftest.
$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* System header to define __stub macros and hopefully few prototypes,
3197 which can conflict with char $ac_func(); below. */
3199 /* Override any gcc2 internal prototype to avoid an error. */
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3206 /* The GNU C library defines this for functions which it implements
3207 to always fail with ENOSYS. Some functions are actually named
3208 something starting with __ and the normal name is an alias. */
3209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3217 if { (eval echo configure
:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3219 eval "ac_cv_func_$ac_func=yes"
3221 echo "configure: failed program was:" >&5
3222 cat conftest.
$ac_ext >&5
3224 eval "ac_cv_func_$ac_func=no"
3229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3232 cat >> confdefs.h
<<EOF
3233 #define $ac_tr_func 1
3237 echo "$ac_t""no" 1>&6
3241 if test $ac_cv_func_sigset = no
; then
3242 for ac_func
in sigaction
3244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3245 echo "configure:3246: checking for $ac_func" >&5
3246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.
$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 /* System header to define __stub macros and hopefully few prototypes,
3253 which can conflict with char $ac_func(); below. */
3255 /* Override any gcc2 internal prototype to avoid an error. */
3256 /* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3262 /* The GNU C library defines this for functions which it implements
3263 to always fail with ENOSYS. Some functions are actually named
3264 something starting with __ and the normal name is an alias. */
3265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3273 if { (eval echo configure
:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3275 eval "ac_cv_func_$ac_func=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.
$ac_ext >&5
3280 eval "ac_cv_func_$ac_func=no"
3285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3288 cat >> confdefs.h
<<EOF
3289 #define $ac_tr_func 1
3293 echo "$ac_t""no" 1>&6
3301 echo $ac_n "checking for dnet_htoa in -ldnet""... $ac_c" 1>&6
3302 echo "configure:3303: checking for dnet_htoa in -ldnet" >&5
3303 ac_lib_var
=`echo dnet'_'dnet_htoa | sed 'y%./+-%__p_%'`
3304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 ac_save_LIBS
="$LIBS"
3309 cat > conftest.
$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3321 if { (eval echo configure
:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3323 eval "ac_cv_lib_$ac_lib_var=yes"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3328 eval "ac_cv_lib_$ac_lib_var=no"
3331 LIBS
="$ac_save_LIBS"
3334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3338 cat >> confdefs.h
<<EOF
3339 #define $ac_tr_lib 1
3345 echo "$ac_t""no" 1>&6
3349 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
3350 echo "configure:3351: checking for main in -lrpc" >&5
3351 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
3352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 ac_save_LIBS
="$LIBS"
3357 cat > conftest.
$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3365 if { (eval echo configure
:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3367 eval "ac_cv_lib_$ac_lib_var=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.
$ac_ext >&5
3372 eval "ac_cv_lib_$ac_lib_var=no"
3375 LIBS
="$ac_save_LIBS"
3378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3379 echo "$ac_t""yes" 1>&6
3380 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3382 cat >> confdefs.h
<<EOF
3383 #define $ac_tr_lib 1
3389 echo "$ac_t""no" 1>&6
3393 echo $ac_n "checking for library containing getrpcbynumber""... $ac_c" 1>&6
3394 echo "configure:3395: checking for library containing getrpcbynumber" >&5
3395 if eval "test \"`echo '$''{'ac_cv_search_getrpcbynumber'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 ac_func_search_save_LIBS
="$LIBS"
3399 ac_cv_search_getrpcbynumber
="no"
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char getrpcbynumber();
3412 if { (eval echo configure
:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3414 ac_cv_search_getrpcbynumber
="none required"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.
$ac_ext >&5
3420 test "$ac_cv_search_getrpcbynumber" = "no" && for i
in nsl
; do
3421 LIBS
="-l$i $ac_func_search_save_LIBS"
3422 cat > conftest.
$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 /* Override any gcc2 internal prototype to avoid an error. */
3426 /* We use char because int might match the return type of a gcc2
3427 builtin and then its argument prototype would still apply. */
3428 char getrpcbynumber();
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3436 ac_cv_search_getrpcbynumber
="-l$i"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.
$ac_ext >&5
3444 LIBS
="$ac_func_search_save_LIBS"
3447 echo "$ac_t""$ac_cv_search_getrpcbynumber" 1>&6
3448 if test "$ac_cv_search_getrpcbynumber" != "no"; then
3449 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
3457 # Most operating systems have gethostbyname() in the default searched
3458 # libraries (i.e. libc):
3459 # Some OSes (eg. Solaris) place it in libnsl
3460 # Some strange OSes (SINIX) have it in libsocket:
3462 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3463 echo "configure:3464: checking for library containing gethostbyname" >&5
3464 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 ac_func_search_save_LIBS
="$LIBS"
3468 ac_cv_search_gethostbyname
="no"
3469 cat > conftest.
$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 /* Override any gcc2 internal prototype to avoid an error. */
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3475 char gethostbyname();
3481 if { (eval echo configure
:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3483 ac_cv_search_gethostbyname
="none required"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.
$ac_ext >&5
3489 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl socket resolv
; do
3490 LIBS
="-l$i $ac_func_search_save_LIBS"
3491 cat > conftest.
$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 /* Override any gcc2 internal prototype to avoid an error. */
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497 char gethostbyname();
3503 if { (eval echo configure
:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3505 ac_cv_search_gethostbyname
="-l$i"
3508 echo "configure: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3513 LIBS
="$ac_func_search_save_LIBS"
3516 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3517 if test "$ac_cv_search_gethostbyname" != "no"; then
3518 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3523 # Unfortunately libsocket sometimes depends on libnsl and
3524 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3525 if test "$ac_cv_search_gethostbyname" = "no"
3527 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3528 echo "configure:3529: checking for gethostbyname in -lsocket" >&5
3529 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
3530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 ac_save_LIBS
="$LIBS"
3534 LIBS
="-lsocket -lnsl $LIBS"
3535 cat > conftest.
$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 /* Override any gcc2 internal prototype to avoid an error. */
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3541 char gethostbyname();
3547 if { (eval echo configure
:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3549 eval "ac_cv_lib_$ac_lib_var=yes"
3551 echo "configure: failed program was:" >&5
3552 cat conftest.
$ac_ext >&5
3554 eval "ac_cv_lib_$ac_lib_var=no"
3557 LIBS
="$ac_save_LIBS"
3560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3561 echo "$ac_t""yes" 1>&6
3562 LIBS
="-lsocket -lnsl $LIBS"
3564 echo "$ac_t""no" 1>&6
3569 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
3570 echo "configure:3571: checking for library containing socket" >&5
3571 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 ac_func_search_save_LIBS
="$LIBS"
3575 ac_cv_search_socket
="no"
3576 cat > conftest.
$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3588 if { (eval echo configure
:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3590 ac_cv_search_socket
="none required"
3592 echo "configure: failed program was:" >&5
3593 cat conftest.
$ac_ext >&5
3596 test "$ac_cv_search_socket" = "no" && for i
in socket
; do
3597 LIBS
="-l$i $ac_func_search_save_LIBS"
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 /* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3610 if { (eval echo configure
:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3612 ac_cv_search_socket
="-l$i"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.
$ac_ext >&5
3620 LIBS
="$ac_func_search_save_LIBS"
3623 echo "$ac_t""$ac_cv_search_socket" 1>&6
3624 if test "$ac_cv_search_socket" != "no"; then
3625 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
3628 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3629 echo "configure:3630: checking for socket in -lsocket" >&5
3630 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 ac_save_LIBS
="$LIBS"
3635 LIBS
="-lsocket -lnsl $LIBS"
3636 cat > conftest.
$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 /* Override any gcc2 internal prototype to avoid an error. */
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3648 if { (eval echo configure
:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3650 eval "ac_cv_lib_$ac_lib_var=yes"
3652 echo "configure: failed program was:" >&5
3653 cat conftest.
$ac_ext >&5
3655 eval "ac_cv_lib_$ac_lib_var=no"
3658 LIBS
="$ac_save_LIBS"
3661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3662 echo "$ac_t""yes" 1>&6
3663 LIBS
="-lsocket -lnsl $LIBS"
3665 echo "$ac_t""no" 1>&6
3669 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3671 echo $ac_n "checking for library containing putmsg""... $ac_c" 1>&6
3672 echo "configure:3673: checking for library containing putmsg" >&5
3673 if eval "test \"`echo '$''{'ac_cv_search_putmsg'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 ac_func_search_save_LIBS
="$LIBS"
3677 ac_cv_search_putmsg
="no"
3678 cat > conftest.
$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* Override any gcc2 internal prototype to avoid an error. */
3682 /* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3690 if { (eval echo configure
:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3692 ac_cv_search_putmsg
="none required"
3694 echo "configure: failed program was:" >&5
3695 cat conftest.
$ac_ext >&5
3698 test "$ac_cv_search_putmsg" = "no" && for i
in str
; do
3699 LIBS
="-l$i $ac_func_search_save_LIBS"
3700 cat > conftest.
$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3712 if { (eval echo configure
:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3714 ac_cv_search_putmsg
="-l$i"
3717 echo "configure: failed program was:" >&5
3718 cat conftest.
$ac_ext >&5
3722 LIBS
="$ac_func_search_save_LIBS"
3725 echo "$ac_t""$ac_cv_search_putmsg" 1>&6
3726 if test "$ac_cv_search_putmsg" != "no"; then
3727 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
3735 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3736 if test -f $pfopen ; then
3737 for ac_func
in pfopen
3739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_func" >&5
3741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 cat > conftest.
$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 /* System header to define __stub macros and hopefully few prototypes,
3748 which can conflict with char $ac_func(); below. */
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 /* We use char because int might match the return type of a gcc2
3752 builtin and then its argument prototype would still apply. */
3757 /* The GNU C library defines this for functions which it implements
3758 to always fail with ENOSYS. Some functions are actually named
3759 something starting with __ and the normal name is an alias. */
3760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3768 if { (eval echo configure
:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3770 eval "ac_cv_func_$ac_func=yes"
3772 echo "configure: failed program was:" >&5
3773 cat conftest.
$ac_ext >&5
3775 eval "ac_cv_func_$ac_func=no"
3780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3781 echo "$ac_t""yes" 1>&6
3782 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3783 cat >> confdefs.h
<<EOF
3784 #define $ac_tr_func 1
3788 echo "$ac_t""no" 1>&6
3792 if test $ac_cv_func_pfopen = "no" ; then
3793 echo "$ac_t""Using $pfopen" 1>&6
3794 LIBS
="$LIBS $pfopen"
3797 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3798 echo "configure:3799: checking for local pcap library" >&5
3801 places
=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
3802 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3803 for dir
in $places ..
/libpcap libpcap
; do
3804 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3805 if test $lastdir = $basedir ; then
3809 if test -r $dir/libpcap.a
; then
3810 libpcap
=$dir/libpcap.a
3814 if test $libpcap = FAIL
; then
3815 echo "$ac_t""not found" 1>&6
3816 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3817 echo "configure:3818: checking for main in -lpcap" >&5
3818 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 ac_save_LIBS
="$LIBS"
3824 cat > conftest.
$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3832 if { (eval echo configure
:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3834 eval "ac_cv_lib_$ac_lib_var=yes"
3836 echo "configure: failed program was:" >&5
3837 cat conftest.
$ac_ext >&5
3839 eval "ac_cv_lib_$ac_lib_var=no"
3842 LIBS
="$ac_save_LIBS"
3845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3849 echo "$ac_t""no" 1>&6
3852 if test $libpcap = FAIL
; then
3853 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3857 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e 's,^,$srcdir/../,' | \
3858 egrep '/libpcap-0-9*.0-9*(.0-9*)?(ab0-9*)?$'`
3859 if test -r $d/pcap.h
; then
3860 V_INCLS
="-I$d $V_INCLS"
3861 elif test -r $places/pcap.h
; then
3862 V_INCLS
="-I$places $V_INCLS"
3864 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3866 echo "$ac_t""$libpcap" 1>&6
3868 LIBS
="$libpcap $LIBS"
3869 case "$target_os" in
3872 pseexe
="/lib/pse.exp"
3873 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3874 echo "configure:3875: checking for $pseexe" >&5
3875 if test -f $pseexe ; then
3876 echo "$ac_t""yes" 1>&6
3877 LIBS
="$LIBS -I:$pseexe"
3882 for ac_func
in bpf_dump
3884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3885 echo "configure:3886: checking for $ac_func" >&5
3886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.
$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* System header to define __stub macros and hopefully few prototypes,
3893 which can conflict with char $ac_func(); below. */
3895 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3902 /* The GNU C library defines this for functions which it implements
3903 to always fail with ENOSYS. Some functions are actually named
3904 something starting with __ and the normal name is an alias. */
3905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3913 if { (eval echo configure
:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3915 eval "ac_cv_func_$ac_func=yes"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3920 eval "ac_cv_func_$ac_func=no"
3925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3926 echo "$ac_t""yes" 1>&6
3927 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3928 cat >> confdefs.h
<<EOF
3929 #define $ac_tr_func 1
3933 echo "$ac_t""no" 1>&6
3934 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3940 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
3943 case "$target_os" in
3946 cat >> confdefs.h
<<\EOF
3965 if test -f /dev
/bpf0
; then
3969 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
3970 echo "configure:3971: checking for u_int8_t using $CC" >&5
3971 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.
$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3978 # include "confdefs.h"
3979 # include <sys/types.h>
3981 # include <stdlib.h>
3982 # include <stddef.h>
3988 if { (eval echo configure
:3989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3990 ac_cv_lbl_have_u_int8_t
=yes
3992 echo "configure: failed program was:" >&5
3993 cat conftest.
$ac_ext >&5
3995 ac_cv_lbl_have_u_int8_t
=no
4000 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
4001 if test $ac_cv_lbl_have_u_int8_t = no
; then
4002 cat >> confdefs.h
<<\EOF
4003 #define u_int8_t u_char
4007 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
4008 echo "configure:4009: checking for int16_t using $CC" >&5
4009 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 cat > conftest.
$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4016 # include "confdefs.h"
4017 # include <sys/types.h>
4019 # include <stdlib.h>
4020 # include <stddef.h>
4026 if { (eval echo configure
:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4028 ac_cv_lbl_have_int16_t
=yes
4030 echo "configure: failed program was:" >&5
4031 cat conftest.
$ac_ext >&5
4033 ac_cv_lbl_have_int16_t
=no
4038 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
4039 if test $ac_cv_lbl_have_int16_t = no
; then
4040 cat >> confdefs.h
<<\EOF
4041 #define int16_t short
4045 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
4046 echo "configure:4047: checking for u_int16_t using $CC" >&5
4047 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 cat > conftest.
$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4054 # include "confdefs.h"
4055 # include <sys/types.h>
4057 # include <stdlib.h>
4058 # include <stddef.h>
4064 if { (eval echo configure
:4065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4066 ac_cv_lbl_have_u_int16_t
=yes
4068 echo "configure: failed program was:" >&5
4069 cat conftest.
$ac_ext >&5
4071 ac_cv_lbl_have_u_int16_t
=no
4076 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
4077 if test $ac_cv_lbl_have_u_int16_t = no
; then
4078 cat >> confdefs.h
<<\EOF
4079 #define u_int16_t u_short
4083 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
4084 echo "configure:4085: checking for int32_t using $CC" >&5
4085 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4092 # include "confdefs.h"
4093 # include <sys/types.h>
4095 # include <stdlib.h>
4096 # include <stddef.h>
4102 if { (eval echo configure
:4103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4104 ac_cv_lbl_have_int32_t
=yes
4106 echo "configure: failed program was:" >&5
4107 cat conftest.
$ac_ext >&5
4109 ac_cv_lbl_have_int32_t
=no
4114 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
4115 if test $ac_cv_lbl_have_int32_t = no
; then
4116 cat >> confdefs.h
<<\EOF
4121 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
4122 echo "configure:4123: checking for u_int32_t using $CC" >&5
4123 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4126 cat > conftest.
$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4130 # include "confdefs.h"
4131 # include <sys/types.h>
4133 # include <stdlib.h>
4134 # include <stddef.h>
4140 if { (eval echo configure
:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4142 ac_cv_lbl_have_u_int32_t
=yes
4144 echo "configure: failed program was:" >&5
4145 cat conftest.
$ac_ext >&5
4147 ac_cv_lbl_have_u_int32_t
=no
4152 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
4153 if test $ac_cv_lbl_have_u_int32_t = no
; then
4154 cat >> confdefs.h
<<\EOF
4155 #define u_int32_t u_int
4161 if test "${LBL_CFLAGS+set}" = set; then
4162 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
4164 if test -f .devel
; then
4165 if test "$GCC" = yes ; then
4166 if test "${LBL_CFLAGS+set}" != set; then
4167 if test "$ac_cv_prog_cc_g" = yes ; then
4168 V_CCOPT
="-g $V_CCOPT"
4170 V_CCOPT
="$V_CCOPT -Wall"
4171 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4172 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
4176 case "$target_os" in
4179 V_CCOPT
="$V_CCOPT -n32"
4186 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4188 if test -f $name ; then
4189 ln -s $name os-proto.h
4190 cat >> confdefs.h
<<\EOF
4191 #define HAVE_OS_PROTO_H 1
4195 echo "configure: warning: can't find $name" 1>&2
4199 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4200 echo "configure:4201: checking if sockaddr struct has sa_len member" >&5
4201 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 cat > conftest.
$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4208 # include <sys/types.h>
4209 # include <sys/socket.h>
4211 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4214 if { (eval echo configure
:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4216 ac_cv_lbl_sockaddr_has_sa_len
=yes
4218 echo "configure: failed program was:" >&5
4219 cat conftest.
$ac_ext >&5
4221 ac_cv_lbl_sockaddr_has_sa_len
=no
4226 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4227 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4228 cat >> confdefs.h
<<\EOF
4229 #define HAVE_SOCKADDR_SA_LEN 1
4234 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4235 echo "configure:4236: checking if unaligned accesses fail" >&5
4236 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 case "$target_cpu" in
4241 # XXX: should also check that they don't do weird things (like on arm)
4242 alpha
*|arm
*|hp
*|mips|ia64|sparc
)
4243 ac_cv_lbl_unaligned_fail
=yes
4247 cat >conftest.c
<<EOF
4248 # include <sys/types.h>
4249 # include <sys/wait.h>
4251 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4256 /* avoid "core dumped" message */
4262 pid = waitpid(pid, &status, 0);
4265 exit(!WIFEXITED(status));
4268 i = *(unsigned int *)&a[1];
4273 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4274 conftest.c
$LIBS >/dev
/null
2>&1
4275 if test ! -x conftest
; then
4276 ac_cv_lbl_unaligned_fail
=yes
4278 .
/conftest
>conftest.out
4279 if test ! -s conftest.out
; then
4280 ac_cv_lbl_unaligned_fail
=yes
4282 ac_cv_lbl_unaligned_fail
=no
4285 rm -f conftest
* core core.conftest
4290 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4291 if test $ac_cv_lbl_unaligned_fail = yes ; then
4292 cat >> confdefs.h
<<\EOF
4299 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4300 echo "configure:4301: checking for h_errno" >&5
4301 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.
$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4308 # include <sys/types.h>
4314 if { (eval echo configure
:4315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4316 ac_cv_var_h_errno
=yes
4318 echo "configure: failed program was:" >&5
4319 cat conftest.
$ac_ext >&5
4321 ac_cv_var_h_errno
=no
4326 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4327 if test "$ac_cv_var_h_errno" = "yes"; then
4328 cat >> confdefs.h
<<\EOF
4329 #define HAVE_H_ERRNO 1
4335 # Check whether --with-crypto or --without-crypto was given.
4336 if test "${with_crypto+set}" = set; then
4337 withval
="$with_crypto"
4341 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4342 echo "configure:4343: checking for SSLeay" >&5
4343 ac_cv_ssleay_path
=no
4345 for dir
in /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4346 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4347 ac_cv_ssleay_path
=$dir
4349 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4350 incdir
="-I$dir/include"
4352 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4355 ac_cv_ssleay_path
=no
4359 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4360 if test "$ac_cv_ssleay_path" != no
; then
4361 V_INCLS
="$V_INCLS $incdir"
4362 LDFLAGS
="-L$dir/lib $LDFLAGS"
4363 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4364 LIBS
="$LIBS -lRSAglue"
4366 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4367 LIBS
="$LIBS -lrsaref"
4369 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4370 echo "configure:4371: checking for des_cbc_encrypt in -lcrypto" >&5
4371 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 ac_save_LIBS
="$LIBS"
4376 LIBS
="-lcrypto $LIBS"
4377 cat > conftest.
$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4383 char des_cbc_encrypt();
4389 if { (eval echo configure
:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.
$ac_ext >&5
4396 eval "ac_cv_lib_$ac_lib_var=no"
4399 LIBS
="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4404 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4406 cat >> confdefs.h
<<EOF
4407 #define $ac_tr_lib 1
4410 LIBS
="-lcrypto $LIBS"
4413 echo "$ac_t""no" 1>&6
4417 bak_CPPFLAGS
=$CPPFLAGS
4418 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4419 for ac_hdr
in cast.h
4421 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_hdr" >&5
4424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.
$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4432 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4433 { (eval echo configure
:4434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4434 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4435 if test -z "$ac_err"; then
4437 eval "ac_cv_header_$ac_safe=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.
$ac_ext >&5
4443 eval "ac_cv_header_$ac_safe=no"
4447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4450 cat >> confdefs.h
<<EOF
4451 #define $ac_tr_hdr 1
4455 echo "$ac_t""no" 1>&6
4460 if test "$ac_cv_header_cast_h" = "yes"; then
4461 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4462 echo "configure:4463: checking for buggy CAST128" >&5
4463 if test "$cross_compiling" = yes; then
4464 buggy_cast128
="cross-compiling, assume yes"
4466 cat > conftest.
$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4473 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
4474 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
4475 unsigned char out[sizeof(in)];
4476 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
4478 CAST_set_key(&ks, sizeof(key), key);
4479 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
4480 if (memcmp(out, ok, sizeof(ok)) != 0)
4486 if { (eval echo configure
:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4490 echo "configure: failed program was:" >&5
4491 cat conftest.
$ac_ext >&5
4498 echo "$ac_t""$buggy_cast128" 1>&6
4499 if test "$buggy_cast128" != no
; then
4500 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4501 echo "disabling CAST128 support."
4502 cat >> confdefs.h
<<\EOF
4503 #define HAVE_BUGGY_CAST128 1
4509 CPPFLAGS
=$bak_CPPFLAGS
4516 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4518 echo "configure:4519: checking for $ac_hdr" >&5
4519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4522 cat > conftest.
$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4527 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4528 { (eval echo configure
:4529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4529 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4530 if test -z "$ac_err"; then
4532 eval "ac_cv_header_$ac_safe=yes"
4535 echo "configure: failed program was:" >&5
4536 cat conftest.
$ac_ext >&5
4538 eval "ac_cv_header_$ac_safe=no"
4542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4543 echo "$ac_t""yes" 1>&6
4544 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4545 cat >> confdefs.h
<<EOF
4546 #define $ac_tr_hdr 1
4550 echo "$ac_t""no" 1>&6
4561 # Find a good install program. We prefer a C program (faster),
4562 # so one script is as good as another. But avoid the broken or
4563 # incompatible versions:
4564 # SysV /etc/install, /usr/sbin/install
4565 # SunOS /usr/etc/install
4566 # IRIX /sbin/install
4568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4571 # ./install, which can be erroneously created by make from ./install.sh.
4572 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4573 echo "configure:4574: checking for a BSD compatible install" >&5
4574 if test -z "$INSTALL"; then
4575 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4579 for ac_dir
in $PATH; do
4580 # Account for people who put trailing slashes in PATH elements.
4582 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4584 # OSF1 and SCO ODT 3.0 have their own names for install.
4585 # Don't use installbsd from OSF since it installs stuff as root
4587 for ac_prog
in ginstall scoinst
install; do
4588 if test -f $ac_dir/$ac_prog; then
4589 if test $ac_prog = install &&
4590 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4591 # AIX install. It has an incompatible calling convention.
4594 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4605 if test "${ac_cv_path_install+set}" = set; then
4606 INSTALL
="$ac_cv_path_install"
4608 # As a last resort, use the slow shell script. We don't cache a
4609 # path for INSTALL within a source directory, because that will
4610 # break other packages using the cache if that directory is
4611 # removed, or if the path is relative.
4612 INSTALL
="$ac_install_sh"
4615 echo "$ac_t""$INSTALL" 1>&6
4617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4618 # It thinks the first close brace ends the variable substitution.
4619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4623 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4630 cat > confcache
<<\EOF
4631 # This file is a shell script that caches the results of configure
4632 # tests run on this system so they can be shared between configure
4633 # scripts and configure runs. It is not useful on other systems.
4634 # If it contains results you don't want to keep, you may remove or edit it.
4636 # By default, configure uses ./config.cache as the cache file,
4637 # creating it if it does not exist already. You can give configure
4638 # the --cache-file=FILE option to use a different cache file; that is
4639 # what configure does when it calls configure scripts in
4640 # subdirectories, so they share the cache.
4641 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4642 # config.status only pays attention to the cache file if you give it the
4643 # --recheck option to rerun configure.
4646 # The following way of writing the cache mishandles newlines in values,
4647 # but we know of no workaround that is simple, portable, and efficient.
4648 # So, don't put newlines in cache variables' values.
4649 # Ultrix sh set writes to stderr and can't be redirected directly,
4650 # and sets the high bit in the cache file unless we assign to the vars.
4652 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4654 # `set' does not quote correctly, so add quotes (double-quote substitution
4655 # turns \\\\ into \\, and sed turns \\ into \).
4657 -e "s/'/'\\\\''/g" \
4658 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4661 # `set' quotes correctly as required by POSIX, so do not add quotes.
4662 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4665 if cmp -s $cache_file confcache
; then
4668 if test -w $cache_file; then
4669 echo "updating cache $cache_file"
4670 cat confcache
> $cache_file
4672 echo "not updating unwritable cache $cache_file"
4677 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4679 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4680 # Let make expand exec_prefix.
4681 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4683 # Any assignment to VPATH causes Sun make to only execute
4684 # the first set of double-colon rules, so remove it if not needed.
4685 # If there is a colon in the path, we need to keep it.
4686 if test "x$srcdir" = x.
; then
4687 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4690 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4692 DEFS
=-DHAVE_CONFIG_H
4694 # Without the "./", some shells look in PATH for config.status.
4695 : ${CONFIG_STATUS=./config.status}
4697 echo creating
$CONFIG_STATUS
4698 rm -f $CONFIG_STATUS
4699 cat > $CONFIG_STATUS <<EOF
4701 # Generated automatically by configure.
4702 # Run this file to recreate the current configuration.
4703 # This directory was configured as follows,
4704 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4706 # $0 $ac_configure_args
4708 # Compiler output produced by configure, useful for debugging
4709 # configure, is in ./config.log if it exists.
4711 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4714 case "\$ac_option" in
4715 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4716 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4717 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4718 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4719 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4721 -help | --help | --hel | --he | --h)
4722 echo "\$ac_cs_usage"; exit 0 ;;
4723 *) echo "\$ac_cs_usage"; exit 1 ;;
4727 ac_given_srcdir=$srcdir
4728 ac_given_INSTALL="$INSTALL"
4730 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4732 cat >> $CONFIG_STATUS <<EOF
4734 # Protect against being on the right side of a sed subst in config.status.
4735 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4736 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4740 s%@CFLAGS@%$CFLAGS%g
4741 s%@CPPFLAGS@%$CPPFLAGS%g
4742 s%@CXXFLAGS@%$CXXFLAGS%g
4743 s%@FFLAGS@%$FFLAGS%g
4745 s%@LDFLAGS@%$LDFLAGS%g
4747 s%@exec_prefix@%$exec_prefix%g
4748 s%@prefix@%$prefix%g
4749 s%@program_transform_name@%$program_transform_name%g
4750 s%@bindir@%$bindir%g
4751 s%@sbindir@%$sbindir%g
4752 s%@libexecdir@%$libexecdir%g
4753 s%@datadir@%$datadir%g
4754 s%@sysconfdir@%$sysconfdir%g
4755 s%@sharedstatedir@%$sharedstatedir%g
4756 s%@localstatedir@%$localstatedir%g
4757 s%@libdir@%$libdir%g
4758 s%@includedir@%$includedir%g
4759 s%@oldincludedir@%$oldincludedir%g
4760 s%@infodir@%$infodir%g
4761 s%@mandir@%$mandir%g
4763 s%@host_alias@%$host_alias%g
4764 s%@host_cpu@%$host_cpu%g
4765 s%@host_vendor@%$host_vendor%g
4766 s%@host_os@%$host_os%g
4767 s%@target@%$target%g
4768 s%@target_alias@%$target_alias%g
4769 s%@target_cpu@%$target_cpu%g
4770 s%@target_vendor@%$target_vendor%g
4771 s%@target_os@%$target_os%g
4773 s%@build_alias@%$build_alias%g
4774 s%@build_cpu@%$build_cpu%g
4775 s%@build_vendor@%$build_vendor%g
4776 s%@build_os@%$build_os%g
4777 s%@SHLICC2@%$SHLICC2%g
4780 s%@LIBOBJS@%$LIBOBJS%g
4781 s%@V_CCOPT@%$V_CCOPT%g
4782 s%@V_GROUP@%$V_GROUP%g
4783 s%@V_INCLS@%$V_INCLS%g
4784 s%@V_PCAPDEP@%$V_PCAPDEP%g
4785 s%@LOCALSRC@%$LOCALSRC%g
4786 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4787 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4788 s%@INSTALL_DATA@%$INSTALL_DATA%g
4793 cat >> $CONFIG_STATUS <<\EOF
4795 # Split the substitutions into bite-sized pieces for seds with
4796 # small command number limits, like on Digital OSF/1 and HP-UX.
4797 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4798 ac_file
=1 # Number of current file.
4799 ac_beg
=1 # First line for current file.
4800 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4803 while $ac_more_lines; do
4804 if test $ac_beg -gt 1; then
4805 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4807 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4809 if test ! -s conftest.s
$ac_file; then
4811 rm -f conftest.s
$ac_file
4813 if test -z "$ac_sed_cmds"; then
4814 ac_sed_cmds
="sed -f conftest.s$ac_file"
4816 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4818 ac_file
=`expr $ac_file + 1`
4820 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4823 if test -z "$ac_sed_cmds"; then
4828 cat >> $CONFIG_STATUS <<EOF
4830 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4832 cat >> $CONFIG_STATUS <<\EOF
4833 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4834 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4836 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4837 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4838 *) ac_file_in
="${ac_file}.in" ;;
4841 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4843 # Remove last slash and all that follows it. Not all systems have dirname.
4844 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4845 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4846 # The file is in a subdirectory.
4847 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4848 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4849 # A "../" for each directory in $ac_dir_suffix.
4850 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4852 ac_dir_suffix
= ac_dots
=
4855 case "$ac_given_srcdir" in
4857 if test -z "$ac_dots"; then top_srcdir
=.
4858 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4859 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4861 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4862 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4865 case "$ac_given_INSTALL" in
4866 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4867 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4870 echo creating
"$ac_file"
4872 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4874 *Makefile
*) ac_comsub
="1i\\
4875 # $configure_input" ;;
4879 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4881 s%@configure_input@%$configure_input%g
4882 s%@srcdir@%$srcdir%g
4883 s%@top_srcdir@%$top_srcdir%g
4884 s%@INSTALL@%$INSTALL%g
4885 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4892 # ac_d sets the value in "#define NAME VALUE" lines.
4893 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4894 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4897 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4898 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4899 ac_uB
='\([ ]\)%\1#\2define\3'
4902 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4903 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4904 ac_eB
='$%\1#\2define\3'
4908 if test "${CONFIG_HEADERS+set}" != set; then
4910 cat >> $CONFIG_STATUS <<EOF
4911 CONFIG_HEADERS="config.h"
4913 cat >> $CONFIG_STATUS <<\EOF
4915 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4918 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4919 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4920 *) ac_file_in
="${ac_file}.in" ;;
4923 echo creating
$ac_file
4925 rm -f conftest.frag conftest.
in conftest.out
4926 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4927 cat $ac_file_inputs > conftest.
in
4931 # Transform confdefs.h into a sed script conftest.vals that substitutes
4932 # the proper values into config.h.in to produce config.h. And first:
4933 # Protect against being on the right side of a sed subst in config.status.
4934 # Protect against being in an unquoted here document in config.status.
4936 cat > conftest.hdr
<<\EOF
4939 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4943 sed -n -f conftest.hdr confdefs.h > conftest.vals
4946 # This sed command replaces #undef with comments. This is necessary, for
4947 # example, in the case of _POSIX_SOURCE, which is predefined and required
4948 # on some systems where configure will not decide to define it.
4949 cat >> conftest.vals <<\EOF
4950 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4953 # Break up conftest.vals because some shells have a limit on
4954 # the size of here documents, and old seds have small limits too.
4959 ac_lines=`grep -c . conftest.vals
`
4960 # grep -c gives empty output for an empty file on some AIX systems.
4961 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4962 # Write a limited-size here document to conftest.frag.
4963 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4964 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4966 sed -f conftest.frag conftest.in > conftest.out
4968 mv conftest.out conftest.in
4970 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4972 mv conftest.tail conftest.vals
4976 cat >> $CONFIG_STATUS <<\EOF
4977 rm -f conftest.frag conftest.h
4978 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4979 cat conftest.in >> conftest.h
4981 if cmp -s $ac_file conftest.h 2>/dev/null; then
4982 echo "$ac_file is unchanged"
4985 # Remove last slash and all that follows it. Not all systems have dirname.
4986 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4987 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4988 # The file is in a subdirectory.
4989 test ! -d "$ac_dir" && mkdir "$ac_dir"
4992 mv conftest.h $ac_file
4997 cat >> $CONFIG_STATUS <<EOF
5001 cat >> $CONFIG_STATUS <<\EOF
5002 if test -f .devel; then
5003 echo timestamp > stamp-h
5004 cat Makefile-devel-adds >> Makefile
5010 chmod +x $CONFIG_STATUS
5011 rm -fr confdefs* $ac_clean_files
5012 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1