3 # From configure.in Revision: 1.161
9 # Try compiling a sample of the type of code that appears in
10 # gencode.c with "inline", "__inline__", and "__inline".
12 # Autoconf's AC_C_INLINE, at least in autoconf 2.13, isn't good enough,
13 # as it just tests whether a function returning "int" can be inlined;
14 # at least some versions of HP's C compiler can inline that, but can't
15 # inline a function that returns a struct pointer.
76 # Guess values for system-dependent variables and create Makefiles.
77 # Generated automatically using autoconf version 2.13
78 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80 # This configure script is free software; the Free Software Foundation
81 # gives unlimited permission to copy, distribute and modify it.
85 ac_default_prefix
=/usr
/local
86 # Any additions from configure.in:
88 --without-gcc don't use gcc"
90 --enable-smb enable possibly-buggy SMB printer [default=yes]
91 --disable-smb disable possibly-buggy SMB printer"
93 --enable-ipv6 enable ipv6 (with ipv4) support
94 --disable-ipv6 disable ipv6 support"
96 --without-crypto disable crypto support"
98 # Initialize some variables set by options.
99 # The variables have the same names as the options, with
100 # dashes changed to underlines.
102 cache_file
=.
/config.cache
111 program_transform_name
=s
,x
,x
,
119 bindir
='${exec_prefix}/bin'
120 sbindir
='${exec_prefix}/sbin'
121 libexecdir
='${exec_prefix}/libexec'
122 datadir
='${prefix}/share'
123 sysconfdir
='${prefix}/etc'
124 sharedstatedir
='${prefix}/com'
125 localstatedir
='${prefix}/var'
126 libdir
='${exec_prefix}/lib'
127 includedir
='${prefix}/include'
128 oldincludedir
='/usr/include'
129 infodir
='${prefix}/info'
130 mandir
='${prefix}/man'
132 # Initialize some other variables.
135 SHELL
=${CONFIG_SHELL-/bin/sh}
136 # Maximum number of lines to put in a shell here document.
143 # If the previous option needs an argument, assign it.
144 if test -n "$ac_prev"; then
145 eval "$ac_prev=\$ac_option"
151 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 # Accept the important Cygnus configure options, so we can diagnose typos.
159 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
161 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
162 bindir
="$ac_optarg" ;;
164 -build |
--build |
--buil |
--bui |
--bu)
166 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
167 build
="$ac_optarg" ;;
169 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
170 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
171 ac_prev
=cache_file
;;
172 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
173 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
174 cache_file
="$ac_optarg" ;;
176 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
178 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
180 datadir
="$ac_optarg" ;;
182 -disable-* |
--disable-*)
183 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}=no" ;;
191 -enable-* |
--enable-*)
192 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
193 # Reject names that are not valid shell variable names.
194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
202 eval "enable_${ac_feature}='$ac_optarg'" ;;
204 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
205 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
206 |
--exec |
--exe |
--ex)
207 ac_prev
=exec_prefix
;;
208 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
209 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
210 |
--exec=* |
--exe=* |
--ex=*)
211 exec_prefix
="$ac_optarg" ;;
213 -gas |
--gas |
--ga |
--g)
214 # Obsolete; use --with-gas.
217 -help |
--help |
--hel |
--he)
218 # Omit some internal or obsolete options to make the list less imposing.
219 # This message is too long to be a string in the A/UX 3.1 sh.
221 Usage: configure [options] [host]
222 Options: [defaults in brackets after descriptions]
224 --cache-file=FILE cache test results in FILE
225 --help print this message
226 --no-create do not create output files
227 --quiet, --silent do not print \`checking...' messages
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
272 -host |
--host |
--hos |
--ho)
274 -host=* |
--host=* |
--hos=* |
--ho=*)
277 -includedir |
--includedir |
--includedi |
--included |
--include \
278 |
--includ |
--inclu |
--incl |
--inc)
279 ac_prev
=includedir
;;
280 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
281 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
282 includedir
="$ac_optarg" ;;
284 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
286 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
287 infodir
="$ac_optarg" ;;
289 -libdir |
--libdir |
--libdi |
--libd)
291 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
292 libdir
="$ac_optarg" ;;
294 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
295 |
--libexe |
--libex |
--libe)
296 ac_prev
=libexecdir
;;
297 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
298 |
--libexe=* |
--libex=* |
--libe=*)
299 libexecdir
="$ac_optarg" ;;
301 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
302 |
--localstate |
--localstat |
--localsta |
--localst \
303 |
--locals |
--local |
--loca |
--loc |
--lo)
304 ac_prev
=localstatedir
;;
305 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
306 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
307 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
308 localstatedir
="$ac_optarg" ;;
310 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
312 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
313 mandir
="$ac_optarg" ;;
316 # Obsolete; use --without-fp.
319 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
323 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
324 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
327 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
328 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
329 |
--oldin |
--oldi |
--old |
--ol |
--o)
330 ac_prev
=oldincludedir
;;
331 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
332 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
333 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
334 oldincludedir
="$ac_optarg" ;;
336 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
338 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
339 prefix
="$ac_optarg" ;;
341 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
342 |
--program-pre |
--program-pr |
--program-p)
343 ac_prev
=program_prefix
;;
344 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
345 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
346 program_prefix
="$ac_optarg" ;;
348 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
349 |
--program-suf |
--program-su |
--program-s)
350 ac_prev
=program_suffix
;;
351 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
352 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
353 program_suffix
="$ac_optarg" ;;
355 -program-transform-name |
--program-transform-name \
356 |
--program-transform-nam |
--program-transform-na \
357 |
--program-transform-n |
--program-transform- \
358 |
--program-transform |
--program-transfor \
359 |
--program-transfo |
--program-transf \
360 |
--program-trans |
--program-tran \
361 |
--progr-tra |
--program-tr |
--program-t)
362 ac_prev
=program_transform_name
;;
363 -program-transform-name=* |
--program-transform-name=* \
364 |
--program-transform-nam=* |
--program-transform-na=* \
365 |
--program-transform-n=* |
--program-transform-=* \
366 |
--program-transform=* |
--program-transfor=* \
367 |
--program-transfo=* |
--program-transf=* \
368 |
--program-trans=* |
--program-tran=* \
369 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
370 program_transform_name
="$ac_optarg" ;;
372 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
373 |
-silent |
--silent |
--silen |
--sile |
--sil)
376 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
378 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
380 sbindir
="$ac_optarg" ;;
382 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
383 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
384 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
386 ac_prev
=sharedstatedir
;;
387 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
388 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
389 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
391 sharedstatedir
="$ac_optarg" ;;
393 -site |
--site |
--sit)
395 -site=* |
--site=* |
--sit=*)
398 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
400 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
401 srcdir
="$ac_optarg" ;;
403 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
404 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
405 ac_prev
=sysconfdir
;;
406 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
407 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
408 sysconfdir
="$ac_optarg" ;;
410 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
412 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
413 target
="$ac_optarg" ;;
415 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
418 -version |
--version |
--versio |
--versi |
--vers)
419 echo "configure generated by autoconf version 2.13"
423 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package
=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}='$ac_optarg'" ;;
435 -without-* |
--without-*)
436 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package
=`echo $ac_package| sed 's/-/_/g'`
442 eval "with_${ac_package}=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
449 |
--x-incl |
--x-inc |
--x-in |
--x-i)
450 ac_prev
=x_includes
;;
451 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
452 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
453 x_includes
="$ac_optarg" ;;
455 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
456 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
457 ac_prev
=x_libraries
;;
458 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
459 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
460 x_libraries
="$ac_optarg" ;;
462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE
; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
478 if test -n "$ac_prev"; then
479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484 # File descriptor usage:
487 # 2 errors and warnings
488 # 3 some systems may open it to /dev/tty
489 # 4 used on the Kubota Titan
490 # 6 checking for... messages and results
491 # 5 compiler messages saved in config.log
492 if test "$silent" = yes; then
500 This file contains any messages produced by compilers while
501 running configure, to aid debugging if configure makes a mistake.
504 # Strip out --no-create and --no-recursion so they do not pile up.
505 # Also quote any args containing shell metacharacters.
510 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
511 |
--no-cr |
--no-c) ;;
512 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
513 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
514 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
515 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
516 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
521 # Only set these to C if already set. These must not be set unconditionally
522 # because not all systems understand e.g. LANG=C (notably SCO).
523 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
524 # Non-C LC_CTYPE values break the ctype check.
525 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
526 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
527 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
528 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
531 rm -rf conftest
* confdefs.h
532 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
535 # A filename unique to this package, relative to the directory that
536 # configure is in, which we can look for to find out if srcdir is correct.
537 ac_unique_file
=tcpdump.c
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted
=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted
=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562 # Prefer explicitly selected file to automatically selected ones.
563 if test -z "$CONFIG_SITE"; then
564 if test "x$prefix" != xNONE
; then
565 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
567 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 for ac_site_file
in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp
='$CPP $CPPFLAGS'
588 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling
=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
603 ac_n
= ac_c
='\c' ac_t
=
609 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
610 if test -f $ac_dir/install-sh
; then
612 ac_install_sh
="$ac_aux_dir/install-sh -c"
614 elif test -f $ac_dir/install.sh
; then
616 ac_install_sh
="$ac_aux_dir/install.sh -c"
620 if test -z "$ac_aux_dir"; then
621 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
623 ac_config_guess
=$ac_aux_dir/config.guess
624 ac_config_sub
=$ac_aux_dir/config.sub
625 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
628 # Make sure we can run config.sub.
629 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
630 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
633 echo $ac_n "checking host system type""... $ac_c" 1>&6
634 echo "configure:635: checking host system type" >&5
637 case "$host_alias" in
641 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 *) host_alias
=$nonopt ;;
648 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
649 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$host" 1>&6
659 # Check whether --with-gcc or --without-gcc was given.
660 if test "${with_gcc+set}" = set; then
667 if test "${srcdir}" != "." ; then
668 V_INCLS
="-I\$(srcdir)"
670 if test "${CFLAGS+set}" = set; then
673 if test -z "$CC" ; then
677 # Extract the first word of "shlicc2", so it can be a program name with args.
678 set dummy shlicc2
; ac_word
=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$SHLICC2"; then
685 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
689 for ac_dir
in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir
=.
691 if test -f $ac_dir/$ac_word; then
692 ac_cv_prog_SHLICC2
="yes"
697 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
700 SHLICC2
="$ac_cv_prog_SHLICC2"
701 if test -n "$SHLICC2"; then
702 echo "$ac_t""$SHLICC2" 1>&6
704 echo "$ac_t""no" 1>&6
707 if test $SHLICC2 = yes ; then
714 if test -z "$CC" -a "$with_gcc" = no
; then
718 # Extract the first word of "gcc", so it can be a program name with args.
719 set dummy gcc
; ac_word
=$2
720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
721 echo "configure:722: checking for $ac_word" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
725 if test -n "$CC"; then
726 ac_cv_prog_CC
="$CC" # Let the user override the test.
728 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
730 for ac_dir
in $ac_dummy; do
731 test -z "$ac_dir" && ac_dir
=.
732 if test -f $ac_dir/$ac_word; then
741 if test -n "$CC"; then
742 echo "$ac_t""$CC" 1>&6
744 echo "$ac_t""no" 1>&6
747 if test -z "$CC"; then
748 # Extract the first word of "cc", so it can be a program name with args.
749 set dummy cc
; ac_word
=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 if test -n "$CC"; then
756 ac_cv_prog_CC
="$CC" # Let the user override the test.
758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
761 for ac_dir
in $ac_dummy; do
762 test -z "$ac_dir" && ac_dir
=.
763 if test -f $ac_dir/$ac_word; then
764 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
773 if test $ac_prog_rejected = yes; then
774 # We found a bogon in the path, so make sure we never use it.
775 set dummy
$ac_cv_prog_CC
777 if test $# -gt 0; then
778 # We chose a different compiler from the bogus one.
779 # However, it has the same basename, so the bogon will be chosen
780 # first if we set CC to just the basename; use the full file name.
782 set dummy
"$ac_dir/$ac_word" "$@"
790 if test -n "$CC"; then
791 echo "$ac_t""$CC" 1>&6
793 echo "$ac_t""no" 1>&6
796 if test -z "$CC"; then
799 # Extract the first word of "cl", so it can be a program name with args.
800 set dummy cl
; ac_word
=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 if test -n "$CC"; then
807 ac_cv_prog_CC
="$CC" # Let the user override the test.
809 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
811 for ac_dir
in $ac_dummy; do
812 test -z "$ac_dir" && ac_dir
=.
813 if test -f $ac_dir/$ac_word; then
822 if test -n "$CC"; then
823 echo "$ac_t""$CC" 1>&6
825 echo "$ac_t""no" 1>&6
830 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
833 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
834 echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
838 ac_cpp
='$CPP $CPPFLAGS'
839 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
840 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
841 cross_compiling
=$ac_cv_prog_cc_cross
843 cat > conftest.
$ac_ext << EOF
845 #line 846 "configure"
846 #include "confdefs.h"
850 if { (eval echo configure
:851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
851 ac_cv_prog_cc_works
=yes
852 # If we can't run a trivial program, we are probably using a cross compiler.
853 if (.
/conftest
; exit) 2>/dev
/null
; then
854 ac_cv_prog_cc_cross
=no
856 ac_cv_prog_cc_cross
=yes
859 echo "configure: failed program was:" >&5
860 cat conftest.
$ac_ext >&5
861 ac_cv_prog_cc_works
=no
865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
866 ac_cpp
='$CPP $CPPFLAGS'
867 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
868 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
869 cross_compiling
=$ac_cv_prog_cc_cross
871 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
872 if test $ac_cv_prog_cc_works = no
; then
873 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
875 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
876 echo "configure:877: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
877 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
878 cross_compiling
=$ac_cv_prog_cc_cross
880 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
881 echo "configure:882: checking whether we are using GNU C" >&5
882 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 cat > conftest.c
<<EOF
890 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
897 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
899 if test $ac_cv_prog_gcc = yes; then
905 ac_test_CFLAGS
="${CFLAGS+set}"
906 ac_save_CFLAGS
="$CFLAGS"
908 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
909 echo "configure:910: checking whether ${CC-cc} accepts -g" >&5
910 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 echo 'void f(){}' > conftest.c
914 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
923 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
924 if test "$ac_test_CFLAGS" = set; then
925 CFLAGS
="$ac_save_CFLAGS"
926 elif test $ac_cv_prog_cc_g = yes; then
927 if test "$GCC" = yes; then
933 if test "$GCC" = yes; then
940 if test "$GCC" = yes ; then
941 if test "$SHLICC2" = yes ; then
945 echo $ac_n "checking gcc version""... $ac_c" 1>&6
946 echo "configure:947: checking gcc version" >&5
947 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
950 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
951 sed -e '/^gcc version /!d' \
952 -e 's/^gcc version //' \
953 -e 's/ .*//' -e 's/^[^0-9]*//' \
957 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
958 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
963 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
964 echo "configure:965: checking that $CC handles ansi prototypes" >&5
965 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 cat > conftest.
$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
971 #include <sys/types.h>
973 int frob(int, char *)
976 if { (eval echo configure
:977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
978 ac_cv_lbl_cc_ansi_prototypes
=yes
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
983 ac_cv_lbl_cc_ansi_prototypes
=no
988 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
989 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
993 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
994 echo "configure:995: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
995 savedcflags
="$CFLAGS"
996 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
997 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftest.
$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1003 #include <sys/types.h>
1005 int frob(int, char *)
1008 if { (eval echo configure
:1009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1010 ac_cv_lbl_cc_hpux_cc_aa
=yes
1012 echo "configure: failed program was:" >&5
1013 cat conftest.
$ac_ext >&5
1015 ac_cv_lbl_cc_hpux_cc_aa
=no
1020 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1021 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1022 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1024 CFLAGS
="$savedcflags"
1025 V_CCOPT
="-Aa $V_CCOPT"
1026 cat >> confdefs.h
<<\EOF
1027 #define _HPUX_SOURCE 1
1033 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1037 V_INCLS
="$V_INCLS -I/usr/local/include"
1038 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1043 V_CCOPT
="$V_CCOPT -xansi -signed -O"
1047 V_CCOPT
="$V_CCOPT -std1 -O"
1051 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1052 echo "configure:1053: checking that Ultrix $CC hacks const in prototypes" >&5
1053 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 cat > conftest.
$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1059 #include <sys/types.h>
1061 struct a { int b; };
1062 void c(const struct a *)
1065 if { (eval echo configure
:1066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1067 ac_cv_lbl_cc_const_proto
=yes
1069 echo "configure: failed program was:" >&5
1070 cat conftest.
$ac_ext >&5
1072 ac_cv_lbl_cc_const_proto
=no
1077 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1078 if test $ac_cv_lbl_cc_const_proto = no
; then
1079 cat >> confdefs.h
<<\EOF
1088 echo $ac_n "checking for inline""... $ac_c" 1>&6
1089 echo "configure:1090: checking for inline" >&5
1090 if eval "test \"`echo '$''{'ac_cv_lbl_inline'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1096 for ac_lbl_inline
in inline __inline__ __inline
1098 cat > conftest.
$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1101 #define inline $ac_lbl_inline
1102 static inline struct iltest *foo(void);
1108 static inline struct iltest *
1111 static struct iltest xxx;
1119 if { (eval echo configure
:1120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1121 ac_lbl_cc_inline
=yes
1123 echo "configure: failed program was:" >&5
1124 cat conftest.
$ac_ext >&5
1127 if test "$ac_lbl_cc_inline" = yes ; then
1131 if test "$ac_lbl_cc_inline" = yes ; then
1132 ac_cv_lbl_inline
=$ac_lbl_inline
1136 if test ! -z "$ac_cv_lbl_inline" ; then
1137 echo "$ac_t""$ac_cv_lbl_inline" 1>&6
1139 echo "$ac_t""no" 1>&6
1141 cat >> confdefs.h
<<EOF
1142 #define inline $ac_cv_lbl_inline
1146 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1147 echo "configure:1148: checking for __attribute__" >&5
1148 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1152 cat > conftest.
$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1160 static void foo(void) __attribute__ ((noreturn));
1170 if { (eval echo configure
:1171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1172 ac_cv___attribute__
=yes
1174 echo "configure: failed program was:" >&5
1175 cat conftest.
$ac_ext >&5
1177 ac_cv___attribute__
=no
1182 if test "$ac_cv___attribute__" = "yes"; then
1183 cat >> confdefs.h
<<\EOF
1184 #define HAVE___ATTRIBUTE__ 1
1188 echo "$ac_t""$ac_cv___attribute__" 1>&6
1191 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1192 echo "configure:1193: checking how to run the C preprocessor" >&5
1193 # On Suns, sometimes $CPP names a directory.
1194 if test -n "$CPP" && test -d "$CPP"; then
1197 if test -z "$CPP"; then
1198 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 # This must be in double quotes, not single quotes, because CPP may get
1202 # substituted into the Makefile and "${CC-cc}" will confuse make.
1204 # On the NeXT, cc -E runs the code through the compiler's parser,
1205 # not just through cpp.
1206 cat > conftest.
$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1212 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1213 { (eval echo configure
:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1214 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1215 if test -z "$ac_err"; then
1219 echo "configure: failed program was:" >&5
1220 cat conftest.
$ac_ext >&5
1222 CPP
="${CC-cc} -E -traditional-cpp"
1223 cat > conftest.
$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1229 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1230 { (eval echo configure
:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1231 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1232 if test -z "$ac_err"; then
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1239 CPP
="${CC-cc} -nologo -E"
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1246 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1247 { (eval echo configure
:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1248 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1249 if test -z "$ac_err"; then
1253 echo "configure: failed program was:" >&5
1254 cat conftest.
$ac_ext >&5
1263 ac_cv_prog_CPP
="$CPP"
1265 CPP
="$ac_cv_prog_CPP"
1267 ac_cv_prog_CPP
="$CPP"
1269 echo "$ac_t""$CPP" 1>&6
1271 for ac_hdr
in fcntl.h rpc
/rpcent.h netinet
/if_ether.h netdnet
/dnetdb.h netinet
/ether.h
1273 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_hdr" >&5
1276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.
$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1284 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1285 { (eval echo configure
:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1286 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1287 if test -z "$ac_err"; then
1289 eval "ac_cv_header_$ac_safe=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.
$ac_ext >&5
1295 eval "ac_cv_header_$ac_safe=no"
1299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1301 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1302 cat >> confdefs.h
<<EOF
1303 #define $ac_tr_hdr 1
1307 echo "$ac_t""no" 1>&6
1311 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether time.h and sys/time.h may both be included" >&5
1313 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1319 #include <sys/types.h>
1320 #include <sys/time.h>
1326 if { (eval echo configure
:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1328 ac_cv_header_time
=yes
1330 echo "configure: failed program was:" >&5
1331 cat conftest.
$ac_ext >&5
1333 ac_cv_header_time
=no
1338 echo "$ac_t""$ac_cv_header_time" 1>&6
1339 if test $ac_cv_header_time = yes; then
1340 cat >> confdefs.h
<<\EOF
1341 #define TIME_WITH_SYS_TIME 1
1350 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1351 echo "configure:1352: checking Linux kernel version" >&5
1352 if test "$cross_compiling" = yes; then
1353 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 ac_cv_linux_vers
=unknown
1360 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 ac_cv_linux_vers
=`uname -r 2>&1 | \
1364 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1368 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1369 if test $ac_cv_linux_vers = unknown
; then
1370 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1372 if test $ac_cv_linux_vers -lt 2 ; then
1373 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1384 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_hdr" >&5
1387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 cat > conftest.
$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1395 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1396 { (eval echo configure
:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1397 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1398 if test -z "$ac_err"; then
1400 eval "ac_cv_header_$ac_safe=yes"
1403 echo "configure: failed program was:" >&5
1404 cat conftest.
$ac_ext >&5
1406 eval "ac_cv_header_$ac_safe=no"
1410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1411 echo "$ac_t""yes" 1>&6
1412 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1413 cat >> confdefs.h
<<EOF
1414 #define $ac_tr_hdr 1
1418 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6
1423 echo "configure:1424: checking for smiInit in -lsmi" >&5
1424 ac_lib_var
=`echo smi'_'smiInit | sed 'y%./+-%__p_%'`
1425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 ac_save_LIBS
="$LIBS"
1430 cat > conftest.
$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1442 if { (eval echo configure
:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1444 eval "ac_cv_lib_$ac_lib_var=yes"
1446 echo "configure: failed program was:" >&5
1447 cat conftest.
$ac_ext >&5
1449 eval "ac_cv_lib_$ac_lib_var=no"
1452 LIBS
="$ac_save_LIBS"
1455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1457 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1459 cat >> confdefs.h
<<EOF
1460 #define $ac_tr_lib 1
1466 echo "$ac_t""no" 1>&6
1469 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
1471 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether to enable libsmi" >&5
1473 if test "$cross_compiling" = yes; then
1474 echo "$ac_t""not when cross-compiling" 1>&6
1478 cat > conftest.
$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 /* libsmi available check */
1485 int current, revision, age, n;
1486 const int required = 2;
1489 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
1491 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
1494 if (required < current - age || required > current)
1500 if { (eval echo configure
:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1502 echo "$ac_t""yes" 1>&6
1503 cat >> confdefs.h
<<\EOF
1509 echo "configure: failed program was:" >&5
1510 cat conftest.
$ac_ext >&5
1513 1) echo "$ac_t""no - smiInit failed" 1>&6 ;;
1514 2) echo "$ac_t""no - header/library version mismatch" 1>&6 ;;
1515 3) echo "$ac_t""no - can't determine library version" 1>&6 ;;
1516 4) echo "$ac_t""no - too old" 1>&6 ;;
1517 *) echo "$ac_t""no" 1>&6 ;;
1526 echo $ac_n "checking whether to enable the possibly-buggy SMB printer""... $ac_c" 1>&6
1527 echo "configure:1528: checking whether to enable the possibly-buggy SMB printer" >&5
1528 # Check whether --enable-smb or --disable-smb was given.
1529 if test "${enable_smb+set}" = set; then
1530 enableval
="$enable_smb"
1536 case "$enableval" in
1537 yes) echo "$ac_t""yes" 1>&6
1538 echo "configure: warning: The SMB printer may have exploitable buffer overflows!!!" 1>&2
1539 cat >> confdefs.h
<<\EOF
1540 #define TCPDUMP_DO_SMB 1
1543 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
1545 *) echo "$ac_t""no" 1>&6
1549 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1550 echo "configure:1551: checking whether to enable ipv6" >&5
1551 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1552 if test "${enable_ipv6+set}" = set; then
1553 enableval
="$enable_ipv6"
1554 case "$enableval" in
1555 yes) echo "$ac_t""yes" 1>&6
1556 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
1557 cat >> confdefs.h
<<\EOF
1564 echo "$ac_t""no" 1>&6
1569 if test "$cross_compiling" = yes; then
1570 echo "$ac_t""no" 1>&6
1574 cat > conftest.
$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1577 /* AF_INET6 available check */
1578 #include <sys/types.h>
1579 #include <sys/socket.h>
1582 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1589 if { (eval echo configure
:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1591 echo "$ac_t""yes" 1>&6
1592 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
1593 cat >> confdefs.h
<<\EOF
1599 echo "configure: failed program was:" >&5
1600 cat conftest.
$ac_ext >&5
1602 echo "$ac_t""no" 1>&6
1615 if test "$ipv6" = "yes"; then
1616 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1617 echo "configure:1618: checking ipv6 stack type" >&5
1618 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1621 cat > conftest.
$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1625 #include <netinet/in.h>
1626 #ifdef IPV6_INRIA_VERSION
1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1631 egrep "yes" >/dev
/null
2>&1; then
1634 CFLAGS
="-DINET6 $CFLAGS"
1640 cat > conftest.
$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1644 #include <netinet/in.h>
1649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1650 egrep "yes" >/dev
/null
2>&1; then
1654 ipv6libdir
=/usr
/local
/v
6/lib
;
1656 CFLAGS
="-DINET6 $CFLAGS"
1662 cat > conftest.
$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1666 #include <features.h>
1667 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1672 egrep "yes" >/dev
/null
2>&1; then
1675 CFLAGS
="-DINET6 $CFLAGS"
1681 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1684 ipv6libdir
=/usr
/inet
6/lib
1686 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1690 cat > conftest.
$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1694 #include <sys/param.h>
1695 #ifdef _TOSHIBA_INET6
1699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1700 egrep "yes" >/dev
/null
2>&1; then
1704 ipv6libdir
=/usr
/local
/v
6/lib
;
1705 CFLAGS
="-DINET6 $CFLAGS"
1711 cat > conftest.
$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1715 #include </usr/local/v6/include/sys/v6config.h>
1720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1721 egrep "yes" >/dev
/null
2>&1; then
1725 ipv6libdir
=/usr
/local
/v
6/lib
;
1726 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1732 cat > conftest.
$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1736 #include <sys/param.h>
1737 #ifdef _ZETA_MINAMI_INET6
1741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1742 egrep "yes" >/dev
/null
2>&1; then
1746 ipv6libdir
=/usr
/local
/v
6/lib
;
1747 CFLAGS
="-DINET6 $CFLAGS"
1753 if test "$ipv6type" != "unknown"; then
1757 echo "$ac_t""$ipv6type" 1>&6
1760 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1761 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1762 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1763 echo "You have $ipv6lib library, using it"
1765 if test "$ipv6trylibc" = "yes"; then
1766 echo "You do not have $ipv6lib library, using libc"
1768 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1769 echo "You need to fetch lib$ipv6lib.a from appropriate"
1770 echo 'ipv6 kit and compile beforehand.'
1777 if test "$ipv6" = "yes"; then
1779 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
1780 # function in libc; there are "ngetaddrinfo()" and
1781 # "ogetaddrinfo()" functions, and <netdb.h> #defines
1782 # "getaddrinfo" to be either "ngetaddrinfo" or
1783 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
1784 # or _XOPEN_SOURCE_EXTENDED are defined or not.
1786 # So this test doesn't work on Tru64 5.1, and possibly
1787 # on other 5.x releases. This causes the configure
1788 # script to become confused, and results in libpcap
1789 # being unbuildable.
1792 echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6
1793 echo "configure:1794: checking for library containing getaddrinfo" >&5
1794 if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 ac_func_search_save_LIBS
="$LIBS"
1798 ac_cv_search_getaddrinfo
="no"
1799 cat > conftest.
$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 /* Override any gcc2 internal prototype to avoid an error. */
1803 /* We use char because int might match the return type of a gcc2
1804 builtin and then its argument prototype would still apply. */
1811 if { (eval echo configure
:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1813 ac_cv_search_getaddrinfo
="none required"
1815 echo "configure: failed program was:" >&5
1816 cat conftest.
$ac_ext >&5
1819 test "$ac_cv_search_getaddrinfo" = "no" && for i
in socket
; do
1820 LIBS
="-l$i $ac_func_search_save_LIBS"
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 /* Override any gcc2 internal prototype to avoid an error. */
1825 /* We use char because int might match the return type of a gcc2
1826 builtin and then its argument prototype would still apply. */
1833 if { (eval echo configure
:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1835 ac_cv_search_getaddrinfo
="-l$i"
1838 echo "configure: failed program was:" >&5
1839 cat conftest.
$ac_ext >&5
1843 LIBS
="$ac_func_search_save_LIBS"
1846 echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6
1847 if test "$ac_cv_search_getaddrinfo" != "no"; then
1848 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
1849 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1850 echo "configure:1851: checking getaddrinfo bug" >&5
1851 if eval "test \"`echo '$''{'td_cv_buggygetaddrinfo'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 if test "$cross_compiling" = yes; then
1855 td_cv_buggygetaddrinfo
=yes
1857 cat > conftest.
$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1861 #include <sys/types.h>
1864 #include <sys/socket.h>
1865 #include <netinet/in.h>
1869 int passive, gaierr, inet4 = 0, inet6 = 0;
1870 struct addrinfo hints, *ai, *aitop;
1871 char straddr[INET6_ADDRSTRLEN], strport[16];
1873 for (passive = 0; passive <= 1; passive++) {
1874 memset(&hints, 0, sizeof(hints));
1875 hints.ai_family = AF_UNSPEC;
1876 hints.ai_flags = passive ? AI_PASSIVE : 0;
1877 hints.ai_socktype = SOCK_STREAM;
1878 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1879 (void)gai_strerror(gaierr);
1882 for (ai = aitop; ai; ai = ai->ai_next) {
1883 if (ai->ai_addr == NULL ||
1884 ai->ai_addrlen == 0 ||
1885 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1886 straddr, sizeof(straddr), strport, sizeof(strport),
1887 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1890 switch (ai->ai_family) {
1892 if (strcmp(strport, "54321") != 0) {
1896 if (strcmp(straddr, "0.0.0.0") != 0) {
1900 if (strcmp(straddr, "127.0.0.1") != 0) {
1907 if (strcmp(strport, "54321") != 0) {
1911 if (strcmp(straddr, "::") != 0) {
1915 if (strcmp(straddr, "::1") != 0) {
1932 /* another family support? */
1938 /* supported family should be 2, unsupported family should be 0 */
1939 if (!(inet4 == 0 || inet4 == 2))
1941 if (!(inet6 == 0 || inet6 == 2))
1945 freeaddrinfo(aitop);
1950 freeaddrinfo(aitop);
1955 if { (eval echo configure
:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1957 td_cv_buggygetaddrinfo
=no
1959 echo "configure: failed program was:" >&5
1960 cat conftest.
$ac_ext >&5
1962 td_cv_buggygetaddrinfo
=yes
1969 if test "$td_cv_buggygetaddrinfo" = no
; then
1970 echo "$ac_t""good" 1>&6
1972 echo "$ac_t""buggy" 1>&6
1975 if test "$td_cv_buggygetaddrinfo" = "yes"; then
1977 # XXX - it doesn't appear that "ipv6type" can ever be
1978 # set to "linux". Should this be testing for
1979 # "linux-glibc", or for that *or* "linux-libinet6"?
1980 # If the latter, note that "linux-libinet6" is also
1981 # the type given to some non-Linux OSes.
1983 if test "$ipv6type" != "linux"; then
1984 echo 'Fatal: You must get working getaddrinfo() function.'
1985 echo ' or you can specify "--disable-ipv6"'.
1988 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1989 echo ' Better upgrade your system library to newest version'
1990 echo ' of GNU C library (aka glibc).'
1997 for ac_func
in getaddrinfo getnameinfo
1999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_func" >&5
2001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 cat > conftest.
$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $ac_func(); below. */
2010 /* Override any gcc2 internal prototype to avoid an error. */
2011 /* We use char because int might match the return type of a gcc2
2012 builtin and then its argument prototype would still apply. */
2017 /* The GNU C library defines this for functions which it implements
2018 to always fail with ENOSYS. Some functions are actually named
2019 something starting with __ and the normal name is an alias. */
2020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2028 if { (eval echo configure
:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2030 eval "ac_cv_func_$ac_func=yes"
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 eval "ac_cv_func_$ac_func=no"
2040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2042 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2043 cat >> confdefs.h
<<EOF
2044 #define $ac_tr_func 1
2048 echo "$ac_t""no" 1>&6
2049 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2055 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
2056 echo "configure:2057: checking for inet_ntop" >&5
2057 cat > conftest.
$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2060 #include <sys/types.h>
2061 #include <sys/socket.h>
2062 #include <netinet/in.h>
2063 #include <arpa/inet.h>
2065 char src[4], dst[128];
2066 inet_ntop(AF_INET, src, dst, sizeof(dst));
2069 if { (eval echo configure
:2070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071 echo "$ac_t""yes" 1>&6
2073 echo "configure: failed program was:" >&5
2074 cat conftest.
$ac_ext >&5
2076 echo "$ac_t""no" 1>&6
2077 for ac_func
in inet_ntop
2079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_func" >&5
2081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 cat > conftest.
$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2087 /* System header to define __stub macros and hopefully few prototypes,
2088 which can conflict with char $ac_func(); below. */
2090 /* Override any gcc2 internal prototype to avoid an error. */
2091 /* We use char because int might match the return type of a gcc2
2092 builtin and then its argument prototype would still apply. */
2097 /* The GNU C library defines this for functions which it implements
2098 to always fail with ENOSYS. Some functions are actually named
2099 something starting with __ and the normal name is an alias. */
2100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2108 if { (eval echo configure
:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2110 eval "ac_cv_func_$ac_func=yes"
2112 echo "configure: failed program was:" >&5
2113 cat conftest.
$ac_ext >&5
2115 eval "ac_cv_func_$ac_func=no"
2120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2121 echo "$ac_t""yes" 1>&6
2122 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2123 cat >> confdefs.h
<<EOF
2124 #define $ac_tr_func 1
2128 echo "$ac_t""no" 1>&6
2129 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2136 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
2137 echo "configure:2138: checking for inet_pton" >&5
2138 cat > conftest.
$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 #include <sys/types.h>
2142 #include <sys/socket.h>
2143 #include <netinet/in.h>
2144 #include <arpa/inet.h>
2146 char src[128], dst[4];
2147 inet_pton(AF_INET, src, dst);
2150 if { (eval echo configure
:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 echo "$ac_t""yes" 1>&6
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2157 echo "$ac_t""no" 1>&6
2158 for ac_func
in inet_pton
2160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_func" >&5
2162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.
$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 /* System header to define __stub macros and hopefully few prototypes,
2169 which can conflict with char $ac_func(); below. */
2171 /* Override any gcc2 internal prototype to avoid an error. */
2172 /* We use char because int might match the return type of a gcc2
2173 builtin and then its argument prototype would still apply. */
2178 /* The GNU C library defines this for functions which it implements
2179 to always fail with ENOSYS. Some functions are actually named
2180 something starting with __ and the normal name is an alias. */
2181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2189 if { (eval echo configure
:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2191 eval "ac_cv_func_$ac_func=yes"
2193 echo "configure: failed program was:" >&5
2194 cat conftest.
$ac_ext >&5
2196 eval "ac_cv_func_$ac_func=no"
2201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2202 echo "$ac_t""yes" 1>&6
2203 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2204 cat >> confdefs.h
<<EOF
2205 #define $ac_tr_func 1
2209 echo "$ac_t""no" 1>&6
2210 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2217 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
2218 echo "configure:2219: checking for inet_aton" >&5
2219 cat > conftest.
$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 #include <sys/types.h>
2223 #include <netinet/in.h>
2224 #include <arpa/inet.h>
2228 inet_aton(src, &dst);
2231 if { (eval echo configure
:2232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2233 echo "$ac_t""yes" 1>&6
2235 echo "configure: failed program was:" >&5
2236 cat conftest.
$ac_ext >&5
2238 echo "$ac_t""no" 1>&6
2239 for ac_func
in inet_aton
2241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2242 echo "configure:2243: checking for $ac_func" >&5
2243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2249 /* System header to define __stub macros and hopefully few prototypes,
2250 which can conflict with char $ac_func(); below. */
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2259 /* The GNU C library defines this for functions which it implements
2260 to always fail with ENOSYS. Some functions are actually named
2261 something starting with __ and the normal name is an alias. */
2262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2272 eval "ac_cv_func_$ac_func=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 eval "ac_cv_func_$ac_func=no"
2282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2285 cat >> confdefs.h
<<EOF
2286 #define $ac_tr_func 1
2290 echo "$ac_t""no" 1>&6
2291 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2300 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2301 echo "configure:2302: checking if sockaddr struct has sa_len member" >&5
2302 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2309 # include <sys/types.h>
2310 # include <sys/socket.h>
2312 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2315 if { (eval echo configure
:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2317 ac_cv_sockaddr_has_sa_len
=yes
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 ac_cv_sockaddr_has_sa_len
=no
2327 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
2328 if test $ac_cv_sockaddr_has_sa_len = yes ; then
2329 cat >> confdefs.h
<<\EOF
2330 #define HAVE_SOCKADDR_SA_LEN 1
2335 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
2336 missing_includes
=yes
2339 echo $ac_n "checking for dnet_htoa declaration in netdnet/dnetdb.h""... $ac_c" 1>&6
2340 echo "configure:2341: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
2341 if eval "test \"`echo '$''{'td_cv_decl_netdnet_dnetdb_h_dnet_htoa'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.
$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 #include <netdnet/dnetdb.h>
2349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2350 egrep "dnet_htoa" >/dev
/null
2>&1; then
2352 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
2355 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
2361 echo "$ac_t""$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" 1>&6
2362 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
2363 cat >> confdefs.h
<<\EOF
2364 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
2369 echo $ac_n "checking size of char""... $ac_c" 1>&6
2370 echo "configure:2371: checking size of char" >&5
2371 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 if test "$cross_compiling" = yes; then
2377 cat > conftest.
$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2383 FILE *f=fopen("conftestval", "w");
2385 fprintf(f, "%d\n", sizeof(char));
2389 if { (eval echo configure
:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2391 ac_cv_sizeof_char
=`cat conftestval`
2393 echo "configure: failed program was:" >&5
2394 cat conftest.
$ac_ext >&5
2402 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2403 cat >> confdefs.h
<<EOF
2404 #define SIZEOF_CHAR $ac_cv_sizeof_char
2408 echo $ac_n "checking size of short""... $ac_c" 1>&6
2409 echo "configure:2410: checking size of short" >&5
2410 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 if test "$cross_compiling" = yes; then
2414 ac_cv_sizeof_short
=2
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2422 FILE *f=fopen("conftestval", "w");
2424 fprintf(f, "%d\n", sizeof(short));
2428 if { (eval echo configure
:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2430 ac_cv_sizeof_short
=`cat conftestval`
2432 echo "configure: failed program was:" >&5
2433 cat conftest.
$ac_ext >&5
2435 ac_cv_sizeof_short
=0
2441 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2442 cat >> confdefs.h
<<EOF
2443 #define SIZEOF_SHORT $ac_cv_sizeof_short
2447 echo $ac_n "checking size of int""... $ac_c" 1>&6
2448 echo "configure:2449: checking size of int" >&5
2449 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 if test "$cross_compiling" = yes; then
2455 cat > conftest.
$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2461 FILE *f=fopen("conftestval", "w");
2463 fprintf(f, "%d\n", sizeof(int));
2467 if { (eval echo configure
:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2469 ac_cv_sizeof_int
=`cat conftestval`
2471 echo "configure: failed program was:" >&5
2472 cat conftest.
$ac_ext >&5
2480 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2481 cat >> confdefs.h
<<EOF
2482 #define SIZEOF_INT $ac_cv_sizeof_int
2486 echo $ac_n "checking size of long""... $ac_c" 1>&6
2487 echo "configure:2488: checking size of long" >&5
2488 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 if test "$cross_compiling" = yes; then
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2500 FILE *f=fopen("conftestval", "w");
2502 fprintf(f, "%d\n", sizeof(long));
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2508 ac_cv_sizeof_long
=`cat conftestval`
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2519 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2520 cat >> confdefs.h
<<EOF
2521 #define SIZEOF_LONG $ac_cv_sizeof_long
2528 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2529 echo "configure:2530: checking for addrinfo" >&5
2530 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 cat > conftest.
$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2542 if { (eval echo configure
:2543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2546 echo "configure: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2554 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2555 if test $ac_cv_addrinfo = yes; then
2556 cat >> confdefs.h
<<\EOF
2557 #define HAVE_ADDRINFO 1
2561 cat >> confdefs.h
<<\EOF
2562 #define NEED_ADDRINFO_H 1
2567 if test "$ac_cv_addrinfo" = no
; then
2568 missing_includes
=yes
2572 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6
2573 echo "configure:2574: checking for NI_MAXSERV" >&5
2574 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 cat > conftest.
$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2586 egrep "yes" >/dev
/null
2>&1; then
2597 echo "$ac_t""$ac_cv_maxserv" 1>&6
2598 if test $ac_cv_maxserv != yes; then
2599 cat >> confdefs.h
<<\EOF
2600 #define NEED_ADDRINFO_H 1
2605 if test "$ac_cv_maxserv" = no
; then
2606 missing_includes
=yes
2610 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6
2611 echo "configure:2612: checking for NI_NAMEREQD" >&5
2612 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 cat > conftest.
$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2624 egrep "yes" >/dev
/null
2>&1; then
2635 echo "$ac_t""$ac_cv_namereqd" 1>&6
2636 if test $ac_cv_namereqd != yes; then
2637 cat >> confdefs.h
<<\EOF
2638 #define NEED_ADDRINFO_H 1
2643 if test "$ac_cv_namereqd" = no
; then
2644 missing_includes
=yes
2648 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2649 echo "configure:2650: checking for sockaddr_storage" >&5
2650 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 cat > conftest.
$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2657 # include <sys/types.h>
2658 # include <sys/socket.h>
2660 struct sockaddr_storage s
2663 if { (eval echo configure
:2664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2665 ac_cv_sa_storage
=yes
2667 echo "configure: failed program was:" >&5
2668 cat conftest.
$ac_ext >&5
2675 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2676 if test $ac_cv_sa_storage = yes; then
2677 cat >> confdefs.h
<<\EOF
2678 #define HAVE_SOCKADDR_STORAGE 1
2683 if test "$ac_cv_sa_storage" = no
; then
2684 missing_includes
=yes
2689 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2690 echo "configure:2691: checking for INADDRSZ" >&5
2691 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 cat > conftest.
$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2698 # include <arpa/nameser.h>
2703 if { (eval echo configure
:2704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2707 echo "configure: failed program was:" >&5
2708 cat conftest.
$ac_ext >&5
2715 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2716 if test $ac_cv_inaddrsz = yes; then
2717 cat >> confdefs.h
<<\EOF
2718 #define HAVE_INADDRSZ 1
2724 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2725 echo "configure:2726: checking for IN6ADDRSZ" >&5
2726 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.
$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2733 # include <arpa/nameser.h>
2738 if { (eval echo configure
:2739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2742 echo "configure: failed program was:" >&5
2743 cat conftest.
$ac_ext >&5
2750 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2751 if test $ac_cv_in6addrsz = yes; then
2752 cat >> confdefs.h
<<\EOF
2753 #define HAVE_IN6ADDRSZ 1
2760 if test "$ac_cv_addrsz" = no
; then
2761 missing_includes
=yes
2765 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2766 echo "configure:2767: checking for RES_USE_INET6" >&5
2767 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.
$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2774 # include <sys/types.h>
2775 # include <netinet/in.h>
2776 # include <resolv.h>
2778 int a = RES_USE_INET6
2781 if { (eval echo configure
:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2785 echo "configure: failed program was:" >&5
2786 cat conftest.
$ac_ext >&5
2793 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2794 if test $ac_cv_res_inet6 = yes; then
2795 cat >> confdefs.h
<<\EOF
2796 #define HAVE_RES_USE_INET6 1
2801 if test "$ac_cv_res_inet6" = no
; then
2802 missing_includes
=yes
2806 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2807 echo "configure:2808: checking for res_state_ext" >&5
2808 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.
$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2815 # include <sys/types.h>
2816 # include <netinet/in.h>
2817 # include <netinet6/in6.h>
2818 # include <resolv.h>
2820 struct __res_state_ext e
2823 if { (eval echo configure
:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2825 ac_cv_res_state_ext
=yes
2827 echo "configure: failed program was:" >&5
2828 cat conftest.
$ac_ext >&5
2830 ac_cv_res_state_ext
=no
2835 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2836 if test $ac_cv_res_state_ext = yes; then
2837 cat >> confdefs.h
<<\EOF
2838 #define HAVE_RES_STATE_EXT 1
2843 if test "$ac_cv_res_state_ext" = no
; then
2844 missing_includes
=yes
2848 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2849 echo "configure:2850: checking for nsort in res_state" >&5
2850 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 cat > conftest.
$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2857 # include <sys/types.h>
2858 # include <netinet/in.h>
2859 # include <netinet6/in6.h>
2860 # include <resolv.h>
2862 struct __res_state e; e.nsort = 0
2865 if { (eval echo configure
:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 echo "configure: failed program was:" >&5
2870 cat conftest.
$ac_ext >&5
2877 echo "$ac_t""$ac_cv_res_state" 1>&6
2878 if test $ac_cv_res_state = yes; then
2879 cat >> confdefs.h
<<\EOF
2880 #define HAVE_NEW_RES_STATE 1
2886 if test "$missing_includes" = "yes"; then
2887 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2888 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2892 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
2894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_func" >&5
2896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2899 cat > conftest.
$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902 /* System header to define __stub macros and hopefully few prototypes,
2903 which can conflict with char $ac_func(); below. */
2905 /* Override any gcc2 internal prototype to avoid an error. */
2906 /* We use char because int might match the return type of a gcc2
2907 builtin and then its argument prototype would still apply. */
2912 /* The GNU C library defines this for functions which it implements
2913 to always fail with ENOSYS. Some functions are actually named
2914 something starting with __ and the normal name is an alias. */
2915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2923 if { (eval echo configure
:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2925 eval "ac_cv_func_$ac_func=yes"
2927 echo "configure: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2930 eval "ac_cv_func_$ac_func=no"
2935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2936 echo "$ac_t""yes" 1>&6
2937 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2938 cat >> confdefs.h
<<EOF
2939 #define $ac_tr_func 1
2943 echo "$ac_t""no" 1>&6
2944 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2949 for ac_func
in ether_ntohost
2951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2952 echo "configure:2953: checking for $ac_func" >&5
2953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 cat > conftest.
$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 /* System header to define __stub macros and hopefully few prototypes,
2960 which can conflict with char $ac_func(); below. */
2962 /* Override any gcc2 internal prototype to avoid an error. */
2963 /* We use char because int might match the return type of a gcc2
2964 builtin and then its argument prototype would still apply. */
2969 /* The GNU C library defines this for functions which it implements
2970 to always fail with ENOSYS. Some functions are actually named
2971 something starting with __ and the normal name is an alias. */
2972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2980 if { (eval echo configure
:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2982 eval "ac_cv_func_$ac_func=yes"
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2987 eval "ac_cv_func_$ac_func=no"
2992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2995 cat >> confdefs.h
<<EOF
2996 #define $ac_tr_func 1
2999 echo $ac_n "checking for buggy ether_ntohost""... $ac_c" 1>&6
3000 echo "configure:3001: checking for buggy ether_ntohost" >&5
3001 if eval "test \"`echo '$''{'ac_cv_buggy_ether_ntohost'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3005 if test "$cross_compiling" = yes; then
3006 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
3008 cat > conftest.
$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3013 #include <sys/types.h>
3014 #include <sys/param.h>
3015 #include <sys/socket.h>
3018 main(int argc, char **argv)
3020 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
3021 char name[MAXHOSTNAMELEN];
3023 ether_ntohost(name, (struct ether_addr *)ea);
3028 if { (eval echo configure
:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3030 ac_cv_buggy_ether_ntohost
=no
3032 echo "configure: failed program was:" >&5
3033 cat conftest.
$ac_ext >&5
3035 ac_cv_buggy_ether_ntohost
=yes
3042 echo "$ac_t""$ac_cv_buggy_ether_ntohost" 1>&6
3043 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
3044 cat >> confdefs.h
<<\EOF
3045 #define USE_ETHER_NTOHOST 1
3051 echo "$ac_t""no" 1>&6
3055 for ac_func
in setlinebuf
3057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_func" >&5
3059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.
$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 /* System header to define __stub macros and hopefully few prototypes,
3066 which can conflict with char $ac_func(); below. */
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3075 /* The GNU C library defines this for functions which it implements
3076 to always fail with ENOSYS. Some functions are actually named
3077 something starting with __ and the normal name is an alias. */
3078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3086 if { (eval echo configure
:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3088 eval "ac_cv_func_$ac_func=yes"
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3093 eval "ac_cv_func_$ac_func=no"
3098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3099 echo "$ac_t""yes" 1>&6
3100 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3101 cat >> confdefs.h
<<EOF
3102 #define $ac_tr_func 1
3106 echo "$ac_t""no" 1>&6
3112 for ac_func
in vsnprintf snprintf
3114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_func" >&5
3116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 cat > conftest.
$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 /* System header to define __stub macros and hopefully few prototypes,
3123 which can conflict with char $ac_func(); below. */
3125 /* Override any gcc2 internal prototype to avoid an error. */
3126 /* We use char because int might match the return type of a gcc2
3127 builtin and then its argument prototype would still apply. */
3132 /* The GNU C library defines this for functions which it implements
3133 to always fail with ENOSYS. Some functions are actually named
3134 something starting with __ and the normal name is an alias. */
3135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3143 if { (eval echo configure
:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3145 eval "ac_cv_func_$ac_func=yes"
3147 echo "configure: failed program was:" >&5
3148 cat conftest.
$ac_ext >&5
3150 eval "ac_cv_func_$ac_func=no"
3155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3156 echo "$ac_t""yes" 1>&6
3157 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3158 cat >> confdefs.h
<<EOF
3159 #define $ac_tr_func 1
3163 echo "$ac_t""no" 1>&6
3168 if test $needsnprintf = yes; then
3169 LIBOBJS
="$LIBOBJS snprintf.o"
3173 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3174 echo "configure:3175: checking return type of signal handlers" >&5
3175 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 #include <sys/types.h>
3187 extern "C" void (*signal (int, void (*)(int)))(int);
3189 void (*signal ()) ();
3196 if { (eval echo configure
:3197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3198 ac_cv_type_signal
=void
3200 echo "configure: failed program was:" >&5
3201 cat conftest.
$ac_ext >&5
3203 ac_cv_type_signal
=int
3208 echo "$ac_t""$ac_cv_type_signal" 1>&6
3209 cat >> confdefs.h
<<EOF
3210 #define RETSIGTYPE $ac_cv_type_signal
3214 if test "$ac_cv_type_signal" = void
; then
3215 cat >> confdefs.h
<<\EOF
3220 cat >> confdefs.h
<<\EOF
3221 #define RETSIGVAL (0)
3228 cat >> confdefs.h
<<\EOF
3229 #define _BSD_SIGNALS 1
3235 for ac_func
in sigaction
3237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3238 echo "configure:3239: checking for $ac_func" >&5
3239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 cat > conftest.
$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 /* System header to define __stub macros and hopefully few prototypes,
3246 which can conflict with char $ac_func(); below. */
3248 /* Override any gcc2 internal prototype to avoid an error. */
3249 /* We use char because int might match the return type of a gcc2
3250 builtin and then its argument prototype would still apply. */
3255 /* The GNU C library defines this for functions which it implements
3256 to always fail with ENOSYS. Some functions are actually named
3257 something starting with __ and the normal name is an alias. */
3258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3266 if { (eval echo configure
:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3268 eval "ac_cv_func_$ac_func=yes"
3270 echo "configure: failed program was:" >&5
3271 cat conftest.
$ac_ext >&5
3273 eval "ac_cv_func_$ac_func=no"
3278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
3280 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3281 cat >> confdefs.h
<<EOF
3282 #define $ac_tr_func 1
3286 echo "$ac_t""no" 1>&6
3290 if test $ac_cv_func_sigaction = no
; then
3291 for ac_func
in sigset
3293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3294 echo "configure:3295: checking for $ac_func" >&5
3295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 /* System header to define __stub macros and hopefully few prototypes,
3302 which can conflict with char $ac_func(); below. */
3304 /* Override any gcc2 internal prototype to avoid an error. */
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3311 /* The GNU C library defines this for functions which it implements
3312 to always fail with ENOSYS. Some functions are actually named
3313 something starting with __ and the normal name is an alias. */
3314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3322 if { (eval echo configure
:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3324 eval "ac_cv_func_$ac_func=yes"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3329 eval "ac_cv_func_$ac_func=no"
3334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3337 cat >> confdefs.h
<<EOF
3338 #define $ac_tr_func 1
3342 echo "$ac_t""no" 1>&6
3351 echo $ac_n "checking for library containing dnet_htoa""... $ac_c" 1>&6
3352 echo "configure:3353: checking for library containing dnet_htoa" >&5
3353 if eval "test \"`echo '$''{'ac_cv_search_dnet_htoa'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 ac_func_search_save_LIBS
="$LIBS"
3357 ac_cv_search_dnet_htoa
="no"
3358 cat > conftest.
$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3370 if { (eval echo configure
:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3372 ac_cv_search_dnet_htoa
="none required"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.
$ac_ext >&5
3378 test "$ac_cv_search_dnet_htoa" = "no" && for i
in dnet
; do
3379 LIBS
="-l$i $ac_func_search_save_LIBS"
3380 cat > conftest.
$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 /* Override any gcc2 internal prototype to avoid an error. */
3384 /* We use char because int might match the return type of a gcc2
3385 builtin and then its argument prototype would still apply. */
3392 if { (eval echo configure
:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3394 ac_cv_search_dnet_htoa
="-l$i"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3402 LIBS
="$ac_func_search_save_LIBS"
3405 echo "$ac_t""$ac_cv_search_dnet_htoa" 1>&6
3406 if test "$ac_cv_search_dnet_htoa" != "no"; then
3407 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
3408 cat >> confdefs.h
<<\EOF
3409 #define HAVE_DNET_HTOA 1
3416 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
3417 echo "configure:3418: checking for main in -lrpc" >&5
3418 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
3419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3422 ac_save_LIBS
="$LIBS"
3424 cat > conftest.
$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3432 if { (eval echo configure
:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3434 eval "ac_cv_lib_$ac_lib_var=yes"
3436 echo "configure: failed program was:" >&5
3437 cat conftest.
$ac_ext >&5
3439 eval "ac_cv_lib_$ac_lib_var=no"
3442 LIBS
="$ac_save_LIBS"
3445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3446 echo "$ac_t""yes" 1>&6
3447 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3449 cat >> confdefs.h
<<EOF
3450 #define $ac_tr_lib 1
3456 echo "$ac_t""no" 1>&6
3460 echo $ac_n "checking for library containing getrpcbynumber""... $ac_c" 1>&6
3461 echo "configure:3462: checking for library containing getrpcbynumber" >&5
3462 if eval "test \"`echo '$''{'ac_cv_search_getrpcbynumber'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 ac_func_search_save_LIBS
="$LIBS"
3466 ac_cv_search_getrpcbynumber
="no"
3467 cat > conftest.
$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 /* Override any gcc2 internal prototype to avoid an error. */
3471 /* We use char because int might match the return type of a gcc2
3472 builtin and then its argument prototype would still apply. */
3473 char getrpcbynumber();
3479 if { (eval echo configure
:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3481 ac_cv_search_getrpcbynumber
="none required"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.
$ac_ext >&5
3487 test "$ac_cv_search_getrpcbynumber" = "no" && for i
in nsl
; do
3488 LIBS
="-l$i $ac_func_search_save_LIBS"
3489 cat > conftest.
$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 /* Override any gcc2 internal prototype to avoid an error. */
3493 /* We use char because int might match the return type of a gcc2
3494 builtin and then its argument prototype would still apply. */
3495 char getrpcbynumber();
3501 if { (eval echo configure
:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3503 ac_cv_search_getrpcbynumber
="-l$i"
3506 echo "configure: failed program was:" >&5
3507 cat conftest.
$ac_ext >&5
3511 LIBS
="$ac_func_search_save_LIBS"
3514 echo "$ac_t""$ac_cv_search_getrpcbynumber" 1>&6
3515 if test "$ac_cv_search_getrpcbynumber" != "no"; then
3516 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
3524 # Most operating systems have gethostbyname() in the default searched
3525 # libraries (i.e. libc):
3526 # Some OSes (eg. Solaris) place it in libnsl
3527 # Some strange OSes (SINIX) have it in libsocket:
3529 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3530 echo "configure:3531: checking for library containing gethostbyname" >&5
3531 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 ac_func_search_save_LIBS
="$LIBS"
3535 ac_cv_search_gethostbyname
="no"
3536 cat > conftest.
$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char gethostbyname();
3548 if { (eval echo configure
:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3550 ac_cv_search_gethostbyname
="none required"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3556 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl socket resolv
; do
3557 LIBS
="-l$i $ac_func_search_save_LIBS"
3558 cat > conftest.
$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3564 char gethostbyname();
3570 if { (eval echo configure
:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3572 ac_cv_search_gethostbyname
="-l$i"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.
$ac_ext >&5
3580 LIBS
="$ac_func_search_save_LIBS"
3583 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3584 if test "$ac_cv_search_gethostbyname" != "no"; then
3585 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3590 # Unfortunately libsocket sometimes depends on libnsl and
3591 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3592 if test "$ac_cv_search_gethostbyname" = "no"
3594 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3595 echo "configure:3596: checking for gethostbyname in -lsocket" >&5
3596 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
3597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 ac_save_LIBS
="$LIBS"
3601 LIBS
="-lsocket -lnsl $LIBS"
3602 cat > conftest.
$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* Override any gcc2 internal prototype to avoid an error. */
3606 /* We use char because int might match the return type of a gcc2
3607 builtin and then its argument prototype would still apply. */
3608 char gethostbyname();
3614 if { (eval echo configure
:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3616 eval "ac_cv_lib_$ac_lib_var=yes"
3618 echo "configure: failed program was:" >&5
3619 cat conftest.
$ac_ext >&5
3621 eval "ac_cv_lib_$ac_lib_var=no"
3624 LIBS
="$ac_save_LIBS"
3627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3629 LIBS
="-lsocket -lnsl $LIBS"
3631 echo "$ac_t""no" 1>&6
3636 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
3637 echo "configure:3638: checking for library containing socket" >&5
3638 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 ac_func_search_save_LIBS
="$LIBS"
3642 ac_cv_search_socket
="no"
3643 cat > conftest.
$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 /* Override any gcc2 internal prototype to avoid an error. */
3647 /* We use char because int might match the return type of a gcc2
3648 builtin and then its argument prototype would still apply. */
3655 if { (eval echo configure
:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3657 ac_cv_search_socket
="none required"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3663 test "$ac_cv_search_socket" = "no" && for i
in socket
; do
3664 LIBS
="-l$i $ac_func_search_save_LIBS"
3665 cat > conftest.
$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3677 if { (eval echo configure
:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3679 ac_cv_search_socket
="-l$i"
3682 echo "configure: failed program was:" >&5
3683 cat conftest.
$ac_ext >&5
3687 LIBS
="$ac_func_search_save_LIBS"
3690 echo "$ac_t""$ac_cv_search_socket" 1>&6
3691 if test "$ac_cv_search_socket" != "no"; then
3692 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
3695 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3696 echo "configure:3697: checking for socket in -lsocket" >&5
3697 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 ac_save_LIBS
="$LIBS"
3702 LIBS
="-lsocket -lnsl $LIBS"
3703 cat > conftest.
$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 /* Override any gcc2 internal prototype to avoid an error. */
3707 /* We use char because int might match the return type of a gcc2
3708 builtin and then its argument prototype would still apply. */
3715 if { (eval echo configure
:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3717 eval "ac_cv_lib_$ac_lib_var=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.
$ac_ext >&5
3722 eval "ac_cv_lib_$ac_lib_var=no"
3725 LIBS
="$ac_save_LIBS"
3728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3729 echo "$ac_t""yes" 1>&6
3730 LIBS
="-lsocket -lnsl $LIBS"
3732 echo "$ac_t""no" 1>&6
3736 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3738 echo $ac_n "checking for library containing putmsg""... $ac_c" 1>&6
3739 echo "configure:3740: checking for library containing putmsg" >&5
3740 if eval "test \"`echo '$''{'ac_cv_search_putmsg'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 ac_func_search_save_LIBS
="$LIBS"
3744 ac_cv_search_putmsg
="no"
3745 cat > conftest.
$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* Override any gcc2 internal prototype to avoid an error. */
3749 /* We use char because int might match the return type of a gcc2
3750 builtin and then its argument prototype would still apply. */
3757 if { (eval echo configure
:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3759 ac_cv_search_putmsg
="none required"
3761 echo "configure: failed program was:" >&5
3762 cat conftest.
$ac_ext >&5
3765 test "$ac_cv_search_putmsg" = "no" && for i
in str
; do
3766 LIBS
="-l$i $ac_func_search_save_LIBS"
3767 cat > conftest.
$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3779 if { (eval echo configure
:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3781 ac_cv_search_putmsg
="-l$i"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.
$ac_ext >&5
3789 LIBS
="$ac_func_search_save_LIBS"
3792 echo "$ac_t""$ac_cv_search_putmsg" 1>&6
3793 if test "$ac_cv_search_putmsg" != "no"; then
3794 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
3802 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3803 if test -f $pfopen ; then
3804 for ac_func
in pfopen
3806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3807 echo "configure:3808: checking for $ac_func" >&5
3808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 cat > conftest.
$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3814 /* System header to define __stub macros and hopefully few prototypes,
3815 which can conflict with char $ac_func(); below. */
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */
3824 /* The GNU C library defines this for functions which it implements
3825 to always fail with ENOSYS. Some functions are actually named
3826 something starting with __ and the normal name is an alias. */
3827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3835 if { (eval echo configure
:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3837 eval "ac_cv_func_$ac_func=yes"
3839 echo "configure: failed program was:" >&5
3840 cat conftest.
$ac_ext >&5
3842 eval "ac_cv_func_$ac_func=no"
3847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3849 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3850 cat >> confdefs.h
<<EOF
3851 #define $ac_tr_func 1
3855 echo "$ac_t""no" 1>&6
3859 if test $ac_cv_func_pfopen = "no" ; then
3860 echo "$ac_t""Using $pfopen" 1>&6
3861 LIBS
="$LIBS $pfopen"
3864 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3865 echo "configure:3866: checking for local pcap library" >&5
3868 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3869 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3870 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
3871 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3872 if test $lastdir = $basedir ; then
3876 if test -r $dir/libpcap.a
; then
3877 libpcap
=$dir/libpcap.a
3881 if test $libpcap = FAIL
; then
3882 echo "$ac_t""not found" 1>&6
3883 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3884 echo "configure:3885: checking for main in -lpcap" >&5
3885 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 ac_save_LIBS
="$LIBS"
3891 cat > conftest.
$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3899 if { (eval echo configure
:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3901 eval "ac_cv_lib_$ac_lib_var=yes"
3903 echo "configure: failed program was:" >&5
3904 cat conftest.
$ac_ext >&5
3906 eval "ac_cv_lib_$ac_lib_var=no"
3909 LIBS
="$ac_save_LIBS"
3912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3913 echo "$ac_t""yes" 1>&6
3916 echo "$ac_t""no" 1>&6
3919 if test $libpcap = FAIL
; then
3920 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3922 echo $ac_n "checking for extraneous pcap header directories""... $ac_c" 1>&6
3923 echo "configure:3924: checking for extraneous pcap header directories" >&5
3924 if ! test \
( -r /usr
/local
/include
/pcap.h
-o \
3925 -r /usr
/include
/pcap.h \
); then
3926 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
3927 d
="/usr/local/include/pcap"
3928 elif test -r /usr
/include
/pcap
/pcap.h
; then
3929 d
="/usr/include/pcap"
3932 if test -z $d ; then
3933 echo "$ac_t""not found" 1>&6
3935 V_INCLS
="-I$d $V_INCLS"
3936 echo "$ac_t""found -- -I$d added" 1>&6
3940 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3941 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3942 if test -r $d/pcap.h
; then
3943 V_INCLS
="-I$d $V_INCLS"
3944 elif test -r $places/pcap.h
; then
3945 V_INCLS
="-I$places $V_INCLS"
3947 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3949 echo "$ac_t""$libpcap" 1>&6
3951 LIBS
="$libpcap $LIBS"
3955 pseexe
="/lib/pse.exp"
3956 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3957 echo "configure:3958: checking for $pseexe" >&5
3958 if test -f $pseexe ; then
3959 echo "$ac_t""yes" 1>&6
3960 LIBS
="$LIBS -I:$pseexe"
3963 # We need "-lodm" and "-lcfg", as libpcap requires them on
3964 # AIX, and we just build a static libpcap.a and thus can't
3965 # arrange that when you link with libpcap you automatically
3966 # link with those libraries.
3968 LIBS
="$LIBS -lodm -lcfg"
3972 echo $ac_n "checking for pcap_list_datalinks""... $ac_c" 1>&6
3973 echo "configure:3974: checking for pcap_list_datalinks" >&5
3974 if eval "test \"`echo '$''{'ac_cv_func_pcap_list_datalinks'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 cat > conftest.
$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 /* System header to define __stub macros and hopefully few prototypes,
3981 which can conflict with char pcap_list_datalinks(); below. */
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3986 char pcap_list_datalinks();
3990 /* The GNU C library defines this for functions which it implements
3991 to always fail with ENOSYS. Some functions are actually named
3992 something starting with __ and the normal name is an alias. */
3993 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
3996 pcap_list_datalinks();
4001 if { (eval echo configure
:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4003 eval "ac_cv_func_pcap_list_datalinks=yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4008 eval "ac_cv_func_pcap_list_datalinks=no"
4013 if eval "test \"`echo '$ac_cv_func_'pcap_list_datalinks`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 cat >> confdefs.h
<<\EOF
4016 #define HAVE_PCAP_LIST_DATALINKS 1
4020 echo "$ac_t""no" 1>&6
4021 LIBOBJS
="$LIBOBJS datalinks.o"
4024 echo $ac_n "checking for pcap_set_datalink""... $ac_c" 1>&6
4025 echo "configure:4026: checking for pcap_set_datalink" >&5
4026 if eval "test \"`echo '$''{'ac_cv_func_pcap_set_datalink'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4029 cat > conftest.
$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4032 /* System header to define __stub macros and hopefully few prototypes,
4033 which can conflict with char pcap_set_datalink(); below. */
4035 /* Override any gcc2 internal prototype to avoid an error. */
4036 /* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038 char pcap_set_datalink();
4042 /* The GNU C library defines this for functions which it implements
4043 to always fail with ENOSYS. Some functions are actually named
4044 something starting with __ and the normal name is an alias. */
4045 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
4048 pcap_set_datalink();
4053 if { (eval echo configure
:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4055 eval "ac_cv_func_pcap_set_datalink=yes"
4057 echo "configure: failed program was:" >&5
4058 cat conftest.
$ac_ext >&5
4060 eval "ac_cv_func_pcap_set_datalink=no"
4065 if eval "test \"`echo '$ac_cv_func_'pcap_set_datalink`\" = yes"; then
4066 echo "$ac_t""yes" 1>&6
4067 cat >> confdefs.h
<<\EOF
4068 #define HAVE_PCAP_SET_DATALINK 1
4072 echo "$ac_t""no" 1>&6
4075 echo $ac_n "checking for pcap_datalink_name_to_val""... $ac_c" 1>&6
4076 echo "configure:4077: checking for pcap_datalink_name_to_val" >&5
4077 if eval "test \"`echo '$''{'ac_cv_func_pcap_datalink_name_to_val'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4080 cat > conftest.
$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 /* System header to define __stub macros and hopefully few prototypes,
4084 which can conflict with char pcap_datalink_name_to_val(); below. */
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4089 char pcap_datalink_name_to_val();
4093 /* The GNU C library defines this for functions which it implements
4094 to always fail with ENOSYS. Some functions are actually named
4095 something starting with __ and the normal name is an alias. */
4096 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
4099 pcap_datalink_name_to_val();
4104 if { (eval echo configure
:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4106 eval "ac_cv_func_pcap_datalink_name_to_val=yes"
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 eval "ac_cv_func_pcap_datalink_name_to_val=no"
4116 if eval "test \"`echo '$ac_cv_func_'pcap_datalink_name_to_val`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 cat >> confdefs.h
<<\EOF
4119 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
4123 echo "$ac_t""no" 1>&6
4124 LIBOBJS
="$LIBOBJS dlnames.o"
4129 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
4131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_func" >&5
4133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.
$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 /* System header to define __stub macros and hopefully few prototypes,
4140 which can conflict with char $ac_func(); below. */
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4160 if { (eval echo configure
:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4162 eval "ac_cv_func_$ac_func=yes"
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 eval "ac_cv_func_$ac_func=no"
4172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4174 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4175 cat >> confdefs.h
<<EOF
4176 #define $ac_tr_func 1
4180 echo "$ac_t""no" 1>&6
4184 if test $ac_cv_func_pcap_lib_version = "no" ; then
4185 echo $ac_n "checking whether pcap_version is defined by libpcap""... $ac_c" 1>&6
4186 echo "configure:4187: checking whether pcap_version is defined by libpcap" >&5
4187 cat > conftest.
$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4194 return_pcap_version(void)
4196 extern char pcap_version[];
4198 return pcap_version;
4203 if { (eval echo configure
:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4205 ac_lbl_cv_pcap_version_defined
=yes
4207 echo "configure: failed program was:" >&5
4208 cat conftest.
$ac_ext >&5
4210 ac_lbl_cv_pcap_version_defined
=no
4213 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
4214 echo "$ac_t""yes" 1>&6
4215 cat >> confdefs.h
<<\EOF
4216 #define HAVE_PCAP_VERSION 1
4220 echo "$ac_t""no" 1>&6
4223 echo $ac_n "checking whether pcap_debug is defined by libpcap""... $ac_c" 1>&6
4224 echo "configure:4225: checking whether pcap_debug is defined by libpcap" >&5
4225 cat > conftest.
$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4232 return_pcap_debug(void)
4234 extern int pcap_debug;
4241 if { (eval echo configure
:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4243 ac_lbl_cv_pcap_debug_defined
=yes
4245 echo "configure: failed program was:" >&5
4246 cat conftest.
$ac_ext >&5
4248 ac_lbl_cv_pcap_debug_defined
=no
4251 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
4252 echo "$ac_t""yes" 1>&6
4253 cat >> confdefs.h
<<\EOF
4254 #define HAVE_PCAP_DEBUG 1
4258 echo "$ac_t""no" 1>&6
4260 # OK, what about "yydebug"?
4262 echo $ac_n "checking whether yydebug is defined by libpcap""... $ac_c" 1>&6
4263 echo "configure:4264: checking whether yydebug is defined by libpcap" >&5
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4271 return_yydebug(void)
4280 if { (eval echo configure
:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4282 ac_lbl_cv_yydebug_defined
=yes
4284 echo "configure: failed program was:" >&5
4285 cat conftest.
$ac_ext >&5
4287 ac_lbl_cv_yydebug_defined
=no
4290 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
4291 echo "$ac_t""yes" 1>&6
4292 cat >> confdefs.h
<<\EOF
4293 #define HAVE_YYDEBUG 1
4297 echo "$ac_t""no" 1>&6
4300 for ac_func
in bpf_dump
4302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4303 echo "configure:4304: checking for $ac_func" >&5
4304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 cat > conftest.
$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 /* System header to define __stub macros and hopefully few prototypes,
4311 which can conflict with char $ac_func(); below. */
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4320 /* The GNU C library defines this for functions which it implements
4321 to always fail with ENOSYS. Some functions are actually named
4322 something starting with __ and the normal name is an alias. */
4323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4331 if { (eval echo configure
:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4333 eval "ac_cv_func_$ac_func=yes"
4335 echo "configure: failed program was:" >&5
4336 cat conftest.
$ac_ext >&5
4338 eval "ac_cv_func_$ac_func=no"
4343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4346 cat >> confdefs.h
<<EOF
4347 #define $ac_tr_func 1
4351 echo "$ac_t""no" 1>&6
4352 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
4358 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
4364 cat >> confdefs.h
<<\EOF
4383 if test -f /dev
/bpf0
; then
4387 echo $ac_n "checking for int8_t using $CC""... $ac_c" 1>&6
4388 echo "configure:4389: checking for int8_t using $CC" >&5
4389 if eval "test \"`echo '$''{'ac_cv_lbl_have_int8_t'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 cat > conftest.
$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4396 # include "confdefs.h"
4397 # include <sys/types.h>
4399 # include <stdlib.h>
4400 # include <stddef.h>
4406 if { (eval echo configure
:4407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4408 ac_cv_lbl_have_int8_t
=yes
4410 echo "configure: failed program was:" >&5
4411 cat conftest.
$ac_ext >&5
4413 ac_cv_lbl_have_int8_t
=no
4418 echo "$ac_t""$ac_cv_lbl_have_int8_t" 1>&6
4419 if test $ac_cv_lbl_have_int8_t = no
; then
4420 cat >> confdefs.h
<<\EOF
4421 #define int8_t signed char
4425 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
4426 echo "configure:4427: checking for u_int8_t using $CC" >&5
4427 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 cat > conftest.
$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4434 # include "confdefs.h"
4435 # include <sys/types.h>
4437 # include <stdlib.h>
4438 # include <stddef.h>
4444 if { (eval echo configure
:4445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4446 ac_cv_lbl_have_u_int8_t
=yes
4448 echo "configure: failed program was:" >&5
4449 cat conftest.
$ac_ext >&5
4451 ac_cv_lbl_have_u_int8_t
=no
4456 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
4457 if test $ac_cv_lbl_have_u_int8_t = no
; then
4458 cat >> confdefs.h
<<\EOF
4459 #define u_int8_t u_char
4463 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
4464 echo "configure:4465: checking for int16_t using $CC" >&5
4465 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4468 cat > conftest.
$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4472 # include "confdefs.h"
4473 # include <sys/types.h>
4475 # include <stdlib.h>
4476 # include <stddef.h>
4482 if { (eval echo configure
:4483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4484 ac_cv_lbl_have_int16_t
=yes
4486 echo "configure: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4489 ac_cv_lbl_have_int16_t
=no
4494 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
4495 if test $ac_cv_lbl_have_int16_t = no
; then
4496 cat >> confdefs.h
<<\EOF
4497 #define int16_t short
4501 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
4502 echo "configure:4503: checking for u_int16_t using $CC" >&5
4503 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 cat > conftest.
$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4510 # include "confdefs.h"
4511 # include <sys/types.h>
4513 # include <stdlib.h>
4514 # include <stddef.h>
4520 if { (eval echo configure
:4521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4522 ac_cv_lbl_have_u_int16_t
=yes
4524 echo "configure: failed program was:" >&5
4525 cat conftest.
$ac_ext >&5
4527 ac_cv_lbl_have_u_int16_t
=no
4532 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
4533 if test $ac_cv_lbl_have_u_int16_t = no
; then
4534 cat >> confdefs.h
<<\EOF
4535 #define u_int16_t u_short
4539 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
4540 echo "configure:4541: checking for int32_t using $CC" >&5
4541 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4544 cat > conftest.
$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4548 # include "confdefs.h"
4549 # include <sys/types.h>
4551 # include <stdlib.h>
4552 # include <stddef.h>
4558 if { (eval echo configure
:4559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4560 ac_cv_lbl_have_int32_t
=yes
4562 echo "configure: failed program was:" >&5
4563 cat conftest.
$ac_ext >&5
4565 ac_cv_lbl_have_int32_t
=no
4570 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
4571 if test $ac_cv_lbl_have_int32_t = no
; then
4572 cat >> confdefs.h
<<\EOF
4577 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
4578 echo "configure:4579: checking for u_int32_t using $CC" >&5
4579 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4582 cat > conftest.
$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4586 # include "confdefs.h"
4587 # include <sys/types.h>
4589 # include <stdlib.h>
4590 # include <stddef.h>
4596 if { (eval echo configure
:4597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4598 ac_cv_lbl_have_u_int32_t
=yes
4600 echo "configure: failed program was:" >&5
4601 cat conftest.
$ac_ext >&5
4603 ac_cv_lbl_have_u_int32_t
=no
4608 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
4609 if test $ac_cv_lbl_have_u_int32_t = no
; then
4610 cat >> confdefs.h
<<\EOF
4611 #define u_int32_t u_int
4617 if test "${LBL_CFLAGS+set}" = set; then
4618 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
4620 if test -f .devel
; then
4621 if test "$GCC" = yes ; then
4622 if test "${LBL_CFLAGS+set}" != set; then
4623 if test "$ac_cv_prog_cc_g" = yes ; then
4624 V_CCOPT
="-g $V_CCOPT"
4626 V_CCOPT
="$V_CCOPT -Wall"
4627 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4628 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
4635 V_CCOPT
="$V_CCOPT -n32"
4642 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4644 if test -f $name ; then
4645 ln -s $name os-proto.h
4646 cat >> confdefs.h
<<\EOF
4647 #define HAVE_OS_PROTO_H 1
4651 echo "configure: warning: can't find $name" 1>&2
4655 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4656 echo "configure:4657: checking if sockaddr struct has sa_len member" >&5
4657 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4664 # include <sys/types.h>
4665 # include <sys/socket.h>
4667 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4670 if { (eval echo configure
:4671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4672 ac_cv_lbl_sockaddr_has_sa_len
=yes
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 ac_cv_lbl_sockaddr_has_sa_len
=no
4682 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4683 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4684 cat >> confdefs.h
<<\EOF
4685 #define HAVE_SOCKADDR_SA_LEN 1
4690 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4691 echo "configure:4692: checking if unaligned accesses fail" >&5
4692 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4697 # XXX: should also check that they don't do weird things (like on arm)
4698 alpha
*|arm
*|hp
*|mips
*|sparc
*|ia64
)
4699 ac_cv_lbl_unaligned_fail
=yes
4703 cat >conftest.c
<<EOF
4704 # include <sys/types.h>
4705 # include <sys/wait.h>
4707 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4712 /* avoid "core dumped" message */
4718 pid = waitpid(pid, &status, 0);
4721 exit(!WIFEXITED(status));
4724 i = *(unsigned int *)&a[1];
4729 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4730 conftest.c
$LIBS >/dev
/null
2>&1
4731 if test ! -x conftest
; then
4732 ac_cv_lbl_unaligned_fail
=yes
4734 .
/conftest
>conftest.out
4735 if test ! -s conftest.out
; then
4736 ac_cv_lbl_unaligned_fail
=yes
4738 ac_cv_lbl_unaligned_fail
=no
4741 rm -f conftest
* core core.conftest
4746 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4747 if test $ac_cv_lbl_unaligned_fail = yes ; then
4748 cat >> confdefs.h
<<\EOF
4755 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4756 echo "configure:4757: checking for h_errno" >&5
4757 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4760 cat > conftest.
$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4764 # include <sys/types.h>
4770 if { (eval echo configure
:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4772 ac_cv_var_h_errno
=yes
4774 echo "configure: failed program was:" >&5
4775 cat conftest.
$ac_ext >&5
4777 ac_cv_var_h_errno
=no
4782 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4783 if test "$ac_cv_var_h_errno" = "yes"; then
4784 cat >> confdefs.h
<<\EOF
4785 #define HAVE_H_ERRNO 1
4791 # Check whether --with-crypto or --without-crypto was given.
4792 if test "${with_crypto+set}" = set; then
4793 withval
="$with_crypto"
4797 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4798 echo "configure:4799: checking for SSLeay" >&5
4799 ac_cv_ssleay_path
=no
4801 for dir
in /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4802 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4803 ac_cv_ssleay_path
=$dir
4805 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4806 incdir
="-I$dir/include"
4808 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4811 ac_cv_ssleay_path
=no
4815 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4816 if test "$ac_cv_ssleay_path" != no
; then
4817 V_INCLS
="$V_INCLS $incdir"
4818 LDFLAGS
="-L$dir/lib $LDFLAGS"
4819 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4820 LIBS
="$LIBS -lRSAglue"
4822 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4823 LIBS
="$LIBS -lrsaref"
4825 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4826 echo "configure:4827: checking for des_cbc_encrypt in -lcrypto" >&5
4827 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 ac_save_LIBS
="$LIBS"
4832 LIBS
="-lcrypto $LIBS"
4833 cat > conftest.
$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4839 char des_cbc_encrypt();
4845 if { (eval echo configure
:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4847 eval "ac_cv_lib_$ac_lib_var=yes"
4849 echo "configure: failed program was:" >&5
4850 cat conftest.
$ac_ext >&5
4852 eval "ac_cv_lib_$ac_lib_var=no"
4855 LIBS
="$ac_save_LIBS"
4858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4861 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4862 cat >> confdefs.h
<<EOF
4863 #define $ac_tr_lib 1
4866 LIBS
="-lcrypto $LIBS"
4869 echo "$ac_t""no" 1>&6
4873 bak_CPPFLAGS
=$CPPFLAGS
4874 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4875 for ac_hdr
in openssl
/cast.h
4877 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4879 echo "configure:4880: checking for $ac_hdr" >&5
4880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 cat > conftest.
$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4889 { (eval echo configure
:4890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4891 if test -z "$ac_err"; then
4893 eval "ac_cv_header_$ac_safe=yes"
4896 echo "configure: failed program was:" >&5
4897 cat conftest.
$ac_ext >&5
4899 eval "ac_cv_header_$ac_safe=no"
4903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4904 echo "$ac_t""yes" 1>&6
4905 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4906 cat >> confdefs.h
<<EOF
4907 #define $ac_tr_hdr 1
4911 echo "$ac_t""no" 1>&6
4916 if test "$ac_cv_header_openssl_cast_h" = "yes"; then
4917 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4918 echo "configure:4919: checking for buggy CAST128" >&5
4919 if eval "test \"`echo '$''{'td_cv_buggy_cast128'+set}'`\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
4922 if test "$cross_compiling" = yes; then
4923 td_cv_buggy_cast128
="cross-compiling, assume yes"
4925 cat > conftest.
$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4929 #include <openssl/cast.h>
4932 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
4933 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
4934 unsigned char out[sizeof(in)];
4935 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
4937 CAST_set_key(&ks, sizeof(key), key);
4938 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
4939 if (memcmp(out, ok, sizeof(ok)) != 0)
4945 if { (eval echo configure
:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4947 td_cv_buggy_cast128
=yes
4949 echo "configure: failed program was:" >&5
4950 cat conftest.
$ac_ext >&5
4952 td_cv_buggy_cast128
=no
4959 echo "$ac_t""$td_cv_buggy_cast128" 1>&6
4960 if test "$td_cv_buggy_cast128" != no
; then
4961 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4962 echo "disabling CAST128 support."
4963 cat >> confdefs.h
<<\EOF
4964 #define HAVE_BUGGY_CAST128 1
4970 CPPFLAGS
=$bak_CPPFLAGS
4975 for ac_hdr
in openssl
/rc5.h
4977 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4979 echo "configure:4980: checking for $ac_hdr" >&5
4980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 cat > conftest.
$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4988 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4989 { (eval echo configure
:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4990 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4991 if test -z "$ac_err"; then
4993 eval "ac_cv_header_$ac_safe=yes"
4996 echo "configure: failed program was:" >&5
4997 cat conftest.
$ac_ext >&5
4999 eval "ac_cv_header_$ac_safe=no"
5003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5006 cat >> confdefs.h
<<EOF
5007 #define $ac_tr_hdr 1
5011 echo "$ac_t""no" 1>&6
5022 # Find a good install program. We prefer a C program (faster),
5023 # so one script is as good as another. But avoid the broken or
5024 # incompatible versions:
5025 # SysV /etc/install, /usr/sbin/install
5026 # SunOS /usr/etc/install
5027 # IRIX /sbin/install
5029 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5032 # ./install, which can be erroneously created by make from ./install.sh.
5033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
5034 echo "configure:5035: checking for a BSD compatible install" >&5
5035 if test -z "$INSTALL"; then
5036 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
5040 for ac_dir
in $PATH; do
5041 # Account for people who put trailing slashes in PATH elements.
5043 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
5045 # OSF1 and SCO ODT 3.0 have their own names for install.
5046 # Don't use installbsd from OSF since it installs stuff as root
5048 for ac_prog
in ginstall scoinst
install; do
5049 if test -f $ac_dir/$ac_prog; then
5050 if test $ac_prog = install &&
5051 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
5052 # AIX install. It has an incompatible calling convention.
5055 ac_cv_path_install
="$ac_dir/$ac_prog -c"
5066 if test "${ac_cv_path_install+set}" = set; then
5067 INSTALL
="$ac_cv_path_install"
5069 # As a last resort, use the slow shell script. We don't cache a
5070 # path for INSTALL within a source directory, because that will
5071 # break other packages using the cache if that directory is
5072 # removed, or if the path is relative.
5073 INSTALL
="$ac_install_sh"
5076 echo "$ac_t""$INSTALL" 1>&6
5078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5079 # It thinks the first close brace ends the variable substitution.
5080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
5084 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5091 cat > confcache
<<\EOF
5092 # This file is a shell script that caches the results of configure
5093 # tests run on this system so they can be shared between configure
5094 # scripts and configure runs. It is not useful on other systems.
5095 # If it contains results you don't want to keep, you may remove or edit it.
5097 # By default, configure uses ./config.cache as the cache file,
5098 # creating it if it does not exist already. You can give configure
5099 # the --cache-file=FILE option to use a different cache file; that is
5100 # what configure does when it calls configure scripts in
5101 # subdirectories, so they share the cache.
5102 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5103 # config.status only pays attention to the cache file if you give it the
5104 # --recheck option to rerun configure.
5107 # The following way of writing the cache mishandles newlines in values,
5108 # but we know of no workaround that is simple, portable, and efficient.
5109 # So, don't put newlines in cache variables' values.
5110 # Ultrix sh set writes to stderr and can't be redirected directly,
5111 # and sets the high bit in the cache file unless we assign to the vars.
5113 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5115 # `set' does not quote correctly, so add quotes (double-quote substitution
5116 # turns \\\\ into \\, and sed turns \\ into \).
5118 -e "s/'/'\\\\''/g" \
5119 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5122 # `set' quotes correctly as required by POSIX, so do not add quotes.
5123 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5126 if cmp -s $cache_file confcache
; then
5129 if test -w $cache_file; then
5130 echo "updating cache $cache_file"
5131 cat confcache
> $cache_file
5133 echo "not updating unwritable cache $cache_file"
5138 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5140 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5141 # Let make expand exec_prefix.
5142 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5144 # Any assignment to VPATH causes Sun make to only execute
5145 # the first set of double-colon rules, so remove it if not needed.
5146 # If there is a colon in the path, we need to keep it.
5147 if test "x$srcdir" = x.
; then
5148 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5151 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5153 DEFS
=-DHAVE_CONFIG_H
5155 # Without the "./", some shells look in PATH for config.status.
5156 : ${CONFIG_STATUS=./config.status}
5158 echo creating
$CONFIG_STATUS
5159 rm -f $CONFIG_STATUS
5160 cat > $CONFIG_STATUS <<EOF
5162 # Generated automatically by configure.
5163 # Run this file to recreate the current configuration.
5164 # This directory was configured as follows,
5165 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5167 # $0 $ac_configure_args
5169 # Compiler output produced by configure, useful for debugging
5170 # configure, is in ./config.log if it exists.
5172 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5175 case "\$ac_option" in
5176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5177 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5178 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5179 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5180 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5182 -help | --help | --hel | --he | --h)
5183 echo "\$ac_cs_usage"; exit 0 ;;
5184 *) echo "\$ac_cs_usage"; exit 1 ;;
5188 ac_given_srcdir=$srcdir
5189 ac_given_INSTALL="$INSTALL"
5191 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5193 cat >> $CONFIG_STATUS <<EOF
5195 # Protect against being on the right side of a sed subst in config.status.
5196 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5197 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5201 s%@CFLAGS@%$CFLAGS%g
5202 s%@CPPFLAGS@%$CPPFLAGS%g
5203 s%@CXXFLAGS@%$CXXFLAGS%g
5204 s%@FFLAGS@%$FFLAGS%g
5206 s%@LDFLAGS@%$LDFLAGS%g
5208 s%@exec_prefix@%$exec_prefix%g
5209 s%@prefix@%$prefix%g
5210 s%@program_transform_name@%$program_transform_name%g
5211 s%@bindir@%$bindir%g
5212 s%@sbindir@%$sbindir%g
5213 s%@libexecdir@%$libexecdir%g
5214 s%@datadir@%$datadir%g
5215 s%@sysconfdir@%$sysconfdir%g
5216 s%@sharedstatedir@%$sharedstatedir%g
5217 s%@localstatedir@%$localstatedir%g
5218 s%@libdir@%$libdir%g
5219 s%@includedir@%$includedir%g
5220 s%@oldincludedir@%$oldincludedir%g
5221 s%@infodir@%$infodir%g
5222 s%@mandir@%$mandir%g
5224 s%@host_alias@%$host_alias%g
5225 s%@host_cpu@%$host_cpu%g
5226 s%@host_vendor@%$host_vendor%g
5227 s%@host_os@%$host_os%g
5228 s%@SHLICC2@%$SHLICC2%g
5231 s%@LIBOBJS@%$LIBOBJS%g
5232 s%@V_CCOPT@%$V_CCOPT%g
5233 s%@V_GROUP@%$V_GROUP%g
5234 s%@V_INCLS@%$V_INCLS%g
5235 s%@V_PCAPDEP@%$V_PCAPDEP%g
5236 s%@LOCALSRC@%$LOCALSRC%g
5237 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5238 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5239 s%@INSTALL_DATA@%$INSTALL_DATA%g
5244 cat >> $CONFIG_STATUS <<\EOF
5246 # Split the substitutions into bite-sized pieces for seds with
5247 # small command number limits, like on Digital OSF/1 and HP-UX.
5248 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5249 ac_file
=1 # Number of current file.
5250 ac_beg
=1 # First line for current file.
5251 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5254 while $ac_more_lines; do
5255 if test $ac_beg -gt 1; then
5256 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5258 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5260 if test ! -s conftest.s
$ac_file; then
5262 rm -f conftest.s
$ac_file
5264 if test -z "$ac_sed_cmds"; then
5265 ac_sed_cmds
="sed -f conftest.s$ac_file"
5267 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5269 ac_file
=`expr $ac_file + 1`
5271 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5274 if test -z "$ac_sed_cmds"; then
5279 cat >> $CONFIG_STATUS <<EOF
5281 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5283 cat >> $CONFIG_STATUS <<\EOF
5284 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5287 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5288 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5289 *) ac_file_in
="${ac_file}.in" ;;
5292 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5294 # Remove last slash and all that follows it. Not all systems have dirname.
5295 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5296 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5297 # The file is in a subdirectory.
5298 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5299 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5300 # A "../" for each directory in $ac_dir_suffix.
5301 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5303 ac_dir_suffix
= ac_dots
=
5306 case "$ac_given_srcdir" in
5308 if test -z "$ac_dots"; then top_srcdir
=.
5309 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5310 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5312 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5313 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5316 case "$ac_given_INSTALL" in
5317 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5318 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5321 echo creating
"$ac_file"
5323 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5325 *Makefile
*) ac_comsub
="1i\\
5326 # $configure_input" ;;
5330 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5332 s%@configure_input@%$configure_input%g
5333 s%@srcdir@%$srcdir%g
5334 s%@top_srcdir@%$top_srcdir%g
5335 s%@INSTALL@%$INSTALL%g
5336 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5340 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5341 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5343 # ac_d sets the value in "#define NAME VALUE" lines.
5344 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5345 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5348 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5349 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5350 ac_uB
='\([ ]\)%\1#\2define\3'
5353 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5354 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5355 ac_eB
='$%\1#\2define\3'
5359 if test "${CONFIG_HEADERS+set}" != set; then
5361 cat >> $CONFIG_STATUS <<EOF
5362 CONFIG_HEADERS="config.h"
5364 cat >> $CONFIG_STATUS <<\EOF
5366 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5369 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5370 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5371 *) ac_file_in
="${ac_file}.in" ;;
5374 echo creating
$ac_file
5376 rm -f conftest.frag conftest.
in conftest.out
5377 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5378 cat $ac_file_inputs > conftest.
in
5382 # Transform confdefs.h into a sed script conftest.vals that substitutes
5383 # the proper values into config.h.in to produce config.h. And first:
5384 # Protect against being on the right side of a sed subst in config.status.
5385 # Protect against being in an unquoted here document in config.status.
5387 cat > conftest.hdr
<<\EOF
5390 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5394 sed -n -f conftest.hdr confdefs.h > conftest.vals
5397 # This sed command replaces #undef with comments. This is necessary, for
5398 # example, in the case of _POSIX_SOURCE, which is predefined and required
5399 # on some systems where configure will not decide to define it.
5400 cat >> conftest.vals <<\EOF
5401 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5404 # Break up conftest.vals because some shells have a limit on
5405 # the size of here documents, and old seds have small limits too.
5410 ac_lines=`grep -c . conftest.vals
`
5411 # grep -c gives empty output for an empty file on some AIX systems.
5412 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5413 # Write a limited-size here document to conftest.frag.
5414 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5415 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5417 sed -f conftest.frag conftest.in > conftest.out
5419 mv conftest.out conftest.in
5421 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5423 mv conftest.tail conftest.vals
5427 cat >> $CONFIG_STATUS <<\EOF
5428 rm -f conftest.frag conftest.h
5429 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5430 cat conftest.in >> conftest.h
5432 if cmp -s $ac_file conftest.h 2>/dev/null; then
5433 echo "$ac_file is unchanged"
5436 # Remove last slash and all that follows it. Not all systems have dirname.
5437 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5438 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5439 # The file is in a subdirectory.
5440 test ! -d "$ac_dir" && mkdir "$ac_dir"
5443 mv conftest.h $ac_file
5448 cat >> $CONFIG_STATUS <<EOF
5452 cat >> $CONFIG_STATUS <<\EOF
5453 if test -f .devel; then
5454 echo timestamp > stamp-h
5455 cat Makefile-devel-adds >> Makefile
5461 chmod +x $CONFIG_STATUS
5462 rm -fr confdefs* $ac_clean_files
5463 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1