3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --without-gcc don't use gcc"
17 --enable-ipv6 Enable ipv6 (with ipv4) support
18 --disable-ipv6 Disable ipv6 support"
20 # Initialize some variables set by options.
21 # The variables have the same names as the options, with
22 # dashes changed to underlines.
24 cache_file
=.
/config.cache
33 program_transform_name
=s
,x
,x
,
41 bindir
='${exec_prefix}/bin'
42 sbindir
='${exec_prefix}/sbin'
43 libexecdir
='${exec_prefix}/libexec'
44 datadir
='${prefix}/share'
45 sysconfdir
='${prefix}/etc'
46 sharedstatedir
='${prefix}/com'
47 localstatedir
='${prefix}/var'
48 libdir
='${exec_prefix}/lib'
49 includedir
='${prefix}/include'
50 oldincludedir
='/usr/include'
51 infodir
='${prefix}/info'
52 mandir
='${prefix}/man'
54 # Initialize some other variables.
57 SHELL
=${CONFIG_SHELL-/bin/sh}
58 # Maximum number of lines to put in a shell here document.
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
73 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 # Accept the important Cygnus configure options, so we can diagnose typos.
81 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
83 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
84 bindir
="$ac_optarg" ;;
86 -build |
--build |
--buil |
--bui |
--bu)
88 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
91 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
92 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
94 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
95 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
96 cache_file
="$ac_optarg" ;;
98 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
100 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
102 datadir
="$ac_optarg" ;;
104 -disable-* |
--disable-*)
105 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
106 # Reject names that are not valid shell variable names.
107 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
113 -enable-* |
--enable-*)
114 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
126 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
127 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
128 |
--exec |
--exe |
--ex)
129 ac_prev
=exec_prefix
;;
130 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
131 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
132 |
--exec=* |
--exe=* |
--ex=*)
133 exec_prefix
="$ac_optarg" ;;
135 -gas |
--gas |
--ga |
--g)
136 # Obsolete; use --with-gas.
139 -help |
--help |
--hel |
--he)
140 # Omit some internal or obsolete options to make the list less imposing.
141 # This message is too long to be a string in the A/UX 3.1 sh.
143 Usage: configure [options] [host]
144 Options: [defaults in brackets after descriptions]
146 --cache-file=FILE cache test results in FILE
147 --help print this message
148 --no-create do not create output files
149 --quiet, --silent do not print \`checking...' messages
150 --version print the version of autoconf that created configure
151 Directory and file names:
152 --prefix=PREFIX install architecture-independent files in PREFIX
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 --bindir=DIR user executables in DIR [EPREFIX/bin]
157 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159 --datadir=DIR read-only architecture-independent data in DIR
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
166 --includedir=DIR C header files in DIR [PREFIX/include]
167 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168 --infodir=DIR info documentation in DIR [PREFIX/info]
169 --mandir=DIR man documentation in DIR [PREFIX/man]
170 --srcdir=DIR find the sources in DIR [configure dir or ..]
171 --program-prefix=PREFIX prepend PREFIX to installed program names
172 --program-suffix=SUFFIX append SUFFIX to installed program names
173 --program-transform-name=PROGRAM
174 run sed PROGRAM on installed program names
178 --build=BUILD configure for building on BUILD [BUILD=HOST]
179 --host=HOST configure for HOST [guessed]
180 --target=TARGET configure for TARGET [TARGET=HOST]
181 Features and packages:
182 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186 --x-includes=DIR X include files are in DIR
187 --x-libraries=DIR X library files are in DIR
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
194 -host |
--host |
--hos |
--ho)
196 -host=* |
--host=* |
--hos=* |
--ho=*)
199 -includedir |
--includedir |
--includedi |
--included |
--include \
200 |
--includ |
--inclu |
--incl |
--inc)
201 ac_prev
=includedir
;;
202 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
203 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
204 includedir
="$ac_optarg" ;;
206 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
208 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
209 infodir
="$ac_optarg" ;;
211 -libdir |
--libdir |
--libdi |
--libd)
213 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
214 libdir
="$ac_optarg" ;;
216 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
217 |
--libexe |
--libex |
--libe)
218 ac_prev
=libexecdir
;;
219 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
220 |
--libexe=* |
--libex=* |
--libe=*)
221 libexecdir
="$ac_optarg" ;;
223 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
224 |
--localstate |
--localstat |
--localsta |
--localst \
225 |
--locals |
--local |
--loca |
--loc |
--lo)
226 ac_prev
=localstatedir
;;
227 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
228 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
229 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
230 localstatedir
="$ac_optarg" ;;
232 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
234 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
235 mandir
="$ac_optarg" ;;
238 # Obsolete; use --without-fp.
241 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
245 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
246 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
249 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
250 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
251 |
--oldin |
--oldi |
--old |
--ol |
--o)
252 ac_prev
=oldincludedir
;;
253 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
254 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
255 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
256 oldincludedir
="$ac_optarg" ;;
258 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
260 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
261 prefix
="$ac_optarg" ;;
263 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
264 |
--program-pre |
--program-pr |
--program-p)
265 ac_prev
=program_prefix
;;
266 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
267 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
268 program_prefix
="$ac_optarg" ;;
270 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
271 |
--program-suf |
--program-su |
--program-s)
272 ac_prev
=program_suffix
;;
273 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
274 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
275 program_suffix
="$ac_optarg" ;;
277 -program-transform-name |
--program-transform-name \
278 |
--program-transform-nam |
--program-transform-na \
279 |
--program-transform-n |
--program-transform- \
280 |
--program-transform |
--program-transfor \
281 |
--program-transfo |
--program-transf \
282 |
--program-trans |
--program-tran \
283 |
--progr-tra |
--program-tr |
--program-t)
284 ac_prev
=program_transform_name
;;
285 -program-transform-name=* |
--program-transform-name=* \
286 |
--program-transform-nam=* |
--program-transform-na=* \
287 |
--program-transform-n=* |
--program-transform-=* \
288 |
--program-transform=* |
--program-transfor=* \
289 |
--program-transfo=* |
--program-transf=* \
290 |
--program-trans=* |
--program-tran=* \
291 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
292 program_transform_name
="$ac_optarg" ;;
294 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
295 |
-silent |
--silent |
--silen |
--sile |
--sil)
298 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
300 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
302 sbindir
="$ac_optarg" ;;
304 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
305 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
306 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
308 ac_prev
=sharedstatedir
;;
309 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
310 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
311 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
313 sharedstatedir
="$ac_optarg" ;;
315 -site |
--site |
--sit)
317 -site=* |
--site=* |
--sit=*)
320 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
322 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
323 srcdir
="$ac_optarg" ;;
325 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
326 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
327 ac_prev
=sysconfdir
;;
328 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
329 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
330 sysconfdir
="$ac_optarg" ;;
332 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
334 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
335 target
="$ac_optarg" ;;
337 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
340 -version |
--version |
--versio |
--versi |
--vers)
341 echo "configure generated by autoconf version 2.13"
345 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346 # Reject names that are not valid shell variable names.
347 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350 ac_package
=`echo $ac_package| sed 's/-/_/g'`
355 eval "with_${ac_package}='$ac_optarg'" ;;
357 -without-* |
--without-*)
358 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package
=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
367 # Obsolete; use --with-x.
370 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
371 |
--x-incl |
--x-inc |
--x-in |
--x-i)
372 ac_prev
=x_includes
;;
373 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
374 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
375 x_includes
="$ac_optarg" ;;
377 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
378 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
379 ac_prev
=x_libraries
;;
380 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
381 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
382 x_libraries
="$ac_optarg" ;;
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389 echo "configure: warning: $ac_option: invalid host type" 1>&2
391 if test "x$nonopt" != xNONE
; then
392 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400 if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406 # File descriptor usage:
409 # 2 errors and warnings
410 # 3 some systems may open it to /dev/tty
411 # 4 used on the Kubota Titan
412 # 6 checking for... messages and results
413 # 5 compiler messages saved in config.log
414 if test "$silent" = yes; then
422 This file contains any messages produced by compilers while
423 running configure, to aid debugging if configure makes a mistake.
426 # Strip out --no-create and --no-recursion so they do not pile up.
427 # Also quote any args containing shell metacharacters.
432 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
433 |
--no-cr |
--no-c) ;;
434 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
435 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
436 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
438 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
443 # Only set these to C if already set. These must not be set unconditionally
444 # because not all systems understand e.g. LANG=C (notably SCO).
445 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446 # Non-C LC_CTYPE values break the ctype check.
447 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
448 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
449 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
450 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
453 rm -rf conftest
* confdefs.h
454 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 # A filename unique to this package, relative to the directory that
458 # configure is in, which we can look for to find out if srcdir is correct.
459 ac_unique_file
=tcpdump.c
461 # Find the source files, if location was not specified.
462 if test -z "$srcdir"; then
463 ac_srcdir_defaulted
=yes
464 # Try the directory containing this script, then its parent.
466 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
469 if test ! -r $srcdir/$ac_unique_file; then
473 ac_srcdir_defaulted
=no
475 if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484 # Prefer explicitly selected file to automatically selected ones.
485 if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE
; then
487 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
489 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 for ac_site_file
in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
503 echo "creating cache $cache_file"
508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509 ac_cpp
='$CPP $CPPFLAGS'
510 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512 cross_compiling
=$ac_cv_prog_cc_cross
516 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
525 ac_n
= ac_c
='\c' ac_t
=
531 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
532 if test -f $ac_dir/install-sh
; then
534 ac_install_sh
="$ac_aux_dir/install-sh -c"
536 elif test -f $ac_dir/install.sh
; then
538 ac_install_sh
="$ac_aux_dir/install.sh -c"
542 if test -z "$ac_aux_dir"; then
543 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
545 ac_config_guess
=$ac_aux_dir/config.guess
546 ac_config_sub
=$ac_aux_dir/config.sub
547 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
550 # Do some error checking and defaulting for the host and target type.
552 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
555 # 1. You are not allowed to specify --host, --target, and nonopt at the
557 # 2. Host defaults to nonopt.
558 # 3. If nonopt is not specified, then host defaults to the current host,
559 # as determined by config.guess.
560 # 4. Target and build default to nonopt.
561 # 5. If nonopt is not specified, then target and build default to host.
563 # The aliases save the names the user supplied, while $host etc.
564 # will get canonicalized.
565 case $host---$target---$nonopt in
566 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
567 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
571 # Make sure we can run config.sub.
572 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
573 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
576 echo $ac_n "checking host system type""... $ac_c" 1>&6
577 echo "configure:578: checking host system type" >&5
580 case "$host_alias" in
584 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
585 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
587 *) host_alias
=$nonopt ;;
591 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
592 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
593 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
594 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
595 echo "$ac_t""$host" 1>&6
597 echo $ac_n "checking target system type""... $ac_c" 1>&6
598 echo "configure:599: checking target system type" >&5
601 case "$target_alias" in
604 NONE
) target_alias
=$host_alias ;;
605 *) target_alias
=$nonopt ;;
609 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
610 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
611 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
612 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
613 echo "$ac_t""$target" 1>&6
615 echo $ac_n "checking build system type""... $ac_c" 1>&6
616 echo "configure:617: checking build system type" >&5
619 case "$build_alias" in
622 NONE
) build_alias
=$host_alias ;;
623 *) build_alias
=$nonopt ;;
627 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
628 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$build" 1>&6
633 test "$host_alias" != "$target_alias" &&
634 test "$program_prefix$program_suffix$program_transform_name" = \
636 program_prefix
=${target_alias}-
641 if test -z "$PWD" ; then
649 # Check whether --with-gcc or --without-gcc was given.
650 if test "${with_gcc+set}" = set; then
657 if test "${srcdir}" != "." ; then
658 V_INCLS
="-I\$(srcdir)"
660 if test "${CFLAGS+set}" = set; then
663 if test -z "$CC" ; then
667 # Extract the first word of "shlicc2", so it can be a program name with args.
668 set dummy shlicc2
; ac_word
=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
674 if test -n "$SHLICC2"; then
675 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
677 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
679 for ac_dir
in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir
=.
681 if test -f $ac_dir/$ac_word; then
682 ac_cv_prog_SHLICC2
="yes"
687 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
690 SHLICC2
="$ac_cv_prog_SHLICC2"
691 if test -n "$SHLICC2"; then
692 echo "$ac_t""$SHLICC2" 1>&6
694 echo "$ac_t""no" 1>&6
697 if test $SHLICC2 = yes ; then
704 if test -z "$CC" -a "$with_gcc" = no
; then
708 # Extract the first word of "gcc", so it can be a program name with args.
709 set dummy gcc
; ac_word
=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 if test -n "$CC"; then
716 ac_cv_prog_CC
="$CC" # Let the user override the test.
718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
720 for ac_dir
in $ac_dummy; do
721 test -z "$ac_dir" && ac_dir
=.
722 if test -f $ac_dir/$ac_word; then
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
734 echo "$ac_t""no" 1>&6
737 if test -z "$CC"; then
738 # Extract the first word of "cc", so it can be a program name with args.
739 set dummy cc
; ac_word
=$2
740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
741 echo "configure:742: checking for $ac_word" >&5
742 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
745 if test -n "$CC"; then
746 ac_cv_prog_CC
="$CC" # Let the user override the test.
748 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
751 for ac_dir
in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir
=.
753 if test -f $ac_dir/$ac_word; then
754 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
763 if test $ac_prog_rejected = yes; then
764 # We found a bogon in the path, so make sure we never use it.
765 set dummy
$ac_cv_prog_CC
767 if test $# -gt 0; then
768 # We chose a different compiler from the bogus one.
769 # However, it has the same basename, so the bogon will be chosen
770 # first if we set CC to just the basename; use the full file name.
772 set dummy
"$ac_dir/$ac_word" "$@"
780 if test -n "$CC"; then
781 echo "$ac_t""$CC" 1>&6
783 echo "$ac_t""no" 1>&6
786 if test -z "$CC"; then
789 # Extract the first word of "cl", so it can be a program name with args.
790 set dummy cl
; ac_word
=$2
791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792 echo "configure:793: checking for $ac_word" >&5
793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 if test -n "$CC"; then
797 ac_cv_prog_CC
="$CC" # Let the user override the test.
799 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
801 for ac_dir
in $ac_dummy; do
802 test -z "$ac_dir" && ac_dir
=.
803 if test -f $ac_dir/$ac_word; then
812 if test -n "$CC"; then
813 echo "$ac_t""$CC" 1>&6
815 echo "$ac_t""no" 1>&6
820 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
823 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
824 echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
828 ac_cpp
='$CPP $CPPFLAGS'
829 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
830 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
831 cross_compiling
=$ac_cv_prog_cc_cross
833 cat > conftest.
$ac_ext << EOF
835 #line 836 "configure"
836 #include "confdefs.h"
840 if { (eval echo configure
:841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
841 ac_cv_prog_cc_works
=yes
842 # If we can't run a trivial program, we are probably using a cross compiler.
843 if (.
/conftest
; exit) 2>/dev
/null
; then
844 ac_cv_prog_cc_cross
=no
846 ac_cv_prog_cc_cross
=yes
849 echo "configure: failed program was:" >&5
850 cat conftest.
$ac_ext >&5
851 ac_cv_prog_cc_works
=no
855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
856 ac_cpp
='$CPP $CPPFLAGS'
857 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
858 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
859 cross_compiling
=$ac_cv_prog_cc_cross
861 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
862 if test $ac_cv_prog_cc_works = no
; then
863 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
865 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
866 echo "configure:867: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
867 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
868 cross_compiling
=$ac_cv_prog_cc_cross
870 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
871 echo "configure:872: checking whether we are using GNU C" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
875 cat > conftest.c
<<EOF
880 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
887 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
889 if test $ac_cv_prog_gcc = yes; then
895 ac_test_CFLAGS
="${CFLAGS+set}"
896 ac_save_CFLAGS
="$CFLAGS"
898 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
899 echo "configure:900: checking whether ${CC-cc} accepts -g" >&5
900 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 echo 'void f(){}' > conftest.c
904 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
913 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
914 if test "$ac_test_CFLAGS" = set; then
915 CFLAGS
="$ac_save_CFLAGS"
916 elif test $ac_cv_prog_cc_g = yes; then
917 if test "$GCC" = yes; then
923 if test "$GCC" = yes; then
930 if test "$GCC" = yes ; then
931 if test "$SHLICC2" = yes ; then
935 echo $ac_n "checking gcc version""... $ac_c" 1>&6
936 echo "configure:937: checking gcc version" >&5
937 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
941 sed -e '/^gcc version /!d' \
942 -e 's/^gcc version //' \
943 -e 's/ .*//' -e 's/^[^0-9]*//' \
947 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
948 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
953 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
954 echo "configure:955: checking that $CC handles ansi prototypes" >&5
955 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 cat > conftest.
$ac_ext <<EOF
959 #line 960 "configure"
960 #include "confdefs.h"
961 #include <sys/types.h>
963 int frob(int, char *)
966 if { (eval echo configure
:967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
968 ac_cv_lbl_cc_ansi_prototypes
=yes
970 echo "configure: failed program was:" >&5
971 cat conftest.
$ac_ext >&5
973 ac_cv_lbl_cc_ansi_prototypes
=no
978 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
979 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
983 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
984 echo "configure:985: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
985 savedcflags
="$CFLAGS"
986 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
987 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 cat > conftest.
$ac_ext <<EOF
991 #line 992 "configure"
992 #include "confdefs.h"
993 #include <sys/types.h>
995 int frob(int, char *)
998 if { (eval echo configure
:999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1000 ac_cv_lbl_cc_hpux_cc_aa
=yes
1002 echo "configure: failed program was:" >&5
1003 cat conftest.
$ac_ext >&5
1005 ac_cv_lbl_cc_hpux_cc_aa
=no
1010 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1011 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1012 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1014 CFLAGS
="$savedcflags"
1015 V_CCOPT
="-Aa $V_CCOPT"
1016 cat >> confdefs.h
<<\EOF
1017 #define _HPUX_SOURCE 1
1023 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1027 V_INCLS
="$V_INCLS -I/usr/local/include"
1028 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1030 case "$target_os" in
1033 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
1037 V_CCOPT
="$V_CCOPT -std1 -g3"
1041 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1042 echo "configure:1043: checking that Ultrix $CC hacks const in prototypes" >&5
1043 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 cat > conftest.
$ac_ext <<EOF
1047 #line 1048 "configure"
1048 #include "confdefs.h"
1049 #include <sys/types.h>
1051 struct a { int b; };
1052 void c(const struct a *)
1055 if { (eval echo configure
:1056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1057 ac_cv_lbl_cc_const_proto
=yes
1059 echo "configure: failed program was:" >&5
1060 cat conftest.
$ac_ext >&5
1062 ac_cv_lbl_cc_const_proto
=no
1067 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1068 if test $ac_cv_lbl_cc_const_proto = no
; then
1069 cat >> confdefs.h
<<\EOF
1078 echo $ac_n "checking for inline""... $ac_c" 1>&6
1079 echo "configure:1080: checking for inline" >&5
1080 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1084 for ac_kw
in inline __inline__ __inline
; do
1085 cat > conftest.
$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1093 if { (eval echo configure
:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1095 ac_cv_c_inline
=$ac_kw; break
1097 echo "configure: failed program was:" >&5
1098 cat conftest.
$ac_ext >&5
1105 echo "$ac_t""$ac_cv_c_inline" 1>&6
1106 case "$ac_cv_c_inline" in
1108 no
) cat >> confdefs.h
<<\EOF
1112 *) cat >> confdefs.h
<<EOF
1113 #define inline $ac_cv_c_inline
1119 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1120 echo "configure:1121: checking how to run the C preprocessor" >&5
1121 # On Suns, sometimes $CPP names a directory.
1122 if test -n "$CPP" && test -d "$CPP"; then
1125 if test -z "$CPP"; then
1126 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 # This must be in double quotes, not single quotes, because CPP may get
1130 # substituted into the Makefile and "${CC-cc}" will confuse make.
1132 # On the NeXT, cc -E runs the code through the compiler's parser,
1133 # not just through cpp.
1134 cat > conftest.
$ac_ext <<EOF
1135 #line 1136 "configure"
1136 #include "confdefs.h"
1140 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1141 { (eval echo configure
:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1142 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1143 if test -z "$ac_err"; then
1147 echo "configure: failed program was:" >&5
1148 cat conftest.
$ac_ext >&5
1150 CPP
="${CC-cc} -E -traditional-cpp"
1151 cat > conftest.
$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1157 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1158 { (eval echo configure
:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1159 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1160 if test -z "$ac_err"; then
1164 echo "configure: failed program was:" >&5
1165 cat conftest.
$ac_ext >&5
1167 CPP
="${CC-cc} -nologo -E"
1168 cat > conftest.
$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1174 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1175 { (eval echo configure
:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1176 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1177 if test -z "$ac_err"; then
1181 echo "configure: failed program was:" >&5
1182 cat conftest.
$ac_ext >&5
1191 ac_cv_prog_CPP
="$CPP"
1193 CPP
="$ac_cv_prog_CPP"
1195 ac_cv_prog_CPP
="$CPP"
1197 echo "$ac_t""$CPP" 1>&6
1199 for ac_hdr
in fcntl.h malloc.h memory.h rpc
/rpcent.h
1201 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_hdr" >&5
1204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 cat > conftest.
$ac_ext <<EOF
1208 #line 1209 "configure"
1209 #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
1217 eval "ac_cv_header_$ac_safe=yes"
1220 echo "configure: failed program was:" >&5
1221 cat conftest.
$ac_ext >&5
1223 eval "ac_cv_header_$ac_safe=no"
1227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1228 echo "$ac_t""yes" 1>&6
1229 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1230 cat >> confdefs.h
<<EOF
1231 #define $ac_tr_hdr 1
1235 echo "$ac_t""no" 1>&6
1239 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether time.h and sys/time.h may both be included" >&5
1241 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <sys/types.h>
1248 #include <sys/time.h>
1254 if { (eval echo configure
:1255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1256 ac_cv_header_time
=yes
1258 echo "configure: failed program was:" >&5
1259 cat conftest.
$ac_ext >&5
1261 ac_cv_header_time
=no
1266 echo "$ac_t""$ac_cv_header_time" 1>&6
1267 if test $ac_cv_header_time = yes; then
1268 cat >> confdefs.h
<<\EOF
1269 #define TIME_WITH_SYS_TIME 1
1275 case "$target_os" in
1278 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1279 echo "configure:1280: checking Linux kernel version" >&5
1280 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 ac_cv_linux_vers
=`uname -r 2>&1 | \
1284 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1287 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1288 if test $ac_cv_linux_vers -lt 2 ; then
1289 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1291 cat >> confdefs.h
<<\EOF
1292 #define HAVE_NET_SLIP_H 1
1298 for ac_hdr
in net
/slip.h
1300 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1302 echo "configure:1303: checking for $ac_hdr" >&5
1303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 cat > conftest.
$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1311 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1312 { (eval echo configure
:1313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1313 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1314 if test -z "$ac_err"; then
1316 eval "ac_cv_header_$ac_safe=yes"
1319 echo "configure: failed program was:" >&5
1320 cat conftest.
$ac_ext >&5
1322 eval "ac_cv_header_$ac_safe=no"
1326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1328 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1329 cat >> confdefs.h
<<EOF
1330 #define $ac_tr_hdr 1
1334 echo "$ac_t""no" 1>&6
1341 CFLAGS
="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
1342 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1343 echo "configure:1344: checking whether to enable ipv6" >&5
1344 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1345 if test "${enable_ipv6+set}" = set; then
1346 enableval
="$enable_ipv6"
1347 case "$enableval" in
1348 yes) echo "$ac_t""yes" 1>&6
1349 cat >> confdefs.h
<<\EOF
1350 #define ENABLE_IPV6 1
1353 LOCALSRC
="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
1354 cat >> confdefs.h
<<\EOF
1361 echo "$ac_t""no" 1>&6
1366 if test "$cross_compiling" = yes; then
1367 echo "$ac_t""no" 1>&6
1371 cat > conftest.
$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* AF_INET6 avalable check */
1375 #include <sys/types.h>
1376 #include <sys/socket.h>
1379 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1386 if { (eval echo configure
:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1388 echo "$ac_t""yes" 1>&6
1389 cat >> confdefs.h
<<\EOF
1390 #define ENABLE_IPV6 1
1393 LOCALSRC
="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
1394 cat >> confdefs.h
<<\EOF
1400 echo "configure: failed program was:" >&5
1401 cat conftest.
$ac_ext >&5
1403 echo "$ac_t""no" 1>&6
1416 if test "$ipv6" = "yes"; then
1417 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1418 echo "configure:1419: checking ipv6 stack type" >&5
1419 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1422 cat > conftest.
$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1426 #include <netinet/in.h>
1427 #ifdef IPV6_INRIA_VERSION
1431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1432 egrep "yes" >/dev
/null
2>&1; then
1435 CFLAGS
="-DINET6 $CFLAGS"
1441 cat > conftest.
$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1445 #include <netinet/in.h>
1450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451 egrep "yes" >/dev
/null
2>&1; then
1455 ipv6libdir
=/usr
/local
/v
6/lib
;
1457 CFLAGS
="-DINET6 $CFLAGS"
1463 cat > conftest.
$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1467 #include <features.h>
1468 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1473 egrep "yes" >/dev
/null
2>&1; then
1476 CFLAGS
="-DINET6 $CFLAGS"
1482 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1485 ipv6libdir
=/usr
/inet
6/lib
1487 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1491 cat > conftest.
$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1495 #include <sys/param.h>
1496 #ifdef _TOSHIBA_INET6
1500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1501 egrep "yes" >/dev
/null
2>&1; then
1505 ipv6libdir
=/usr
/local
/v
6/lib
;
1506 CFLAGS
="-DINET6 $CFLAGS"
1512 cat > conftest.
$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1516 #include </usr/local/v6/include/sys/v6config.h>
1521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1522 egrep "yes" >/dev
/null
2>&1; then
1526 ipv6libdir
=/usr
/local
/v
6/lib
;
1527 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1533 cat > conftest.
$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1537 #include <sys/param.h>
1538 #ifdef _ZETA_MINAMI_INET6
1542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1543 egrep "yes" >/dev
/null
2>&1; then
1547 ipv6libdir
=/usr
/local
/v
6/lib
;
1548 CFLAGS
="-DINET6 $CFLAGS"
1554 if test "$ipv6type" != "unknown"; then
1558 echo "$ac_t""$ipv6type" 1>&6
1561 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1562 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1563 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1564 echo "You have $ipv6lib library, using it"
1566 if test "$ipv6trylibc" = "yes"; then
1567 echo "You do not have $ipv6lib library, using libc"
1569 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1570 echo "You need to fetch lib$ipv6lib.a from appropriate"
1571 echo 'ipv6 kit and compile beforehand.'
1578 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1579 echo "configure:1580: checking getaddrinfo bug" >&5
1580 if test "$cross_compiling" = yes; then
1581 echo "$ac_t""buggy" 1>&6
1582 buggygetaddrinfo
=yes
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1588 #include <sys/types.h>
1591 #include <sys/socket.h>
1592 #include <netinet/in.h>
1596 int passive, gaierr, inet4 = 0, inet6 = 0;
1597 struct addrinfo hints, *ai, *aitop;
1598 char straddr[INET6_ADDRSTRLEN], strport[16];
1600 for (passive = 0; passive <= 1; passive++) {
1601 memset(&hints, 0, sizeof(hints));
1602 hints.ai_family = AF_UNSPEC;
1603 hints.ai_flags = passive ? AI_PASSIVE : 0;
1604 hints.ai_socktype = SOCK_STREAM;
1605 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1606 (void)gai_strerror(gaierr);
1609 for (ai = aitop; ai; ai = ai->ai_next) {
1610 if (ai->ai_addr == NULL ||
1611 ai->ai_addrlen == 0 ||
1612 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1613 straddr, sizeof(straddr), strport, sizeof(strport),
1614 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1617 switch (ai->ai_family) {
1619 if (strcmp(strport, "54321") != 0) {
1623 if (strcmp(straddr, "0.0.0.0") != 0) {
1627 if (strcmp(straddr, "127.0.0.1") != 0) {
1634 if (strcmp(strport, "54321") != 0) {
1638 if (strcmp(straddr, "::") != 0) {
1642 if (strcmp(straddr, "::1") != 0) {
1659 /* another family support? */
1665 if (inet6 != 2 || inet4 != 2)
1669 freeaddrinfo(aitop);
1674 freeaddrinfo(aitop);
1679 if { (eval echo configure
:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1681 echo "$ac_t""good" 1>&6
1684 echo "configure: failed program was:" >&5
1685 cat conftest.
$ac_ext >&5
1687 echo "$ac_t""buggy" 1>&6
1688 buggygetaddrinfo
=yes
1694 if test "$buggygetaddrinfo" = "yes"; then
1695 if test "$ipv6" = "yes" -a "$ipv6type" != "linux"; then
1696 echo 'Fatal: You must get working getaddrinfo() function.'
1697 echo ' or you can specify "--disable-ipv6"'.
1699 elif test "$ipv6type" = "linux"; then
1700 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1701 echo ' Better upgreade your system library to newest version'
1702 echo ' of GNU C library (aka glibc).'
1705 for ac_func
in getaddrinfo getnameinfo inet_ntop inet_pton inet_aton
1707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_func" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $ac_func(); below. */
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1736 if { (eval echo configure
:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1738 eval "ac_cv_func_$ac_func=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 eval "ac_cv_func_$ac_func=no"
1748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1751 cat >> confdefs.h
<<EOF
1752 #define $ac_tr_func 1
1756 echo "$ac_t""no" 1>&6
1757 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
1764 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
1765 echo "configure:1766: checking if sockaddr struct has sa_len member" >&5
1766 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 cat > conftest.
$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1773 # include <sys/types.h>
1774 # include <sys/socket.h>
1776 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
1779 if { (eval echo configure
:1780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1781 ac_cv_sockaddr_has_sa_len
=yes
1783 echo "configure: failed program was:" >&5
1784 cat conftest.
$ac_ext >&5
1786 ac_cv_sockaddr_has_sa_len
=no
1791 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
1792 if test $ac_cv_sockaddr_has_sa_len = yes ; then
1793 cat >> confdefs.h
<<\EOF
1794 #define HAVE_SOCKADDR_SA_LEN 1
1799 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
1800 missing_includes
=yes
1804 echo $ac_n "checking for __P""... $ac_c" 1>&6
1805 echo "configure:1806: checking for __P" >&5
1806 if eval "test \"`echo '$''{'ac_cv_portable_proto'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 cat > conftest.
$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1813 # include <unistd.h>
1818 if { (eval echo configure
:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1820 ac_cv_portable_proto
=yes
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1825 ac_cv_portable_proto
=no
1830 echo "$ac_t""$ac_cv_portable_proto" 1>&6
1831 if test $ac_cv_portable_proto = yes; then
1832 cat >> confdefs.h
<<\EOF
1833 #define HAVE_PORTABLE_PROTOTYPE 1
1838 if test "$ac_cv_portable_proto" = no
; then
1839 missing_includes
=yes
1842 echo $ac_n "checking size of char""... $ac_c" 1>&6
1843 echo "configure:1844: checking size of char" >&5
1844 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 if test "$cross_compiling" = yes; then
1848 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1850 cat > conftest.
$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1856 FILE *f=fopen("conftestval", "w");
1858 fprintf(f, "%d\n", sizeof(char));
1862 if { (eval echo configure
:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1864 ac_cv_sizeof_char
=`cat conftestval`
1866 echo "configure: failed program was:" >&5
1867 cat conftest.
$ac_ext >&5
1875 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1876 cat >> confdefs.h
<<EOF
1877 #define SIZEOF_CHAR $ac_cv_sizeof_char
1881 echo $ac_n "checking size of short""... $ac_c" 1>&6
1882 echo "configure:1883: checking size of short" >&5
1883 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 if test "$cross_compiling" = yes; then
1887 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1889 cat > conftest.
$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1895 FILE *f=fopen("conftestval", "w");
1897 fprintf(f, "%d\n", sizeof(short));
1901 if { (eval echo configure
:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1903 ac_cv_sizeof_short
=`cat conftestval`
1905 echo "configure: failed program was:" >&5
1906 cat conftest.
$ac_ext >&5
1908 ac_cv_sizeof_short
=0
1914 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1915 cat >> confdefs.h
<<EOF
1916 #define SIZEOF_SHORT $ac_cv_sizeof_short
1920 echo $ac_n "checking size of int""... $ac_c" 1>&6
1921 echo "configure:1922: checking size of int" >&5
1922 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 if test "$cross_compiling" = yes; then
1926 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1934 FILE *f=fopen("conftestval", "w");
1936 fprintf(f, "%d\n", sizeof(int));
1940 if { (eval echo configure
:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1942 ac_cv_sizeof_int
=`cat conftestval`
1944 echo "configure: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1953 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1954 cat >> confdefs.h
<<EOF
1955 #define SIZEOF_INT $ac_cv_sizeof_int
1959 echo $ac_n "checking size of long""... $ac_c" 1>&6
1960 echo "configure:1961: checking size of long" >&5
1961 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 if test "$cross_compiling" = yes; then
1965 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1967 cat > conftest.
$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1973 FILE *f=fopen("conftestval", "w");
1975 fprintf(f, "%d\n", sizeof(long));
1979 if { (eval echo configure
:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1981 ac_cv_sizeof_long
=`cat conftestval`
1983 echo "configure: failed program was:" >&5
1984 cat conftest.
$ac_ext >&5
1992 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1993 cat >> confdefs.h
<<EOF
1994 #define SIZEOF_LONG $ac_cv_sizeof_long
2001 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2002 echo "configure:2003: checking for addrinfo" >&5
2003 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 cat > conftest.
$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2015 if { (eval echo configure
:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2019 echo "configure: failed program was:" >&5
2020 cat conftest.
$ac_ext >&5
2027 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2028 if test $ac_cv_addrinfo = yes; then
2029 cat >> confdefs.h
<<\EOF
2030 #define HAVE_ADDRINFO 1
2035 if test "$ac_cv_addrinfo" = no
; then
2036 missing_includes
=yes
2040 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2041 echo "configure:2042: checking for sockaddr_storage" >&5
2042 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.
$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2049 # include <sys/types.h>
2050 # include <sys/socket.h>
2052 struct sockaddr_storage s
2055 if { (eval echo configure
:2056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2057 ac_cv_sa_storage
=yes
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2067 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2068 if test $ac_cv_sa_storage = yes; then
2069 cat >> confdefs.h
<<\EOF
2070 #define HAVE_SOCKADDR_STORAGE 1
2075 if test "$ac_cv_sa_storage" = no
; then
2076 missing_includes
=yes
2081 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2082 echo "configure:2083: checking for INADDRSZ" >&5
2083 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 cat > conftest.
$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2090 # include <arpa/nameser.h>
2095 if { (eval echo configure
:2096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2099 echo "configure: failed program was:" >&5
2100 cat conftest.
$ac_ext >&5
2107 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2108 if test $ac_cv_inaddrsz = yes; then
2109 cat >> confdefs.h
<<\EOF
2110 #define HAVE_INADDRSZ 1
2116 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2117 echo "configure:2118: checking for IN6ADDRSZ" >&5
2118 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2125 # include <arpa/nameser.h>
2130 if { (eval echo configure
:2131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2134 echo "configure: failed program was:" >&5
2135 cat conftest.
$ac_ext >&5
2142 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2143 if test $ac_cv_in6addrsz = yes; then
2144 cat >> confdefs.h
<<\EOF
2145 #define HAVE_IN6ADDRSZ 1
2152 if test "$ac_cv_addrsz" = no
; then
2153 missing_includes
=yes
2157 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2158 echo "configure:2159: checking for RES_USE_INET6" >&5
2159 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 cat > conftest.
$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2166 # include <sys/types.h>
2167 # include <netinet/in.h>
2168 # include <resolv.h>
2170 int a = RES_USE_INET6
2173 if { (eval echo configure
:2174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2177 echo "configure: failed program was:" >&5
2178 cat conftest.
$ac_ext >&5
2185 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2186 if test $ac_cv_res_inet6 = yes; then
2187 cat >> confdefs.h
<<\EOF
2188 #define HAVE_RES_USE_INET6 1
2193 if test "$ac_cv_res_inet6" = no
; then
2194 missing_includes
=yes
2198 echo $ac_n "checking for AAAA""... $ac_c" 1>&6
2199 echo "configure:2200: checking for AAAA" >&5
2200 if eval "test \"`echo '$''{'ac_cv_aaaa'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 cat > conftest.
$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2207 # include <sys/types.h>
2208 # include <arpa/nameser.h>
2213 if { (eval echo configure
:2214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2217 echo "configure: failed program was:" >&5
2218 cat conftest.
$ac_ext >&5
2225 echo "$ac_t""$ac_cv_aaaa" 1>&6
2226 if test $ac_cv_aaaa = yes; then
2227 cat >> confdefs.h
<<\EOF
2233 if test "$ac_cv_aaaa" = no
; then
2234 cat >> confdefs.h
<<\EOF
2241 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2242 echo "configure:2243: checking for res_state_ext" >&5
2243 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2250 # include <sys/types.h>
2251 # include <netinet/in.h>
2252 # include <netinet6/in6.h>
2253 # include <resolv.h>
2255 struct __res_state_ext e
2258 if { (eval echo configure
:2259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2260 ac_cv_res_state_ext
=yes
2262 echo "configure: failed program was:" >&5
2263 cat conftest.
$ac_ext >&5
2265 ac_cv_res_state_ext
=no
2270 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2271 if test $ac_cv_res_state_ext = yes; then
2272 cat >> confdefs.h
<<\EOF
2273 #define HAVE_RES_STATE_EXT 1
2278 if test "$ac_cv_res_state_ext" = no
; then
2279 missing_includes
=yes
2283 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2284 echo "configure:2285: checking for nsort in res_state" >&5
2285 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.
$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2292 # include <sys/types.h>
2293 # include <netinet/in.h>
2294 # include <netinet6/in6.h>
2295 # include <resolv.h>
2297 struct __res_state e; e.nsort = 0
2300 if { (eval echo configure
:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2304 echo "configure: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2312 echo "$ac_t""$ac_cv_res_state" 1>&6
2313 if test $ac_cv_res_state = yes; then
2314 cat >> confdefs.h
<<\EOF
2315 #define HAVE_NEW_RES_STATE 1
2321 if test "$missing_includes" = "yes"; then
2322 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2323 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2327 for ac_func
in vfprintf strcasecmp
2329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_func" >&5
2331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 /* System header to define __stub macros and hopefully few prototypes,
2338 which can conflict with char $ac_func(); below. */
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2347 /* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2358 if { (eval echo configure
:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2360 eval "ac_cv_func_$ac_func=yes"
2362 echo "configure: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2365 eval "ac_cv_func_$ac_func=no"
2370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2373 cat >> confdefs.h
<<EOF
2374 #define $ac_tr_func 1
2378 echo "$ac_t""no" 1>&6
2379 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2384 for ac_func
in ether_ntohost setlinebuf gethostbyname2
2386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_func" >&5
2388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.
$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2394 /* System header to define __stub macros and hopefully few prototypes,
2395 which can conflict with char $ac_func(); below. */
2397 /* Override any gcc2 internal prototype to avoid an error. */
2398 /* We use char because int might match the return type of a gcc2
2399 builtin and then its argument prototype would still apply. */
2404 /* The GNU C library defines this for functions which it implements
2405 to always fail with ENOSYS. Some functions are actually named
2406 something starting with __ and the normal name is an alias. */
2407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2415 if { (eval echo configure
:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2417 eval "ac_cv_func_$ac_func=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2422 eval "ac_cv_func_$ac_func=no"
2427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2429 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2430 cat >> confdefs.h
<<EOF
2431 #define $ac_tr_func 1
2435 echo "$ac_t""no" 1>&6
2440 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2441 echo "configure:2442: checking whether byte ordering is bigendian" >&5
2442 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_cv_c_bigendian
=unknown
2446 # See if sys/param.h defines the BYTE_ORDER macro.
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 #include <sys/types.h>
2451 #include <sys/param.h>
2454 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2459 if { (eval echo configure
:2460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2461 # It does; now see whether it defined to BIG_ENDIAN or not.
2462 cat > conftest.
$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 #include <sys/types.h>
2466 #include <sys/param.h>
2469 #if BYTE_ORDER != BIG_ENDIAN
2474 if { (eval echo configure
:2475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 ac_cv_c_bigendian
=yes
2478 echo "configure: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 ac_cv_c_bigendian
=no
2485 echo "configure: failed program was:" >&5
2486 cat conftest.
$ac_ext >&5
2489 if test $ac_cv_c_bigendian = unknown
; then
2490 if test "$cross_compiling" = yes; then
2491 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2497 /* Are we little or big endian? From Harbison&Steele. */
2501 char c[sizeof (long)];
2504 exit (u.c[sizeof (long) - 1] == 1);
2507 if { (eval echo configure
:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2509 ac_cv_c_bigendian
=no
2511 echo "configure: failed program was:" >&5
2512 cat conftest.
$ac_ext >&5
2514 ac_cv_c_bigendian
=yes
2522 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2523 if test $ac_cv_c_bigendian = yes; then
2524 cat >> confdefs.h
<<\EOF
2525 #define WORDS_BIGENDIAN 1
2531 echo $ac_n "checking for main in -ldnet""... $ac_c" 1>&6
2532 echo "configure:2533: checking for main in -ldnet" >&5
2533 ac_lib_var
=`echo dnet'_'main | sed 'y%./+-%__p_%'`
2534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 ac_save_LIBS
="$LIBS"
2539 cat > conftest.
$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2547 if { (eval echo configure
:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2549 eval "ac_cv_lib_$ac_lib_var=yes"
2551 echo "configure: failed program was:" >&5
2552 cat conftest.
$ac_ext >&5
2554 eval "ac_cv_lib_$ac_lib_var=no"
2557 LIBS
="$ac_save_LIBS"
2560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2562 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2564 cat >> confdefs.h
<<EOF
2565 #define $ac_tr_lib 1
2571 echo "$ac_t""no" 1>&6
2574 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
2575 echo "configure:2576: checking for main in -lrpc" >&5
2576 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
2577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 ac_save_LIBS
="$LIBS"
2582 cat > conftest.
$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2590 if { (eval echo configure
:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2592 eval "ac_cv_lib_$ac_lib_var=yes"
2594 echo "configure: failed program was:" >&5
2595 cat conftest.
$ac_ext >&5
2597 eval "ac_cv_lib_$ac_lib_var=no"
2600 LIBS
="$ac_save_LIBS"
2603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2607 cat >> confdefs.h
<<EOF
2608 #define $ac_tr_lib 1
2614 echo "$ac_t""no" 1>&6
2617 echo $ac_n "checking for uncompress in -lz""... $ac_c" 1>&6
2618 echo "configure:2619: checking for uncompress in -lz" >&5
2619 ac_lib_var
=`echo z'_'uncompress | sed 'y%./+-%__p_%'`
2620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 ac_save_LIBS
="$LIBS"
2625 cat > conftest.
$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 /* Override any gcc2 internal prototype to avoid an error. */
2629 /* We use char because int might match the return type of a gcc2
2630 builtin and then its argument prototype would still apply. */
2637 if { (eval echo configure
:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2639 eval "ac_cv_lib_$ac_lib_var=yes"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2644 eval "ac_cv_lib_$ac_lib_var=no"
2647 LIBS
="$ac_save_LIBS"
2650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
2652 ac_tr_lib
=HAVE_LIB
`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2654 cat >> confdefs.h
<<EOF
2655 #define $ac_tr_lib 1
2661 echo "$ac_t""no" 1>&6
2664 for ac_hdr
in zlib.h netinet
6/ipcomp.h
2666 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_hdr" >&5
2669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.
$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2677 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2678 { (eval echo configure
:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2679 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2680 if test -z "$ac_err"; then
2682 eval "ac_cv_header_$ac_safe=yes"
2685 echo "configure: failed program was:" >&5
2686 cat conftest.
$ac_ext >&5
2688 eval "ac_cv_header_$ac_safe=no"
2692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2695 cat >> confdefs.h
<<EOF
2696 #define $ac_tr_hdr 1
2700 echo "$ac_t""no" 1>&6
2706 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2707 echo "configure:2708: checking return type of signal handlers" >&5
2708 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 cat > conftest.
$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 #include <sys/types.h>
2720 extern "C" void (*signal (int, void (*)(int)))(int);
2722 void (*signal ()) ();
2729 if { (eval echo configure
:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2731 ac_cv_type_signal
=void
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2736 ac_cv_type_signal
=int
2741 echo "$ac_t""$ac_cv_type_signal" 1>&6
2742 cat >> confdefs.h
<<EOF
2743 #define RETSIGTYPE $ac_cv_type_signal
2747 if test "$ac_cv_type_signal" = void
; then
2748 cat >> confdefs.h
<<\EOF
2753 cat >> confdefs.h
<<\EOF
2754 #define RETSIGVAL (0)
2758 case "$target_os" in
2761 cat >> confdefs.h
<<\EOF
2762 #define _BSD_SIGNALS 1
2768 for ac_func
in sigset
2770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_func" >&5
2772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.
$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 /* System header to define __stub macros and hopefully few prototypes,
2779 which can conflict with char $ac_func(); below. */
2781 /* Override any gcc2 internal prototype to avoid an error. */
2782 /* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
2788 /* The GNU C library defines this for functions which it implements
2789 to always fail with ENOSYS. Some functions are actually named
2790 something starting with __ and the normal name is an alias. */
2791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2799 if { (eval echo configure
:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2801 eval "ac_cv_func_$ac_func=yes"
2803 echo "configure: failed program was:" >&5
2804 cat conftest.
$ac_ext >&5
2806 eval "ac_cv_func_$ac_func=no"
2811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2814 cat >> confdefs.h
<<EOF
2815 #define $ac_tr_func 1
2819 echo "$ac_t""no" 1>&6
2823 if test $ac_cv_func_sigset = no
; then
2824 for ac_func
in sigaction
2826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_func" >&5
2828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 /* System header to define __stub macros and hopefully few prototypes,
2835 which can conflict with char $ac_func(); below. */
2837 /* Override any gcc2 internal prototype to avoid an error. */
2838 /* We use char because int might match the return type of a gcc2
2839 builtin and then its argument prototype would still apply. */
2844 /* The GNU C library defines this for functions which it implements
2845 to always fail with ENOSYS. Some functions are actually named
2846 something starting with __ and the normal name is an alias. */
2847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2855 if { (eval echo configure
:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2857 eval "ac_cv_func_$ac_func=yes"
2859 echo "configure: failed program was:" >&5
2860 cat conftest.
$ac_ext >&5
2862 eval "ac_cv_func_$ac_func=no"
2867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2868 echo "$ac_t""yes" 1>&6
2869 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2870 cat >> confdefs.h
<<EOF
2871 #define $ac_tr_func 1
2875 echo "$ac_t""no" 1>&6
2884 # Most operating systems have gethostbyname() in the default searched
2885 # libraries (i.e. libc):
2886 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2887 echo "configure:2888: checking for gethostbyname" >&5
2888 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 cat > conftest.
$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 /* System header to define __stub macros and hopefully few prototypes,
2895 which can conflict with char gethostbyname(); below. */
2897 /* Override any gcc2 internal prototype to avoid an error. */
2898 /* We use char because int might match the return type of a gcc2
2899 builtin and then its argument prototype would still apply. */
2900 char gethostbyname();
2904 /* The GNU C library defines this for functions which it implements
2905 to always fail with ENOSYS. Some functions are actually named
2906 something starting with __ and the normal name is an alias. */
2907 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2915 if { (eval echo configure
:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2917 eval "ac_cv_func_gethostbyname=yes"
2919 echo "configure: failed program was:" >&5
2920 cat conftest.
$ac_ext >&5
2922 eval "ac_cv_func_gethostbyname=no"
2927 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2928 echo "$ac_t""yes" 1>&6
2931 echo "$ac_t""no" 1>&6
2932 # Some OSes (eg. Solaris) place it in libnsl:
2933 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2934 echo "configure:2935: checking for gethostbyname in -lnsl" >&5
2935 ac_lib_var
=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
2936 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 ac_save_LIBS
="$LIBS"
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2947 char gethostbyname();
2953 if { (eval echo configure
:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2955 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
2957 echo "configure: failed program was:" >&5
2958 cat conftest.
$ac_ext >&5
2960 eval "ac_cv_lbl_lib_$ac_lib_var=no"
2963 LIBS
="$ac_save_LIBS"
2966 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2969 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2970 cat >> confdefs.h
<<EOF
2971 #define $ac_tr_lib 1
2977 echo "$ac_t""no" 1>&6
2978 # Some strange OSes (SINIX) have it in libsocket:
2979 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2980 echo "configure:2981: checking for gethostbyname in -lsocket" >&5
2981 ac_lib_var
=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
2982 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 ac_save_LIBS
="$LIBS"
2986 LIBS
="-lsocket $LIBS"
2987 cat > conftest.
$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* Override any gcc2 internal prototype to avoid an error. */
2991 /* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2993 char gethostbyname();
2999 if { (eval echo configure
:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3001 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.
$ac_ext >&5
3006 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3009 LIBS
="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3016 cat >> confdefs.h
<<EOF
3017 #define $ac_tr_lib 1
3020 LIBS
="-lsocket $LIBS"
3023 echo "$ac_t""no" 1>&6
3024 # Unfortunately libsocket sometimes depends on libnsl.
3025 # AC_CHECK_LIB's API is essentially broken so the
3026 # following ugliness is necessary:
3027 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3028 echo "configure:3029: checking for gethostbyname in -lsocket" >&5
3029 ac_lib_var
=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'`
3030 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 ac_save_LIBS
="$LIBS"
3034 LIBS
="-lsocket -lnsl $LIBS"
3035 cat > conftest.
$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 /* Override any gcc2 internal prototype to avoid an error. */
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3041 char gethostbyname();
3047 if { (eval echo configure
:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3049 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3051 echo "configure: failed program was:" >&5
3052 cat conftest.
$ac_ext >&5
3054 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3057 LIBS
="$ac_save_LIBS"
3060 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3061 echo "$ac_t""yes" 1>&6
3062 LIBS
="-lsocket -lnsl $LIBS"
3064 echo "$ac_t""no" 1>&6
3065 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3066 echo "configure:3067: checking for gethostbyname in -lresolv" >&5
3067 ac_lib_var
=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 ac_save_LIBS
="$LIBS"
3072 LIBS
="-lresolv $LIBS"
3073 cat > conftest.
$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 /* Override any gcc2 internal prototype to avoid an error. */
3077 /* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
3079 char gethostbyname();
3085 if { (eval echo configure
:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3087 eval "ac_cv_lib_$ac_lib_var=yes"
3089 echo "configure: failed program was:" >&5
3090 cat conftest.
$ac_ext >&5
3092 eval "ac_cv_lib_$ac_lib_var=no"
3095 LIBS
="$ac_save_LIBS"
3098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3099 echo "$ac_t""yes" 1>&6
3100 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3101 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3102 cat >> confdefs.h
<<EOF
3103 #define $ac_tr_lib 1
3106 LIBS
="-lresolv $LIBS"
3109 echo "$ac_t""no" 1>&6
3120 echo $ac_n "checking for socket""... $ac_c" 1>&6
3121 echo "configure:3122: checking for socket" >&5
3122 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.
$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 /* System header to define __stub macros and hopefully few prototypes,
3129 which can conflict with char socket(); below. */
3131 /* Override any gcc2 internal prototype to avoid an error. */
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3138 /* The GNU C library defines this for functions which it implements
3139 to always fail with ENOSYS. Some functions are actually named
3140 something starting with __ and the normal name is an alias. */
3141 #if defined (__stub_socket) || defined (__stub___socket)
3149 if { (eval echo configure
:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3151 eval "ac_cv_func_socket=yes"
3153 echo "configure: failed program was:" >&5
3154 cat conftest.
$ac_ext >&5
3156 eval "ac_cv_func_socket=no"
3161 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3165 echo "$ac_t""no" 1>&6
3166 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3167 echo "configure:3168: checking for socket in -lsocket" >&5
3168 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 ac_save_LIBS
="$LIBS"
3173 LIBS
="-lsocket $LIBS"
3174 cat > conftest.
$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3186 if { (eval echo configure
:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3188 eval "ac_cv_lib_$ac_lib_var=yes"
3190 echo "configure: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3193 eval "ac_cv_lib_$ac_lib_var=no"
3196 LIBS
="$ac_save_LIBS"
3199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3200 echo "$ac_t""yes" 1>&6
3201 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3203 cat >> confdefs.h
<<EOF
3204 #define $ac_tr_lib 1
3207 LIBS
="-lsocket $LIBS"
3210 echo "$ac_t""no" 1>&6
3211 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3212 echo "configure:3213: checking for socket in -lsocket" >&5
3213 ac_lib_var
=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'`
3214 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 ac_save_LIBS
="$LIBS"
3218 LIBS
="-lsocket -lnsl $LIBS"
3219 cat > conftest.
$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 /* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3231 if { (eval echo configure
:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3233 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3238 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3241 LIBS
="$ac_save_LIBS"
3244 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 LIBS
="-lsocket -lnsl $LIBS"
3248 echo "$ac_t""no" 1>&6
3255 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3256 echo $ac_n "checking for putmsg in -lstr""... $ac_c" 1>&6
3257 echo "configure:3258: checking for putmsg in -lstr" >&5
3258 ac_lib_var
=`echo str'_'putmsg | sed 'y%./+-%__p_%'`
3259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 ac_save_LIBS
="$LIBS"
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3276 if { (eval echo configure
:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3278 eval "ac_cv_lib_$ac_lib_var=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 eval "ac_cv_lib_$ac_lib_var=no"
3286 LIBS
="$ac_save_LIBS"
3289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3290 echo "$ac_t""yes" 1>&6
3291 ac_tr_lib
=HAVE_LIB
`echo str | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3293 cat >> confdefs.h
<<EOF
3294 #define $ac_tr_lib 1
3300 echo "$ac_t""no" 1>&6
3306 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3307 if test -f $pfopen ; then
3308 for ac_func
in pfopen
3310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_func" >&5
3312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 cat > conftest.
$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 /* System header to define __stub macros and hopefully few prototypes,
3319 which can conflict with char $ac_func(); below. */
3321 /* Override any gcc2 internal prototype to avoid an error. */
3322 /* We use char because int might match the return type of a gcc2
3323 builtin and then its argument prototype would still apply. */
3328 /* The GNU C library defines this for functions which it implements
3329 to always fail with ENOSYS. Some functions are actually named
3330 something starting with __ and the normal name is an alias. */
3331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3339 if { (eval echo configure
:3340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3341 eval "ac_cv_func_$ac_func=yes"
3343 echo "configure: failed program was:" >&5
3344 cat conftest.
$ac_ext >&5
3346 eval "ac_cv_func_$ac_func=no"
3351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3353 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3354 cat >> confdefs.h
<<EOF
3355 #define $ac_tr_func 1
3359 echo "$ac_t""no" 1>&6
3363 if test $ac_cv_func_pfopen = "no" ; then
3364 echo "$ac_t""Using $pfopen" 1>&6
3365 LIBS
="$LIBS $pfopen"
3368 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3369 echo "configure:3370: checking for local pcap library" >&5
3372 places
=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
3373 egrep '/libpcap-[0-9]*\.[0-9]*(\.[0-9]*)?([ab][0-9]*)?$'`
3374 for dir
in $places ..
/libpcap libpcap
; do
3375 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3376 if test $lastdir = $basedir ; then
3380 if test -r $dir/libpcap.a
; then
3381 libpcap
=$dir/libpcap.a
3385 if test $libpcap = FAIL
; then
3386 echo "$ac_t""not found" 1>&6
3387 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3388 echo "configure:3389: checking for main in -lpcap" >&5
3389 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 ac_save_LIBS
="$LIBS"
3395 cat > conftest.
$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3403 if { (eval echo configure
:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3405 eval "ac_cv_lib_$ac_lib_var=yes"
3407 echo "configure: failed program was:" >&5
3408 cat conftest.
$ac_ext >&5
3410 eval "ac_cv_lib_$ac_lib_var=no"
3413 LIBS
="$ac_save_LIBS"
3416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3417 echo "$ac_t""yes" 1>&6
3420 echo "$ac_t""no" 1>&6
3423 if test $libpcap = FAIL
; then
3424 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3428 if test -r $d/pcap.h
; then
3429 V_INCLS
="-I$d $V_INCLS"
3430 elif test -r $srcdir/..
/libpcap
/pcap.h
; then
3431 V_INCLS
="-I$d -I$srcdir/../libpcap $V_INCLS"
3433 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3435 echo "$ac_t""$libpcap" 1>&6
3437 LIBS
="$libpcap $LIBS"
3438 case "$target_os" in
3441 pseexe
="/lib/pse.exp"
3442 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $pseexe" >&5
3444 if test -f $pseexe ; then
3445 echo "$ac_t""yes" 1>&6
3446 LIBS
="$LIBS -I:$pseexe"
3452 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
3455 case "$target_os" in
3458 cat >> confdefs.h
<<\EOF
3469 V_INCLS
="$V_INCLS -I\$(srcdir)/linux-include"
3474 cat >> confdefs.h
<<\EOF
3485 if test -f /dev
/bpf0
; then
3489 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
3490 echo "configure:3491: checking for u_int8_t using $CC" >&5
3491 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.
$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3498 # include "confdefs.h"
3499 # include <sys/types.h>
3501 # include <stdlib.h>
3502 # include <stddef.h>
3508 if { (eval echo configure
:3509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3510 ac_cv_lbl_have_u_int8_t
=yes
3512 echo "configure: failed program was:" >&5
3513 cat conftest.
$ac_ext >&5
3515 ac_cv_lbl_have_u_int8_t
=no
3520 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
3521 if test $ac_cv_lbl_have_u_int8_t = no
; then
3522 cat >> confdefs.h
<<\EOF
3523 #define u_int8_t u_char
3527 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
3528 echo "configure:3529: checking for int16_t using $CC" >&5
3529 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.
$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3536 # include "confdefs.h"
3537 # include <sys/types.h>
3539 # include <stdlib.h>
3540 # include <stddef.h>
3546 if { (eval echo configure
:3547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3548 ac_cv_lbl_have_int16_t
=yes
3550 echo "configure: failed program was:" >&5
3551 cat conftest.
$ac_ext >&5
3553 ac_cv_lbl_have_int16_t
=no
3558 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
3559 if test $ac_cv_lbl_have_int16_t = no
; then
3560 cat >> confdefs.h
<<\EOF
3561 #define int16_t u_short
3565 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
3566 echo "configure:3567: checking for u_int16_t using $CC" >&5
3567 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.
$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3574 # include "confdefs.h"
3575 # include <sys/types.h>
3577 # include <stdlib.h>
3578 # include <stddef.h>
3584 if { (eval echo configure
:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 ac_cv_lbl_have_u_int16_t
=yes
3588 echo "configure: failed program was:" >&5
3589 cat conftest.
$ac_ext >&5
3591 ac_cv_lbl_have_u_int16_t
=no
3596 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
3597 if test $ac_cv_lbl_have_u_int16_t = no
; then
3598 cat >> confdefs.h
<<\EOF
3599 #define u_int16_t short
3603 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
3604 echo "configure:3605: checking for int32_t using $CC" >&5
3605 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 cat > conftest.
$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3612 # include "confdefs.h"
3613 # include <sys/types.h>
3615 # include <stdlib.h>
3616 # include <stddef.h>
3622 if { (eval echo configure
:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3624 ac_cv_lbl_have_int32_t
=yes
3626 echo "configure: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3629 ac_cv_lbl_have_int32_t
=no
3634 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
3635 if test $ac_cv_lbl_have_int32_t = no
; then
3636 cat >> confdefs.h
<<\EOF
3641 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
3642 echo "configure:3643: checking for u_int32_t using $CC" >&5
3643 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.
$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3650 # include "confdefs.h"
3651 # include <sys/types.h>
3653 # include <stdlib.h>
3654 # include <stddef.h>
3660 if { (eval echo configure
:3661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3662 ac_cv_lbl_have_u_int32_t
=yes
3664 echo "configure: failed program was:" >&5
3665 cat conftest.
$ac_ext >&5
3667 ac_cv_lbl_have_u_int32_t
=no
3672 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
3673 if test $ac_cv_lbl_have_u_int32_t = no
; then
3674 cat >> confdefs.h
<<\EOF
3675 #define u_int32_t u_int
3681 if test "${LBL_CFLAGS+set}" = set; then
3682 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
3684 if test -f .devel
; then
3685 if test "$GCC" = yes ; then
3686 if test "${LBL_CFLAGS+set}" != set; then
3687 if test "$ac_cv_prog_cc_g" = yes ; then
3688 V_CCOPT
="-g $V_CCOPT"
3690 V_CCOPT
="$V_CCOPT -Wall"
3691 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
3692 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
3696 case "$target_os" in
3699 V_CCOPT
="$V_CCOPT -n32"
3706 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
3708 if test -f $name ; then
3709 ln -s $name os-proto.h
3710 cat >> confdefs.h
<<\EOF
3711 #define HAVE_OS_PROTO_H 1
3715 echo "configure: warning: can't find $name" 1>&2
3719 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
3720 echo "configure:3721: checking if sockaddr struct has sa_len member" >&5
3721 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3728 # include <sys/types.h>
3729 # include <sys/socket.h>
3731 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
3734 if { (eval echo configure
:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3736 ac_cv_lbl_sockaddr_has_sa_len
=yes
3738 echo "configure: failed program was:" >&5
3739 cat conftest.
$ac_ext >&5
3741 ac_cv_lbl_sockaddr_has_sa_len
=no
3746 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
3747 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
3748 cat >> confdefs.h
<<\EOF
3749 #define HAVE_SOCKADDR_SA_LEN 1
3754 echo $ac_n "checking if ether_header uses ether_addr structs""... $ac_c" 1>&6
3755 echo "configure:3756: checking if ether_header uses ether_addr structs" >&5
3756 if eval "test \"`echo '$''{'ac_cv_ether_header_has_ea'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 LBL_SAVE_CFLAGS
="$CFLAGS"
3760 CFLAGS
="$CFLAGS $V_INCLS"
3761 cat > conftest.
$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3765 # include <sys/types.h>
3767 /* osf3 has REALLY good prototyes */
3771 # include <sys/socket.h>
3772 # include <net/if.h>
3773 # include <netinet/in.h>
3774 # include <netinet/if_ether.h>
3777 sizeof(((struct ether_header *)0)->ether_dhost.ether_addr_octet)
3780 if { (eval echo configure
:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3782 ac_cv_ether_header_has_ea
=yes
3784 echo "configure: failed program was:" >&5
3785 cat conftest.
$ac_ext >&5
3787 ac_cv_ether_header_has_ea
=no
3790 CFLAGS
="$LBL_SAVE_CFLAGS"
3793 echo "$ac_t""$ac_cv_ether_header_has_ea" 1>&6
3794 if test $ac_cv_ether_header_has_ea = yes ; then
3795 cat >> confdefs.h
<<\EOF
3796 #define ETHER_HEADER_HAS_EA 1
3801 echo $ac_n "checking if ether_arp uses ether_addr structs""... $ac_c" 1>&6
3802 echo "configure:3803: checking if ether_arp uses ether_addr structs" >&5
3803 if eval "test \"`echo '$''{'ac_cv_ether_arp_has_ea'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 LBL_SAVE_CFLAGS
="$CFLAGS"
3807 CFLAGS
="$CFLAGS $V_INCLS"
3808 cat > conftest.
$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3812 # include <sys/types.h>
3814 /* osf3 has REALLY good prototyes */
3818 # include <sys/socket.h>
3819 # include <net/if.h>
3820 # include <netinet/in.h>
3821 # include <netinet/if_ether.h>
3824 sizeof(((struct ether_arp *)0)->arp_sha.ether_addr_octet)
3827 if { (eval echo configure
:3828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3829 ac_cv_ether_arp_has_ea
=yes
3831 echo "configure: failed program was:" >&5
3832 cat conftest.
$ac_ext >&5
3834 ac_cv_ether_arp_has_ea
=no
3837 CFLAGS
="$LBL_SAVE_CFLAGS"
3840 echo "$ac_t""$ac_cv_ether_arp_has_ea" 1>&6
3841 if test $ac_cv_ether_arp_has_ea = yes ; then
3842 cat >> confdefs.h
<<\EOF
3843 #define ETHER_ARP_HAS_EA 1
3848 echo $ac_n "checking if ether_arp uses erp_xsha member""... $ac_c" 1>&6
3849 echo "configure:3850: checking if ether_arp uses erp_xsha member" >&5
3850 if eval "test \"`echo '$''{'ac_cv_struct_ether_arp_x'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 LBL_SAVE_CFLAGS
="$CFLAGS"
3854 CFLAGS
="$CFLAGS $V_INCLS"
3855 cat > conftest.
$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3859 # include <sys/types.h>
3860 # include <sys/socket.h>
3862 /* osf3 has REALLY good prototyes */
3866 # include <net/if.h>
3867 # include <netinet/in.h>
3868 # include <netinet/if_ether.h>
3870 u_int i = sizeof( ((struct ether_arp *)0)->arp_xsha)
3873 if { (eval echo configure
:3874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3875 ac_cv_struct_ether_arp_x
=yes
3877 echo "configure: failed program was:" >&5
3878 cat conftest.
$ac_ext >&5
3880 ac_cv_struct_ether_arp_x
=no
3883 CFLAGS
="$LBL_SAVE_CFLAGS"
3886 echo "$ac_t""$ac_cv_struct_ether_arp_x" 1>&6
3887 if test $ac_cv_struct_ether_arp_x = yes ; then
3888 cat >> confdefs.h
<<\EOF
3889 #define ETHER_ARP_HAS_X 1
3894 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
3895 echo "configure:3896: checking if unaligned accesses fail" >&5
3896 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 case "$target_cpu" in
3901 alpha|hp
*|mips|sparc
)
3902 ac_cv_lbl_unaligned_fail
=yes
3906 cat >conftest.c
<<EOF
3907 # include <sys/types.h>
3908 # include <sys/wait.h>
3910 unsigned char a[5] = { 1, 2, 3, 4, 5 };
3915 /* avoid "core dumped" message */
3921 pid = waitpid(pid, &status, 0);
3924 exit(!WIFEXITED(status));
3927 i = *(unsigned int *)&a[1];
3932 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
3933 conftest.c
$LIBS >/dev
/null
2>&1
3934 if test ! -x conftest
; then
3935 ac_cv_lbl_unaligned_fail
=yes
3937 .
/conftest
>conftest.out
3938 if test ! -s conftest.out
; then
3939 ac_cv_lbl_unaligned_fail
=yes
3941 ac_cv_lbl_unaligned_fail
=no
3944 rm -f conftest
* core core.conftest
3949 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
3950 if test $ac_cv_lbl_unaligned_fail = yes ; then
3951 cat >> confdefs.h
<<\EOF
3958 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
3959 echo "configure:3960: checking for h_errno" >&5
3960 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 cat > conftest.
$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3967 # include <sys/types.h>
3973 if { (eval echo configure
:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3975 ac_cv_var_h_errno
=yes
3977 echo "configure: failed program was:" >&5
3978 cat conftest.
$ac_ext >&5
3980 ac_cv_var_h_errno
=no
3985 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
3986 if test "$ac_cv_var_h_errno" = "yes"; then
3987 cat >> confdefs.h
<<\EOF
3988 #define HAVE_H_ERRNO 1
3994 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
3995 echo "configure:3996: checking for SSLeay" >&5
3996 ac_cv_ssleay_path
=no
3998 for dir
in /usr
/local /usr
/local
/ssl
/usr
/pkg
; do
3999 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4000 ac_cv_ssleay_path
=$dir
4002 if test -d $dir/include
-a -f $dir/include
/des.h
; then
4003 incdir
="-I$dir/include"
4005 if test -d $dir/include
/ssleay
-a -f $dir/include
/ssleay
/des.h
; then
4006 incdir
="-I$dir/include/ssleay"
4007 elif test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4008 incdir
="-I$dir/include -I$dir/include/openssl"
4011 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4014 ac_cv_ssleay_path
=no
4018 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4019 if test "$ac_cv_ssleay_path" != no
; then
4020 V_INCLS
="$V_INCLS $incdir"
4021 LIBS
="$LIBS -L$dir/lib"
4022 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4023 echo "configure:4024: checking for des_cbc_encrypt in -lcrypto" >&5
4024 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4028 ac_save_LIBS
="$LIBS"
4029 LIBS
="-lcrypto $LIBS"
4030 cat > conftest.
$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4033 /* Override any gcc2 internal prototype to avoid an error. */
4034 /* We use char because int might match the return type of a gcc2
4035 builtin and then its argument prototype would still apply. */
4036 char des_cbc_encrypt();
4042 if { (eval echo configure
:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4044 eval "ac_cv_lib_$ac_lib_var=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.
$ac_ext >&5
4049 eval "ac_cv_lib_$ac_lib_var=no"
4052 LIBS
="$ac_save_LIBS"
4055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4056 echo "$ac_t""yes" 1>&6
4057 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4059 cat >> confdefs.h
<<EOF
4060 #define $ac_tr_lib 1
4063 LIBS
="-lcrypto $LIBS"
4066 echo "$ac_t""no" 1>&6
4069 cat >> confdefs.h
<<\EOF
4074 bak_CPPFLAGS
=$CPPFLAGS
4075 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4076 for ac_hdr
in cast.h rc5.h
4078 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4080 echo "configure:4081: checking for $ac_hdr" >&5
4081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 cat > conftest.
$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4089 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4090 { (eval echo configure
:4091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4091 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4092 if test -z "$ac_err"; then
4094 eval "ac_cv_header_$ac_safe=yes"
4097 echo "configure: failed program was:" >&5
4098 cat conftest.
$ac_ext >&5
4100 eval "ac_cv_header_$ac_safe=no"
4104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4107 cat >> confdefs.h
<<EOF
4108 #define $ac_tr_hdr 1
4112 echo "$ac_t""no" 1>&6
4117 if test "$ac_cv_header_cast_h" = "yes"; then
4118 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4119 echo "configure:4120: checking for buggy CAST128" >&5
4120 if test "$cross_compiling" = yes; then
4121 buggy_cast128
="cross-compiling, assume yes"
4123 cat > conftest.
$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4130 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
4131 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
4132 unsigned char out[sizeof(in)];
4133 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
4135 CAST_set_key(&ks, sizeof(key), key);
4136 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
4137 if (memcmp(out, ok, sizeof(ok)) != 0)
4143 if { (eval echo configure
:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4147 echo "configure: failed program was:" >&5
4148 cat conftest.
$ac_ext >&5
4155 echo "$ac_t""$buggy_cast128" 1>&6
4156 if test "$buggy_cast128" != no
; then
4157 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4158 echo "disabling CAST128 support."
4159 cat >> confdefs.h
<<\EOF
4160 #define HAVE_BUGGY_CAST128 1
4166 CPPFLAGS
=$bak_CPPFLAGS
4169 if test -r ${srcdir}/lbl
/gnuc.h
; then
4171 ln -s ${srcdir}/lbl
/gnuc.h gnuc.h
4180 # Find a good install program. We prefer a C program (faster),
4181 # so one script is as good as another. But avoid the broken or
4182 # incompatible versions:
4183 # SysV /etc/install, /usr/sbin/install
4184 # SunOS /usr/etc/install
4185 # IRIX /sbin/install
4187 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4188 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4189 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4190 # ./install, which can be erroneously created by make from ./install.sh.
4191 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4192 echo "configure:4193: checking for a BSD compatible install" >&5
4193 if test -z "$INSTALL"; then
4194 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4198 for ac_dir
in $PATH; do
4199 # Account for people who put trailing slashes in PATH elements.
4201 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4203 # OSF1 and SCO ODT 3.0 have their own names for install.
4204 # Don't use installbsd from OSF since it installs stuff as root
4206 for ac_prog
in ginstall scoinst
install; do
4207 if test -f $ac_dir/$ac_prog; then
4208 if test $ac_prog = install &&
4209 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4210 # AIX install. It has an incompatible calling convention.
4213 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4224 if test "${ac_cv_path_install+set}" = set; then
4225 INSTALL
="$ac_cv_path_install"
4227 # As a last resort, use the slow shell script. We don't cache a
4228 # path for INSTALL within a source directory, because that will
4229 # break other packages using the cache if that directory is
4230 # removed, or if the path is relative.
4231 INSTALL
="$ac_install_sh"
4234 echo "$ac_t""$INSTALL" 1>&6
4236 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4237 # It thinks the first close brace ends the variable substitution.
4238 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4240 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4242 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4248 cat > confcache
<<\EOF
4249 # This file is a shell script that caches the results of configure
4250 # tests run on this system so they can be shared between configure
4251 # scripts and configure runs. It is not useful on other systems.
4252 # If it contains results you don't want to keep, you may remove or edit it.
4254 # By default, configure uses ./config.cache as the cache file,
4255 # creating it if it does not exist already. You can give configure
4256 # the --cache-file=FILE option to use a different cache file; that is
4257 # what configure does when it calls configure scripts in
4258 # subdirectories, so they share the cache.
4259 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4260 # config.status only pays attention to the cache file if you give it the
4261 # --recheck option to rerun configure.
4264 # The following way of writing the cache mishandles newlines in values,
4265 # but we know of no workaround that is simple, portable, and efficient.
4266 # So, don't put newlines in cache variables' values.
4267 # Ultrix sh set writes to stderr and can't be redirected directly,
4268 # and sets the high bit in the cache file unless we assign to the vars.
4270 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4272 # `set' does not quote correctly, so add quotes (double-quote substitution
4273 # turns \\\\ into \\, and sed turns \\ into \).
4275 -e "s/'/'\\\\''/g" \
4276 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4279 # `set' quotes correctly as required by POSIX, so do not add quotes.
4280 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4283 if cmp -s $cache_file confcache
; then
4286 if test -w $cache_file; then
4287 echo "updating cache $cache_file"
4288 cat confcache
> $cache_file
4290 echo "not updating unwritable cache $cache_file"
4295 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4297 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4298 # Let make expand exec_prefix.
4299 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4301 # Any assignment to VPATH causes Sun make to only execute
4302 # the first set of double-colon rules, so remove it if not needed.
4303 # If there is a colon in the path, we need to keep it.
4304 if test "x$srcdir" = x.
; then
4305 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4308 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4310 DEFS
=-DHAVE_CONFIG_H
4312 # Without the "./", some shells look in PATH for config.status.
4313 : ${CONFIG_STATUS=./config.status}
4315 echo creating
$CONFIG_STATUS
4316 rm -f $CONFIG_STATUS
4317 cat > $CONFIG_STATUS <<EOF
4319 # Generated automatically by configure.
4320 # Run this file to recreate the current configuration.
4321 # This directory was configured as follows,
4322 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4324 # $0 $ac_configure_args
4326 # Compiler output produced by configure, useful for debugging
4327 # configure, is in ./config.log if it exists.
4329 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4332 case "\$ac_option" in
4333 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4334 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4335 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4336 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4337 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4339 -help | --help | --hel | --he | --h)
4340 echo "\$ac_cs_usage"; exit 0 ;;
4341 *) echo "\$ac_cs_usage"; exit 1 ;;
4345 ac_given_srcdir=$srcdir
4346 ac_given_INSTALL="$INSTALL"
4348 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4350 cat >> $CONFIG_STATUS <<EOF
4352 # Protect against being on the right side of a sed subst in config.status.
4353 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4354 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4358 s%@CFLAGS@%$CFLAGS%g
4359 s%@CPPFLAGS@%$CPPFLAGS%g
4360 s%@CXXFLAGS@%$CXXFLAGS%g
4361 s%@FFLAGS@%$FFLAGS%g
4363 s%@LDFLAGS@%$LDFLAGS%g
4365 s%@exec_prefix@%$exec_prefix%g
4366 s%@prefix@%$prefix%g
4367 s%@program_transform_name@%$program_transform_name%g
4368 s%@bindir@%$bindir%g
4369 s%@sbindir@%$sbindir%g
4370 s%@libexecdir@%$libexecdir%g
4371 s%@datadir@%$datadir%g
4372 s%@sysconfdir@%$sysconfdir%g
4373 s%@sharedstatedir@%$sharedstatedir%g
4374 s%@localstatedir@%$localstatedir%g
4375 s%@libdir@%$libdir%g
4376 s%@includedir@%$includedir%g
4377 s%@oldincludedir@%$oldincludedir%g
4378 s%@infodir@%$infodir%g
4379 s%@mandir@%$mandir%g
4381 s%@host_alias@%$host_alias%g
4382 s%@host_cpu@%$host_cpu%g
4383 s%@host_vendor@%$host_vendor%g
4384 s%@host_os@%$host_os%g
4385 s%@target@%$target%g
4386 s%@target_alias@%$target_alias%g
4387 s%@target_cpu@%$target_cpu%g
4388 s%@target_vendor@%$target_vendor%g
4389 s%@target_os@%$target_os%g
4391 s%@build_alias@%$build_alias%g
4392 s%@build_cpu@%$build_cpu%g
4393 s%@build_vendor@%$build_vendor%g
4394 s%@build_os@%$build_os%g
4395 s%@SHLICC2@%$SHLICC2%g
4398 s%@LIBOBJS@%$LIBOBJS%g
4399 s%@V_CCOPT@%$V_CCOPT%g
4400 s%@V_GROUP@%$V_GROUP%g
4401 s%@V_INCLS@%$V_INCLS%g
4402 s%@V_PCAPDEP@%$V_PCAPDEP%g
4403 s%@LOCALSRC@%$LOCALSRC%g
4404 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4405 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4406 s%@INSTALL_DATA@%$INSTALL_DATA%g
4411 cat >> $CONFIG_STATUS <<\EOF
4413 # Split the substitutions into bite-sized pieces for seds with
4414 # small command number limits, like on Digital OSF/1 and HP-UX.
4415 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4416 ac_file
=1 # Number of current file.
4417 ac_beg
=1 # First line for current file.
4418 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4421 while $ac_more_lines; do
4422 if test $ac_beg -gt 1; then
4423 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4425 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4427 if test ! -s conftest.s
$ac_file; then
4429 rm -f conftest.s
$ac_file
4431 if test -z "$ac_sed_cmds"; then
4432 ac_sed_cmds
="sed -f conftest.s$ac_file"
4434 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4436 ac_file
=`expr $ac_file + 1`
4438 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4441 if test -z "$ac_sed_cmds"; then
4446 cat >> $CONFIG_STATUS <<EOF
4448 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4450 cat >> $CONFIG_STATUS <<\EOF
4451 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4452 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4454 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4455 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4456 *) ac_file_in
="${ac_file}.in" ;;
4459 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4461 # Remove last slash and all that follows it. Not all systems have dirname.
4462 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4463 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4464 # The file is in a subdirectory.
4465 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4466 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4467 # A "../" for each directory in $ac_dir_suffix.
4468 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4470 ac_dir_suffix
= ac_dots
=
4473 case "$ac_given_srcdir" in
4475 if test -z "$ac_dots"; then top_srcdir
=.
4476 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4477 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4479 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4480 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4483 case "$ac_given_INSTALL" in
4484 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4485 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4488 echo creating
"$ac_file"
4490 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4492 *Makefile
*) ac_comsub
="1i\\
4493 # $configure_input" ;;
4497 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4499 s%@configure_input@%$configure_input%g
4500 s%@srcdir@%$srcdir%g
4501 s%@top_srcdir@%$top_srcdir%g
4502 s%@INSTALL@%$INSTALL%g
4503 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4507 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4508 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4510 # ac_d sets the value in "#define NAME VALUE" lines.
4511 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4512 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4515 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4516 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4517 ac_uB
='\([ ]\)%\1#\2define\3'
4520 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4521 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4522 ac_eB
='$%\1#\2define\3'
4526 if test "${CONFIG_HEADERS+set}" != set; then
4528 cat >> $CONFIG_STATUS <<EOF
4529 CONFIG_HEADERS="config.h"
4531 cat >> $CONFIG_STATUS <<\EOF
4533 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4534 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4536 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4537 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4538 *) ac_file_in
="${ac_file}.in" ;;
4541 echo creating
$ac_file
4543 rm -f conftest.frag conftest.
in conftest.out
4544 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4545 cat $ac_file_inputs > conftest.
in
4549 # Transform confdefs.h into a sed script conftest.vals that substitutes
4550 # the proper values into config.h.in to produce config.h. And first:
4551 # Protect against being on the right side of a sed subst in config.status.
4552 # Protect against being in an unquoted here document in config.status.
4554 cat > conftest.hdr
<<\EOF
4557 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4561 sed -n -f conftest.hdr confdefs.h > conftest.vals
4564 # This sed command replaces #undef with comments. This is necessary, for
4565 # example, in the case of _POSIX_SOURCE, which is predefined and required
4566 # on some systems where configure will not decide to define it.
4567 cat >> conftest.vals <<\EOF
4568 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4571 # Break up conftest.vals because some shells have a limit on
4572 # the size of here documents, and old seds have small limits too.
4577 ac_lines=`grep -c . conftest.vals
`
4578 # grep -c gives empty output for an empty file on some AIX systems.
4579 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4580 # Write a limited-size here document to conftest.frag.
4581 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4582 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4584 sed -f conftest.frag conftest.in > conftest.out
4586 mv conftest.out conftest.in
4588 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4590 mv conftest.tail conftest.vals
4594 cat >> $CONFIG_STATUS <<\EOF
4595 rm -f conftest.frag conftest.h
4596 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4597 cat conftest.in >> conftest.h
4599 if cmp -s $ac_file conftest.h 2>/dev/null; then
4600 echo "$ac_file is unchanged"
4603 # Remove last slash and all that follows it. Not all systems have dirname.
4604 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4605 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4606 # The file is in a subdirectory.
4607 test ! -d "$ac_dir" && mkdir "$ac_dir"
4610 mv conftest.h $ac_file
4615 cat >> $CONFIG_STATUS <<EOF
4618 cat >> $CONFIG_STATUS <<\EOF
4622 chmod +x $CONFIG_STATUS
4623 rm -fr confdefs* $ac_clean_files
4624 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4627 if test -f .devel ; then