3 # From configure.in Revision: 1.169
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 hints.ai_protocol = IPPROTO_TCP;
1879 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1880 (void)gai_strerror(gaierr);
1883 for (ai = aitop; ai; ai = ai->ai_next) {
1884 if (ai->ai_addr == NULL ||
1885 ai->ai_addrlen == 0 ||
1886 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1887 straddr, sizeof(straddr), strport, sizeof(strport),
1888 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1891 switch (ai->ai_family) {
1893 if (strcmp(strport, "54321") != 0) {
1897 if (strcmp(straddr, "0.0.0.0") != 0) {
1901 if (strcmp(straddr, "127.0.0.1") != 0) {
1908 if (strcmp(strport, "54321") != 0) {
1912 if (strcmp(straddr, "::") != 0) {
1916 if (strcmp(straddr, "::1") != 0) {
1933 /* another family support? */
1939 /* supported family should be 2, unsupported family should be 0 */
1940 if (!(inet4 == 0 || inet4 == 2))
1942 if (!(inet6 == 0 || inet6 == 2))
1946 freeaddrinfo(aitop);
1951 freeaddrinfo(aitop);
1956 if { (eval echo configure
:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1958 td_cv_buggygetaddrinfo
=no
1960 echo "configure: failed program was:" >&5
1961 cat conftest.
$ac_ext >&5
1963 td_cv_buggygetaddrinfo
=yes
1970 if test "$td_cv_buggygetaddrinfo" = no
; then
1971 echo "$ac_t""good" 1>&6
1973 echo "$ac_t""buggy" 1>&6
1976 if test "$td_cv_buggygetaddrinfo" = "yes"; then
1978 # XXX - it doesn't appear that "ipv6type" can ever be
1979 # set to "linux". Should this be testing for
1980 # "linux-glibc", or for that *or* "linux-libinet6"?
1981 # If the latter, note that "linux-libinet6" is also
1982 # the type given to some non-Linux OSes.
1984 if test "$ipv6type" != "linux"; then
1985 echo 'Fatal: You must get working getaddrinfo() function.'
1986 echo ' or you can specify "--disable-ipv6"'.
1989 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1990 echo ' Better upgrade your system library to newest version'
1991 echo ' of GNU C library (aka glibc).'
1998 for ac_func
in getaddrinfo getnameinfo
2000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_func" >&5
2002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.
$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2008 /* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $ac_func(); below. */
2011 /* Override any gcc2 internal prototype to avoid an error. */
2012 /* We use char because int might match the return type of a gcc2
2013 builtin and then its argument prototype would still apply. */
2018 /* The GNU C library defines this for functions which it implements
2019 to always fail with ENOSYS. Some functions are actually named
2020 something starting with __ and the normal name is an alias. */
2021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2029 if { (eval echo configure
:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2031 eval "ac_cv_func_$ac_func=yes"
2033 echo "configure: failed program was:" >&5
2034 cat conftest.
$ac_ext >&5
2036 eval "ac_cv_func_$ac_func=no"
2041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2044 cat >> confdefs.h
<<EOF
2045 #define $ac_tr_func 1
2049 echo "$ac_t""no" 1>&6
2050 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2057 echo $ac_n "checking for dnet_htoa declaration in netdnet/dnetdb.h""... $ac_c" 1>&6
2058 echo "configure:2059: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
2059 if eval "test \"`echo '$''{'td_cv_decl_netdnet_dnetdb_h_dnet_htoa'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 cat > conftest.
$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 #include <netdnet/dnetdb.h>
2067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2068 egrep "dnet_htoa" >/dev
/null
2>&1; then
2070 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
2073 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
2079 echo "$ac_t""$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" 1>&6
2080 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
2081 cat >> confdefs.h
<<\EOF
2082 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
2087 echo $ac_n "checking size of char""... $ac_c" 1>&6
2088 echo "configure:2089: checking size of char" >&5
2089 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 if test "$cross_compiling" = yes; then
2095 cat > conftest.
$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2101 FILE *f=fopen("conftestval", "w");
2103 fprintf(f, "%d\n", sizeof(char));
2107 if { (eval echo configure
:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2109 ac_cv_sizeof_char
=`cat conftestval`
2111 echo "configure: failed program was:" >&5
2112 cat conftest.
$ac_ext >&5
2120 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2121 cat >> confdefs.h
<<EOF
2122 #define SIZEOF_CHAR $ac_cv_sizeof_char
2126 echo $ac_n "checking size of short""... $ac_c" 1>&6
2127 echo "configure:2128: checking size of short" >&5
2128 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 if test "$cross_compiling" = yes; then
2132 ac_cv_sizeof_short
=2
2134 cat > conftest.
$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2140 FILE *f=fopen("conftestval", "w");
2142 fprintf(f, "%d\n", sizeof(short));
2146 if { (eval echo configure
:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2148 ac_cv_sizeof_short
=`cat conftestval`
2150 echo "configure: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2153 ac_cv_sizeof_short
=0
2159 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2160 cat >> confdefs.h
<<EOF
2161 #define SIZEOF_SHORT $ac_cv_sizeof_short
2165 echo $ac_n "checking size of int""... $ac_c" 1>&6
2166 echo "configure:2167: checking size of int" >&5
2167 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 if test "$cross_compiling" = yes; then
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2179 FILE *f=fopen("conftestval", "w");
2181 fprintf(f, "%d\n", sizeof(int));
2185 if { (eval echo configure
:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2187 ac_cv_sizeof_int
=`cat conftestval`
2189 echo "configure: failed program was:" >&5
2190 cat conftest.
$ac_ext >&5
2198 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2199 cat >> confdefs.h
<<EOF
2200 #define SIZEOF_INT $ac_cv_sizeof_int
2204 echo $ac_n "checking size of long""... $ac_c" 1>&6
2205 echo "configure:2206: checking size of long" >&5
2206 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 if test "$cross_compiling" = yes; then
2212 cat > conftest.
$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2218 FILE *f=fopen("conftestval", "w");
2220 fprintf(f, "%d\n", sizeof(long));
2224 if { (eval echo configure
:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2226 ac_cv_sizeof_long
=`cat conftestval`
2228 echo "configure: failed program was:" >&5
2229 cat conftest.
$ac_ext >&5
2237 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2238 cat >> confdefs.h
<<EOF
2239 #define SIZEOF_LONG $ac_cv_sizeof_long
2246 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2247 echo "configure:2248: checking for addrinfo" >&5
2248 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 cat > conftest.
$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2260 if { (eval echo configure
:2261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2264 echo "configure: failed program was:" >&5
2265 cat conftest.
$ac_ext >&5
2272 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2273 if test $ac_cv_addrinfo = yes; then
2274 cat >> confdefs.h
<<\EOF
2275 #define HAVE_ADDRINFO 1
2279 cat >> confdefs.h
<<\EOF
2280 #define NEED_ADDRINFO_H 1
2285 if test "$ac_cv_addrinfo" = no
; then
2286 missing_includes
=yes
2290 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6
2291 echo "configure:2292: checking for NI_MAXSERV" >&5
2292 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 cat > conftest.
$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2304 egrep "yes" >/dev
/null
2>&1; then
2315 echo "$ac_t""$ac_cv_maxserv" 1>&6
2316 if test $ac_cv_maxserv != yes; then
2317 cat >> confdefs.h
<<\EOF
2318 #define NEED_ADDRINFO_H 1
2323 if test "$ac_cv_maxserv" = no
; then
2324 missing_includes
=yes
2328 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6
2329 echo "configure:2330: checking for NI_NAMEREQD" >&5
2330 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2342 egrep "yes" >/dev
/null
2>&1; then
2353 echo "$ac_t""$ac_cv_namereqd" 1>&6
2354 if test $ac_cv_namereqd != yes; then
2355 cat >> confdefs.h
<<\EOF
2356 #define NEED_ADDRINFO_H 1
2361 if test "$ac_cv_namereqd" = no
; then
2362 missing_includes
=yes
2366 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2367 echo "configure:2368: checking for sockaddr_storage" >&5
2368 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2375 # include <sys/types.h>
2376 # include <sys/socket.h>
2378 struct sockaddr_storage s
2381 if { (eval echo configure
:2382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2383 ac_cv_sa_storage
=yes
2385 echo "configure: failed program was:" >&5
2386 cat conftest.
$ac_ext >&5
2393 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2394 if test $ac_cv_sa_storage = yes; then
2395 cat >> confdefs.h
<<\EOF
2396 #define HAVE_SOCKADDR_STORAGE 1
2401 if test "$ac_cv_sa_storage" = no
; then
2402 missing_includes
=yes
2407 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2408 echo "configure:2409: checking for INADDRSZ" >&5
2409 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2416 # include <arpa/nameser.h>
2421 if { (eval echo configure
:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 echo "configure: failed program was:" >&5
2426 cat conftest.
$ac_ext >&5
2433 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2434 if test $ac_cv_inaddrsz = yes; then
2435 cat >> confdefs.h
<<\EOF
2436 #define HAVE_INADDRSZ 1
2442 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2443 echo "configure:2444: checking for IN6ADDRSZ" >&5
2444 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2451 # include <arpa/nameser.h>
2456 if { (eval echo configure
:2457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2460 echo "configure: failed program was:" >&5
2461 cat conftest.
$ac_ext >&5
2468 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2469 if test $ac_cv_in6addrsz = yes; then
2470 cat >> confdefs.h
<<\EOF
2471 #define HAVE_IN6ADDRSZ 1
2478 if test "$ac_cv_addrsz" = no
; then
2479 missing_includes
=yes
2483 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2484 echo "configure:2485: checking for RES_USE_INET6" >&5
2485 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 cat > conftest.
$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2492 # include <sys/types.h>
2493 # include <netinet/in.h>
2494 # include <resolv.h>
2496 int a = RES_USE_INET6
2499 if { (eval echo configure
:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503 echo "configure: failed program was:" >&5
2504 cat conftest.
$ac_ext >&5
2511 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2512 if test $ac_cv_res_inet6 = yes; then
2513 cat >> confdefs.h
<<\EOF
2514 #define HAVE_RES_USE_INET6 1
2519 if test "$ac_cv_res_inet6" = no
; then
2520 missing_includes
=yes
2524 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2525 echo "configure:2526: checking for res_state_ext" >&5
2526 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.
$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2533 # include <sys/types.h>
2534 # include <netinet/in.h>
2535 # include <netinet6/in6.h>
2536 # include <resolv.h>
2538 struct __res_state_ext e
2541 if { (eval echo configure
:2542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2543 ac_cv_res_state_ext
=yes
2545 echo "configure: failed program was:" >&5
2546 cat conftest.
$ac_ext >&5
2548 ac_cv_res_state_ext
=no
2553 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2554 if test $ac_cv_res_state_ext = yes; then
2555 cat >> confdefs.h
<<\EOF
2556 #define HAVE_RES_STATE_EXT 1
2561 if test "$ac_cv_res_state_ext" = no
; then
2562 missing_includes
=yes
2566 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2567 echo "configure:2568: checking for nsort in res_state" >&5
2568 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 cat > conftest.
$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2575 # include <sys/types.h>
2576 # include <netinet/in.h>
2577 # include <netinet6/in6.h>
2578 # include <resolv.h>
2580 struct __res_state e; e.nsort = 0
2583 if { (eval echo configure
:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2587 echo "configure: failed program was:" >&5
2588 cat conftest.
$ac_ext >&5
2595 echo "$ac_t""$ac_cv_res_state" 1>&6
2596 if test $ac_cv_res_state = yes; then
2597 cat >> confdefs.h
<<\EOF
2598 #define HAVE_NEW_RES_STATE 1
2604 if test "$missing_includes" = "yes"; then
2605 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2606 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2610 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
2612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2613 echo "configure:2614: checking for $ac_func" >&5
2614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 cat > conftest.
$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 /* System header to define __stub macros and hopefully few prototypes,
2621 which can conflict with char $ac_func(); below. */
2623 /* Override any gcc2 internal prototype to avoid an error. */
2624 /* We use char because int might match the return type of a gcc2
2625 builtin and then its argument prototype would still apply. */
2630 /* The GNU C library defines this for functions which it implements
2631 to always fail with ENOSYS. Some functions are actually named
2632 something starting with __ and the normal name is an alias. */
2633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2641 if { (eval echo configure
:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2643 eval "ac_cv_func_$ac_func=yes"
2645 echo "configure: failed program was:" >&5
2646 cat conftest.
$ac_ext >&5
2648 eval "ac_cv_func_$ac_func=no"
2653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2656 cat >> confdefs.h
<<EOF
2657 #define $ac_tr_func 1
2661 echo "$ac_t""no" 1>&6
2662 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2667 for ac_func
in strftime
2669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2670 echo "configure:2671: checking for $ac_func" >&5
2671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 cat > conftest.
$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 /* System header to define __stub macros and hopefully few prototypes,
2678 which can conflict with char $ac_func(); below. */
2680 /* Override any gcc2 internal prototype to avoid an error. */
2681 /* We use char because int might match the return type of a gcc2
2682 builtin and then its argument prototype would still apply. */
2687 /* The GNU C library defines this for functions which it implements
2688 to always fail with ENOSYS. Some functions are actually named
2689 something starting with __ and the normal name is an alias. */
2690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2698 if { (eval echo configure
:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2700 eval "ac_cv_func_$ac_func=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.
$ac_ext >&5
2705 eval "ac_cv_func_$ac_func=no"
2710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2711 echo "$ac_t""yes" 1>&6
2712 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2713 cat >> confdefs.h
<<EOF
2714 #define $ac_tr_func 1
2718 echo "$ac_t""no" 1>&6
2722 for ac_func
in ether_ntohost
2724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_func" >&5
2726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
2732 /* System header to define __stub macros and hopefully few prototypes,
2733 which can conflict with char $ac_func(); below. */
2735 /* Override any gcc2 internal prototype to avoid an error. */
2736 /* We use char because int might match the return type of a gcc2
2737 builtin and then its argument prototype would still apply. */
2742 /* The GNU C library defines this for functions which it implements
2743 to always fail with ENOSYS. Some functions are actually named
2744 something starting with __ and the normal name is an alias. */
2745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2753 if { (eval echo configure
:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2755 eval "ac_cv_func_$ac_func=yes"
2757 echo "configure: failed program was:" >&5
2758 cat conftest.
$ac_ext >&5
2760 eval "ac_cv_func_$ac_func=no"
2765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2768 cat >> confdefs.h
<<EOF
2769 #define $ac_tr_func 1
2772 echo $ac_n "checking for buggy ether_ntohost""... $ac_c" 1>&6
2773 echo "configure:2774: checking for buggy ether_ntohost" >&5
2774 if eval "test \"`echo '$''{'ac_cv_buggy_ether_ntohost'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2778 if test "$cross_compiling" = yes; then
2779 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
2781 cat > conftest.
$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2786 #include <sys/types.h>
2787 #include <sys/param.h>
2788 #include <sys/socket.h>
2791 main(int argc, char **argv)
2793 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
2794 char name[MAXHOSTNAMELEN];
2796 ether_ntohost(name, (struct ether_addr *)ea);
2801 if { (eval echo configure
:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2803 ac_cv_buggy_ether_ntohost
=no
2805 echo "configure: failed program was:" >&5
2806 cat conftest.
$ac_ext >&5
2808 ac_cv_buggy_ether_ntohost
=yes
2815 echo "$ac_t""$ac_cv_buggy_ether_ntohost" 1>&6
2816 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
2817 cat >> confdefs.h
<<\EOF
2818 #define USE_ETHER_NTOHOST 1
2824 echo "$ac_t""no" 1>&6
2828 for ac_func
in setlinebuf
2830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2831 echo "configure:2832: checking for $ac_func" >&5
2832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.
$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 /* System header to define __stub macros and hopefully few prototypes,
2839 which can conflict with char $ac_func(); below. */
2841 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2848 /* The GNU C library defines this for functions which it implements
2849 to always fail with ENOSYS. Some functions are actually named
2850 something starting with __ and the normal name is an alias. */
2851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2859 if { (eval echo configure
:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2861 eval "ac_cv_func_$ac_func=yes"
2863 echo "configure: failed program was:" >&5
2864 cat conftest.
$ac_ext >&5
2866 eval "ac_cv_func_$ac_func=no"
2871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2872 echo "$ac_t""yes" 1>&6
2873 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2874 cat >> confdefs.h
<<EOF
2875 #define $ac_tr_func 1
2879 echo "$ac_t""no" 1>&6
2885 for ac_func
in vsnprintf snprintf
2887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_func" >&5
2889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.
$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 /* System header to define __stub macros and hopefully few prototypes,
2896 which can conflict with char $ac_func(); below. */
2898 /* Override any gcc2 internal prototype to avoid an error. */
2899 /* We use char because int might match the return type of a gcc2
2900 builtin and then its argument prototype would still apply. */
2905 /* The GNU C library defines this for functions which it implements
2906 to always fail with ENOSYS. Some functions are actually named
2907 something starting with __ and the normal name is an alias. */
2908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2916 if { (eval echo configure
:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2918 eval "ac_cv_func_$ac_func=yes"
2920 echo "configure: failed program was:" >&5
2921 cat conftest.
$ac_ext >&5
2923 eval "ac_cv_func_$ac_func=no"
2928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2929 echo "$ac_t""yes" 1>&6
2930 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2931 cat >> confdefs.h
<<EOF
2932 #define $ac_tr_func 1
2936 echo "$ac_t""no" 1>&6
2941 if test $needsnprintf = yes; then
2942 LIBOBJS
="$LIBOBJS snprintf.o"
2946 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2947 echo "configure:2948: checking return type of signal handlers" >&5
2948 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 cat > conftest.
$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2960 extern "C" void (*signal (int, void (*)(int)))(int);
2962 void (*signal ()) ();
2969 if { (eval echo configure
:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2971 ac_cv_type_signal
=void
2973 echo "configure: failed program was:" >&5
2974 cat conftest.
$ac_ext >&5
2976 ac_cv_type_signal
=int
2981 echo "$ac_t""$ac_cv_type_signal" 1>&6
2982 cat >> confdefs.h
<<EOF
2983 #define RETSIGTYPE $ac_cv_type_signal
2987 if test "$ac_cv_type_signal" = void
; then
2988 cat >> confdefs.h
<<\EOF
2993 cat >> confdefs.h
<<\EOF
2994 #define RETSIGVAL (0)
3001 cat >> confdefs.h
<<\EOF
3002 #define _BSD_SIGNALS 1
3008 for ac_func
in sigaction
3010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_func" >&5
3012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.
$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 /* System header to define __stub macros and hopefully few prototypes,
3019 which can conflict with char $ac_func(); below. */
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3028 /* The GNU C library defines this for functions which it implements
3029 to always fail with ENOSYS. Some functions are actually named
3030 something starting with __ and the normal name is an alias. */
3031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3039 if { (eval echo configure
:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3041 eval "ac_cv_func_$ac_func=yes"
3043 echo "configure: failed program was:" >&5
3044 cat conftest.
$ac_ext >&5
3046 eval "ac_cv_func_$ac_func=no"
3051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3054 cat >> confdefs.h
<<EOF
3055 #define $ac_tr_func 1
3059 echo "$ac_t""no" 1>&6
3063 if test $ac_cv_func_sigaction = no
; then
3064 for ac_func
in sigset
3066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3067 echo "configure:3068: checking for $ac_func" >&5
3068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 cat > conftest.
$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 /* System header to define __stub macros and hopefully few prototypes,
3075 which can conflict with char $ac_func(); below. */
3077 /* Override any gcc2 internal prototype to avoid an error. */
3078 /* We use char because int might match the return type of a gcc2
3079 builtin and then its argument prototype would still apply. */
3084 /* The GNU C library defines this for functions which it implements
3085 to always fail with ENOSYS. Some functions are actually named
3086 something starting with __ and the normal name is an alias. */
3087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3095 if { (eval echo configure
:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3097 eval "ac_cv_func_$ac_func=yes"
3099 echo "configure: failed program was:" >&5
3100 cat conftest.
$ac_ext >&5
3102 eval "ac_cv_func_$ac_func=no"
3107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3109 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3110 cat >> confdefs.h
<<EOF
3111 #define $ac_tr_func 1
3115 echo "$ac_t""no" 1>&6
3124 echo $ac_n "checking for library containing dnet_htoa""... $ac_c" 1>&6
3125 echo "configure:3126: checking for library containing dnet_htoa" >&5
3126 if eval "test \"`echo '$''{'ac_cv_search_dnet_htoa'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 ac_func_search_save_LIBS
="$LIBS"
3130 ac_cv_search_dnet_htoa
="no"
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3143 if { (eval echo configure
:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3145 ac_cv_search_dnet_htoa
="none required"
3147 echo "configure: failed program was:" >&5
3148 cat conftest.
$ac_ext >&5
3151 test "$ac_cv_search_dnet_htoa" = "no" && for i
in dnet
; do
3152 LIBS
="-l$i $ac_func_search_save_LIBS"
3153 cat > conftest.
$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 /* Override any gcc2 internal prototype to avoid an error. */
3157 /* We use char because int might match the return type of a gcc2
3158 builtin and then its argument prototype would still apply. */
3165 if { (eval echo configure
:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3167 ac_cv_search_dnet_htoa
="-l$i"
3170 echo "configure: failed program was:" >&5
3171 cat conftest.
$ac_ext >&5
3175 LIBS
="$ac_func_search_save_LIBS"
3178 echo "$ac_t""$ac_cv_search_dnet_htoa" 1>&6
3179 if test "$ac_cv_search_dnet_htoa" != "no"; then
3180 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
3181 cat >> confdefs.h
<<\EOF
3182 #define HAVE_DNET_HTOA 1
3189 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
3190 echo "configure:3191: checking for main in -lrpc" >&5
3191 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
3192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 ac_save_LIBS
="$LIBS"
3197 cat > conftest.
$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3205 if { (eval echo configure
:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3207 eval "ac_cv_lib_$ac_lib_var=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.
$ac_ext >&5
3212 eval "ac_cv_lib_$ac_lib_var=no"
3215 LIBS
="$ac_save_LIBS"
3218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3220 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3221 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3222 cat >> confdefs.h
<<EOF
3223 #define $ac_tr_lib 1
3229 echo "$ac_t""no" 1>&6
3233 echo $ac_n "checking for library containing getrpcbynumber""... $ac_c" 1>&6
3234 echo "configure:3235: checking for library containing getrpcbynumber" >&5
3235 if eval "test \"`echo '$''{'ac_cv_search_getrpcbynumber'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 ac_func_search_save_LIBS
="$LIBS"
3239 ac_cv_search_getrpcbynumber
="no"
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 /* We use char because int might match the return type of a gcc2
3245 builtin and then its argument prototype would still apply. */
3246 char getrpcbynumber();
3252 if { (eval echo configure
:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3254 ac_cv_search_getrpcbynumber
="none required"
3256 echo "configure: failed program was:" >&5
3257 cat conftest.
$ac_ext >&5
3260 test "$ac_cv_search_getrpcbynumber" = "no" && for i
in nsl
; do
3261 LIBS
="-l$i $ac_func_search_save_LIBS"
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3268 char getrpcbynumber();
3274 if { (eval echo configure
:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3276 ac_cv_search_getrpcbynumber
="-l$i"
3279 echo "configure: failed program was:" >&5
3280 cat conftest.
$ac_ext >&5
3284 LIBS
="$ac_func_search_save_LIBS"
3287 echo "$ac_t""$ac_cv_search_getrpcbynumber" 1>&6
3288 if test "$ac_cv_search_getrpcbynumber" != "no"; then
3289 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
3297 # Most operating systems have gethostbyname() in the default searched
3298 # libraries (i.e. libc):
3299 # Some OSes (eg. Solaris) place it in libnsl
3300 # Some strange OSes (SINIX) have it in libsocket:
3302 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3303 echo "configure:3304: checking for library containing gethostbyname" >&5
3304 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 ac_func_search_save_LIBS
="$LIBS"
3308 ac_cv_search_gethostbyname
="no"
3309 cat > conftest.
$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3315 char gethostbyname();
3321 if { (eval echo configure
:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3323 ac_cv_search_gethostbyname
="none required"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3329 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl socket resolv
; do
3330 LIBS
="-l$i $ac_func_search_save_LIBS"
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* Override any gcc2 internal prototype to avoid an error. */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3337 char gethostbyname();
3343 if { (eval echo configure
:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3345 ac_cv_search_gethostbyname
="-l$i"
3348 echo "configure: failed program was:" >&5
3349 cat conftest.
$ac_ext >&5
3353 LIBS
="$ac_func_search_save_LIBS"
3356 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3357 if test "$ac_cv_search_gethostbyname" != "no"; then
3358 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3363 # Unfortunately libsocket sometimes depends on libnsl and
3364 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3365 if test "$ac_cv_search_gethostbyname" = "no"
3367 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3368 echo "configure:3369: checking for gethostbyname in -lsocket" >&5
3369 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
3370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 ac_save_LIBS
="$LIBS"
3374 LIBS
="-lsocket -lnsl $LIBS"
3375 cat > conftest.
$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 /* Override any gcc2 internal prototype to avoid an error. */
3379 /* We use char because int might match the return type of a gcc2
3380 builtin and then its argument prototype would still apply. */
3381 char gethostbyname();
3387 if { (eval echo configure
:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3389 eval "ac_cv_lib_$ac_lib_var=yes"
3391 echo "configure: failed program was:" >&5
3392 cat conftest.
$ac_ext >&5
3394 eval "ac_cv_lib_$ac_lib_var=no"
3397 LIBS
="$ac_save_LIBS"
3400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 LIBS
="-lsocket -lnsl $LIBS"
3404 echo "$ac_t""no" 1>&6
3409 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
3410 echo "configure:3411: checking for library containing socket" >&5
3411 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 ac_func_search_save_LIBS
="$LIBS"
3415 ac_cv_search_socket
="no"
3416 cat > conftest.
$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3428 if { (eval echo configure
:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3430 ac_cv_search_socket
="none required"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.
$ac_ext >&5
3436 test "$ac_cv_search_socket" = "no" && for i
in socket
; do
3437 LIBS
="-l$i $ac_func_search_save_LIBS"
3438 cat > conftest.
$ac_ext <<EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3441 /* Override any gcc2 internal prototype to avoid an error. */
3442 /* We use char because int might match the return type of a gcc2
3443 builtin and then its argument prototype would still apply. */
3450 if { (eval echo configure
:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3452 ac_cv_search_socket
="-l$i"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.
$ac_ext >&5
3460 LIBS
="$ac_func_search_save_LIBS"
3463 echo "$ac_t""$ac_cv_search_socket" 1>&6
3464 if test "$ac_cv_search_socket" != "no"; then
3465 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
3468 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3469 echo "configure:3470: checking for socket in -lsocket" >&5
3470 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 ac_save_LIBS
="$LIBS"
3475 LIBS
="-lsocket -lnsl $LIBS"
3476 cat > conftest.
$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 /* Override any gcc2 internal prototype to avoid an error. */
3480 /* We use char because int might match the return type of a gcc2
3481 builtin and then its argument prototype would still apply. */
3488 if { (eval echo configure
:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3490 eval "ac_cv_lib_$ac_lib_var=yes"
3492 echo "configure: failed program was:" >&5
3493 cat conftest.
$ac_ext >&5
3495 eval "ac_cv_lib_$ac_lib_var=no"
3498 LIBS
="$ac_save_LIBS"
3501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 LIBS
="-lsocket -lnsl $LIBS"
3505 echo "$ac_t""no" 1>&6
3509 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3511 echo $ac_n "checking for library containing putmsg""... $ac_c" 1>&6
3512 echo "configure:3513: checking for library containing putmsg" >&5
3513 if eval "test \"`echo '$''{'ac_cv_search_putmsg'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_func_search_save_LIBS
="$LIBS"
3517 ac_cv_search_putmsg
="no"
3518 cat > conftest.
$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3530 if { (eval echo configure
:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3532 ac_cv_search_putmsg
="none required"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.
$ac_ext >&5
3538 test "$ac_cv_search_putmsg" = "no" && for i
in str
; do
3539 LIBS
="-l$i $ac_func_search_save_LIBS"
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3552 if { (eval echo configure
:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3554 ac_cv_search_putmsg
="-l$i"
3557 echo "configure: failed program was:" >&5
3558 cat conftest.
$ac_ext >&5
3562 LIBS
="$ac_func_search_save_LIBS"
3565 echo "$ac_t""$ac_cv_search_putmsg" 1>&6
3566 if test "$ac_cv_search_putmsg" != "no"; then
3567 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
3575 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3576 if test -f $pfopen ; then
3577 for ac_func
in pfopen
3579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3580 echo "configure:3581: checking for $ac_func" >&5
3581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 cat > conftest.
$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 /* System header to define __stub macros and hopefully few prototypes,
3588 which can conflict with char $ac_func(); below. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 /* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3597 /* The GNU C library defines this for functions which it implements
3598 to always fail with ENOSYS. Some functions are actually named
3599 something starting with __ and the normal name is an alias. */
3600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3608 if { (eval echo configure
:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3610 eval "ac_cv_func_$ac_func=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.
$ac_ext >&5
3615 eval "ac_cv_func_$ac_func=no"
3620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3623 cat >> confdefs.h
<<EOF
3624 #define $ac_tr_func 1
3628 echo "$ac_t""no" 1>&6
3632 if test $ac_cv_func_pfopen = "no" ; then
3633 echo "$ac_t""Using $pfopen" 1>&6
3634 LIBS
="$LIBS $pfopen"
3637 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3638 echo "configure:3639: checking for local pcap library" >&5
3641 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3642 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3643 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
3644 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3645 if test $lastdir = $basedir ; then
3649 if test -r $dir/libpcap.a
; then
3650 libpcap
=$dir/libpcap.a
3654 if test $libpcap = FAIL
; then
3655 echo "$ac_t""not found" 1>&6
3656 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3657 echo "configure:3658: checking for main in -lpcap" >&5
3658 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 ac_save_LIBS
="$LIBS"
3664 cat > conftest.
$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3672 if { (eval echo configure
:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3674 eval "ac_cv_lib_$ac_lib_var=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3679 eval "ac_cv_lib_$ac_lib_var=no"
3682 LIBS
="$ac_save_LIBS"
3685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3689 echo "$ac_t""no" 1>&6
3692 if test $libpcap = FAIL
; then
3693 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3695 echo $ac_n "checking for extraneous pcap header directories""... $ac_c" 1>&6
3696 echo "configure:3697: checking for extraneous pcap header directories" >&5
3697 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
3698 \
( ! -r /usr
/include
/pcap.h \
); then
3699 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
3700 d
="/usr/local/include/pcap"
3701 elif test -r /usr
/include
/pcap
/pcap.h
; then
3702 d
="/usr/include/pcap"
3705 if test -z "$d" ; then
3706 echo "$ac_t""not found" 1>&6
3708 V_INCLS
="-I$d $V_INCLS"
3709 echo "$ac_t""found -- -I$d added" 1>&6
3713 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3714 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3715 if test -r $d/pcap.h
; then
3716 V_INCLS
="-I$d $V_INCLS"
3717 elif test -r $places/pcap.h
; then
3718 V_INCLS
="-I$places $V_INCLS"
3720 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3722 echo "$ac_t""$libpcap" 1>&6
3724 LIBS
="$libpcap $LIBS"
3728 pseexe
="/lib/pse.exp"
3729 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3730 echo "configure:3731: checking for $pseexe" >&5
3731 if test -f $pseexe ; then
3732 echo "$ac_t""yes" 1>&6
3733 LIBS
="$LIBS -I:$pseexe"
3736 # We need "-lodm" and "-lcfg", as libpcap requires them on
3737 # AIX, and we just build a static libpcap.a and thus can't
3738 # arrange that when you link with libpcap you automatically
3739 # link with those libraries.
3741 LIBS
="$LIBS -lodm -lcfg"
3745 echo $ac_n "checking for pcap_list_datalinks""... $ac_c" 1>&6
3746 echo "configure:3747: checking for pcap_list_datalinks" >&5
3747 if eval "test \"`echo '$''{'ac_cv_func_pcap_list_datalinks'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 cat > conftest.
$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 /* System header to define __stub macros and hopefully few prototypes,
3754 which can conflict with char pcap_list_datalinks(); below. */
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3759 char pcap_list_datalinks();
3763 /* The GNU C library defines this for functions which it implements
3764 to always fail with ENOSYS. Some functions are actually named
3765 something starting with __ and the normal name is an alias. */
3766 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
3769 pcap_list_datalinks();
3774 if { (eval echo configure
:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3776 eval "ac_cv_func_pcap_list_datalinks=yes"
3778 echo "configure: failed program was:" >&5
3779 cat conftest.
$ac_ext >&5
3781 eval "ac_cv_func_pcap_list_datalinks=no"
3786 if eval "test \"`echo '$ac_cv_func_'pcap_list_datalinks`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3788 cat >> confdefs.h
<<\EOF
3789 #define HAVE_PCAP_LIST_DATALINKS 1
3793 echo "$ac_t""no" 1>&6
3794 LIBOBJS
="$LIBOBJS datalinks.o"
3797 echo $ac_n "checking for pcap_set_datalink""... $ac_c" 1>&6
3798 echo "configure:3799: checking for pcap_set_datalink" >&5
3799 if eval "test \"`echo '$''{'ac_cv_func_pcap_set_datalink'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.
$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 /* System header to define __stub macros and hopefully few prototypes,
3806 which can conflict with char pcap_set_datalink(); below. */
3808 /* Override any gcc2 internal prototype to avoid an error. */
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3811 char pcap_set_datalink();
3815 /* The GNU C library defines this for functions which it implements
3816 to always fail with ENOSYS. Some functions are actually named
3817 something starting with __ and the normal name is an alias. */
3818 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
3821 pcap_set_datalink();
3826 if { (eval echo configure
:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3828 eval "ac_cv_func_pcap_set_datalink=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.
$ac_ext >&5
3833 eval "ac_cv_func_pcap_set_datalink=no"
3838 if eval "test \"`echo '$ac_cv_func_'pcap_set_datalink`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 cat >> confdefs.h
<<\EOF
3841 #define HAVE_PCAP_SET_DATALINK 1
3845 echo "$ac_t""no" 1>&6
3848 echo $ac_n "checking for pcap_datalink_name_to_val""... $ac_c" 1>&6
3849 echo "configure:3850: checking for pcap_datalink_name_to_val" >&5
3850 if eval "test \"`echo '$''{'ac_cv_func_pcap_datalink_name_to_val'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 cat > conftest.
$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 /* System header to define __stub macros and hopefully few prototypes,
3857 which can conflict with char pcap_datalink_name_to_val(); below. */
3859 /* Override any gcc2 internal prototype to avoid an error. */
3860 /* We use char because int might match the return type of a gcc2
3861 builtin and then its argument prototype would still apply. */
3862 char pcap_datalink_name_to_val();
3866 /* The GNU C library defines this for functions which it implements
3867 to always fail with ENOSYS. Some functions are actually named
3868 something starting with __ and the normal name is an alias. */
3869 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
3872 pcap_datalink_name_to_val();
3877 if { (eval echo configure
:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3879 eval "ac_cv_func_pcap_datalink_name_to_val=yes"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.
$ac_ext >&5
3884 eval "ac_cv_func_pcap_datalink_name_to_val=no"
3889 if eval "test \"`echo '$ac_cv_func_'pcap_datalink_name_to_val`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 cat >> confdefs.h
<<\EOF
3892 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
3896 echo "$ac_t""no" 1>&6
3897 LIBOBJS
="$LIBOBJS dlnames.o"
3903 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
3904 # libraries (e.g., "-lsocket -lnsl" on Solaris).
3906 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
3907 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
3908 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
3909 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
3910 # it does not ship with a libc symbol "inet_ntop()", it ships with
3911 # "_inet_ntop()", and has a #define macro in one of the system headers
3914 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
3915 echo "configure:3916: checking for inet_ntop" >&5
3916 cat > conftest.
$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3919 #include <sys/types.h>
3920 #include <sys/socket.h>
3921 #include <netinet/in.h>
3922 #include <arpa/inet.h>
3924 char src[4], dst[128];
3925 inet_ntop(AF_INET, src, dst, sizeof(dst));
3928 if { (eval echo configure
:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3930 echo "$ac_t""yes" 1>&6
3932 echo "configure: failed program was:" >&5
3933 cat conftest.
$ac_ext >&5
3935 echo "$ac_t""no" 1>&6
3936 LIBOBJS
="$LIBOBJS inet_ntop.o"
3939 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
3940 echo "configure:3941: checking for inet_pton" >&5
3941 cat > conftest.
$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 #include <sys/types.h>
3945 #include <sys/socket.h>
3946 #include <netinet/in.h>
3947 #include <arpa/inet.h>
3949 char src[128], dst[4];
3950 inet_pton(AF_INET, src, dst);
3953 if { (eval echo configure
:3954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3955 echo "$ac_t""yes" 1>&6
3957 echo "configure: failed program was:" >&5
3958 cat conftest.
$ac_ext >&5
3960 echo "$ac_t""no" 1>&6
3961 LIBOBJS
="$LIBOBJS inet_pton.o"
3964 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3965 echo "configure:3966: checking for inet_aton" >&5
3966 cat > conftest.
$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 #include <sys/types.h>
3970 #include <netinet/in.h>
3971 #include <arpa/inet.h>
3975 inet_aton(src, &dst);
3978 if { (eval echo configure
:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3980 echo "$ac_t""yes" 1>&6
3982 echo "configure: failed program was:" >&5
3983 cat conftest.
$ac_ext >&5
3985 echo "$ac_t""no" 1>&6
3986 LIBOBJS
="$LIBOBJS inet_aton.o"
3991 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
3992 echo "configure:3993: checking if sockaddr struct has sa_len member" >&5
3993 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 cat > conftest.
$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
4000 # include <sys/types.h>
4001 # include <sys/socket.h>
4003 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4006 if { (eval echo configure
:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4008 ac_cv_sockaddr_has_sa_len
=yes
4010 echo "configure: failed program was:" >&5
4011 cat conftest.
$ac_ext >&5
4013 ac_cv_sockaddr_has_sa_len
=no
4018 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
4019 if test $ac_cv_sockaddr_has_sa_len = yes ; then
4020 cat >> confdefs.h
<<\EOF
4021 #define HAVE_SOCKADDR_SA_LEN 1
4026 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
4027 missing_includes
=yes
4030 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
4032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4033 echo "configure:4034: checking for $ac_func" >&5
4034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 cat > conftest.
$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 /* System header to define __stub macros and hopefully few prototypes,
4041 which can conflict with char $ac_func(); below. */
4043 /* Override any gcc2 internal prototype to avoid an error. */
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4050 /* The GNU C library defines this for functions which it implements
4051 to always fail with ENOSYS. Some functions are actually named
4052 something starting with __ and the normal name is an alias. */
4053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4061 if { (eval echo configure
:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4063 eval "ac_cv_func_$ac_func=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 eval "ac_cv_func_$ac_func=no"
4073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4074 echo "$ac_t""yes" 1>&6
4075 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4076 cat >> confdefs.h
<<EOF
4077 #define $ac_tr_func 1
4081 echo "$ac_t""no" 1>&6
4085 if test $ac_cv_func_pcap_lib_version = "no" ; then
4086 echo $ac_n "checking whether pcap_version is defined by libpcap""... $ac_c" 1>&6
4087 echo "configure:4088: checking whether pcap_version is defined by libpcap" >&5
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4095 return_pcap_version(void)
4097 extern char pcap_version[];
4099 return pcap_version;
4104 if { (eval echo configure
:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4106 ac_lbl_cv_pcap_version_defined
=yes
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 ac_lbl_cv_pcap_version_defined
=no
4114 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
4115 echo "$ac_t""yes" 1>&6
4116 cat >> confdefs.h
<<\EOF
4117 #define HAVE_PCAP_VERSION 1
4121 echo "$ac_t""no" 1>&6
4124 echo $ac_n "checking whether pcap_debug is defined by libpcap""... $ac_c" 1>&6
4125 echo "configure:4126: checking whether pcap_debug is defined by libpcap" >&5
4126 cat > conftest.
$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4133 return_pcap_debug(void)
4135 extern int pcap_debug;
4142 if { (eval echo configure
:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4144 ac_lbl_cv_pcap_debug_defined
=yes
4146 echo "configure: failed program was:" >&5
4147 cat conftest.
$ac_ext >&5
4149 ac_lbl_cv_pcap_debug_defined
=no
4152 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
4153 echo "$ac_t""yes" 1>&6
4154 cat >> confdefs.h
<<\EOF
4155 #define HAVE_PCAP_DEBUG 1
4159 echo "$ac_t""no" 1>&6
4161 # OK, what about "yydebug"?
4163 echo $ac_n "checking whether yydebug is defined by libpcap""... $ac_c" 1>&6
4164 echo "configure:4165: checking whether yydebug is defined by libpcap" >&5
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4172 return_yydebug(void)
4181 if { (eval echo configure
:4182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4183 ac_lbl_cv_yydebug_defined
=yes
4185 echo "configure: failed program was:" >&5
4186 cat conftest.
$ac_ext >&5
4188 ac_lbl_cv_yydebug_defined
=no
4191 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
4192 echo "$ac_t""yes" 1>&6
4193 cat >> confdefs.h
<<\EOF
4194 #define HAVE_YYDEBUG 1
4198 echo "$ac_t""no" 1>&6
4201 for ac_func
in bpf_dump
4203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4204 echo "configure:4205: checking for $ac_func" >&5
4205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 cat > conftest.
$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4211 /* System header to define __stub macros and hopefully few prototypes,
4212 which can conflict with char $ac_func(); below. */
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4221 /* The GNU C library defines this for functions which it implements
4222 to always fail with ENOSYS. Some functions are actually named
4223 something starting with __ and the normal name is an alias. */
4224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4232 if { (eval echo configure
:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4234 eval "ac_cv_func_$ac_func=yes"
4236 echo "configure: failed program was:" >&5
4237 cat conftest.
$ac_ext >&5
4239 eval "ac_cv_func_$ac_func=no"
4244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4247 cat >> confdefs.h
<<EOF
4248 #define $ac_tr_func 1
4252 echo "$ac_t""no" 1>&6
4253 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
4259 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
4265 cat >> confdefs.h
<<\EOF
4284 if test -f /dev
/bpf0
; then
4288 echo $ac_n "checking for int8_t using $CC""... $ac_c" 1>&6
4289 echo "configure:4290: checking for int8_t using $CC" >&5
4290 if eval "test \"`echo '$''{'ac_cv_lbl_have_int8_t'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.
$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4297 # include "confdefs.h"
4298 # include <sys/types.h>
4300 # include <stdlib.h>
4301 # include <stddef.h>
4307 if { (eval echo configure
:4308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4309 ac_cv_lbl_have_int8_t
=yes
4311 echo "configure: failed program was:" >&5
4312 cat conftest.
$ac_ext >&5
4314 ac_cv_lbl_have_int8_t
=no
4319 echo "$ac_t""$ac_cv_lbl_have_int8_t" 1>&6
4320 if test $ac_cv_lbl_have_int8_t = no
; then
4321 cat >> confdefs.h
<<\EOF
4322 #define int8_t signed char
4326 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
4327 echo "configure:4328: checking for u_int8_t using $CC" >&5
4328 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.
$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4335 # include "confdefs.h"
4336 # include <sys/types.h>
4338 # include <stdlib.h>
4339 # include <stddef.h>
4345 if { (eval echo configure
:4346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4347 ac_cv_lbl_have_u_int8_t
=yes
4349 echo "configure: failed program was:" >&5
4350 cat conftest.
$ac_ext >&5
4352 ac_cv_lbl_have_u_int8_t
=no
4357 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
4358 if test $ac_cv_lbl_have_u_int8_t = no
; then
4359 cat >> confdefs.h
<<\EOF
4360 #define u_int8_t u_char
4364 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
4365 echo "configure:4366: checking for int16_t using $CC" >&5
4366 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 cat > conftest.
$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4373 # include "confdefs.h"
4374 # include <sys/types.h>
4376 # include <stdlib.h>
4377 # include <stddef.h>
4383 if { (eval echo configure
:4384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4385 ac_cv_lbl_have_int16_t
=yes
4387 echo "configure: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4390 ac_cv_lbl_have_int16_t
=no
4395 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
4396 if test $ac_cv_lbl_have_int16_t = no
; then
4397 cat >> confdefs.h
<<\EOF
4398 #define int16_t short
4402 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
4403 echo "configure:4404: checking for u_int16_t using $CC" >&5
4404 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 cat > conftest.
$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4411 # include "confdefs.h"
4412 # include <sys/types.h>
4414 # include <stdlib.h>
4415 # include <stddef.h>
4421 if { (eval echo configure
:4422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4423 ac_cv_lbl_have_u_int16_t
=yes
4425 echo "configure: failed program was:" >&5
4426 cat conftest.
$ac_ext >&5
4428 ac_cv_lbl_have_u_int16_t
=no
4433 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
4434 if test $ac_cv_lbl_have_u_int16_t = no
; then
4435 cat >> confdefs.h
<<\EOF
4436 #define u_int16_t u_short
4440 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
4441 echo "configure:4442: checking for int32_t using $CC" >&5
4442 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 cat > conftest.
$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4449 # include "confdefs.h"
4450 # include <sys/types.h>
4452 # include <stdlib.h>
4453 # include <stddef.h>
4459 if { (eval echo configure
:4460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4461 ac_cv_lbl_have_int32_t
=yes
4463 echo "configure: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4466 ac_cv_lbl_have_int32_t
=no
4471 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
4472 if test $ac_cv_lbl_have_int32_t = no
; then
4473 cat >> confdefs.h
<<\EOF
4478 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
4479 echo "configure:4480: checking for u_int32_t using $CC" >&5
4480 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 cat > conftest.
$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4487 # include "confdefs.h"
4488 # include <sys/types.h>
4490 # include <stdlib.h>
4491 # include <stddef.h>
4497 if { (eval echo configure
:4498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4499 ac_cv_lbl_have_u_int32_t
=yes
4501 echo "configure: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4504 ac_cv_lbl_have_u_int32_t
=no
4509 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
4510 if test $ac_cv_lbl_have_u_int32_t = no
; then
4511 cat >> confdefs.h
<<\EOF
4512 #define u_int32_t u_int
4518 if test "${LBL_CFLAGS+set}" = set; then
4519 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
4521 if test -f .devel
; then
4522 if test "$GCC" = yes ; then
4523 if test "${LBL_CFLAGS+set}" != set; then
4524 if test "$ac_cv_prog_cc_g" = yes ; then
4525 V_CCOPT
="-g $V_CCOPT"
4527 V_CCOPT
="$V_CCOPT -Wall"
4528 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4529 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
4536 V_CCOPT
="$V_CCOPT -n32"
4543 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4545 if test -f $name ; then
4546 ln -s $name os-proto.h
4547 cat >> confdefs.h
<<\EOF
4548 #define HAVE_OS_PROTO_H 1
4552 echo "configure: warning: can't find $name" 1>&2
4556 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4557 echo "configure:4558: checking if sockaddr struct has sa_len member" >&5
4558 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.
$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4565 # include <sys/types.h>
4566 # include <sys/socket.h>
4568 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4571 if { (eval echo configure
:4572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4573 ac_cv_lbl_sockaddr_has_sa_len
=yes
4575 echo "configure: failed program was:" >&5
4576 cat conftest.
$ac_ext >&5
4578 ac_cv_lbl_sockaddr_has_sa_len
=no
4583 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4584 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4585 cat >> confdefs.h
<<\EOF
4586 #define HAVE_SOCKADDR_SA_LEN 1
4591 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4592 echo "configure:4593: checking if unaligned accesses fail" >&5
4593 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4599 # These are CPU types where:
4601 # the CPU faults on an unaligned access, but at least some
4602 # OSes that support that CPU catch the fault and simulate
4603 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
4604 # the simulation is slow, so we don't want to use it;
4606 # the CPU, I infer (from the old
4608 # XXX: should also check that they don't do weird things (like on arm)
4610 # comment) doesn't fault on unaligned accesses, but doesn't
4611 # do a normal unaligned fetch, either (e.g., presumably, ARM);
4613 # for whatever reason, the test program doesn't work
4614 # (this has been claimed to be the case for several of those
4615 # CPUs - I don't know what the problem is; the problem
4616 # was reported as "the test program dumps core" for SuperH,
4617 # but that's what the test program is *supposed* to do -
4618 # it dumps core before it writes anything, so the test
4619 # for an empty output file should find an empty output
4620 # file and conclude that unaligned accesses don't work).
4622 # This run-time test won't work if you're cross-compiling, so
4623 # in order to support cross-compiling for a particular CPU,
4624 # we have to wire in the list of CPU types anyway, as far as
4625 # I know, so perhaps we should just have a set of CPUs on
4626 # which we know it doesn't work, a set of CPUs on which we
4627 # know it does work, and have the script just fail on other
4628 # cpu types and update it when such a failure occurs.
4630 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64
)
4631 ac_cv_lbl_unaligned_fail
=yes
4635 cat >conftest.c
<<EOF
4636 # include <sys/types.h>
4637 # include <sys/wait.h>
4639 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4644 /* avoid "core dumped" message */
4650 pid = waitpid(pid, &status, 0);
4653 exit(!WIFEXITED(status));
4656 i = *(unsigned int *)&a[1];
4661 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4662 conftest.c
$LIBS >/dev
/null
2>&1
4663 if test ! -x conftest
; then
4664 ac_cv_lbl_unaligned_fail
=yes
4666 .
/conftest
>conftest.out
4667 if test ! -s conftest.out
; then
4668 ac_cv_lbl_unaligned_fail
=yes
4670 ac_cv_lbl_unaligned_fail
=no
4673 rm -f conftest
* core core.conftest
4678 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4679 if test $ac_cv_lbl_unaligned_fail = yes ; then
4680 cat >> confdefs.h
<<\EOF
4687 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4688 echo "configure:4689: checking for h_errno" >&5
4689 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 cat > conftest.
$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4696 # include <sys/types.h>
4702 if { (eval echo configure
:4703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4704 ac_cv_var_h_errno
=yes
4706 echo "configure: failed program was:" >&5
4707 cat conftest.
$ac_ext >&5
4709 ac_cv_var_h_errno
=no
4714 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4715 if test "$ac_cv_var_h_errno" = "yes"; then
4716 cat >> confdefs.h
<<\EOF
4717 #define HAVE_H_ERRNO 1
4723 # Check whether --with-crypto or --without-crypto was given.
4724 if test "${with_crypto+set}" = set; then
4725 withval
="$with_crypto"
4729 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4730 echo "configure:4731: checking for SSLeay" >&5
4731 ac_cv_ssleay_path
=no
4733 for dir
in /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4735 # XXX - is there a better way to check if a given library is
4736 # in a given directory than checking each of the possible
4737 # shared library suffixes?
4739 # Are there any other suffixes we need to look for? Do we have to
4740 # worry about ".so.{version}"?
4742 # Or should we just look for "libcrypto.*"?
4744 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
4745 -f $dir/lib
/libcrypto.so
-o \
4746 -f $dir/lib
/libcrypto.sl
-o \
4747 -f $dir/lib
/libcrypto.dylib \
); then
4748 ac_cv_ssleay_path
=$dir
4750 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4751 incdir
="-I$dir/include"
4753 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4756 ac_cv_ssleay_path
=no
4760 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4761 if test "$ac_cv_ssleay_path" != no
; then
4762 V_INCLS
="$V_INCLS $incdir"
4763 LDFLAGS
="-L$dir/lib $LDFLAGS"
4764 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4765 LIBS
="$LIBS -lRSAglue"
4767 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4768 LIBS
="$LIBS -lrsaref"
4770 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4771 echo "configure:4772: checking for des_cbc_encrypt in -lcrypto" >&5
4772 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 ac_save_LIBS
="$LIBS"
4777 LIBS
="-lcrypto $LIBS"
4778 cat > conftest.
$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 /* Override any gcc2 internal prototype to avoid an error. */
4782 /* We use char because int might match the return type of a gcc2
4783 builtin and then its argument prototype would still apply. */
4784 char des_cbc_encrypt();
4790 if { (eval echo configure
:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4792 eval "ac_cv_lib_$ac_lib_var=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.
$ac_ext >&5
4797 eval "ac_cv_lib_$ac_lib_var=no"
4800 LIBS
="$ac_save_LIBS"
4803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4805 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4807 cat >> confdefs.h
<<EOF
4808 #define $ac_tr_lib 1
4811 LIBS
="-lcrypto $LIBS"
4814 echo "$ac_t""no" 1>&6
4818 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4819 for ac_hdr
in openssl
/evp.h
4821 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4823 echo "configure:4824: checking for $ac_hdr" >&5
4824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.
$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4832 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4833 { (eval echo configure
:4834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4834 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4835 if test -z "$ac_err"; then
4837 eval "ac_cv_header_$ac_safe=yes"
4840 echo "configure: failed program was:" >&5
4841 cat conftest.
$ac_ext >&5
4843 eval "ac_cv_header_$ac_safe=no"
4847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4848 echo "$ac_t""yes" 1>&6
4849 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4850 cat >> confdefs.h
<<EOF
4851 #define $ac_tr_hdr 1
4855 echo "$ac_t""no" 1>&6
4870 # Find a good install program. We prefer a C program (faster),
4871 # so one script is as good as another. But avoid the broken or
4872 # incompatible versions:
4873 # SysV /etc/install, /usr/sbin/install
4874 # SunOS /usr/etc/install
4875 # IRIX /sbin/install
4877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4880 # ./install, which can be erroneously created by make from ./install.sh.
4881 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4882 echo "configure:4883: checking for a BSD compatible install" >&5
4883 if test -z "$INSTALL"; then
4884 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4887 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4888 for ac_dir
in $PATH; do
4889 # Account for people who put trailing slashes in PATH elements.
4891 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4893 # OSF1 and SCO ODT 3.0 have their own names for install.
4894 # Don't use installbsd from OSF since it installs stuff as root
4896 for ac_prog
in ginstall scoinst
install; do
4897 if test -f $ac_dir/$ac_prog; then
4898 if test $ac_prog = install &&
4899 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4900 # AIX install. It has an incompatible calling convention.
4903 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4914 if test "${ac_cv_path_install+set}" = set; then
4915 INSTALL
="$ac_cv_path_install"
4917 # As a last resort, use the slow shell script. We don't cache a
4918 # path for INSTALL within a source directory, because that will
4919 # break other packages using the cache if that directory is
4920 # removed, or if the path is relative.
4921 INSTALL
="$ac_install_sh"
4924 echo "$ac_t""$INSTALL" 1>&6
4926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4927 # It thinks the first close brace ends the variable substitution.
4928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4932 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4939 cat > confcache
<<\EOF
4940 # This file is a shell script that caches the results of configure
4941 # tests run on this system so they can be shared between configure
4942 # scripts and configure runs. It is not useful on other systems.
4943 # If it contains results you don't want to keep, you may remove or edit it.
4945 # By default, configure uses ./config.cache as the cache file,
4946 # creating it if it does not exist already. You can give configure
4947 # the --cache-file=FILE option to use a different cache file; that is
4948 # what configure does when it calls configure scripts in
4949 # subdirectories, so they share the cache.
4950 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4951 # config.status only pays attention to the cache file if you give it the
4952 # --recheck option to rerun configure.
4955 # The following way of writing the cache mishandles newlines in values,
4956 # but we know of no workaround that is simple, portable, and efficient.
4957 # So, don't put newlines in cache variables' values.
4958 # Ultrix sh set writes to stderr and can't be redirected directly,
4959 # and sets the high bit in the cache file unless we assign to the vars.
4961 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4963 # `set' does not quote correctly, so add quotes (double-quote substitution
4964 # turns \\\\ into \\, and sed turns \\ into \).
4966 -e "s/'/'\\\\''/g" \
4967 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4970 # `set' quotes correctly as required by POSIX, so do not add quotes.
4971 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4974 if cmp -s $cache_file confcache
; then
4977 if test -w $cache_file; then
4978 echo "updating cache $cache_file"
4979 cat confcache
> $cache_file
4981 echo "not updating unwritable cache $cache_file"
4986 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4988 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4989 # Let make expand exec_prefix.
4990 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4992 # Any assignment to VPATH causes Sun make to only execute
4993 # the first set of double-colon rules, so remove it if not needed.
4994 # If there is a colon in the path, we need to keep it.
4995 if test "x$srcdir" = x.
; then
4996 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4999 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5001 DEFS
=-DHAVE_CONFIG_H
5003 # Without the "./", some shells look in PATH for config.status.
5004 : ${CONFIG_STATUS=./config.status}
5006 echo creating
$CONFIG_STATUS
5007 rm -f $CONFIG_STATUS
5008 cat > $CONFIG_STATUS <<EOF
5010 # Generated automatically by configure.
5011 # Run this file to recreate the current configuration.
5012 # This directory was configured as follows,
5013 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5015 # $0 $ac_configure_args
5017 # Compiler output produced by configure, useful for debugging
5018 # configure, is in ./config.log if it exists.
5020 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5023 case "\$ac_option" in
5024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5025 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5026 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5027 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5028 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5030 -help | --help | --hel | --he | --h)
5031 echo "\$ac_cs_usage"; exit 0 ;;
5032 *) echo "\$ac_cs_usage"; exit 1 ;;
5036 ac_given_srcdir=$srcdir
5037 ac_given_INSTALL="$INSTALL"
5039 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5041 cat >> $CONFIG_STATUS <<EOF
5043 # Protect against being on the right side of a sed subst in config.status.
5044 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5045 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5049 s%@CFLAGS@%$CFLAGS%g
5050 s%@CPPFLAGS@%$CPPFLAGS%g
5051 s%@CXXFLAGS@%$CXXFLAGS%g
5052 s%@FFLAGS@%$FFLAGS%g
5054 s%@LDFLAGS@%$LDFLAGS%g
5056 s%@exec_prefix@%$exec_prefix%g
5057 s%@prefix@%$prefix%g
5058 s%@program_transform_name@%$program_transform_name%g
5059 s%@bindir@%$bindir%g
5060 s%@sbindir@%$sbindir%g
5061 s%@libexecdir@%$libexecdir%g
5062 s%@datadir@%$datadir%g
5063 s%@sysconfdir@%$sysconfdir%g
5064 s%@sharedstatedir@%$sharedstatedir%g
5065 s%@localstatedir@%$localstatedir%g
5066 s%@libdir@%$libdir%g
5067 s%@includedir@%$includedir%g
5068 s%@oldincludedir@%$oldincludedir%g
5069 s%@infodir@%$infodir%g
5070 s%@mandir@%$mandir%g
5072 s%@host_alias@%$host_alias%g
5073 s%@host_cpu@%$host_cpu%g
5074 s%@host_vendor@%$host_vendor%g
5075 s%@host_os@%$host_os%g
5076 s%@SHLICC2@%$SHLICC2%g
5079 s%@LIBOBJS@%$LIBOBJS%g
5080 s%@V_CCOPT@%$V_CCOPT%g
5081 s%@V_GROUP@%$V_GROUP%g
5082 s%@V_INCLS@%$V_INCLS%g
5083 s%@V_PCAPDEP@%$V_PCAPDEP%g
5084 s%@LOCALSRC@%$LOCALSRC%g
5085 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5086 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5087 s%@INSTALL_DATA@%$INSTALL_DATA%g
5092 cat >> $CONFIG_STATUS <<\EOF
5094 # Split the substitutions into bite-sized pieces for seds with
5095 # small command number limits, like on Digital OSF/1 and HP-UX.
5096 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5097 ac_file
=1 # Number of current file.
5098 ac_beg
=1 # First line for current file.
5099 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5102 while $ac_more_lines; do
5103 if test $ac_beg -gt 1; then
5104 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5106 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5108 if test ! -s conftest.s
$ac_file; then
5110 rm -f conftest.s
$ac_file
5112 if test -z "$ac_sed_cmds"; then
5113 ac_sed_cmds
="sed -f conftest.s$ac_file"
5115 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5117 ac_file
=`expr $ac_file + 1`
5119 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5122 if test -z "$ac_sed_cmds"; then
5127 cat >> $CONFIG_STATUS <<EOF
5129 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5131 cat >> $CONFIG_STATUS <<\EOF
5132 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5135 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5136 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5137 *) ac_file_in
="${ac_file}.in" ;;
5140 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5142 # Remove last slash and all that follows it. Not all systems have dirname.
5143 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5144 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5145 # The file is in a subdirectory.
5146 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5147 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5148 # A "../" for each directory in $ac_dir_suffix.
5149 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5151 ac_dir_suffix
= ac_dots
=
5154 case "$ac_given_srcdir" in
5156 if test -z "$ac_dots"; then top_srcdir
=.
5157 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5158 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5160 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5161 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5164 case "$ac_given_INSTALL" in
5165 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5166 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5169 echo creating
"$ac_file"
5171 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5173 *Makefile
*) ac_comsub
="1i\\
5174 # $configure_input" ;;
5178 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5180 s%@configure_input@%$configure_input%g
5181 s%@srcdir@%$srcdir%g
5182 s%@top_srcdir@%$top_srcdir%g
5183 s%@INSTALL@%$INSTALL%g
5184 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5188 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5189 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5191 # ac_d sets the value in "#define NAME VALUE" lines.
5192 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5193 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5196 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5197 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5198 ac_uB
='\([ ]\)%\1#\2define\3'
5201 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5202 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5203 ac_eB
='$%\1#\2define\3'
5207 if test "${CONFIG_HEADERS+set}" != set; then
5209 cat >> $CONFIG_STATUS <<EOF
5210 CONFIG_HEADERS="config.h"
5212 cat >> $CONFIG_STATUS <<\EOF
5214 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5217 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5218 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5219 *) ac_file_in
="${ac_file}.in" ;;
5222 echo creating
$ac_file
5224 rm -f conftest.frag conftest.
in conftest.out
5225 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5226 cat $ac_file_inputs > conftest.
in
5230 # Transform confdefs.h into a sed script conftest.vals that substitutes
5231 # the proper values into config.h.in to produce config.h. And first:
5232 # Protect against being on the right side of a sed subst in config.status.
5233 # Protect against being in an unquoted here document in config.status.
5235 cat > conftest.hdr
<<\EOF
5238 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5242 sed -n -f conftest.hdr confdefs.h > conftest.vals
5245 # This sed command replaces #undef with comments. This is necessary, for
5246 # example, in the case of _POSIX_SOURCE, which is predefined and required
5247 # on some systems where configure will not decide to define it.
5248 cat >> conftest.vals <<\EOF
5249 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5252 # Break up conftest.vals because some shells have a limit on
5253 # the size of here documents, and old seds have small limits too.
5258 ac_lines=`grep -c . conftest.vals
`
5259 # grep -c gives empty output for an empty file on some AIX systems.
5260 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5261 # Write a limited-size here document to conftest.frag.
5262 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5263 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5265 sed -f conftest.frag conftest.in > conftest.out
5267 mv conftest.out conftest.in
5269 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5271 mv conftest.tail conftest.vals
5275 cat >> $CONFIG_STATUS <<\EOF
5276 rm -f conftest.frag conftest.h
5277 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5278 cat conftest.in >> conftest.h
5280 if cmp -s $ac_file conftest.h 2>/dev/null; then
5281 echo "$ac_file is unchanged"
5284 # Remove last slash and all that follows it. Not all systems have dirname.
5285 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5286 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5287 # The file is in a subdirectory.
5288 test ! -d "$ac_dir" && mkdir "$ac_dir"
5291 mv conftest.h $ac_file
5296 cat >> $CONFIG_STATUS <<EOF
5300 cat >> $CONFIG_STATUS <<\EOF
5301 if test -f .devel; then
5302 echo timestamp > stamp-h
5303 cat Makefile-devel-adds >> Makefile
5309 chmod +x $CONFIG_STATUS
5310 rm -fr confdefs* $ac_clean_files
5311 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1