2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="lib/zebra.h"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP AR ac_ct_AR RANLIB ac_ct_RANLIB EGREP MULTIPATH_NUM LIBPAM RT_METHOD KERNEL_METHOD OTHER_METHOD RTREAD_METHOD IF_METHOD IF_PROC IPFORWARD LIB_IPV6 ZEBRA BGPD RIPD RIPNGD OSPFD OSPF6D VTYSH INCLUDES CURSES LIB_REGEX LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --enable-vtysh, Make integrated VTY version of zebra
855 --disable-ipv6 turn off IPv6 related features and daemons
856 --disable-zebra do not build zebra daemon
857 --disable-bgpd do not build bgpd
858 --disable-ripd do not build ripd
859 --disable-ripngd do not build ripngd
860 --disable-ospfd do not build ospfd
861 --disable-ospf6d do not build ospf6d
862 --enable-irdp enable IRDP server support
in zebra
863 --disable-bgp-announce, turn off BGP route announcement
864 --enable-netlink force to use Linux netlink interface
865 --enable-broken-aliases enable aliases as distinct interfaces
for Linux
2.2.X
866 --enable-snmp enable SNMP support
867 --enable-tcp-zebra enable TCP
/IP socket connection between zebra and protocol daemon
868 --enable-nssa enable OSPF NSSA option
869 --enable-opaque-lsa enable OSPF Opaque-LSA support
(RFC2370
)
870 --enable-ospf-te enable Traffic Engineering Extension to OSPF
871 --enable-multipath=ARG
enable multipath
function, ARG must be digit
872 --enable-tcp-signature enable TCP MD5 Signature Option
(RFC2385
) (for Linux and OpenBSD
)
875 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
876 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
877 --with-cflags Set CFLAGS
for use
in compilation.
878 --with-linkbase Set
local library base
for use
in compilation.
879 --with-libpam use libpam
for PAM support
in vtysh
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Do not use `cd foo
&& pwd` to compute absolute paths, because
928 # the directories may not exist.
930 .) ac_abs_builddir="$ac_dir";;
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
1000 It was created by $as_me, which was
1001 generated by GNU Autoconf 2.59. Invocation command line was
1012 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1013 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1014 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1015 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1016 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1018 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1019 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1021 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1022 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1023 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1024 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1025 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1027 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_must_keep_next=false
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 -* ) ac_must_keep_next=true ;;
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log. We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close
' the trap.
1107 trap 'exit_status
=$?
1108 # Save into config.log some information that might help in debugging.
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1118 # The following way of writing the cache mishandles newlines in values,
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1141 for ac_var
in $ac_subst_vars
1143 eval ac_val
=$
`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -n "$ac_subst_files"; then
1155 for ac_var
in $ac_subst_files
1157 eval ac_val
=$
`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -s confdefs.h
; then
1170 sed "/^$/d" confdefs.h |
sort
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1177 rm -f core
*.core
&&
1178 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 # Predefined preprocessor variables.
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's
/^
/|
/' "$ac_site_file" >&5
1236 if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1253 # Check that the precious variables saved in the cache have kept the same
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1266 ac_cache_corrupted=: ;;
1268 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1275 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277 echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279 echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1300 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1307 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 am__api_version="1.6"
1330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1335 elif test -f $ac_dir/install.sh; then
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1339 elif test -f $ac_dir/shtool; then
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1345 if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1354 # Find a good install program. We prefer a C program (faster),
1355 # so one script is as good as another. But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1361 # AmigaOS /C/install, which installs bootblocks on floppy discs
1362 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1363 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1364 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1365 # OS/2's system install, which has a completely different semantic
1366 # ./install, which can be erroneously created by make from ./install.sh.
1367 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1368 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1369 if test -z "$INSTALL"; then
1370 if test "${ac_cv_path_install+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1377 test -z "$as_dir" && as_dir
=.
1378 # Account for people who put trailing slashes in PATH elements.
1380 .
/ | .
// |
/cC
/* | \
1381 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1382 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1385 # OSF1 and SCO ODT 3.0 have their own names for install.
1386 # Don't use installbsd from OSF since it installs stuff as root
1388 for ac_prog
in ginstall scoinst
install; do
1389 for ac_exec_ext
in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1391 if test $ac_prog = install &&
1392 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1393 # AIX install. It has an incompatible calling convention.
1395 elif test $ac_prog = install &&
1396 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1397 # program-specific install script used by HP pwplus--don't use.
1400 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1412 if test "${ac_cv_path_install+set}" = set; then
1413 INSTALL
=$ac_cv_path_install
1415 # As a last resort, use the slow shell script. We don't cache a
1416 # path for INSTALL within a source directory, because that will
1417 # break other packages using the cache if that directory is
1418 # removed, or if the path is relative.
1419 INSTALL
=$ac_install_sh
1422 echo "$as_me:$LINENO: result: $INSTALL" >&5
1423 echo "${ECHO_T}$INSTALL" >&6
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1431 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1433 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1434 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1437 echo timestamp
> conftest.
file
1438 # Do `set' in a subshell so we don't clobber the current shell's
1439 # arguments. Must try -L first in case configure is actually a
1440 # symlink; some systems play weird games with the mod time of symlinks
1441 # (eg FreeBSD returns the mod time of the symlink's containing
1444 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1445 if test "$*" = "X"; then
1447 set X
`ls -t $srcdir/configure conftest.file`
1450 if test "$*" != "X $srcdir/configure conftest.file" \
1451 && test "$*" != "X conftest.file $srcdir/configure"; then
1453 # If neither matched, then we have a broken ls. This can happen
1454 # if, for instance, CONFIG_SHELL is bash and it inherits a
1455 # broken ls alias from the environment. This has actually
1456 # happened. Such a system could not be considered "sane".
1457 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1458 alias in your environment" >&5
1459 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1460 alias in your environment" >&2;}
1461 { (exit 1); exit 1; }; }
1464 test "$2" = conftest.
file
1470 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1471 Check your system clock" >&5
1472 echo "$as_me: error: newly created file is older than distributed files!
1473 Check your system clock" >&2;}
1474 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: yes" >&5
1477 echo "${ECHO_T}yes" >&6
1478 test "$program_prefix" != NONE
&&
1479 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1480 # Use a double $ so make ignores it.
1481 test "$program_suffix" != NONE
&&
1482 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1483 # Double any \ or $. echo might interpret backslashes.
1484 # By default was `s,x,x', remove it if useless.
1485 cat <<\_ACEOF
>conftest.
sed
1486 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1488 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1492 # expand $ac_aux_dir to an absolute path
1493 am_aux_dir
=`cd $ac_aux_dir && pwd`
1495 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1496 # Use eval to expand $SHELL
1497 if eval "$MISSING --run true"; then
1498 am_missing_run
="$MISSING --run "
1501 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1502 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1505 for ac_prog
in gawk mawk nawk
awk
1507 # Extract the first word of "$ac_prog", so it can be a program name with args.
1508 set dummy
$ac_prog; ac_word
=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_AWK+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$AWK"; then
1515 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1521 test -z "$as_dir" && as_dir
=.
1522 for ac_exec_ext
in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_AWK
="$ac_prog"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 if test -n "$AWK"; then
1535 echo "$as_me:$LINENO: result: $AWK" >&5
1536 echo "${ECHO_T}$AWK" >&6
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1542 test -n "$AWK" && break
1545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1547 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 cat >conftest.
make <<\_ACEOF
1553 @
echo 'ac_maketemp="$(MAKE)"'
1555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1557 if test -n "$ac_maketemp"; then
1558 eval ac_cv_prog_make_
${ac_make}_set
=yes
1560 eval ac_cv_prog_make_
${ac_make}_set
=no
1564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1565 echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 SET_MAKE
="MAKE=${MAKE-make}"
1574 # test to see if srcdir already configured
1575 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1576 test -f $srcdir/config.status
; then
1577 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1578 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1579 { (exit 1); exit 1; }; }
1582 # Define the identity of the package.
1587 cat >>confdefs.h
<<_ACEOF
1588 #define PACKAGE "$PACKAGE"
1592 cat >>confdefs.h
<<_ACEOF
1593 #define VERSION "$VERSION"
1596 # Some tools Automake needs.
1598 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1601 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1604 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1607 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1610 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1613 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1615 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1617 # Installed binaries are usually stripped using `strip' when the user
1618 # run `make install-strip'. However `strip' might not be the right
1619 # tool to use in cross-compilation environments, therefore Automake
1620 # will honor the `STRIP' environment variable to overrule this program.
1621 if test "$cross_compiling" != no
; then
1622 if test -n "$ac_tool_prefix"; then
1623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1624 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_STRIP+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$STRIP"; then
1631 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1637 test -z "$as_dir" && as_dir
=.
1638 for ac_exec_ext
in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 STRIP
=$ac_cv_prog_STRIP
1650 if test -n "$STRIP"; then
1651 echo "$as_me:$LINENO: result: $STRIP" >&5
1652 echo "${ECHO_T}$STRIP" >&6
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1659 if test -z "$ac_cv_prog_STRIP"; then
1661 # Extract the first word of "strip", so it can be a program name with args.
1662 set dummy strip
; ac_word
=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$ac_ct_STRIP"; then
1669 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1675 test -z "$as_dir" && as_dir
=.
1676 for ac_exec_ext
in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_ac_ct_STRIP
="strip"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1688 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1689 if test -n "$ac_ct_STRIP"; then
1690 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1691 echo "${ECHO_T}$ac_ct_STRIP" >&6
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1699 STRIP
="$ac_cv_prog_STRIP"
1703 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1705 # We need awk for the "check" target. The system "awk" is bad on
1710 # Add the stamp file to the list of files AC keeps track of,
1711 # along with our hook.
1712 ac_config_headers
="$ac_config_headers config.h"
1717 # Make sure we can run config.sub.
1718 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1719 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1720 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1721 { (exit 1); exit 1; }; }
1723 echo "$as_me:$LINENO: checking build system type" >&5
1724 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1725 if test "${ac_cv_build+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 ac_cv_build_alias
=$build_alias
1729 test -z "$ac_cv_build_alias" &&
1730 ac_cv_build_alias
=`$ac_config_guess`
1731 test -z "$ac_cv_build_alias" &&
1732 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1733 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1734 { (exit 1); exit 1; }; }
1735 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1736 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1737 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1738 { (exit 1); exit 1; }; }
1741 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1742 echo "${ECHO_T}$ac_cv_build" >&6
1744 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1745 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1746 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749 echo "$as_me:$LINENO: checking host system type" >&5
1750 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1751 if test "${ac_cv_host+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 ac_cv_host_alias
=$host_alias
1755 test -z "$ac_cv_host_alias" &&
1756 ac_cv_host_alias
=$ac_cv_build_alias
1757 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1758 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1759 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1760 { (exit 1); exit 1; }; }
1763 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1764 echo "${ECHO_T}$ac_cv_host" >&6
1766 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773 # Check whether --with-cflags or --without-cflags was given.
1774 if test "${with_cflags+set}" = set; then
1775 withval
="$with_cflags"
1778 if test "x$with_cflags" != "x" ; then
1779 CFLAGS
="$with_cflags" ; cflags_specified
=yes ;
1780 elif test -n "$CFLAGS" ; then
1781 cflags_specified
=yes ;
1785 # Check whether --with-linkbase or --without-linkbase was given.
1786 if test "${with_linkbase+set}" = set; then
1787 withval
="$with_linkbase"
1790 if test "x$with_linkbase" != "x" ; then
1791 linkbase_specified
=yes ;
1795 ac_cpp
='$CPP $CPPFLAGS'
1796 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1797 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1798 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1799 if test -n "$ac_tool_prefix"; then
1800 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1801 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 if test -n "$CC"; then
1808 ac_cv_prog_CC
="$CC" # Let the user override the test.
1810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1814 test -z "$as_dir" && as_dir
=.
1815 for ac_exec_ext
in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 if test -n "$CC"; then
1828 echo "$as_me:$LINENO: result: $CC" >&5
1829 echo "${ECHO_T}$CC" >&6
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1836 if test -z "$ac_cv_prog_CC"; then
1838 # Extract the first word of "gcc", so it can be a program name with args.
1839 set dummy gcc
; ac_word
=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 if test -n "$ac_ct_CC"; then
1846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1852 test -z "$as_dir" && as_dir
=.
1853 for ac_exec_ext
in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_ac_ct_CC
="gcc"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1865 if test -n "$ac_ct_CC"; then
1866 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1867 echo "${ECHO_T}$ac_ct_CC" >&6
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1878 if test -z "$CC"; then
1879 if test -n "$ac_tool_prefix"; then
1880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1881 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC
="$CC" # Let the user override the test.
1890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir
=.
1895 for ac_exec_ext
in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 if test -n "$CC"; then
1908 echo "$as_me:$LINENO: result: $CC" >&5
1909 echo "${ECHO_T}$CC" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1916 if test -z "$ac_cv_prog_CC"; then
1918 # Extract the first word of "cc", so it can be a program name with args.
1919 set dummy cc
; ac_word
=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 if test -n "$ac_ct_CC"; then
1926 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir
=.
1933 for ac_exec_ext
in '' $ac_executable_extensions; do
1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935 ac_cv_prog_ac_ct_CC
="cc"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1945 if test -n "$ac_ct_CC"; then
1946 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1947 echo "${ECHO_T}$ac_ct_CC" >&6
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1959 if test -z "$CC"; then
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc
; ac_word
=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC
="$CC" # Let the user override the test.
1971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir
=.
1976 for ac_exec_ext
in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1979 ac_prog_rejected
=yes
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 if test $ac_prog_rejected = yes; then
1990 # We found a bogon in the path, so make sure we never use it.
1991 set dummy
$ac_cv_prog_CC
1993 if test $# != 0; then
1994 # We chose a different compiler from the bogus one.
1995 # However, it has the same basename, so the bogon will be chosen
1996 # first if we set CC to just the basename; use the full file name.
1998 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2004 if test -n "$CC"; then
2005 echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2013 if test -z "$CC"; then
2014 if test -n "$ac_tool_prefix"; then
2017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2018 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC
="$CC" # Let the user override the test.
2027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir
=.
2032 for ac_exec_ext
in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 if test -n "$CC"; then
2045 echo "$as_me:$LINENO: result: $CC" >&5
2046 echo "${ECHO_T}$CC" >&6
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$CC" && break
2055 if test -z "$CC"; then
2059 # Extract the first word of "$ac_prog", so it can be a program name with args.
2060 set dummy
$ac_prog; ac_word
=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir
=.
2074 for ac_exec_ext
in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_ac_ct_CC
="$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2086 if test -n "$ac_ct_CC"; then
2087 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2088 echo "${ECHO_T}$ac_ct_CC" >&6
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$ac_ct_CC" && break
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO:" \
2111 "checking for C compiler version" >&5
2112 ac_compiler
=`set X $ac_compile; echo $2`
2113 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2114 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2119 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2124 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2129 cat >conftest.
$ac_ext <<_ACEOF
2132 cat confdefs.h
>>conftest.
$ac_ext
2133 cat >>conftest.
$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2144 ac_clean_files_save
=$ac_clean_files
2145 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2146 # Try to create an executable without -o first, disregard a.out.
2147 # It will help us diagnose broken compilers, and finding out an intuition
2149 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2151 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2153 (eval $ac_link_default) 2>&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; then
2157 # Find the output, starting from the most likely. This scheme is
2158 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2161 # Be careful to initialize this variable, since it used to be cached.
2162 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2164 # b.out is created by i960 compilers.
2165 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2167 test -f "$ac_file" ||
continue
2169 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2172 # This is the source file.
2175 # We found the default executable, but exeext='' is most
2179 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180 # FIXME: I believe we export ac_cv_exeext for Libtool,
2181 # but it would be cool to find out if it's true. Does anybody
2182 # maintain Libtool? --akim.
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.
$ac_ext >&5
2193 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: C compiler cannot create executables
2196 See \`config.log' for more details." >&2;}
2197 { (exit 77); exit 77; }; }
2200 ac_exeext
=$ac_cv_exeext
2201 echo "$as_me:$LINENO: result: $ac_file" >&5
2202 echo "${ECHO_T}$ac_file" >&6
2204 # Check the compiler produces executables we can run. If not, either
2205 # the compiler is broken, or we cross compile.
2206 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2207 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2208 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2209 # If not cross compiling, check that we can run a simple program.
2210 if test "$cross_compiling" != yes; then
2211 if { ac_try
='./$ac_file'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2219 if test "$cross_compiling" = maybe
; then
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2232 echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6
2235 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2236 ac_clean_files
=$ac_clean_files_save
2237 # Check the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2241 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6
2244 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2247 (eval $ac_link) 2>&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; then
2251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2253 # work properly (i.e., refer to `conftest.exe'), while it won't with
2255 for ac_file
in conftest.exe conftest conftest.
*; do
2256 test -f "$ac_file" ||
continue
2258 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2259 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2273 rm -f conftest
$ac_cv_exeext
2274 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2275 echo "${ECHO_T}$ac_cv_exeext" >&6
2277 rm -f conftest.
$ac_ext
2278 EXEEXT
=$ac_cv_exeext
2280 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2281 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2282 if test "${ac_cv_objext+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 cat >conftest.
$ac_ext <<_ACEOF
2288 cat confdefs.h
>>conftest.
$ac_ext
2289 cat >>conftest.
$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2300 rm -f conftest.o conftest.obj
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2308 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2309 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.
$ac_ext >&5
2317 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2324 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2326 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2327 echo "${ECHO_T}$ac_cv_objext" >&6
2328 OBJEXT
=$ac_cv_objext
2330 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2331 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2332 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 cat >conftest.
$ac_ext <<_ACEOF
2338 cat confdefs.h
>>conftest.
$ac_ext
2339 cat >>conftest.
$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2353 rm -f conftest.
$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2357 grep -v '^ *+' conftest.er1
>conftest.err
2359 cat conftest.err
>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try
='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try
='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.
$ac_ext >&5
2382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2383 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2386 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2387 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2388 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2389 ac_test_CFLAGS
=${CFLAGS+set}
2390 ac_save_CFLAGS
=$CFLAGS
2392 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2393 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2394 if test "${ac_cv_prog_cc_g+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.
$ac_ext <<_ACEOF
2400 cat confdefs.h
>>conftest.
$ac_ext
2401 cat >>conftest.
$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.
$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>conftest.er1
2416 grep -v '^ *+' conftest.er1
>conftest.err
2418 cat conftest.err
>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try
='test -z "$ac_c_werror_flag"
2422 || test ! -s conftest.err'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; } &&
2428 { ac_try
='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.
$ac_ext >&5
2441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2443 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2444 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2445 if test "$ac_test_CFLAGS" = set; then
2446 CFLAGS
=$ac_save_CFLAGS
2447 elif test $ac_cv_prog_cc_g = yes; then
2448 if test "$GCC" = yes; then
2454 if test "$GCC" = yes; then
2460 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2461 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2462 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 ac_cv_prog_cc_stdc
=no
2467 cat >conftest.
$ac_ext <<_ACEOF
2470 cat confdefs.h
>>conftest.
$ac_ext
2471 cat >>conftest.
$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2475 #include <sys/types.h>
2476 #include <sys/stat.h>
2477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2478 struct buf { int x; };
2479 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2480 static char *e (p, i)
2486 static char *f (char * (*g) (char **, int), char **p, ...)
2491 s = g (p, va_arg (v,int));
2496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2497 function prototypes and stuff, but not '\xHH' hex character constants.
2498 These don't provoke an error unfortunately, instead are silently treated
2499 as 'x'. The following induces an error, until -std1 is added to get
2500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2501 array size at least. It's necessary to write '\x00'==0 to get something
2502 that's true only with -std1. */
2503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2505 int test (int i, double x);
2506 struct s1 {int (*f) (int a);};
2507 struct s2 {int (*f) (double a);};
2508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2519 # Don't try gcc -ansi; that turns off useful extensions and
2520 # breaks some systems' header files.
2521 # AIX -qlanglvl=ansi
2522 # Ultrix and OSF/1 -std1
2523 # HP-UX 10.20 and later -Ae
2524 # HP-UX older versions -Aa -D_HPUX_SOURCE
2525 # SVR4 -Xc -D__EXTENSIONS__
2526 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2528 CC
="$ac_save_CC $ac_arg"
2529 rm -f conftest.
$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>conftest.er1
2533 grep -v '^ *+' conftest.er1
>conftest.err
2535 cat conftest.err
>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try
='test -z "$ac_c_werror_flag"
2539 || test ! -s conftest.err'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try
='test -s conftest.$ac_objext'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 ac_cv_prog_cc_stdc
=$ac_arg
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.
$ac_ext >&5
2558 rm -f conftest.err conftest.
$ac_objext
2560 rm -f conftest.
$ac_ext conftest.
$ac_objext
2565 case "x$ac_cv_prog_cc_stdc" in
2567 echo "$as_me:$LINENO: result: none needed" >&5
2568 echo "${ECHO_T}none needed" >&6 ;;
2570 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2571 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2572 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2575 # Some people use a C++ compiler to compile C. Since we use `exit',
2576 # in C++ we need to declare it. In case someone uses the same compiler
2577 # for both compiling C and C++ we need to have the C++ compiler decide
2578 # the declaration of exit, since it's the most demanding environment.
2579 cat >conftest.
$ac_ext <<_ACEOF
2584 rm -f conftest.
$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2588 grep -v '^ *+' conftest.er1
>conftest.err
2590 cat conftest.err
>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try
='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try
='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 for ac_declaration
in \
2608 'extern "C" void std::exit (int) throw (); using std::exit;' \
2609 'extern "C" void std::exit (int); using std::exit;' \
2610 'extern "C" void exit (int) throw ();' \
2611 'extern "C" void exit (int);' \
2614 cat >conftest.
$ac_ext <<_ACEOF
2617 cat confdefs.h
>>conftest.
$ac_ext
2618 cat >>conftest.
$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2630 rm -f conftest.
$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>conftest.er1
2634 grep -v '^ *+' conftest.er1
>conftest.err
2636 cat conftest.err
>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try
='test -z "$ac_c_werror_flag"
2640 || test ! -s conftest.err'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; } &&
2646 { ac_try
='test -s conftest.$ac_objext'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.
$ac_ext >&5
2659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2660 cat >conftest.
$ac_ext <<_ACEOF
2663 cat confdefs.h
>>conftest.
$ac_ext
2664 cat >>conftest.
$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2675 rm -f conftest.
$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>conftest.er1
2679 grep -v '^ *+' conftest.er1
>conftest.err
2681 cat conftest.err
>&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try
='test -z "$ac_c_werror_flag"
2685 || test ! -s conftest.err'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; } &&
2691 { ac_try
='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.
$ac_ext >&5
2703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2706 if test -n "$ac_declaration"; then
2707 echo '#ifdef __cplusplus' >>confdefs.h
2708 echo $ac_declaration >>confdefs.h
2709 echo '#endif' >>confdefs.h
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.
$ac_ext >&5
2717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2719 ac_cpp
='$CPP $CPPFLAGS'
2720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2723 rm -f .deps
2>/dev
/null
2724 mkdir .deps
2>/dev
/null
2725 if test -d .deps
; then
2728 # MS-DOS does not allow filenames that begin with a dot.
2731 rmdir .deps
2>/dev
/null
2734 ac_config_commands
="$ac_config_commands depfiles"
2737 am_make
=${MAKE-make}
2738 cat > confinc
<< 'END'
2742 # If we don't find an include directive, just comment out the code.
2743 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2744 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2748 # First try GNU make style include.
2749 echo "include confinc" > confmf
2750 # We grep out `Entering directory' and `Leaving directory'
2751 # messages which can occur if `w' ends up in MAKEFLAGS.
2752 # In particular we don't look at `^make:' because GNU make might
2753 # be invoked under some other name (usually "gmake"), in which
2754 # case it prints its new name instead of `make'.
2755 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2760 # Now try BSD make style include.
2761 if test "$am__include" = "#"; then
2762 echo '.include "confinc"' > confmf
2763 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2764 am__include
=.include
2771 echo "$as_me:$LINENO: result: $_am_result" >&5
2772 echo "${ECHO_T}$_am_result" >&6
2773 rm -f confinc confmf
2775 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2776 if test "${enable_dependency_tracking+set}" = set; then
2777 enableval
="$enable_dependency_tracking"
2780 if test "x$enable_dependency_tracking" != xno
; then
2781 am_depcomp
="$ac_aux_dir/depcomp"
2786 if test "x$enable_dependency_tracking" != xno; then
2797 depcc
="$CC" am_compiler_list
=
2799 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2800 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2801 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2805 # We make a subdir and do the tests there. Otherwise we can end up
2806 # making bogus files that we don't know about and never remove. For
2807 # instance it was reported that on HP-UX the gcc test will end up
2808 # making a dummy file named `D' -- because `-MD' means `put the output
2811 # Copy depcomp to subdir because otherwise we won't find it if we're
2812 # using a relative directory.
2813 cp "$am_depcomp" conftest.dir
2816 am_cv_CC_dependencies_compiler_type
=none
2817 if test "$am_compiler_list" = ""; then
2818 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2820 for depmode
in $am_compiler_list; do
2821 # We need to recreate these files for each test, as the compiler may
2822 # overwrite some of them when testing with obscure command lines.
2823 # This happens at least with the AIX C compiler.
2824 echo '#include "conftest.h"' > conftest.c
2825 echo 'int i;' > conftest.h
2826 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2830 # after this tag, mechanisms are not by side-effect, so they'll
2831 # only be used when explicitly requested
2832 if test "x$enable_dependency_tracking" = xyes
; then
2840 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2841 # mode. It turns out that the SunPro C++ compiler does not properly
2842 # handle `-M -o', and we need to detect this.
2843 if depmode
=$depmode \
2844 source=conftest.c object
=conftest.o \
2845 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2846 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2847 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2848 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2849 am_cv_CC_dependencies_compiler_type
=$depmode
2857 am_cv_CC_dependencies_compiler_type
=none
2861 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2862 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2863 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2867 if test "x$cflags_specified" = "x" ; then
2868 CFLAGS
="$CFLAGS -Wall"
2871 if test "$linkbase_specified" = "yes" ; then
2872 CFLAGS
="$CFLAGS -I${with_linkbase}/include" ;
2873 LIBS
="$LIBS -L${with_linkbase}/lib" ;
2877 ac_cpp
='$CPP $CPPFLAGS'
2878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 # Double quotes because CPP needs to be expanded
2892 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 for ac_c_preproc_warn_flag
in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.
$ac_ext <<_ACEOF
2906 cat confdefs.h
>>conftest.
$ac_ext
2907 cat >>conftest.
$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2910 # include <limits.h>
2912 # include <assert.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1
>conftest.err
2921 cat conftest.err
>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev
/null
; then
2924 if test -s conftest.err
; then
2925 ac_cpp_err
=$ac_c_preproc_warn_flag
2926 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2933 if test -z "$ac_cpp_err"; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.
$ac_ext >&5
2939 # Broken: fails on valid input.
2942 rm -f conftest.err conftest.
$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1
>conftest.err
2959 cat conftest.err
>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev
/null
; then
2962 if test -s conftest.err
; then
2963 ac_cpp_err
=$ac_c_preproc_warn_flag
2964 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.
$ac_ext >&5
2978 # Passes both tests.
2982 rm -f conftest.err conftest.
$ac_ext
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.
$ac_ext
2987 if $ac_preproc_ok; then
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3002 for ac_c_preproc_warn_flag
in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.
$ac_ext <<_ACEOF
3013 cat confdefs.h
>>conftest.
$ac_ext
3014 cat >>conftest.
$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3017 # include <limits.h>
3019 # include <assert.h>
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1
>conftest.err
3028 cat conftest.err
>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev
/null
; then
3031 if test -s conftest.err
; then
3032 ac_cpp_err
=$ac_c_preproc_warn_flag
3033 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3040 if test -z "$ac_cpp_err"; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.
$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1
>conftest.err
3066 cat conftest.err
>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev
/null
; then
3069 if test -s conftest.err
; then
3070 ac_cpp_err
=$ac_c_preproc_warn_flag
3071 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.
$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.
$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.
$ac_ext
3094 if $ac_preproc_ok; then
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3105 ac_cpp
='$CPP $CPPFLAGS'
3106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3110 # Find a good install program. We prefer a C program (faster),
3111 # so one script is as good as another. But avoid the broken or
3112 # incompatible versions:
3113 # SysV /etc/install, /usr/sbin/install
3114 # SunOS /usr/etc/install
3115 # IRIX /sbin/install
3117 # AmigaOS /C/install, which installs bootblocks on floppy discs
3118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3121 # OS/2's system install, which has a completely different semantic
3122 # ./install, which can be erroneously created by make from ./install.sh.
3123 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3124 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3125 if test -z "$INSTALL"; then
3126 if test "${ac_cv_path_install+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir
=.
3134 # Account for people who put trailing slashes in PATH elements.
3136 .
/ | .
// |
/cC
/* | \
3137 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3138 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3141 # OSF1 and SCO ODT 3.0 have their own names for install.
3142 # Don't use installbsd from OSF since it installs stuff as root
3144 for ac_prog
in ginstall scoinst
install; do
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3147 if test $ac_prog = install &&
3148 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3149 # AIX install. It has an incompatible calling convention.
3151 elif test $ac_prog = install &&
3152 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3153 # program-specific install script used by HP pwplus--don't use.
3156 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3168 if test "${ac_cv_path_install+set}" = set; then
3169 INSTALL
=$ac_cv_path_install
3171 # As a last resort, use the slow shell script. We don't cache a
3172 # path for INSTALL within a source directory, because that will
3173 # break other packages using the cache if that directory is
3174 # removed, or if the path is relative.
3175 INSTALL
=$ac_install_sh
3178 echo "$as_me:$LINENO: result: $INSTALL" >&5
3179 echo "${ECHO_T}$INSTALL" >&6
3181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3182 # It thinks the first close brace ends the variable substitution.
3183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3185 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3187 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3189 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3190 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3191 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3192 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 cat >conftest.
make <<\_ACEOF
3197 @
echo 'ac_maketemp="$(MAKE)"'
3199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3200 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3201 if test -n "$ac_maketemp"; then
3202 eval ac_cv_prog_make_
${ac_make}_set
=yes
3204 eval ac_cv_prog_make_
${ac_make}_set
=no
3208 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3209 echo "$as_me:$LINENO: result: yes" >&5
3210 echo "${ECHO_T}yes" >&6
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3215 SET_MAKE
="MAKE=${MAKE-make}"
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3220 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3221 echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3223 if test "${ac_cv_prog_AR+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 if test -n "$AR"; then
3227 ac_cv_prog_AR
="$AR" # Let the user override the test.
3229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir
=.
3234 for ac_exec_ext
in '' $ac_executable_extensions; do
3235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 if test -n "$AR"; then
3247 echo "$as_me:$LINENO: result: $AR" >&5
3248 echo "${ECHO_T}$AR" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3255 if test -z "$ac_cv_prog_AR"; then
3257 # Extract the first word of "ar", so it can be a program name with args.
3258 set dummy
ar; ac_word
=$2
3259 echo "$as_me:$LINENO: checking for $ac_word" >&5
3260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3261 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 if test -n "$ac_ct_AR"; then
3265 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir
=.
3272 for ac_exec_ext
in '' $ac_executable_extensions; do
3273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_ac_ct_AR
="ar"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3284 if test -n "$ac_ct_AR"; then
3285 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3286 echo "${ECHO_T}$ac_ct_AR" >&6
3288 echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3299 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_RANLIB+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 if test -n "$RANLIB"; then
3306 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir
=.
3313 for ac_exec_ext
in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 RANLIB
=$ac_cv_prog_RANLIB
3325 if test -n "$RANLIB"; then
3326 echo "$as_me:$LINENO: result: $RANLIB" >&5
3327 echo "${ECHO_T}$RANLIB" >&6
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3334 if test -z "$ac_cv_prog_RANLIB"; then
3335 ac_ct_RANLIB
=$RANLIB
3336 # Extract the first word of "ranlib", so it can be a program name with args.
3337 set dummy ranlib
; ac_word
=$2
3338 echo "$as_me:$LINENO: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 if test -n "$ac_ct_RANLIB"; then
3344 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir
=.
3351 for ac_exec_ext
in '' $ac_executable_extensions; do
3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3363 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3364 if test -n "$ac_ct_RANLIB"; then
3365 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3366 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3372 RANLIB
=$ac_ct_RANLIB
3374 RANLIB
="$ac_cv_prog_RANLIB"
3380 echo "$as_me:$LINENO: checking for egrep" >&5
3381 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3382 if test "${ac_cv_prog_egrep+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3386 then ac_cv_prog_egrep
='grep -E'
3387 else ac_cv_prog_egrep
='egrep'
3390 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3391 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3392 EGREP
=$ac_cv_prog_egrep
3396 echo "$as_me:$LINENO: checking for AIX" >&5
3397 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3398 cat >conftest.
$ac_ext <<_ACEOF
3401 cat confdefs.h
>>conftest.
$ac_ext
3402 cat >>conftest.
$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 $EGREP "yes" >/dev
/null
2>&1; then
3411 echo "$as_me:$LINENO: result: yes" >&5
3412 echo "${ECHO_T}yes" >&6
3413 cat >>confdefs.h
<<\_ACEOF
3414 #define _ALL_SOURCE 1
3418 echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3425 # Check whether --enable-vtysh or --disable-vtysh was given.
3426 if test "${enable_vtysh+set}" = set; then
3427 enableval
="$enable_vtysh"
3430 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3431 if test "${enable_ipv6+set}" = set; then
3432 enableval
="$enable_ipv6"
3435 # Check whether --enable-zebra or --disable-zebra was given.
3436 if test "${enable_zebra+set}" = set; then
3437 enableval
="$enable_zebra"
3440 # Check whether --enable-bgpd or --disable-bgpd was given.
3441 if test "${enable_bgpd+set}" = set; then
3442 enableval
="$enable_bgpd"
3445 # Check whether --enable-ripd or --disable-ripd was given.
3446 if test "${enable_ripd+set}" = set; then
3447 enableval
="$enable_ripd"
3450 # Check whether --enable-ripngd or --disable-ripngd was given.
3451 if test "${enable_ripngd+set}" = set; then
3452 enableval
="$enable_ripngd"
3455 # Check whether --enable-ospfd or --disable-ospfd was given.
3456 if test "${enable_ospfd+set}" = set; then
3457 enableval
="$enable_ospfd"
3460 # Check whether --enable-ospf6d or --disable-ospf6d was given.
3461 if test "${enable_ospf6d+set}" = set; then
3462 enableval
="$enable_ospf6d"
3465 # Check whether --enable-irdp or --disable-irdp was given.
3466 if test "${enable_irdp+set}" = set; then
3467 enableval
="$enable_irdp"
3470 # Check whether --enable-bgp-announce or --disable-bgp-announce was given.
3471 if test "${enable_bgp_announce+set}" = set; then
3472 enableval
="$enable_bgp_announce"
3475 # Check whether --enable-netlink or --disable-netlink was given.
3476 if test "${enable_netlink+set}" = set; then
3477 enableval
="$enable_netlink"
3480 # Check whether --enable-broken-aliases or --disable-broken-aliases was given.
3481 if test "${enable_broken_aliases+set}" = set; then
3482 enableval
="$enable_broken_aliases"
3485 # Check whether --enable-snmp or --disable-snmp was given.
3486 if test "${enable_snmp+set}" = set; then
3487 enableval
="$enable_snmp"
3491 # Check whether --with-libpam or --without-libpam was given.
3492 if test "${with_libpam+set}" = set; then
3493 withval
="$with_libpam"
3496 # Check whether --enable-tcpsock or --disable-tcpsock was given.
3497 if test "${enable_tcpsock+set}" = set; then
3498 enableval
="$enable_tcpsock"
3501 # Check whether --enable-nssa or --disable-nssa was given.
3502 if test "${enable_nssa+set}" = set; then
3503 enableval
="$enable_nssa"
3506 # Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
3507 if test "${enable_opaque_lsa+set}" = set; then
3508 enableval
="$enable_opaque_lsa"
3511 # Check whether --enable-ospf-te or --disable-ospf-te was given.
3512 if test "${enable_ospf_te+set}" = set; then
3513 enableval
="$enable_ospf_te"
3516 # Check whether --enable-multipath or --disable-multipath was given.
3517 if test "${enable_multipath+set}" = set; then
3518 enableval
="$enable_multipath"
3521 # Check whether --enable-tcp-signature or --disable-tcp-signature was given.
3522 if test "${enable_tcp_signature+set}" = set; then
3523 enableval
="$enable_tcp_signature"
3527 if test "${enable_broken_aliases}" = "yes"; then
3528 if test "${enable_netlink}" = "yes"
3530 echo "Sorry, you can't use netlink with broken aliases"
3534 cat >>confdefs.h
<<\_ACEOF
3535 #define HAVE_BROKEN_ALIASES
3541 if test "${enable_tcp_zebra}" = "yes"; then
3543 cat >>confdefs.h
<<\_ACEOF
3544 #define HAVE_TCP_ZEBRA
3549 if test "${enable_nssa}" = "yes"; then
3551 cat >>confdefs.h
<<\_ACEOF
3557 if test "${enable_irdp}" = "yes"; then
3559 cat >>confdefs.h
<<\_ACEOF
3565 if test "${enable_opaque_lsa}" = "yes"; then
3567 cat >>confdefs.h
<<\_ACEOF
3568 #define HAVE_OPAQUE_LSA
3573 if test "${enable_ospf_te}" = "yes"; then
3575 cat >>confdefs.h
<<\_ACEOF
3576 #define HAVE_OPAQUE_LSA
3580 cat >>confdefs.h
<<\_ACEOF
3581 #define HAVE_OSPF_TE
3589 case "${enable_multipath}" in
3591 MULTIPATH_NUM
="${enable_multipath}"
3596 echo "Please specify digit to --enable-multipath ARG."
3604 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3606 if test "${ac_cv_header_stdc+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 cat >conftest.
$ac_ext <<_ACEOF
3612 cat confdefs.h
>>conftest.
$ac_ext
3613 cat >>conftest.
$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3628 rm -f conftest.
$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3632 grep -v '^ *+' conftest.er1
>conftest.err
3634 cat conftest.err
>&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try
='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try
='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_cv_header_stdc
=yes
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.
$ac_ext >&5
3655 ac_cv_header_stdc
=no
3657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3659 if test $ac_cv_header_stdc = yes; then
3660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3661 cat >conftest.
$ac_ext <<_ACEOF
3664 cat confdefs.h
>>conftest.
$ac_ext
3665 cat >>conftest.
$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671 $EGREP "memchr" >/dev
/null
2>&1; then
3674 ac_cv_header_stdc
=no
3680 if test $ac_cv_header_stdc = yes; then
3681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3682 cat >conftest.
$ac_ext <<_ACEOF
3685 cat confdefs.h
>>conftest.
$ac_ext
3686 cat >>conftest.
$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 $EGREP "free" >/dev
/null
2>&1; then
3695 ac_cv_header_stdc
=no
3701 if test $ac_cv_header_stdc = yes; then
3702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3703 if test "$cross_compiling" = yes; then
3706 cat >conftest.
$ac_ext <<_ACEOF
3709 cat confdefs.h
>>conftest.
$ac_ext
3710 cat >>conftest.
$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3713 #if ((' ' & 0x0FF) == 0x020)
3714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3717 # define ISLOWER(c) \
3718 (('a' <= (c) && (c) <= 'i') \
3719 || ('j' <= (c) && (c) <= 'r') \
3720 || ('s' <= (c) && (c) <= 'z'))
3721 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3729 for (i = 0; i < 256; i++)
3730 if (XOR (islower (i), ISLOWER (i))
3731 || toupper (i) != TOUPPER (i))
3736 rm -f conftest
$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3749 echo "$as_me: program exited with status $ac_status" >&5
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.
$ac_ext >&5
3754 ac_cv_header_stdc
=no
3756 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3760 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3761 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3762 if test $ac_cv_header_stdc = yes; then
3764 cat >>confdefs.h
<<\_ACEOF
3765 #define STDC_HEADERS 1
3770 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3780 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3781 inttypes.h stdint.h unistd.h
3783 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3784 echo "$as_me:$LINENO: checking for $ac_header" >&5
3785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 cat >conftest.
$ac_ext <<_ACEOF
3792 cat confdefs.h
>>conftest.
$ac_ext
3793 cat >>conftest.
$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795 $ac_includes_default
3797 #include <$ac_header>
3799 rm -f conftest.
$ac_objext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>conftest.er1
3803 grep -v '^ *+' conftest.er1
>conftest.err
3805 cat conftest.err
>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try
='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try
='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 eval "$as_ac_Header=yes"
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.
$ac_ext >&5
3826 eval "$as_ac_Header=no"
3828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h
<<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3867 for ac_header
in string.h stropts.h sys
/conf.h sys
/ksym.h sys
/time.h sys
/times.h sys
/select.h sys
/sysctl.h sys
/sockio.h sys
/types.h net
/if_dl.h net
/if_var.h linux
/version.h kvm.h netdb.h netinet
/in.h net
/netopt.h netinet
/in_var.h netinet
/in6_var.h netinet
/in6.h inet
/nd.h asm
/types.h netinet
/icmp6.h netinet
6/nd6.h libutil.h
3869 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3871 echo "$as_me:$LINENO: checking for $ac_header" >&5
3872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3879 # Is the header compilable?
3880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3882 cat >conftest.
$ac_ext <<_ACEOF
3885 cat confdefs.h
>>conftest.
$ac_ext
3886 cat >>conftest.
$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 $ac_includes_default
3889 #include <$ac_header>
3891 rm -f conftest.
$ac_objext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>conftest.er1
3895 grep -v '^ *+' conftest.er1
>conftest.err
3897 cat conftest.err
>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try
='test -z "$ac_c_werror_flag"
3901 || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try
='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_header_compiler
=yes
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 ac_header_compiler
=no
3920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3922 echo "${ECHO_T}$ac_header_compiler" >&6
3924 # Is the header present?
3925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3927 cat >conftest.
$ac_ext <<_ACEOF
3930 cat confdefs.h
>>conftest.
$ac_ext
3931 cat >>conftest.
$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 #include <$ac_header>
3935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3936 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3938 grep -v '^ *+' conftest.er1
>conftest.err
3940 cat conftest.err
>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } >/dev
/null
; then
3943 if test -s conftest.err
; then
3944 ac_cpp_err
=$ac_c_preproc_warn_flag
3945 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3952 if test -z "$ac_cpp_err"; then
3953 ac_header_preproc
=yes
3955 echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.
$ac_ext >&5
3958 ac_header_preproc
=no
3960 rm -f conftest.err conftest.
$ac_ext
3961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3962 echo "${ECHO_T}$ac_header_preproc" >&6
3964 # So? What about this header?
3965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3971 ac_header_preproc
=yes
3974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3988 ## ------------------------------------------ ##
3989 ## Report this to the AC_PACKAGE_NAME lists. ##
3990 ## ------------------------------------------ ##
3993 sed "s/^/$as_me: WARNING: /" >&2
3996 echo "$as_me:$LINENO: checking for $ac_header" >&5
3997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 eval "$as_ac_Header=\$ac_header_preproc"
4003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4008 cat >>confdefs.h
<<_ACEOF
4009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4017 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4018 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4019 if test "${ac_cv_c_const+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 cat >conftest.
$ac_ext <<_ACEOF
4025 cat confdefs.h
>>conftest.
$ac_ext
4026 cat >>conftest.
$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4032 /* FIXME: Include the comments suggested by Paul. */
4034 /* Ultrix mips cc rejects this. */
4035 typedef int charset[2];
4037 /* SunOS 4.1.1 cc rejects this. */
4038 char const *const *ccp;
4040 /* NEC SVR4.0.2 mips cc rejects this. */
4041 struct point {int x, y;};
4042 static struct point const zero = {0,0};
4043 /* AIX XL C 1.02.0.0 rejects this.
4044 It does not let you subtract one const X* pointer from another in
4045 an arm of an if-expression whose if-part is not a constant
4047 const char *g = "string";
4048 ccp = &g + (g ? g-g : 0);
4049 /* HPUX 7.0 cc rejects these. */
4052 ccp = (char const *const *) p;
4053 { /* SCO 3.2v4 cc rejects this. */
4055 char const *s = 0 ? (char *) 0 : (char const *) 0;
4059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4061 const int *foo = &x[0];
4064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4065 typedef const int *iptr;
4069 { /* AIX XL C 1.02.0.0 rejects this saying
4070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4071 struct s { int j; const int *ap[3]; };
4072 struct s *b; b->j = 5;
4074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4083 rm -f conftest.
$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4087 grep -v '^ *+' conftest.er1
>conftest.err
4089 cat conftest.err
>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try
='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try
='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.
$ac_ext >&5
4112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4114 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4115 echo "${ECHO_T}$ac_cv_c_const" >&6
4116 if test $ac_cv_c_const = no
; then
4118 cat >>confdefs.h
<<\_ACEOF
4124 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4125 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4126 if test "${ac_cv_type_signal+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 cat >conftest.
$ac_ext <<_ACEOF
4132 cat confdefs.h
>>conftest.
$ac_ext
4133 cat >>conftest.
$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <sys/types.h>
4141 extern "C" void (*signal (int, void (*)(int)))(int);
4143 void (*signal ()) ();
4154 rm -f conftest.
$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
4158 grep -v '^ *+' conftest.er1
>conftest.err
4160 cat conftest.err
>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try
='test -z "$ac_c_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try
='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_type_signal
=void
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.
$ac_ext >&5
4181 ac_cv_type_signal
=int
4183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4185 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4186 echo "${ECHO_T}$ac_cv_type_signal" >&6
4188 cat >>confdefs.h
<<_ACEOF
4189 #define RETSIGTYPE $ac_cv_type_signal
4195 *-sunos5.6
* |
*-solaris2.6
*)
4198 cat >>confdefs.h
<<\_ACEOF
4203 echo "$as_me:$LINENO: checking for main in -lxnet" >&5
4204 echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
4205 if test "${ac_cv_lib_xnet_main+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 ac_check_lib_save_LIBS
=$LIBS
4210 cat >conftest.
$ac_ext <<_ACEOF
4213 cat confdefs.h
>>conftest.
$ac_ext
4214 cat >>conftest.
$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4226 rm -f conftest.
$ac_objext conftest
$ac_exeext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4228 (eval $ac_link) 2>conftest.er1
4230 grep -v '^ *+' conftest.er1
>conftest.err
4232 cat conftest.err
>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try
='test -z "$ac_c_werror_flag"
4236 || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try
='test -s conftest$ac_exeext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_lib_xnet_main
=yes
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.
$ac_ext >&5
4253 ac_cv_lib_xnet_main
=no
4255 rm -f conftest.err conftest.
$ac_objext \
4256 conftest
$ac_exeext conftest.
$ac_ext
4257 LIBS
=$ac_check_lib_save_LIBS
4259 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
4260 echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
4261 if test $ac_cv_lib_xnet_main = yes; then
4262 cat >>confdefs.h
<<_ACEOF
4263 #define HAVE_LIBXNET 1
4272 *-sunos5* |
*-solaris2*)
4274 cat >>confdefs.h
<<\_ACEOF
4279 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4280 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4281 if test "${ac_cv_lib_socket_main+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 ac_check_lib_save_LIBS
=$LIBS
4285 LIBS
="-lsocket $LIBS"
4286 cat >conftest.
$ac_ext <<_ACEOF
4289 cat confdefs.h
>>conftest.
$ac_ext
4290 cat >>conftest.
$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4302 rm -f conftest.
$ac_objext conftest
$ac_exeext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4304 (eval $ac_link) 2>conftest.er1
4306 grep -v '^ *+' conftest.er1
>conftest.err
4308 cat conftest.err
>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try
='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try
='test -s conftest$ac_exeext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_lib_socket_main
=yes
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.
$ac_ext >&5
4329 ac_cv_lib_socket_main
=no
4331 rm -f conftest.err conftest.
$ac_objext \
4332 conftest
$ac_exeext conftest.
$ac_ext
4333 LIBS
=$ac_check_lib_save_LIBS
4335 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4336 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4337 if test $ac_cv_lib_socket_main = yes; then
4338 cat >>confdefs.h
<<_ACEOF
4339 #define HAVE_LIBSOCKET 1
4342 LIBS
="-lsocket $LIBS"
4347 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4348 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4349 if test "${ac_cv_lib_nsl_main+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 ac_check_lib_save_LIBS
=$LIBS
4354 cat >conftest.
$ac_ext <<_ACEOF
4357 cat confdefs.h
>>conftest.
$ac_ext
4358 cat >>conftest.
$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4370 rm -f conftest.
$ac_objext conftest
$ac_exeext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4372 (eval $ac_link) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1
>conftest.err
4376 cat conftest.err
>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try
='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try
='test -s conftest$ac_exeext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_lib_nsl_main
=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.
$ac_ext >&5
4397 ac_cv_lib_nsl_main
=no
4399 rm -f conftest.err conftest.
$ac_objext \
4400 conftest
$ac_exeext conftest.
$ac_ext
4401 LIBS
=$ac_check_lib_save_LIBS
4403 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4404 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4405 if test $ac_cv_lib_nsl_main = yes; then
4406 cat >>confdefs.h
<<_ACEOF
4407 #define HAVE_LIBNSL 1
4419 cat >>confdefs.h
<<\_ACEOF
4426 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4427 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4428 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 ac_check_lib_save_LIBS
=$LIBS
4433 cat >conftest.
$ac_ext <<_ACEOF
4436 cat confdefs.h
>>conftest.
$ac_ext
4437 cat >>conftest.
$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4440 /* Override any gcc2 internal prototype to avoid an error. */
4444 /* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4446 char gethostbyname ();
4455 rm -f conftest.
$ac_objext conftest
$ac_exeext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4457 (eval $ac_link) 2>conftest.er1
4459 grep -v '^ *+' conftest.er1
>conftest.err
4461 cat conftest.err
>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try
='test -z "$ac_c_werror_flag"
4465 || test ! -s conftest.err'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try
='test -s conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_lib_nsl_gethostbyname
=yes
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.
$ac_ext >&5
4482 ac_cv_lib_nsl_gethostbyname
=no
4484 rm -f conftest.err conftest.
$ac_objext \
4485 conftest
$ac_exeext conftest.
$ac_ext
4486 LIBS
=$ac_check_lib_save_LIBS
4488 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4489 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4490 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4491 cat >>confdefs.h
<<_ACEOF
4492 #define HAVE_LIBNSL 1
4500 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4501 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4502 if test "${ac_cv_lib_socket_socket+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 ac_check_lib_save_LIBS
=$LIBS
4506 LIBS
="-lsocket $LIBS"
4507 cat >conftest.
$ac_ext <<_ACEOF
4510 cat confdefs.h
>>conftest.
$ac_ext
4511 cat >>conftest.
$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4514 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4529 rm -f conftest.
$ac_objext conftest
$ac_exeext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4531 (eval $ac_link) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1
>conftest.err
4535 cat conftest.err
>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try
='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try
='test -s conftest$ac_exeext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_cv_lib_socket_socket
=yes
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.
$ac_ext >&5
4556 ac_cv_lib_socket_socket
=no
4558 rm -f conftest.err conftest.
$ac_objext \
4559 conftest
$ac_exeext conftest.
$ac_ext
4560 LIBS
=$ac_check_lib_save_LIBS
4562 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4563 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4564 if test $ac_cv_lib_socket_socket = yes; then
4565 cat >>confdefs.h
<<_ACEOF
4566 #define HAVE_LIBSOCKET 1
4569 LIBS
="-lsocket $LIBS"
4576 cat >>confdefs.h
<<\_ACEOF
4584 cat >>confdefs.h
<<\_ACEOF
4591 OTHER_METHOD
="mtu_kvm.o"
4593 echo "$as_me:$LINENO: checking for main in -lkvm" >&5
4594 echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
4595 if test "${ac_cv_lib_kvm_main+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 ac_check_lib_save_LIBS
=$LIBS
4600 cat >conftest.
$ac_ext <<_ACEOF
4603 cat confdefs.h
>>conftest.
$ac_ext
4604 cat >>conftest.
$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4616 rm -f conftest.
$ac_objext conftest
$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1
>conftest.err
4622 cat conftest.err
>&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try
='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try
='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_lib_kvm_main
=yes
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.
$ac_ext >&5
4643 ac_cv_lib_kvm_main
=no
4645 rm -f conftest.err conftest.
$ac_objext \
4646 conftest
$ac_exeext conftest.
$ac_ext
4647 LIBS
=$ac_check_lib_save_LIBS
4649 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
4650 echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
4651 if test $ac_cv_lib_kvm_main = yes; then
4652 cat >>confdefs.h
<<_ACEOF
4653 #define HAVE_LIBKVM 1
4663 case "${enable_vtysh}" in
4667 cat >>confdefs.h
<<\_ACEOF
4672 echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
4673 echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
4674 if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 ac_check_lib_save_LIBS
=$LIBS
4678 LIBS
="-ltinfo $LIBS"
4679 cat >conftest.
$ac_ext <<_ACEOF
4682 cat confdefs.h
>>conftest.
$ac_ext
4683 cat >>conftest.
$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4701 rm -f conftest.
$ac_objext conftest
$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1
>conftest.err
4707 cat conftest.err
>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try
='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try
='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_lib_tinfo_tputs
=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.
$ac_ext >&5
4728 ac_cv_lib_tinfo_tputs
=no
4730 rm -f conftest.err conftest.
$ac_objext \
4731 conftest
$ac_exeext conftest.
$ac_ext
4732 LIBS
=$ac_check_lib_save_LIBS
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
4735 echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
4736 if test $ac_cv_lib_tinfo_tputs = yes; then
4737 cat >>confdefs.h
<<_ACEOF
4738 #define HAVE_LIBTINFO 1
4741 LIBS
="-ltinfo $LIBS"
4745 echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
4746 echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
4747 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 ac_check_lib_save_LIBS
=$LIBS
4751 LIBS
="-lncurses $LIBS"
4752 cat >conftest.
$ac_ext <<_ACEOF
4755 cat confdefs.h
>>conftest.
$ac_ext
4756 cat >>conftest.
$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4759 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4774 rm -f conftest.
$ac_objext conftest
$ac_exeext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776 (eval $ac_link) 2>conftest.er1
4778 grep -v '^ *+' conftest.er1
>conftest.err
4780 cat conftest.err
>&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try
='test -z "$ac_c_werror_flag"
4784 || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try
='test -s conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_lib_ncurses_tputs
=yes
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.
$ac_ext >&5
4801 ac_cv_lib_ncurses_tputs
=no
4803 rm -f conftest.err conftest.
$ac_objext \
4804 conftest
$ac_exeext conftest.
$ac_ext
4805 LIBS
=$ac_check_lib_save_LIBS
4807 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
4808 echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
4809 if test $ac_cv_lib_ncurses_tputs = yes; then
4810 cat >>confdefs.h
<<_ACEOF
4811 #define HAVE_LIBNCURSES 1
4814 LIBS
="-lncurses $LIBS"
4818 echo "$as_me:$LINENO: checking for tputs in -ltermcap" >&5
4819 echo $ECHO_N "checking for tputs in -ltermcap... $ECHO_C" >&6
4820 if test "${ac_cv_lib_termcap_tputs+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 ac_check_lib_save_LIBS
=$LIBS
4824 LIBS
="-ltermcap $LIBS"
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4832 /* Override any gcc2 internal prototype to avoid an error. */
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4847 rm -f conftest.
$ac_objext conftest
$ac_exeext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849 (eval $ac_link) 2>conftest.er1
4851 grep -v '^ *+' conftest.er1
>conftest.err
4853 cat conftest.err
>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try
='test -z "$ac_c_werror_flag"
4857 || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try
='test -s conftest$ac_exeext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_lib_termcap_tputs
=yes
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.
$ac_ext >&5
4874 ac_cv_lib_termcap_tputs
=no
4876 rm -f conftest.err conftest.
$ac_objext \
4877 conftest
$ac_exeext conftest.
$ac_ext
4878 LIBS
=$ac_check_lib_save_LIBS
4880 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tputs" >&5
4881 echo "${ECHO_T}$ac_cv_lib_termcap_tputs" >&6
4882 if test $ac_cv_lib_termcap_tputs = yes; then
4883 cat >>confdefs.h
<<_ACEOF
4884 #define HAVE_LIBTERMCAP 1
4887 LIBS
="-ltermcap $LIBS"
4896 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
4897 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
4898 if test "${ac_cv_lib_readline_main+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 ac_check_lib_save_LIBS
=$LIBS
4902 LIBS
="-lreadline $LIBS"
4903 cat >conftest.
$ac_ext <<_ACEOF
4906 cat confdefs.h
>>conftest.
$ac_ext
4907 cat >>conftest.
$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4919 rm -f conftest.
$ac_objext conftest
$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>conftest.er1
4923 grep -v '^ *+' conftest.er1
>conftest.err
4925 cat conftest.err
>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try
='test -z "$ac_c_werror_flag"
4929 || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try
='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_lib_readline_main
=yes
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.
$ac_ext >&5
4946 ac_cv_lib_readline_main
=no
4948 rm -f conftest.err conftest.
$ac_objext \
4949 conftest
$ac_exeext conftest.
$ac_ext
4950 LIBS
=$ac_check_lib_save_LIBS
4952 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
4953 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
4954 if test $ac_cv_lib_readline_main = yes; then
4955 cat >>confdefs.h
<<_ACEOF
4956 #define HAVE_LIBREADLINE 1
4959 LIBS
="-lreadline $LIBS"
4963 if test $ac_cv_lib_readline_main = no
; then
4964 { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5
4965 echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;}
4966 { (exit 1); exit 1; }; }
4968 if test "${ac_cv_header_readline_history_h+set}" = set; then
4969 echo "$as_me:$LINENO: checking for readline/history.h" >&5
4970 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4971 if test "${ac_cv_header_readline_history_h+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4975 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4977 # Is the header compilable?
4978 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
4979 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
4980 cat >conftest.
$ac_ext <<_ACEOF
4983 cat confdefs.h
>>conftest.
$ac_ext
4984 cat >>conftest.
$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4987 #include <readline/history.h>
4989 rm -f conftest.
$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>conftest.er1
4993 grep -v '^ *+' conftest.er1
>conftest.err
4995 cat conftest.err
>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try
='test -z "$ac_c_werror_flag"
4999 || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try
='test -s conftest.$ac_objext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_header_compiler
=yes
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.
$ac_ext >&5
5016 ac_header_compiler
=no
5018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5020 echo "${ECHO_T}$ac_header_compiler" >&6
5022 # Is the header present?
5023 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
5024 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
5025 cat >conftest.
$ac_ext <<_ACEOF
5028 cat confdefs.h
>>conftest.
$ac_ext
5029 cat >>conftest.
$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 #include <readline/history.h>
5033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5034 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5036 grep -v '^ *+' conftest.er1
>conftest.err
5038 cat conftest.err
>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } >/dev
/null
; then
5041 if test -s conftest.err
; then
5042 ac_cpp_err
=$ac_c_preproc_warn_flag
5043 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5050 if test -z "$ac_cpp_err"; then
5051 ac_header_preproc
=yes
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.
$ac_ext >&5
5056 ac_header_preproc
=no
5058 rm -f conftest.err conftest.
$ac_ext
5059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5060 echo "${ECHO_T}$ac_header_preproc" >&6
5062 # So? What about this header?
5063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5065 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
5066 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
5068 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
5069 ac_header_preproc
=yes
5072 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
5073 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
5074 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
5075 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
5076 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
5077 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
5078 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
5079 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
5080 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
5081 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
5083 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
5086 ## ------------------------------------------ ##
5087 ## Report this to the AC_PACKAGE_NAME lists. ##
5088 ## ------------------------------------------ ##
5091 sed "s/^/$as_me: WARNING: /" >&2
5094 echo "$as_me:$LINENO: checking for readline/history.h" >&5
5095 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
5096 if test "${ac_cv_header_readline_history_h+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 ac_cv_header_readline_history_h
=$ac_header_preproc
5101 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
5102 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
5107 if test $ac_cv_header_readline_history_h = no
;then
5108 { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
5109 echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
5110 { (exit 1); exit 1; }; }
5120 if test "$with_libpam" = "yes"; then
5121 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
5122 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
5123 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 ac_check_lib_save_LIBS
=$LIBS
5128 cat >conftest.
$ac_ext <<_ACEOF
5131 cat confdefs.h
>>conftest.
$ac_ext
5132 cat >>conftest.
$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5135 /* Override any gcc2 internal prototype to avoid an error. */
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5150 rm -f conftest.
$ac_objext conftest
$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>conftest.er1
5154 grep -v '^ *+' conftest.er1
>conftest.err
5156 cat conftest.err
>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try
='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try
='test -s conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_lib_pam_pam_start
=yes
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.
$ac_ext >&5
5177 ac_cv_lib_pam_pam_start
=no
5179 rm -f conftest.err conftest.
$ac_objext \
5180 conftest
$ac_exeext conftest.
$ac_ext
5181 LIBS
=$ac_check_lib_save_LIBS
5183 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
5184 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
5185 if test $ac_cv_lib_pam_pam_start = yes; then
5186 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
5187 echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
5188 if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 ac_check_lib_save_LIBS
=$LIBS
5193 cat >conftest.
$ac_ext <<_ACEOF
5196 cat confdefs.h
>>conftest.
$ac_ext
5197 cat >>conftest.
$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5200 /* Override any gcc2 internal prototype to avoid an error. */
5204 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */
5215 rm -f conftest.
$ac_objext conftest
$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>conftest.er1
5219 grep -v '^ *+' conftest.er1
>conftest.err
5221 cat conftest.err
>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try
='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try
='test -s conftest$ac_exeext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_lib_pam_misc_conv
=yes
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.
$ac_ext >&5
5242 ac_cv_lib_pam_misc_conv
=no
5244 rm -f conftest.err conftest.
$ac_objext \
5245 conftest
$ac_exeext conftest.
$ac_ext
5246 LIBS
=$ac_check_lib_save_LIBS
5248 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
5249 echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
5250 if test $ac_cv_lib_pam_misc_conv = yes; then
5252 cat >>confdefs.h
<<\_ACEOF
5259 cat >>confdefs.h
<<\_ACEOF
5263 LIBPAM
="-lpam -lpam_misc"
5269 echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
5270 echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
5271 if test "${ac_cv_lib_pam_pam_end+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 ac_check_lib_save_LIBS
=$LIBS
5275 LIBS
="-lpam -ldl $LIBS"
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5283 /* Override any gcc2 internal prototype to avoid an error. */
5287 /* We use char because int might match the return type of a gcc2
5288 builtin and then its argument prototype would still apply. */
5298 rm -f conftest.
$ac_objext conftest
$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1
>conftest.err
5304 cat conftest.err
>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try
='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try
='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_lib_pam_pam_end
=yes
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.
$ac_ext >&5
5325 ac_cv_lib_pam_pam_end
=no
5327 rm -f conftest.err conftest.
$ac_objext \
5328 conftest
$ac_exeext conftest.
$ac_ext
5329 LIBS
=$ac_check_lib_save_LIBS
5331 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
5332 echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
5333 if test $ac_cv_lib_pam_pam_end = yes; then
5334 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
5335 echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
5336 if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 ac_check_lib_save_LIBS
=$LIBS
5341 cat >conftest.
$ac_ext <<_ACEOF
5344 cat confdefs.h
>>conftest.
$ac_ext
5345 cat >>conftest.
$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5348 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5363 rm -f conftest.
$ac_objext conftest
$ac_exeext
5364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5365 (eval $ac_link) 2>conftest.er1
5367 grep -v '^ *+' conftest.er1
>conftest.err
5369 cat conftest.err
>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } &&
5372 { ac_try
='test -z "$ac_c_werror_flag"
5373 || test ! -s conftest.err'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try
='test -s conftest$ac_exeext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 ac_cv_lib_pam_misc_conv
=yes
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.
$ac_ext >&5
5390 ac_cv_lib_pam_misc_conv
=no
5392 rm -f conftest.err conftest.
$ac_objext \
5393 conftest
$ac_exeext conftest.
$ac_ext
5394 LIBS
=$ac_check_lib_save_LIBS
5396 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
5397 echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
5398 if test $ac_cv_lib_pam_misc_conv = yes; then
5399 cat >>confdefs.h
<<\_ACEOF
5405 cat >>confdefs.h
<<\_ACEOF
5409 LIBPAM
="-lpam -ldl -lpam_misc"
5415 { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
5416 echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
5426 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5427 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5428 if test "${ac_cv_c_bigendian+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 # See if sys/param.h defines the BYTE_ORDER macro.
5432 cat >conftest.
$ac_ext <<_ACEOF
5435 cat confdefs.h
>>conftest.
$ac_ext
5436 cat >>conftest.
$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <sys/types.h>
5439 #include <sys/param.h>
5444 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5452 rm -f conftest.
$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5456 grep -v '^ *+' conftest.er1
>conftest.err
5458 cat conftest.err
>&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try
='test -z "$ac_c_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try
='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 # It does; now see whether it defined to BIG_ENDIAN or not.
5475 cat >conftest.
$ac_ext <<_ACEOF
5478 cat confdefs.h
>>conftest.
$ac_ext
5479 cat >>conftest.
$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <sys/types.h>
5482 #include <sys/param.h>
5487 #if BYTE_ORDER != BIG_ENDIAN
5495 rm -f conftest.
$ac_objext
5496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5497 (eval $ac_compile) 2>conftest.er1
5499 grep -v '^ *+' conftest.er1
>conftest.err
5501 cat conftest.err
>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try
='test -z "$ac_c_werror_flag"
5505 || test ! -s conftest.err'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try
='test -s conftest.$ac_objext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 ac_cv_c_bigendian
=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.
$ac_ext >&5
5522 ac_cv_c_bigendian
=no
5524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.
$ac_ext >&5
5529 # It does not; compile a test program.
5530 if test "$cross_compiling" = yes; then
5531 # try to guess the endianness by grepping values into an object file
5532 ac_cv_c_bigendian
=unknown
5533 cat >conftest.
$ac_ext <<_ACEOF
5536 cat confdefs.h
>>conftest.
$ac_ext
5537 cat >>conftest.
$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5540 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5541 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5542 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5543 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5544 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5548 _ascii (); _ebcdic ();
5553 rm -f conftest.
$ac_objext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555 (eval $ac_compile) 2>conftest.er1
5557 grep -v '^ *+' conftest.er1
>conftest.err
5559 cat conftest.err
>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } &&
5562 { ac_try
='test -z "$ac_c_werror_flag"
5563 || test ! -s conftest.err'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; } &&
5569 { ac_try
='test -s conftest.$ac_objext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5576 ac_cv_c_bigendian
=yes
5578 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5579 if test "$ac_cv_c_bigendian" = unknown
; then
5580 ac_cv_c_bigendian
=no
5582 # finding both strings is unlikely to happen, but who knows?
5583 ac_cv_c_bigendian
=unknown
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.
$ac_ext >&5
5591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5593 cat >conftest.
$ac_ext <<_ACEOF
5596 cat confdefs.h
>>conftest.
$ac_ext
5597 cat >>conftest.
$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5602 /* Are we little or big endian? From Harbison&Steele. */
5606 char c[sizeof (long)];
5609 exit (u.c[sizeof (long) - 1] == 1);
5612 rm -f conftest
$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_c_bigendian
=no
5625 echo "$as_me: program exited with status $ac_status" >&5
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.
$ac_ext >&5
5630 ac_cv_c_bigendian
=yes
5632 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5638 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5639 case $ac_cv_c_bigendian in
5642 cat >>confdefs.h
<<\_ACEOF
5643 #define WORDS_BIGENDIAN 1
5649 { { echo "$as_me:$LINENO: error: unknown endianness
5650 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5651 echo "$as_me: error: unknown endianness
5652 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5653 { (exit 1); exit 1; }; } ;;
5670 for ac_func
in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs
5672 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5673 echo "$as_me:$LINENO: checking for $ac_func" >&5
5674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5675 if eval "test \"\${$as_ac_var+set}\" = set"; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 cat >conftest.
$ac_ext <<_ACEOF
5681 cat confdefs.h
>>conftest.
$ac_ext
5682 cat >>conftest.
$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5686 #define $ac_func innocuous_$ac_func
5688 /* System header to define __stub macros and hopefully few prototypes,
5689 which can conflict with char $ac_func (); below.
5690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5691 <limits.h> exists even on freestanding compilers. */
5694 # include <limits.h>
5696 # include <assert.h>
5701 /* Override any gcc2 internal prototype to avoid an error. */
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5709 /* The GNU C library defines this for functions which it implements
5710 to always fail with ENOSYS. Some functions are actually named
5711 something starting with __ and the normal name is an alias. */
5712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5715 char (*f) () = $ac_func;
5724 return f != $ac_func;
5729 rm -f conftest.
$ac_objext conftest
$ac_exeext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5731 (eval $ac_link) 2>conftest.er1
5733 grep -v '^ *+' conftest.er1
>conftest.err
5735 cat conftest.err
>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try
='test -z "$ac_c_werror_flag"
5739 || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try
='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 eval "$as_ac_var=yes"
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.
$ac_ext >&5
5756 eval "$as_ac_var=no"
5758 rm -f conftest.err conftest.
$ac_objext \
5759 conftest
$ac_exeext conftest.
$ac_ext
5761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5763 if test `eval echo '${'$as_ac_var'}'` = yes; then
5764 cat >>confdefs.h
<<_ACEOF
5765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5772 for ac_func
in setproctitle
5774 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5775 echo "$as_me:$LINENO: checking for $ac_func" >&5
5776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5777 if eval "test \"\${$as_ac_var+set}\" = set"; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 cat >conftest.
$ac_ext <<_ACEOF
5783 cat confdefs.h
>>conftest.
$ac_ext
5784 cat >>conftest.
$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5788 #define $ac_func innocuous_$ac_func
5790 /* System header to define __stub macros and hopefully few prototypes,
5791 which can conflict with char $ac_func (); below.
5792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 <limits.h> exists even on freestanding compilers. */
5796 # include <limits.h>
5798 # include <assert.h>
5803 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5811 /* The GNU C library defines this for functions which it implements
5812 to always fail with ENOSYS. Some functions are actually named
5813 something starting with __ and the normal name is an alias. */
5814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5817 char (*f) () = $ac_func;
5826 return f != $ac_func;
5831 rm -f conftest.
$ac_objext conftest
$ac_exeext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833 (eval $ac_link) 2>conftest.er1
5835 grep -v '^ *+' conftest.er1
>conftest.err
5837 cat conftest.err
>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try
='test -z "$ac_c_werror_flag"
5841 || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try
='test -s conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 eval "$as_ac_var=yes"
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.
$ac_ext >&5
5858 eval "$as_ac_var=no"
5860 rm -f conftest.err conftest.
$ac_objext \
5861 conftest
$ac_exeext conftest.
$ac_ext
5863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5865 if test `eval echo '${'$as_ac_var'}'` = yes; then
5866 cat >>confdefs.h
<<_ACEOF
5867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5871 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5872 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5873 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 ac_check_lib_save_LIBS
=$LIBS
5878 cat >conftest.
$ac_ext <<_ACEOF
5881 cat confdefs.h
>>conftest.
$ac_ext
5882 cat >>conftest.
$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5885 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5891 char setproctitle ();
5900 rm -f conftest.
$ac_objext conftest
$ac_exeext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902 (eval $ac_link) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1
>conftest.err
5906 cat conftest.err
>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try
='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try
='test -s conftest$ac_exeext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_lib_util_setproctitle
=yes
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.
$ac_ext >&5
5927 ac_cv_lib_util_setproctitle
=no
5929 rm -f conftest.err conftest.
$ac_objext \
5930 conftest
$ac_exeext conftest.
$ac_ext
5931 LIBS
=$ac_check_lib_save_LIBS
5933 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5934 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5935 if test $ac_cv_lib_util_setproctitle = yes; then
5936 LIBS
="$LIBS -lutil"; cat >>confdefs.h
<<\_ACEOF
5937 #define HAVE_SETPROCTITLE 1
5946 echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
5947 echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
5948 if test x
"$opsys" = x
"gnu-linux"; then
5949 if test "${enable_netlink}" = "yes";then
5950 echo "$as_me:$LINENO: result: netlink" >&5
5951 echo "${ECHO_T}netlink" >&6
5952 RT_METHOD
=rt_netlink.o
5954 cat >>confdefs.h
<<\_ACEOF
5955 #define HAVE_NETLINK
5959 elif test "${enable_netlink}" = "no"; then
5960 echo "$as_me:$LINENO: result: ioctl" >&5
5961 echo "${ECHO_T}ioctl" >&6
5962 RT_METHOD
=rt_ioctl.o
5965 echo "$as_me:$LINENO: result: netlink" >&5
5966 echo "${ECHO_T}netlink" >&6
5967 RT_METHOD
=rt_netlink.o
5969 cat >>confdefs.h
<<\_ACEOF
5970 #define HAVE_NETLINK
5976 if test "$opsys" = "sol2-6";then
5977 echo "$as_me:$LINENO: result: solaris" >&5
5978 echo "${ECHO_T}solaris" >&6
5979 KERNEL_METHOD
="kernel_socket.o"
5980 RT_METHOD
="rt_socket.o"
5982 if test "$cross_compiling" = yes; then
5983 KERNEL_METHOD
=kernel_socket.o
5984 RT_METHOD
=rt_socket.o
5985 echo "$as_me:$LINENO: result: socket" >&5
5986 echo "${ECHO_T}socket" >&6
5988 cat >conftest.
$ac_ext <<_ACEOF
5991 cat confdefs.h
>>conftest.
$ac_ext
5992 cat >>conftest.
$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 #include <sys/types.h>
5996 #include <sys/socket.h>
6002 ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
6003 if (ac_sock < 0 && errno == EINVAL)
6008 rm -f conftest
$ac_exeext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6010 (eval $ac_link) 2>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 KERNEL_METHOD
=kernel_socket.o
6020 RT_METHOD
=rt_socket.o
6021 echo "$as_me:$LINENO: result: socket" >&5
6022 echo "${ECHO_T}socket" >&6
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.
$ac_ext >&5
6029 RT_METHOD
=rt_ioctl.o
6030 echo "$as_me:$LINENO: result: ioctl" >&5
6031 echo "${ECHO_T}ioctl" >&6
6033 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6041 echo "$as_me:$LINENO: checking route read method check" >&5
6042 echo $ECHO_N "checking route read method check... $ECHO_C" >&6
6043 if test "${zebra_rtread+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test "$netlink" = yes; then
6047 RTREAD_METHOD
="rtread_netlink.o"
6048 zebra_rtread
="netlink"
6050 for zebra_rtread
in /proc
/net
/route
/dev
/ip
/dev
/null
;
6052 test x
`ls $zebra_rtread 2>/dev/null` = x
"$zebra_rtread" && break
6054 case $zebra_rtread in
6055 "/proc/net/route") RTREAD_METHOD
="rtread_proc.o"
6056 zebra_rtread
="proc";;
6057 "/dev/ip") RTREAD_METHOD
="rtread_getmsg.o"
6058 zebra_rtread
="getmsg";;
6059 *) RTREAD_METHOD
="rtread_sysctl.o"
6060 zebra_rtread
="sysctl";;
6064 echo "$as_me:$LINENO: result: $zebra_rtread" >&5
6065 echo "${ECHO_T}$zebra_rtread" >&6
6068 echo "$as_me:$LINENO: checking interface looking up method" >&5
6069 echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
6070 if test "$netlink" = yes; then
6071 echo "$as_me:$LINENO: result: netlink" >&5
6072 echo "${ECHO_T}netlink" >&6
6073 IF_METHOD
=if_netlink.o
6075 if test "$opsys" = "sol2-6";then
6076 echo "$as_me:$LINENO: result: solaris" >&5
6077 echo "${ECHO_T}solaris" >&6
6078 IF_METHOD
=if_ioctl.o
6079 elif test "$opsys" = "openbsd";then
6080 echo "$as_me:$LINENO: result: openbsd" >&5
6081 echo "${ECHO_T}openbsd" >&6
6082 IF_METHOD
=if_ioctl.o
6083 elif grep NET_RT_IFLIST
/usr
/include
/sys
/socket.h
>/dev
/null
2>&1; then
6084 echo "$as_me:$LINENO: result: sysctl" >&5
6085 echo "${ECHO_T}sysctl" >&6
6086 IF_METHOD
=if_sysctl.o
6088 cat >>confdefs.h
<<\_ACEOF
6089 #define HAVE_NET_RT_IFLIST
6093 echo "$as_me:$LINENO: result: ioctl" >&5
6094 echo "${ECHO_T}ioctl" >&6
6095 IF_METHOD
=if_ioctl.o
6100 if test -r /proc
/net
/dev
; then
6102 cat >>confdefs.h
<<\_ACEOF
6103 #define HAVE_PROC_NET_DEV
6109 if test -r /proc
/net
/if_inet6
; then
6111 cat >>confdefs.h
<<\_ACEOF
6112 #define HAVE_PROC_NET_IF_INET6
6119 echo "$as_me:$LINENO: checking ipforward method check" >&5
6120 echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
6121 if test "${zebra_ipforward_path+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 for zebra_ipforward_path
in /proc
/net
/snmp
/dev
/ip
/dev
/null
;
6126 test x
`ls $zebra_ipforward_path 2>/dev/null` = x
"$zebra_ipforward_path" && break
6128 case $zebra_ipforward_path in
6129 "/proc/net/snmp") IPFORWARD
=ipforward_proc.o
6130 zebra_ipforward_path
="proc";;
6133 *-linux-*) IPFORWARD
=ipforward_proc.o
6134 zebra_ipforward_path
="proc";;
6135 *-nec-sysv4*) IPFORWARD
=ipforward_ews.o
6136 zebra_ipforward_path
="ews";;
6137 *) IPFORWARD
=ipforward_solaris.o
6138 zebra_ipforward_path
="solaris";;
6140 *) IPFORWARD
=ipforward_sysctl.o
6141 zebra_ipforward_path
="sysctl";;
6144 echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
6145 echo "${ECHO_T}$zebra_ipforward_path" >&6
6149 for ac_func
in getaddrinfo
6151 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6152 echo "$as_me:$LINENO: checking for $ac_func" >&5
6153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6154 if eval "test \"\${$as_ac_var+set}\" = set"; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6165 #define $ac_func innocuous_$ac_func
6167 /* System header to define __stub macros and hopefully few prototypes,
6168 which can conflict with char $ac_func (); below.
6169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6170 <limits.h> exists even on freestanding compilers. */
6173 # include <limits.h>
6175 # include <assert.h>
6180 /* Override any gcc2 internal prototype to avoid an error. */
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6188 /* The GNU C library defines this for functions which it implements
6189 to always fail with ENOSYS. Some functions are actually named
6190 something starting with __ and the normal name is an alias. */
6191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6194 char (*f) () = $ac_func;
6203 return f != $ac_func;
6208 rm -f conftest.
$ac_objext conftest
$ac_exeext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6210 (eval $ac_link) 2>conftest.er1
6212 grep -v '^ *+' conftest.er1
>conftest.err
6214 cat conftest.err
>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } &&
6217 { ac_try
='test -z "$ac_c_werror_flag"
6218 || test ! -s conftest.err'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; } &&
6224 { ac_try
='test -s conftest$ac_exeext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 eval "$as_ac_var=yes"
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.
$ac_ext >&5
6235 eval "$as_ac_var=no"
6237 rm -f conftest.err conftest.
$ac_objext \
6238 conftest
$ac_exeext conftest.
$ac_ext
6240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6242 if test `eval echo '${'$as_ac_var'}'` = yes; then
6243 cat >>confdefs.h
<<_ACEOF
6244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6246 have_getaddrinfo
=yes
6253 echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
6254 echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
6255 if test "${enable_ipv6}" = "no"; then
6256 echo "$as_me:$LINENO: result: disabled" >&5
6257 echo "${ECHO_T}disabled" >&6
6259 if grep IPV6_INRIA_VERSION
/usr
/include
/netinet
/in.h
>/dev
/null
2>&1; then
6262 cat >>confdefs.h
<<\_ACEOF
6267 cat >>confdefs.h
<<\_ACEOF
6274 echo "$as_me:$LINENO: result: INRIA IPv6" >&5
6275 echo "${ECHO_T}INRIA IPv6" >&6
6277 if grep WIDE
/usr
/include
/netinet
6/in6.h
>/dev
/null
2>&1; then
6280 cat >>confdefs.h
<<\_ACEOF
6285 cat >>confdefs.h
<<\_ACEOF
6291 if test -d /usr
/local
/v
6/lib
-a -f /usr
/local
/v
6/lib
/libinet6.a
; then
6292 LIB_IPV6
="-L/usr/local/v6/lib -linet6"
6294 echo "$as_me:$LINENO: result: KAME" >&5
6295 echo "${ECHO_T}KAME" >&6
6297 if grep NRL
/usr
/include
/netinet
6/in6.h
>/dev
/null
2>&1; then
6300 cat >>confdefs.h
<<\_ACEOF
6305 cat >>confdefs.h
<<\_ACEOF
6311 if test x
"$opsys" = x
"bsdi";then
6313 cat >>confdefs.h
<<\_ACEOF
6317 echo "$as_me:$LINENO: result: BSDI_NRL" >&5
6318 echo "${ECHO_T}BSDI_NRL" >&6
6320 echo "$as_me:$LINENO: result: NRL" >&5
6321 echo "${ECHO_T}NRL" >&6
6325 if test "${enable_ipv6}" = "yes"; then
6326 cat >conftest.
$ac_ext <<_ACEOF
6329 cat confdefs.h
>>conftest.
$ac_ext
6330 cat >>conftest.
$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6333 #include <linux/version.h>
6334 /* 2.1.128 or later */
6335 #if LINUX_VERSION_CODE >= 0x020180
6339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340 $EGREP "yes" >/dev
/null
2>&1; then
6341 zebra_cv_ipv6
=yes; zebra_cv_linux_ipv6
=yes;echo "$as_me:$LINENO: result: Linux IPv6" >&5
6342 echo "${ECHO_T}Linux IPv6" >&6
6347 if test x
`ls /proc/net/ipv6_route 2>/dev/null` = x
"/proc/net/ipv6_route"
6350 zebra_cv_linux_ipv6
=yes
6351 echo "$as_me:$LINENO: result: Linux IPv6" >&5
6352 echo "${ECHO_T}Linux IPv6" >&6
6356 if test "$zebra_cv_linux_ipv6" = "yes";then
6357 cat >>confdefs.h
<<\_ACEOF
6361 echo "$as_me:$LINENO: checking for GNU libc 2.1" >&5
6362 echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6
6363 cat >conftest.
$ac_ext <<_ACEOF
6366 cat confdefs.h
>>conftest.
$ac_ext
6367 cat >>conftest.
$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6370 #include <features.h>
6371 #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 $EGREP "yes" >/dev
/null
2>&1; then
6377 glibc
=yes; echo "$as_me:$LINENO: result: yes" >&5
6378 echo "${ECHO_T}yes" >&6
6380 echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6
6386 cat >>confdefs.h
<<\_ACEOF
6392 if test "$glibc" != "yes"; then
6393 INCLUDES
="-I/usr/inet6/include"
6394 if test x
`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x
;then
6395 LIB_IPV6
="-L/usr/inet6/lib -linet6"
6400 LIBS
="$LIB_IPV6 $LIBS"
6403 if test x
"$RIPNGD" = x
""; then
6404 echo "$as_me:$LINENO: result: IPv4 only" >&5
6405 echo "${ECHO_T}IPv4 only" >&6
6409 if test "${enable_tcp_signature}" = "yes"; then
6411 cat >>confdefs.h
<<\_ACEOF
6412 #define HAVE_TCP_SIGNATURE
6418 cat >>confdefs.h
<<\_ACEOF
6419 #define HAVE_LINUX_TCP_SIGNATURE
6425 cat >>confdefs.h
<<\_ACEOF
6426 #define HAVE_OPENBSD_TCP_SIGNATURE
6431 echo "Sorry, your OS don't support TCP signature."
6437 if test "${enable_zebra}" = "no";then
6443 if test "${enable_bgpd}" = "no";then
6449 if test "${enable_ripd}" = "no";then
6455 if test "${enable_ospfd}" = "no";then
6461 case "${enable_ripngd}" in
6462 "yes") RIPNGD
="ripngd";;
6467 case "${enable_ospf6d}" in
6468 "yes") OSPF6D
="ospf6d";;
6473 if test "${enable_bgp_announce}" = "no";then
6475 cat >>confdefs.h
<<\_ACEOF
6476 #define DISABLE_BGP_ANNOUNCE
6490 echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
6491 echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
6492 if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 ac_check_lib_save_LIBS
=$LIBS
6497 cat >conftest.
$ac_ext <<_ACEOF
6500 cat confdefs.h
>>conftest.
$ac_ext
6501 cat >>conftest.
$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6504 /* Override any gcc2 internal prototype to avoid an error. */
6508 /* We use char because int might match the return type of a gcc2
6509 builtin and then its argument prototype would still apply. */
6519 rm -f conftest.
$ac_objext conftest
$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1
>conftest.err
6525 cat conftest.err
>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try
='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try
='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_lib_c_inet_ntop
=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.
$ac_ext >&5
6546 ac_cv_lib_c_inet_ntop
=no
6548 rm -f conftest.err conftest.
$ac_objext \
6549 conftest
$ac_exeext conftest.
$ac_ext
6550 LIBS
=$ac_check_lib_save_LIBS
6552 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
6553 echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
6554 if test $ac_cv_lib_c_inet_ntop = yes; then
6556 cat >>confdefs.h
<<\_ACEOF
6557 #define HAVE_INET_NTOP
6562 echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
6563 echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
6564 if test "${ac_cv_lib_c_inet_pton+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 ac_check_lib_save_LIBS
=$LIBS
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6576 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6591 rm -f conftest.
$ac_objext conftest
$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>conftest.er1
6595 grep -v '^ *+' conftest.er1
>conftest.err
6597 cat conftest.err
>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try
='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try
='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_lib_c_inet_pton
=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.
$ac_ext >&5
6618 ac_cv_lib_c_inet_pton
=no
6620 rm -f conftest.err conftest.
$ac_objext \
6621 conftest
$ac_exeext conftest.
$ac_ext
6622 LIBS
=$ac_check_lib_save_LIBS
6624 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
6625 echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
6626 if test $ac_cv_lib_c_inet_pton = yes; then
6628 cat >>confdefs.h
<<\_ACEOF
6629 #define HAVE_INET_PTON
6635 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
6636 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
6637 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_check_lib_save_LIBS
=$LIBS
6641 LIBS
="-lcrypt $LIBS"
6642 cat >conftest.
$ac_ext <<_ACEOF
6645 cat confdefs.h
>>conftest.
$ac_ext
6646 cat >>conftest.
$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6649 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6664 rm -f conftest.
$ac_objext conftest
$ac_exeext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>conftest.er1
6668 grep -v '^ *+' conftest.er1
>conftest.err
6670 cat conftest.err
>&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try
='test -z "$ac_c_werror_flag"
6674 || test ! -s conftest.err'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; } &&
6680 { ac_try
='test -s conftest$ac_exeext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_lib_crypt_crypt
=yes
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.
$ac_ext >&5
6691 ac_cv_lib_crypt_crypt
=no
6693 rm -f conftest.err conftest.
$ac_objext \
6694 conftest
$ac_exeext conftest.
$ac_ext
6695 LIBS
=$ac_check_lib_save_LIBS
6697 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
6698 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
6699 if test $ac_cv_lib_crypt_crypt = yes; then
6700 cat >>confdefs.h
<<_ACEOF
6701 #define HAVE_LIBCRYPT 1
6704 LIBS
="-lcrypt $LIBS"
6709 echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
6710 echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
6711 if test "${ac_cv_lib_resolv_res_init+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_check_lib_save_LIBS
=$LIBS
6715 LIBS
="-lresolv $LIBS"
6716 cat >conftest.
$ac_ext <<_ACEOF
6719 cat confdefs.h
>>conftest.
$ac_ext
6720 cat >>conftest.
$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6723 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6738 rm -f conftest.
$ac_objext conftest
$ac_exeext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>conftest.er1
6742 grep -v '^ *+' conftest.er1
>conftest.err
6744 cat conftest.err
>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try
='test -z "$ac_c_werror_flag"
6748 || test ! -s conftest.err'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; } &&
6754 { ac_try
='test -s conftest$ac_exeext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 ac_cv_lib_resolv_res_init
=yes
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.
$ac_ext >&5
6765 ac_cv_lib_resolv_res_init
=no
6767 rm -f conftest.err conftest.
$ac_objext \
6768 conftest
$ac_exeext conftest.
$ac_ext
6769 LIBS
=$ac_check_lib_save_LIBS
6771 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
6772 echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
6773 if test $ac_cv_lib_resolv_res_init = yes; then
6774 cat >>confdefs.h
<<_ACEOF
6775 #define HAVE_LIBRESOLV 1
6778 LIBS
="-lresolv $LIBS"
6783 echo "$as_me:$LINENO: checking for main in -lm" >&5
6784 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
6785 if test "${ac_cv_lib_m_main+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 ac_check_lib_save_LIBS
=$LIBS
6790 cat >conftest.
$ac_ext <<_ACEOF
6793 cat confdefs.h
>>conftest.
$ac_ext
6794 cat >>conftest.
$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6806 rm -f conftest.
$ac_objext conftest
$ac_exeext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1
>conftest.err
6812 cat conftest.err
>&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try
='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try
='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_lib_m_main
=yes
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.
$ac_ext >&5
6835 rm -f conftest.err conftest.
$ac_objext \
6836 conftest
$ac_exeext conftest.
$ac_ext
6837 LIBS
=$ac_check_lib_save_LIBS
6839 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6840 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
6841 if test $ac_cv_lib_m_main = yes; then
6842 cat >>confdefs.h
<<_ACEOF
6851 echo "$as_me:$LINENO: checking for __inet_ntop" >&5
6852 echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
6853 if test "${ac_cv_func___inet_ntop+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 cat >conftest.
$ac_ext <<_ACEOF
6859 cat confdefs.h
>>conftest.
$ac_ext
6860 cat >>conftest.
$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 /* Define __inet_ntop to an innocuous variant, in case <limits.h> declares __inet_ntop.
6863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6864 #define __inet_ntop innocuous___inet_ntop
6866 /* System header to define __stub macros and hopefully few prototypes,
6867 which can conflict with char __inet_ntop (); below.
6868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6869 <limits.h> exists even on freestanding compilers. */
6872 # include <limits.h>
6874 # include <assert.h>
6879 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6886 char __inet_ntop ();
6887 /* The GNU C library defines this for functions which it implements
6888 to always fail with ENOSYS. Some functions are actually named
6889 something starting with __ and the normal name is an alias. */
6890 #if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
6893 char (*f) () = __inet_ntop;
6902 return f != __inet_ntop;
6907 rm -f conftest.
$ac_objext conftest
$ac_exeext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909 (eval $ac_link) 2>conftest.er1
6911 grep -v '^ *+' conftest.er1
>conftest.err
6913 cat conftest.err
>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try
='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try
='test -s conftest$ac_exeext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_func___inet_ntop
=yes
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.
$ac_ext >&5
6934 ac_cv_func___inet_ntop
=no
6936 rm -f conftest.err conftest.
$ac_objext \
6937 conftest
$ac_exeext conftest.
$ac_ext
6939 echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
6940 echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
6941 if test $ac_cv_func___inet_ntop = yes; then
6942 cat >>confdefs.h
<<\_ACEOF
6943 #define HAVE_INET_NTOP 1
6948 echo "$as_me:$LINENO: checking for __inet_pton" >&5
6949 echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
6950 if test "${ac_cv_func___inet_pton+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 cat >conftest.
$ac_ext <<_ACEOF
6956 cat confdefs.h
>>conftest.
$ac_ext
6957 cat >>conftest.
$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 /* Define __inet_pton to an innocuous variant, in case <limits.h> declares __inet_pton.
6960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6961 #define __inet_pton innocuous___inet_pton
6963 /* System header to define __stub macros and hopefully few prototypes,
6964 which can conflict with char __inet_pton (); below.
6965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6966 <limits.h> exists even on freestanding compilers. */
6969 # include <limits.h>
6971 # include <assert.h>
6976 /* Override any gcc2 internal prototype to avoid an error. */
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6983 char __inet_pton ();
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
6990 char (*f) () = __inet_pton;
6999 return f != __inet_pton;
7004 rm -f conftest.
$ac_objext conftest
$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>conftest.er1
7008 grep -v '^ *+' conftest.er1
>conftest.err
7010 cat conftest.err
>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try
='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try
='test -s conftest$ac_exeext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_func___inet_pton
=yes
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.
$ac_ext >&5
7031 ac_cv_func___inet_pton
=no
7033 rm -f conftest.err conftest.
$ac_objext \
7034 conftest
$ac_exeext conftest.
$ac_ext
7036 echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
7037 echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
7038 if test $ac_cv_func___inet_pton = yes; then
7039 cat >>confdefs.h
<<\_ACEOF
7040 #define HAVE_INET_PTON 1
7045 echo "$as_me:$LINENO: checking for __inet_aton" >&5
7046 echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
7047 if test "${ac_cv_func___inet_aton+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 cat >conftest.
$ac_ext <<_ACEOF
7053 cat confdefs.h
>>conftest.
$ac_ext
7054 cat >>conftest.
$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 /* Define __inet_aton to an innocuous variant, in case <limits.h> declares __inet_aton.
7057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7058 #define __inet_aton innocuous___inet_aton
7060 /* System header to define __stub macros and hopefully few prototypes,
7061 which can conflict with char __inet_aton (); below.
7062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7063 <limits.h> exists even on freestanding compilers. */
7066 # include <limits.h>
7068 # include <assert.h>
7073 /* Override any gcc2 internal prototype to avoid an error. */
7078 /* We use char because int might match the return type of a gcc2
7079 builtin and then its argument prototype would still apply. */
7080 char __inet_aton ();
7081 /* The GNU C library defines this for functions which it implements
7082 to always fail with ENOSYS. Some functions are actually named
7083 something starting with __ and the normal name is an alias. */
7084 #if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
7087 char (*f) () = __inet_aton;
7096 return f != __inet_aton;
7101 rm -f conftest.
$ac_objext conftest
$ac_exeext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7103 (eval $ac_link) 2>conftest.er1
7105 grep -v '^ *+' conftest.er1
>conftest.err
7107 cat conftest.err
>&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } &&
7110 { ac_try
='test -z "$ac_c_werror_flag"
7111 || test ! -s conftest.err'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; } &&
7117 { ac_try
='test -s conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_func___inet_aton
=yes
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.
$ac_ext >&5
7128 ac_cv_func___inet_aton
=no
7130 rm -f conftest.err conftest.
$ac_objext \
7131 conftest
$ac_exeext conftest.
$ac_ext
7133 echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
7134 echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
7135 if test $ac_cv_func___inet_aton = yes; then
7136 cat >>confdefs.h
<<\_ACEOF
7137 #define HAVE_INET_ATON 1
7143 echo "$as_me:$LINENO: checking for regexec in -lc" >&5
7144 echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
7145 if test "${ac_cv_lib_c_regexec+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 ac_check_lib_save_LIBS
=$LIBS
7150 cat >conftest.
$ac_ext <<_ACEOF
7153 cat confdefs.h
>>conftest.
$ac_ext
7154 cat >>conftest.
$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7157 /* Override any gcc2 internal prototype to avoid an error. */
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7172 rm -f conftest.
$ac_objext conftest
$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>conftest.er1
7176 grep -v '^ *+' conftest.er1
>conftest.err
7178 cat conftest.err
>&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try
='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try
='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 ac_cv_lib_c_regexec
=yes
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.
$ac_ext >&5
7199 ac_cv_lib_c_regexec
=no
7201 rm -f conftest.err conftest.
$ac_objext \
7202 conftest
$ac_exeext conftest.
$ac_ext
7203 LIBS
=$ac_check_lib_save_LIBS
7205 echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
7206 echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
7207 if test $ac_cv_lib_c_regexec = yes; then
7209 cat >>confdefs.h
<<\_ACEOF
7210 #define HAVE_GNU_REGEX
7220 if test "${enable_snmp}" = "yes"; then
7221 saved_libs
="${LIBS}"
7224 unset link_dir link_dirs
7225 test "${linkbase_specified}" = "yes" && link_dirs
=${with_linkbase}
7226 link_dirs
="$link_dirs /usr/local"
7227 for link_dir
in '' ${link_dirs}; do
7228 test "x${link_dir}" != "x" && link_dir
="-L${link_dir}/lib"
7231 { echo "$as_me:$LINENO: try linking with LIBS: $LIBS" >&5
7232 echo "$as_me: try linking with LIBS: $LIBS" >&6;}
7233 unset ac_cv_lib_netsnmp_asn_parse_int
7234 echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
7235 echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
7236 if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 ac_check_lib_save_LIBS
=$LIBS
7240 LIBS
="-lnetsnmp $LIBS"
7241 cat >conftest.
$ac_ext <<_ACEOF
7244 cat confdefs.h
>>conftest.
$ac_ext
7245 cat >>conftest.
$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7248 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7254 char asn_parse_int ();
7263 rm -f conftest.
$ac_objext conftest
$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>conftest.er1
7267 grep -v '^ *+' conftest.er1
>conftest.err
7269 cat conftest.err
>&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try
='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try
='test -s conftest$ac_exeext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_lib_netsnmp_asn_parse_int
=yes
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.
$ac_ext >&5
7290 ac_cv_lib_netsnmp_asn_parse_int
=no
7292 rm -f conftest.err conftest.
$ac_objext \
7293 conftest
$ac_exeext conftest.
$ac_ext
7294 LIBS
=$ac_check_lib_save_LIBS
7296 echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
7297 echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
7298 if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
7299 HAVE_SNMP
=yes; ac_snmp_lib
="$LIBS -lnetsnmp"
7302 test "${HAVE_SNMP}" = "yes" && break
7304 unset ac_cv_lib_snmp_asn_parse_int
7305 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
7306 echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
7307 if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_check_lib_save_LIBS
=$LIBS
7312 cat >conftest.
$ac_ext <<_ACEOF
7315 cat confdefs.h
>>conftest.
$ac_ext
7316 cat >>conftest.
$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7319 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7325 char asn_parse_int ();
7334 rm -f conftest.
$ac_objext conftest
$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336 (eval $ac_link) 2>conftest.er1
7338 grep -v '^ *+' conftest.er1
>conftest.err
7340 cat conftest.err
>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try
='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try
='test -s conftest$ac_exeext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_lib_snmp_asn_parse_int
=yes
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.
$ac_ext >&5
7361 ac_cv_lib_snmp_asn_parse_int
=no
7363 rm -f conftest.err conftest.
$ac_objext \
7364 conftest
$ac_exeext conftest.
$ac_ext
7365 LIBS
=$ac_check_lib_save_LIBS
7367 echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
7368 echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
7369 if test $ac_cv_lib_snmp_asn_parse_int = yes; then
7370 HAVE_SNMP
=yes; ac_snmp_lib
="$LIBS -lsnmp"
7373 test "${HAVE_SNMP}" = "yes" && break
7375 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
7376 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
7377 if test "${ac_cv_lib_crypto_main+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 ac_check_lib_save_LIBS
=$LIBS
7381 LIBS
="-lcrypto $LIBS"
7382 cat >conftest.
$ac_ext <<_ACEOF
7385 cat confdefs.h
>>conftest.
$ac_ext
7386 cat >>conftest.
$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7398 rm -f conftest.
$ac_objext conftest
$ac_exeext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400 (eval $ac_link) 2>conftest.er1
7402 grep -v '^ *+' conftest.er1
>conftest.err
7404 cat conftest.err
>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try
='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try
='test -s conftest$ac_exeext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_cv_lib_crypto_main
=yes
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.
$ac_ext >&5
7425 ac_cv_lib_crypto_main
=no
7427 rm -f conftest.err conftest.
$ac_objext \
7428 conftest
$ac_exeext conftest.
$ac_ext
7429 LIBS
=$ac_check_lib_save_LIBS
7431 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
7432 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
7433 if test $ac_cv_lib_crypto_main = yes; then
7437 test "${NEED_CRYPTO}" != "yes" && continue
7438 LIBS
="$LIBS -lcrypto"
7440 { echo "$as_me:$LINENO: try linking with LIBS: $LIBS" >&5
7441 echo "$as_me: try linking with LIBS: $LIBS" >&6;}
7442 unset ac_cv_lib_netsnmp_asn_parse_int
7443 echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
7444 echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
7445 if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 ac_check_lib_save_LIBS
=$LIBS
7449 LIBS
="-lnetsnmp -lcrypto $LIBS"
7450 cat >conftest.
$ac_ext <<_ACEOF
7453 cat confdefs.h
>>conftest.
$ac_ext
7454 cat >>conftest.
$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7457 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7463 char asn_parse_int ();
7472 rm -f conftest.
$ac_objext conftest
$ac_exeext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7474 (eval $ac_link) 2>conftest.er1
7476 grep -v '^ *+' conftest.er1
>conftest.err
7478 cat conftest.err
>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try
='test -z "$ac_c_werror_flag"
7482 || test ! -s conftest.err'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; } &&
7488 { ac_try
='test -s conftest$ac_exeext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_cv_lib_netsnmp_asn_parse_int
=yes
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.
$ac_ext >&5
7499 ac_cv_lib_netsnmp_asn_parse_int
=no
7501 rm -f conftest.err conftest.
$ac_objext \
7502 conftest
$ac_exeext conftest.
$ac_ext
7503 LIBS
=$ac_check_lib_save_LIBS
7505 echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
7506 echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
7507 if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
7508 HAVE_SNMP
=yes; ac_snmp_lib
="$LIBS -lnetsnmp"
7511 test "${HAVE_SNMP}" = "yes" && break
7513 unset ac_cv_lib_snmp_asn_parse_int
7514 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
7515 echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
7516 if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 ac_check_lib_save_LIBS
=$LIBS
7520 LIBS
="-lsnmp -lcrypto $LIBS"
7521 cat >conftest.
$ac_ext <<_ACEOF
7524 cat confdefs.h
>>conftest.
$ac_ext
7525 cat >>conftest.
$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7528 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7534 char asn_parse_int ();
7543 rm -f conftest.
$ac_objext conftest
$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>conftest.er1
7547 grep -v '^ *+' conftest.er1
>conftest.err
7549 cat conftest.err
>&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try
='test -z "$ac_c_werror_flag"
7553 || test ! -s conftest.err'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try
='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_lib_snmp_asn_parse_int
=yes
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.
$ac_ext >&5
7570 ac_cv_lib_snmp_asn_parse_int
=no
7572 rm -f conftest.err conftest.
$ac_objext \
7573 conftest
$ac_exeext conftest.
$ac_ext
7574 LIBS
=$ac_check_lib_save_LIBS
7576 echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
7577 echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
7578 if test $ac_cv_lib_snmp_asn_parse_int = yes; then
7579 HAVE_SNMP
=yes; ac_snmp_lib
="$LIBS -lsnmp"
7582 test "${HAVE_SNMP}" = "yes" && break
7584 if test "${HAVE_SNMP}" = ""; then
7585 { { echo "$as_me:$LINENO: error: cannot find valid snmp library" >&5
7586 echo "$as_me: error: cannot find valid snmp library" >&2;}
7587 { (exit 1); exit 1; }; }
7589 LIBS
="${saved_libs} $ac_snmp_lib"
7591 echo "$as_me:$LINENO: checking for snmp library header" >&5
7592 echo $ECHO_N "checking for snmp library header... $ECHO_C" >&6
7593 unset link_dir link_dirs ac_snmp ac_snmps ac_snmp_dir ac_snmp_dirs
7594 link_dirs
="/usr/include";
7595 if test "${linkbase_specified}" = "yes"; then
7596 link_dirs
="${link_dirs} ${with_linkbase}/include"
7598 link_dirs
="${link_dirs} /usr/local/include"
7599 ac_snmp_dirs
="net-snmp net-snmp/library ucd-snmp"
7601 for link_dir
in '' ${link_dirs}; do
7602 test -z $link_dir && continue
7603 for ac_snmp_dir
in '' ${ac_snmp_dirs}; do
7604 test -z $ac_snmp_dir && continue
7605 ac_snmps
="${ac_snmps} ${link_dir}/${ac_snmp_dir}/asn1.h"
7608 ac_snmps
="${ac_snmps}"
7610 for ac_snmp
in '' ${ac_snmps}; do
7611 test -z ${ac_snmp} && continue
7612 test -f ${ac_snmp} && break
7614 ac_snmp_header
=`echo ${ac_snmp} | sed -e 's/\/asn1.h//'`
7615 ac_snmp_header
="-I${ac_snmp_header}"
7618 /usr
/local
/include
/net-snmp
/*)
7620 cat >>confdefs.h
<<\_ACEOF
7625 cat >>confdefs.h
<<\_ACEOF
7626 #define HAVE_NETSNMP
7629 CFLAGS
="${CFLAGS} -I/usr/local/include"
7633 cat >>confdefs.h
<<\_ACEOF
7638 cat >>confdefs.h
<<\_ACEOF
7639 #define HAVE_NETSNMP
7643 /usr
/local
/include
/ucd-snmp
/*)
7645 cat >>confdefs.h
<<\_ACEOF
7649 CFLAGS
="${CFLAGS} -I/usr/local/include"
7653 cat >>confdefs.h
<<\_ACEOF
7659 echo "$as_me:$LINENO: result: $ac_snmp_header" >&5
7660 echo "${ECHO_T}$ac_snmp_header" >&6
7661 CFLAGS
="${CFLAGS} ${ac_snmp_header}"
7664 echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
7665 echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
7666 cat >conftest.
$ac_ext <<_ACEOF
7669 cat confdefs.h
>>conftest.
$ac_ext
7670 cat >>conftest.
$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 #include <sys/types.h>
7673 #include <sys/socket.h>
7678 static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
7683 rm -f conftest.
$ac_objext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7685 (eval $ac_compile) 2>conftest.er1
7687 grep -v '^ *+' conftest.er1
>conftest.err
7689 cat conftest.err
>&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try
='test -z "$ac_c_werror_flag"
7693 || test ! -s conftest.err'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; } &&
7699 { ac_try
='test -s conftest.$ac_objext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 echo "$as_me:$LINENO: result: yes" >&5
7706 echo "${ECHO_T}yes" >&6
7708 cat >>confdefs.h
<<\_ACEOF
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.
$ac_ext >&5
7716 echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6
7719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7721 echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
7722 echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
7723 cat >conftest.
$ac_ext <<_ACEOF
7726 cat confdefs.h
>>conftest.
$ac_ext
7727 cat >>conftest.
$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 #include <sys/types.h>
7730 #include <netinet/in.h>
7735 static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
7740 rm -f conftest.
$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7744 grep -v '^ *+' conftest.er1
>conftest.err
7746 cat conftest.err
>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try
='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 echo "$as_me:$LINENO: result: yes" >&5
7763 echo "${ECHO_T}yes" >&6
7765 cat >>confdefs.h
<<\_ACEOF
7766 #define HAVE_SIN_LEN
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.
$ac_ext >&5
7773 echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6
7776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7778 echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
7779 echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
7780 cat >conftest.
$ac_ext <<_ACEOF
7783 cat confdefs.h
>>conftest.
$ac_ext
7784 cat >>conftest.
$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 #include <sys/types.h>
7792 static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
7797 rm -f conftest.
$ac_objext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>conftest.er1
7801 grep -v '^ *+' conftest.er1
>conftest.err
7803 cat conftest.err
>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try
='test -z "$ac_c_werror_flag"
7807 || test ! -s conftest.err'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; } &&
7813 { ac_try
='test -s conftest.$ac_objext'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7819 echo "$as_me:$LINENO: result: yes" >&5
7820 echo "${ECHO_T}yes" >&6
7822 cat >>confdefs.h
<<\_ACEOF
7823 #define HAVE_SUN_LEN
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.
$ac_ext >&5
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7835 if test "$zebra_cv_ipv6" = yes; then
7836 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
7837 echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
7838 cat >conftest.
$ac_ext <<_ACEOF
7841 cat confdefs.h
>>conftest.
$ac_ext
7842 cat >>conftest.
$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 #include <sys/types.h>
7845 #include <netinet/in.h>
7850 static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
7855 rm -f conftest.
$ac_objext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7857 (eval $ac_compile) 2>conftest.er1
7859 grep -v '^ *+' conftest.er1
>conftest.err
7861 cat conftest.err
>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try
='test -z "$ac_c_werror_flag"
7865 || test ! -s conftest.err'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; } &&
7871 { ac_try
='test -s conftest.$ac_objext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 echo "$as_me:$LINENO: result: yes" >&5
7878 echo "${ECHO_T}yes" >&6
7880 cat >>confdefs.h
<<\_ACEOF
7881 #define HAVE_SIN6_SCOPE_ID
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.
$ac_ext >&5
7888 echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6
7891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 if test "$zebra_cv_ipv6" = yes; then
7895 echo "$as_me:$LINENO: checking whether in6addr_loopback is usable" >&5
7896 echo $ECHO_N "checking whether in6addr_loopback is usable... $ECHO_C" >&6
7897 cat >conftest.
$ac_ext <<_ACEOF
7900 cat confdefs.h
>>conftest.
$ac_ext
7901 cat >>conftest.
$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <sys/types.h>
7904 #include <netinet/in.h>
7909 static struct in6_addr ac_i; ac_i = in6addr_loopback;
7914 rm -f conftest.
$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>conftest.er1
7918 grep -v '^ *+' conftest.er1
>conftest.err
7920 cat conftest.err
>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try
='test -z "$ac_c_werror_flag"
7924 || test ! -s conftest.err'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try
='test -s conftest.$ac_objext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7936 echo "$as_me:$LINENO: result: yes" >&5
7937 echo "${ECHO_T}yes" >&6
7939 cat >>confdefs.h
<<\_ACEOF
7940 #define HAVE_IN6ADDR_GLOBAL
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.
$ac_ext >&5
7947 echo "$as_me:$LINENO: result: no" >&5
7948 echo "${ECHO_T}no" >&6
7950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7953 echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
7954 echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
7955 cat >conftest.
$ac_ext <<_ACEOF
7958 cat confdefs.h
>>conftest.
$ac_ext
7959 cat >>conftest.
$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 #include <sys/types.h>
7962 #include <sys/socket.h>
7963 #include <netinet/in.h>
7973 rm -f conftest.
$ac_objext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975 (eval $ac_compile) 2>conftest.er1
7977 grep -v '^ *+' conftest.er1
>conftest.err
7979 cat conftest.err
>&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try
='test -z "$ac_c_werror_flag"
7983 || test ! -s conftest.err'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; } &&
7989 { ac_try
='test -s conftest.$ac_objext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 echo "$as_me:$LINENO: result: yes" >&5
7996 echo "${ECHO_T}yes" >&6
7998 cat >>confdefs.h
<<\_ACEOF
7999 #define HAVE_SOCKLEN_T
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.
$ac_ext >&5
8006 echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8011 echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
8012 echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
8013 cat >conftest.
$ac_ext <<_ACEOF
8016 cat confdefs.h
>>conftest.
$ac_ext
8017 cat >>conftest.
$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 #include <net/if_dl.h>
8022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8023 $EGREP "sockaddr_dl" >/dev
/null
2>&1; then
8024 echo "$as_me:$LINENO: result: yes" >&5
8025 echo "${ECHO_T}yes" >&6
8027 cat >>confdefs.h
<<\_ACEOF
8028 #define HAVE_SOCKADDR_DL
8032 echo "$as_me:$LINENO: result: no" >&5
8033 echo "${ECHO_T}no" >&6
8038 echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
8039 echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
8040 cat >conftest.
$ac_ext <<_ACEOF
8043 cat confdefs.h
>>conftest.
$ac_ext
8044 cat >>conftest.
$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8050 $EGREP "ifaliasreq" >/dev
/null
2>&1; then
8051 echo "$as_me:$LINENO: result: yes" >&5
8052 echo "${ECHO_T}yes" >&6
8054 cat >>confdefs.h
<<\_ACEOF
8055 #define HAVE_IFALIASREQ
8059 echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6
8065 echo "$as_me:$LINENO: checking whether struct if6_aliasreq exist" >&5
8066 echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6
8067 cat >conftest.
$ac_ext <<_ACEOF
8070 cat confdefs.h
>>conftest.
$ac_ext
8071 cat >>conftest.
$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <netinet6/in6_var.h>
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "in6_aliasreq" >/dev
/null
2>&1; then
8078 echo "$as_me:$LINENO: result: yes" >&5
8079 echo "${ECHO_T}yes" >&6
8081 cat >>confdefs.h
<<\_ACEOF
8082 #define HAVE_IN6_ALIASREQ
8086 echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8092 echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
8093 echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
8094 cat >conftest.
$ac_ext <<_ACEOF
8097 cat confdefs.h
>>conftest.
$ac_ext
8098 cat >>conftest.
$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 #include <net/route.h>
8103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8104 $EGREP "rt_addrinfo" >/dev
/null
2>&1; then
8105 echo "$as_me:$LINENO: result: yes" >&5
8106 echo "${ECHO_T}yes" >&6
8108 cat >>confdefs.h
<<\_ACEOF
8109 #define HAVE_RT_ADDRINFO
8113 echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6
8119 echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
8120 echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
8121 cat >conftest.
$ac_ext <<_ACEOF
8124 cat confdefs.h
>>conftest.
$ac_ext
8125 cat >>conftest.
$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 #include <netinet/in.h>
8132 struct in_pktinfo ac_x;
8137 rm -f conftest.
$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8141 grep -v '^ *+' conftest.er1
>conftest.err
8143 cat conftest.err
>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try
='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try
='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 echo "$as_me:$LINENO: result: yes" >&5
8160 echo "${ECHO_T}yes" >&6
8162 cat >>confdefs.h
<<\_ACEOF
8163 #define HAVE_INPKTINFO
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.
$ac_ext >&5
8170 echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6
8173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8175 echo "$as_me:$LINENO: checking whether getrusage is available" >&5
8176 echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
8177 cat >conftest.
$ac_ext <<_ACEOF
8180 cat confdefs.h
>>conftest.
$ac_ext
8181 cat >>conftest.
$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 #include <sys/resource.h>
8188 struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
8193 rm -f conftest.
$ac_objext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>conftest.er1
8197 grep -v '^ *+' conftest.er1
>conftest.err
8199 cat conftest.err
>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try
='test -z "$ac_c_werror_flag"
8203 || test ! -s conftest.err'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try
='test -s conftest.$ac_objext'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 echo "$as_me:$LINENO: result: yes" >&5
8216 echo "${ECHO_T}yes" >&6
8218 cat >>confdefs.h
<<\_ACEOF
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8226 echo "$as_me:$LINENO: result: no" >&5
8227 echo "${ECHO_T}no" >&6
8229 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8231 file="${srcdir}/lib/version.h"
8232 VERSION
=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
8235 echo "$as_me:$LINENO: checking pid file directory" >&5
8236 echo $ECHO_N "checking pid file directory... $ECHO_C" >&6
8237 if test "${ac_piddir+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 for ZEBRA_PID_DIR
in /var
/run
/var
/adm
/etc
/dev
/null
;
8242 test -d $ZEBRA_PID_DIR && break
8244 ac_piddir
=$ZEBRA_PID_DIR
8245 if test $ZEBRA_PID_DIR = "/dev/null"; then
8246 echo "PID DIRECTORY NOT FOUND!"
8249 echo "$as_me:$LINENO: result: $ac_piddir" >&5
8250 echo "${ECHO_T}$ac_piddir" >&6
8252 cat >>confdefs.h
<<_ACEOF
8253 #define PATH_ZEBRA_PID "$ac_piddir/zebra.pid"
8257 cat >>confdefs.h
<<_ACEOF
8258 #define PATH_RIPD_PID "$ac_piddir/ripd.pid"
8262 cat >>confdefs.h
<<_ACEOF
8263 #define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid"
8267 cat >>confdefs.h
<<_ACEOF
8268 #define PATH_BGPD_PID "$ac_piddir/bgpd.pid"
8272 cat >>confdefs.h
<<_ACEOF
8273 #define PATH_OSPFD_PID "$ac_piddir/ospfd.pid"
8277 cat >>confdefs.h
<<_ACEOF
8278 #define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid"
8283 echo "$as_me:$LINENO: checking for working htonl" >&5
8284 echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
8285 if test "${ac_cv_htonl_works+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 cat >conftest.
$ac_ext <<_ACEOF
8292 cat confdefs.h
>>conftest.
$ac_ext
8293 cat >>conftest.
$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 #ifdef HAVE_SYS_TYPES_H
8296 #include <sys/types.h>
8301 #ifdef HAVE_NETINET_IN_H
8302 #include <netinet/in.h>
8312 rm -f conftest.
$ac_objext conftest
$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>conftest.er1
8316 grep -v '^ *+' conftest.er1
>conftest.err
8318 cat conftest.err
>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try
='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try
='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_htonl_works
=yes
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.
$ac_ext >&5
8339 ac_cv_htonl_works
=no
8341 rm -f conftest.err conftest.
$ac_objext \
8342 conftest
$ac_exeext conftest.
$ac_ext
8345 echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
8346 echo "${ECHO_T}$ac_cv_htonl_works" >&6
8348 ac_config_files
="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile"
8349 cat >confcache
<<\_ACEOF
8350 # This file is a shell script that caches the results of configure
8351 # tests run on this system so they can be shared between configure
8352 # scripts and configure runs, see configure's option --config-cache.
8353 # It is not useful on other systems. If it contains results you don't
8354 # want to keep, you may remove or edit it.
8356 # config.status only pays attention to the cache file if you give it
8357 # the --recheck option to rerun configure.
8359 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8360 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8365 # The following way of writing the cache mishandles newlines in values,
8366 # but we know of no workaround that is simple, portable, and efficient.
8367 # So, don't put newlines in cache variables' values.
8368 # Ultrix sh set writes to stderr and can't be redirected directly,
8369 # and sets the high bit in the cache file unless we assign to the vars.
8372 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8374 # `set' does not quote correctly, so add quotes (double-quote
8375 # substitution turns \\\\ into \\, and sed turns \\ into \).
8378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8381 # `set' quotes correctly as required by POSIX, so do not add quotes.
8383 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8392 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8394 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8395 if test -w $cache_file; then
8396 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8397 cat confcache
>$cache_file
8399 echo "not updating unwritable cache $cache_file"
8404 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8405 # Let make expand exec_prefix.
8406 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8408 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8409 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8410 # trailing colons and then remove the whole line if VPATH becomes empty
8411 # (actually we leave an empty line to preserve line numbers).
8412 if test "x$srcdir" = x.
; then
8413 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8414 s/:*\$(srcdir):*/:/;
8415 s/:*\${srcdir}:*/:/;
8417 s/^\([^=]*=[ ]*\):*/\1/;
8423 DEFS
=-DHAVE_CONFIG_H
8427 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8428 # 1. Remove the extension, and $U if already installed.
8429 ac_i
=`echo "$ac_i" |
8430 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8432 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8433 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8437 LTLIBOBJS
=$ac_ltlibobjs
8440 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8441 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8442 Usually this means the macro was only invoked conditionally." >&5
8443 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8444 Usually this means the macro was only invoked conditionally." >&2;}
8445 { (exit 1); exit 1; }; }
8448 : ${CONFIG_STATUS=./config.status}
8449 ac_clean_files_save
=$ac_clean_files
8450 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8451 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8452 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8453 cat >$CONFIG_STATUS <<_ACEOF
8455 # Generated by $as_me.
8456 # Run this file to recreate the current configuration.
8457 # Compiler output produced by configure, useful for debugging
8458 # configure, is in config.log if it exists.
8463 SHELL=\${CONFIG_SHELL-$SHELL}
8466 cat >>$CONFIG_STATUS <<\_ACEOF
8467 ## --------------------- ##
8468 ## M4sh Initialization. ##
8469 ## --------------------- ##
8471 # Be Bourne compatible
8472 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8475 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8476 # is contrary to our usage. Disable this feature.
8477 alias -g '${1+"$@"}'='"$@"'
8478 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8481 DUALCASE
=1; export DUALCASE
# for MKS sh
8483 # Support unset when possible.
8484 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8491 # Work around bugs in pre-3.0 UWIN ksh.
8492 $as_unset ENV MAIL MAILPATH
8499 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8500 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8501 LC_TELEPHONE LC_TIME
8503 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8504 eval $as_var=C
; export $as_var
8510 # Required to use basename.
8511 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8517 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8518 as_basename
=basename
8524 # Name of the executable.
8525 as_me
=`$as_basename "$0" ||
8526 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8527 X"$0" : 'X\(//\)$' \| \
8528 X"$0" : 'X\(/\)$' \| \
8529 . : '\(.\)' 2>/dev/null ||
8531 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8532 /^X\/\(\/\/\)$/{ s//\1/; q; }
8533 /^X\/\(\/\).*/{ s//\1/; q; }
8537 # PATH needs CR, and LINENO needs CR and PATH.
8538 # Avoid depending upon Character Ranges.
8539 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8540 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8541 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8542 as_cr_digits
='0123456789'
8543 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8545 # The user is always right.
8546 if test "${PATH_SEPARATOR+set}" != set; then
8547 echo "#! /bin/sh" >conf$$.sh
8548 echo "exit 0" >>conf$$.sh
8550 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8561 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8562 test "x$as_lineno_1" != "x$as_lineno_2" &&
8563 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8564 # Find who we are. Look in the path if we contain no path at all
8567 *[\\/]* ) as_myself
=$0 ;;
8568 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8572 test -z "$as_dir" && as_dir
=.
8573 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8578 # We did not find ourselves, most probably we were run as `sh COMMAND'
8579 # in which case we are not to be found in the path.
8580 if test "x$as_myself" = x
; then
8583 if test ! -f "$as_myself"; then
8584 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8585 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8586 { (exit 1); exit 1; }; }
8588 case $CONFIG_SHELL in
8590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8591 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8594 test -z "$as_dir" && as_dir
=.
8595 for as_base
in sh bash ksh sh5
; do
8598 if ("$as_dir/$as_base" -c '
8601 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8602 test "x$as_lineno_1" != "x$as_lineno_2" &&
8603 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8604 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8605 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8606 CONFIG_SHELL
=$as_dir/$as_base
8608 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8616 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8617 # uniformly replaced by the line number. The first 'sed' inserts a
8618 # line-number line before each line; the second 'sed' does the real
8619 # work. The second script uses 'N' to pair each line-number line
8620 # with the numbered line, and appends trailing '-' during
8621 # substitution so that $LINENO is not a special case at line end.
8622 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8623 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8624 sed '=' <$as_myself |
8629 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8632 s,^['$as_cr_digits']*\n,,
8634 chmod +x
$as_me.lineno ||
8635 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8636 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8637 { (exit 1); exit 1; }; }
8639 # Don't try to exec as it changes $[0], causing all sort of problems
8640 # (the dirname of $[0] is not the place where we might find the
8641 # original and so on. Autoconf is especially sensible to this).
8643 # Exit status is that of the last command.
8648 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8649 *c
*,-n*) ECHO_N
= ECHO_C
='
8651 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8652 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8655 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8661 rm -f conf$$ conf$$.exe conf$$.
file
8663 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8664 # We could just check for DJGPP; but this test a) works b) is more generic
8665 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8666 if test -f conf$$.exe
; then
8667 # Don't use ln at all; we don't have any links
8672 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8677 rm -f conf$$ conf$$.exe conf$$.
file
8679 if mkdir
-p .
2>/dev
/null
; then
8682 test -d .
/-p && rmdir .
/-p
8686 as_executable_p
="test -f"
8688 # Sed expression to map a string onto a valid CPP name.
8689 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8691 # Sed expression to map a string onto a valid variable name.
8692 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8696 # We need space, tab and new line, in precisely that order.
8706 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8707 # report actual input values of CONFIG_FILES etc. instead of their
8708 # values after options handling. Logging --version etc. is OK.
8712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8713 ## Running $as_me. ##
8718 This file was extended by $as_me, which was
8719 generated by GNU Autoconf 2.59. Invocation command line was
8721 CONFIG_FILES = $CONFIG_FILES
8722 CONFIG_HEADERS = $CONFIG_HEADERS
8723 CONFIG_LINKS = $CONFIG_LINKS
8724 CONFIG_COMMANDS = $CONFIG_COMMANDS
8728 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8732 # Files that config.status was made for.
8733 if test -n "$ac_config_files"; then
8734 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8737 if test -n "$ac_config_headers"; then
8738 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8741 if test -n "$ac_config_links"; then
8742 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8745 if test -n "$ac_config_commands"; then
8746 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8749 cat >>$CONFIG_STATUS <<\_ACEOF
8752 \`$as_me' instantiates files from templates according to the
8753 current configuration.
8755 Usage: $0 [OPTIONS] [FILE]...
8757 -h, --help print this help, then exit
8758 -V, --version print version number, then exit
8759 -q, --quiet do not print progress messages
8760 -d, --debug don't remove temporary files
8761 --recheck update $as_me by reconfiguring in the same conditions
8762 --file=FILE[:TEMPLATE]
8763 instantiate the configuration file FILE
8764 --header=FILE[:TEMPLATE]
8765 instantiate the configuration header FILE
8767 Configuration files:
8770 Configuration headers:
8773 Configuration commands:
8776 Report bugs to <bug-autoconf@gnu.org>."
8779 cat >>$CONFIG_STATUS <<_ACEOF
8782 configured by $0, generated by GNU Autoconf 2.59,
8783 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8785 Copyright (C) 2003 Free Software Foundation, Inc.
8786 This config.status script is free software; the Free Software Foundation
8787 gives unlimited permission to copy, distribute and modify it."
8792 cat >>$CONFIG_STATUS <<\_ACEOF
8793 # If no file are specified by the user, then we need to provide default
8794 # value. By we need to know if files were specified by the user.
8800 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8801 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8809 *) # This is not an option, so the user has probably given explicit
8812 ac_need_defaults
=false
;;
8816 # Handling of the options.
8818 cat >>$CONFIG_STATUS <<\_ACEOF
8819 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8821 --version |
--vers* |
-V )
8822 echo "$ac_cs_version"; exit 0 ;;
8824 # Conflict between --help and --header
8825 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8826 Try \`$0 --help' for more information." >&5
8827 echo "$as_me: error: ambiguous option: $1
8828 Try \`$0 --help' for more information." >&2;}
8829 { (exit 1); exit 1; }; };;
8830 --help |
--hel |
-h )
8831 echo "$ac_cs_usage"; exit 0 ;;
8832 --debug |
--d* |
-d )
8834 --file |
--fil |
--fi |
--f )
8836 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8837 ac_need_defaults
=false
;;
8838 --header |
--heade |
--head |
--hea )
8840 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8841 ac_need_defaults
=false
;;
8842 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8843 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8847 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8848 Try \`$0 --help' for more information." >&5
8849 echo "$as_me: error: unrecognized option: $1
8850 Try \`$0 --help' for more information." >&2;}
8851 { (exit 1); exit 1; }; } ;;
8853 *) ac_config_targets
="$ac_config_targets $1" ;;
8859 ac_configure_extra_args
=
8861 if $ac_cs_silent; then
8863 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8867 cat >>$CONFIG_STATUS <<_ACEOF
8868 if \$ac_cs_recheck; then
8869 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8870 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8875 cat >>$CONFIG_STATUS <<_ACEOF
8877 # INIT-COMMANDS section.
8880 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8886 cat >>$CONFIG_STATUS <<\_ACEOF
8887 for ac_config_target
in $ac_config_targets
8889 case "$ac_config_target" in
8890 # Handling of arguments.
8891 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8892 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8893 "zebra/Makefile" ) CONFIG_FILES
="$CONFIG_FILES zebra/Makefile" ;;
8894 "ripd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES ripd/Makefile" ;;
8895 "ripngd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES ripngd/Makefile" ;;
8896 "bgpd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES bgpd/Makefile" ;;
8897 "ospfd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES ospfd/Makefile" ;;
8898 "ospf6d/Makefile" ) CONFIG_FILES
="$CONFIG_FILES ospf6d/Makefile" ;;
8899 "vtysh/Makefile" ) CONFIG_FILES
="$CONFIG_FILES vtysh/Makefile" ;;
8900 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8901 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8902 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8904 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8905 { (exit 1); exit 1; }; };;
8909 # If the user did not use the arguments to specify the items to instantiate,
8910 # then the envvar interface is used. Set only those that are not.
8911 # We use the long form for the default assignment because of an extremely
8912 # bizarre bug on SunOS 4.1.3.
8913 if $ac_need_defaults; then
8914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8919 # Have a temporary directory for convenience. Make it in the build tree
8920 # simply because there is no reason to put it here, and in addition,
8921 # creating and moving files from /tmp can sometimes cause problems.
8922 # Create a temporary directory, and hook for its removal unless debugging.
8925 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8926 trap '{ (exit 1); exit 1; }' 1 2 13 15
8929 # Create a (secure) tmp directory for tmp files.
8932 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8933 test -n "$tmp" && test -d "$tmp"
8936 tmp
=.
/confstat$$
-$RANDOM
8937 (umask 077 && mkdir
$tmp)
8940 echo "$me: cannot create a temporary directory in ." >&2
8941 { (exit 1); exit 1; }
8946 cat >>$CONFIG_STATUS <<_ACEOF
8949 # CONFIG_FILES section.
8952 # No need to generate the scripts if there are no CONFIG_FILES.
8953 # This happens for instance when ./config.status config.h
8954 if test -n "\$CONFIG_FILES"; then
8955 # Protect against being on the right side of a sed subst in config.status.
8956 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8957 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8958 s,@SHELL@,$SHELL,;t t
8959 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8960 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8961 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8962 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8963 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8964 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8965 s,@exec_prefix@,$exec_prefix,;t t
8966 s,@prefix@,$prefix,;t t
8967 s,@program_transform_name@,$program_transform_name,;t t
8968 s,@bindir@,$bindir,;t t
8969 s,@sbindir@,$sbindir,;t t
8970 s,@libexecdir@,$libexecdir,;t t
8971 s,@datadir@,$datadir,;t t
8972 s,@sysconfdir@,$sysconfdir,;t t
8973 s,@sharedstatedir@,$sharedstatedir,;t t
8974 s,@localstatedir@,$localstatedir,;t t
8975 s,@libdir@,$libdir,;t t
8976 s,@includedir@,$includedir,;t t
8977 s,@oldincludedir@,$oldincludedir,;t t
8978 s,@infodir@,$infodir,;t t
8979 s,@mandir@,$mandir,;t t
8980 s,@build_alias@,$build_alias,;t t
8981 s,@host_alias@,$host_alias,;t t
8982 s,@target_alias@,$target_alias,;t t
8984 s,@ECHO_C@,$ECHO_C,;t t
8985 s,@ECHO_N@,$ECHO_N,;t t
8986 s,@ECHO_T@,$ECHO_T,;t t
8988 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8989 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8990 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8991 s,@PACKAGE@,$PACKAGE,;t t
8992 s,@VERSION@,$VERSION,;t t
8993 s,@ACLOCAL@,$ACLOCAL,;t t
8994 s,@AUTOCONF@,$AUTOCONF,;t t
8995 s,@AUTOMAKE@,$AUTOMAKE,;t t
8996 s,@AUTOHEADER@,$AUTOHEADER,;t t
8997 s,@MAKEINFO@,$MAKEINFO,;t t
8998 s,@AMTAR@,$AMTAR,;t t
8999 s,@install_sh@,$install_sh,;t t
9000 s,@STRIP@,$STRIP,;t t
9001 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9002 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9004 s,@SET_MAKE@,$SET_MAKE,;t t
9005 s,@build@,$build,;t t
9006 s,@build_cpu@,$build_cpu,;t t
9007 s,@build_vendor@,$build_vendor,;t t
9008 s,@build_os@,$build_os,;t t
9010 s,@host_cpu@,$host_cpu,;t t
9011 s,@host_vendor@,$host_vendor,;t t
9012 s,@host_os@,$host_os,;t t
9014 s,@CFLAGS@,$CFLAGS,;t t
9015 s,@LDFLAGS@,$LDFLAGS,;t t
9016 s,@CPPFLAGS@,$CPPFLAGS,;t t
9017 s,@ac_ct_CC@,$ac_ct_CC,;t t
9018 s,@EXEEXT@,$EXEEXT,;t t
9019 s,@OBJEXT@,$OBJEXT,;t t
9020 s,@DEPDIR@,$DEPDIR,;t t
9021 s,@am__include@,$am__include,;t t
9022 s,@am__quote@,$am__quote,;t t
9023 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9024 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9025 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9026 s,@CCDEPMODE@,$CCDEPMODE,;t t
9029 s,@ac_ct_AR@,$ac_ct_AR,;t t
9030 s,@RANLIB@,$RANLIB,;t t
9031 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9032 s,@EGREP@,$EGREP,;t t
9033 s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
9034 s,@LIBPAM@,$LIBPAM,;t t
9035 s,@RT_METHOD@,$RT_METHOD,;t t
9036 s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
9037 s,@OTHER_METHOD@,$OTHER_METHOD,;t t
9038 s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
9039 s,@IF_METHOD@,$IF_METHOD,;t t
9040 s,@IF_PROC@,$IF_PROC,;t t
9041 s,@IPFORWARD@,$IPFORWARD,;t t
9042 s,@LIB_IPV6@,$LIB_IPV6,;t t
9043 s,@ZEBRA@,$ZEBRA,;t t
9046 s,@RIPNGD@,$RIPNGD,;t t
9047 s,@OSPFD@,$OSPFD,;t t
9048 s,@OSPF6D@,$OSPF6D,;t t
9049 s,@VTYSH@,$VTYSH,;t t
9050 s,@INCLUDES@,$INCLUDES,;t t
9051 s,@CURSES@,$CURSES,;t t
9052 s,@LIB_REGEX@,$LIB_REGEX,;t t
9053 s,@LIBOBJS@,$LIBOBJS,;t t
9054 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9059 cat >>$CONFIG_STATUS <<\_ACEOF
9060 # Split the substitutions into bite-sized pieces for seds with
9061 # small command number limits, like on Digital OSF/1 and HP-UX.
9063 ac_sed_frag
=1 # Number of current file.
9064 ac_beg
=1 # First line for current file.
9065 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9068 while $ac_more_lines; do
9069 if test $ac_beg -gt 1; then
9070 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9072 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9074 if test ! -s $tmp/subs.frag
; then
9077 # The purpose of the label and of the branching condition is to
9078 # speed up the sed processing (if there are no `@' at all, there
9079 # is no need to browse any of the substitutions).
9080 # These are the two extra sed commands mentioned above.
9082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9083 if test -z "$ac_sed_cmds"; then
9084 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9086 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9088 ac_sed_frag
=`expr $ac_sed_frag + 1`
9090 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9093 if test -z "$ac_sed_cmds"; then
9096 fi # test -n "$CONFIG_FILES"
9099 cat >>$CONFIG_STATUS <<\_ACEOF
9100 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9101 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9103 - |
*:- |
*:-:* ) # input from stdin
9105 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9106 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9107 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9108 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9109 * ) ac_file_in
=$ac_file.
in ;;
9112 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9113 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9114 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9115 X"$ac_file" : 'X\(//\)[^/]' \| \
9116 X"$ac_file" : 'X\(//\)$' \| \
9117 X"$ac_file" : 'X\(/\)' \| \
9118 . : '\(.\)' 2>/dev/null ||
9120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9122 /^X\(\/\/\)$/{ s//\1/; q; }
9123 /^X\(\/\).*/{ s//\1/; q; }
9125 { if $as_mkdir_p; then
9130 while test ! -d "$as_dir"; do
9131 as_dirs
="$as_dir $as_dirs"
9132 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9134 X"$as_dir" : 'X\(//\)[^/]' \| \
9135 X"$as_dir" : 'X\(//\)$' \| \
9136 X"$as_dir" : 'X\(/\)' \| \
9137 . : '\(.\)' 2>/dev/null ||
9139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9141 /^X\(\/\/\)$/{ s//\1/; q; }
9142 /^X\(\/\).*/{ s//\1/; q; }
9145 test ! -n "$as_dirs" || mkdir
$as_dirs
9146 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9147 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9148 { (exit 1); exit 1; }; }; }
9152 if test "$ac_dir" != .
; then
9153 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9154 # A "../" for each directory in $ac_dir_suffix.
9155 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9157 ac_dir_suffix
= ac_top_builddir
=
9161 .
) # No --srcdir option. We are building in place.
9163 if test -z "$ac_top_builddir"; then
9166 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9168 [\\/]* | ?
:[\\/]* ) # Absolute path.
9169 ac_srcdir
=$srcdir$ac_dir_suffix;
9170 ac_top_srcdir
=$srcdir ;;
9172 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9173 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9176 # Do not use `cd foo && pwd` to compute absolute paths, because
9177 # the directories may not exist.
9179 .
) ac_abs_builddir
="$ac_dir";;
9182 .
) ac_abs_builddir
=`pwd`;;
9183 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9184 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9187 case $ac_abs_builddir in
9188 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9190 case ${ac_top_builddir}.
in
9191 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9192 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9193 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9196 case $ac_abs_builddir in
9197 .
) ac_abs_srcdir
=$ac_srcdir;;
9200 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9201 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9202 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9205 case $ac_abs_builddir in
9206 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9208 case $ac_top_srcdir in
9209 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9210 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9211 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9217 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9218 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9221 if test x
"$ac_file" != x-
; then
9222 { echo "$as_me:$LINENO: creating $ac_file" >&5
9223 echo "$as_me: creating $ac_file" >&6;}
9226 # Let's still pretend it is `configure' which instantiates (i.e., don't
9227 # use $as_me), people would be surprised to read:
9228 # /* config.h. Generated by config.status. */
9229 if test x
"$ac_file" = x-
; then
9232 configure_input
="$ac_file. "
9234 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9235 sed 's,.*/,,'` by configure."
9237 # First look for the input files in the build tree, otherwise in the
9239 ac_file_inputs
=`IFS=:
9240 for f in $ac_file_in; do
9242 -) echo $tmp/stdin ;;
9244 # Absolute (can't be DOS-style, as IFS=:)
9245 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9246 echo "$as_me: error: cannot find input file: $f" >&2;}
9247 { (exit 1); exit 1; }; }
9250 if test -f "$f"; then
9253 elif test -f "$srcdir/$f"; then
9258 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9259 echo "$as_me: error: cannot find input file: $f" >&2;}
9260 { (exit 1); exit 1; }; }
9263 done` ||
{ (exit 1); exit 1; }
9265 cat >>$CONFIG_STATUS <<_ACEOF
9269 cat >>$CONFIG_STATUS <<\_ACEOF
9271 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9272 s
,@configure_input@
,$configure_input,;t t
9273 s
,@srcdir@
,$ac_srcdir,;t t
9274 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9275 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9276 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9277 s
,@builddir@
,$ac_builddir,;t t
9278 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9279 s
,@top_builddir@
,$ac_top_builddir,;t t
9280 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9281 s
,@INSTALL@
,$ac_INSTALL,;t t
9282 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9284 if test x"$ac_file" != x-; then
9285 mv $tmp/out $ac_file
9293 cat >>$CONFIG_STATUS <<\_ACEOF
9296 # CONFIG_HEADER section.
9299 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9300 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9302 # ac_d sets the value in "#define NAME VALUE" lines.
9303 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9304 ac_dB
='[ ].*$,\1#\2'
9307 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9308 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9309 ac_uB
='$,\1#\2define\3'
9313 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9316 - |
*:- |
*:-:* ) # input from stdin
9318 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9319 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9320 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9321 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9322 * ) ac_file_in
=$ac_file.
in ;;
9325 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9326 echo "$as_me: creating $ac_file" >&6;}
9328 # First look for the input files in the build tree, otherwise in the
9330 ac_file_inputs
=`IFS=:
9331 for f in $ac_file_in; do
9333 -) echo $tmp/stdin ;;
9335 # Absolute (can't be DOS-style, as IFS=:)
9336 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9337 echo "$as_me: error: cannot find input file: $f" >&2;}
9338 { (exit 1); exit 1; }; }
9339 # Do quote $f, to prevent DOS paths from being IFS'd.
9342 if test -f "$f"; then
9345 elif test -f "$srcdir/$f"; then
9350 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9351 echo "$as_me: error: cannot find input file: $f" >&2;}
9352 { (exit 1); exit 1; }; }
9355 done` ||
{ (exit 1); exit 1; }
9356 # Remove the trailing spaces.
9357 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9361 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9362 # `conftest.undefs', that substitutes the proper values into
9363 # config.h.in to produce config.h. The first handles `#define'
9364 # templates, and the second `#undef' templates.
9365 # And first: Protect against being on the right side of a sed subst in
9366 # config.status. Protect against being in an unquoted here document
9368 rm -f conftest.defines conftest.undefs
9369 # Using a here document instead of a string reduces the quoting nightmare.
9370 # Putting comments in sed scripts is not portable.
9372 # `end' is used to avoid that the second main sed command (meant for
9373 # 0-ary CPP macros) applies to n-ary macro definitions.
9374 # See the Autoconf documentation for `clear'.
9375 cat >confdef2sed.
sed <<\_ACEOF
9380 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9382 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9385 # If some macros were called several times there might be several times
9386 # the same #defines, which is useless. Nevertheless, we may not want to
9387 # sort them, since we want the *last* AC-DEFINE to be honored.
9388 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9389 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9390 rm -f confdef2sed.sed
9392 # This sed command replaces #undef with comments. This is necessary, for
9393 # example, in the case of _POSIX_SOURCE, which is predefined and required
9394 # on some systems where configure will not decide to define it.
9395 cat >>conftest.undefs <<\_ACEOF
9396 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9399 # Break up conftest.defines because some shells have a limit on the size
9400 # of here documents, and old seds have small limits too (100 cmds).
9401 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9402 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9403 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9404 echo ' :' >>$CONFIG_STATUS
9406 while grep . conftest.defines >/dev/null
9408 # Write a limited-size here document to $tmp/defines.sed.
9409 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9410 # Speed up: don't consider the non `#define' lines.
9411 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9412 # Work around the forget-to-reset-the-flag bug.
9413 echo 't clr' >>$CONFIG_STATUS
9414 echo ': clr' >>$CONFIG_STATUS
9415 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9417 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9421 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9422 rm -f conftest.defines
9423 mv conftest.
tail conftest.defines
9425 rm -f conftest.defines
9426 echo ' fi # grep' >>$CONFIG_STATUS
9427 echo >>$CONFIG_STATUS
9429 # Break up conftest.undefs because some shells have a limit on the size
9430 # of here documents, and old seds have small limits too (100 cmds).
9431 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9433 while grep . conftest.undefs
>/dev
/null
9435 # Write a limited-size here document to $tmp/undefs.sed.
9436 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9437 # Speed up: don't consider the non
`#undef'
9438 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9439 # Work around the forget-to-reset-the-flag bug.
9440 echo 't clr' >>$CONFIG_STATUS
9441 echo ': clr' >>$CONFIG_STATUS
9442 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9444 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9448 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9449 rm -f conftest.undefs
9450 mv conftest.tail conftest.undefs
9452 rm -f conftest.undefs
9454 cat >>$CONFIG_STATUS <<\_ACEOF
9455 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9456 # use $as_me), people would be surprised to read:
9457 # /* config.h. Generated by config.status. */
9458 if test x
"$ac_file" = x-
; then
9459 echo "/* Generated by configure. */" >$tmp/config.h
9461 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9463 cat $tmp/in >>$tmp/config.h
9465 if test x
"$ac_file" != x-
; then
9466 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9467 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9468 echo "$as_me: $ac_file is unchanged" >&6;}
9470 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9472 X"$ac_file" : 'X\(//\)[^/]' \| \
9473 X"$ac_file" : 'X\(//\)$' \| \
9474 X"$ac_file" : 'X\(/\)' \| \
9475 . : '\(.\)' 2>/dev/null ||
9477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9479 /^X\(\/\/\)$/{ s//\1/; q; }
9480 /^X\(\/\).*/{ s//\1/; q; }
9482 { if $as_mkdir_p; then
9487 while test ! -d "$as_dir"; do
9488 as_dirs
="$as_dir $as_dirs"
9489 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9491 X"$as_dir" : 'X\(//\)[^/]' \| \
9492 X"$as_dir" : 'X\(//\)$' \| \
9493 X"$as_dir" : 'X\(/\)' \| \
9494 . : '\(.\)' 2>/dev/null ||
9496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9498 /^X\(\/\/\)$/{ s//\1/; q; }
9499 /^X\(\/\).*/{ s//\1/; q; }
9502 test ! -n "$as_dirs" || mkdir
$as_dirs
9503 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9505 { (exit 1); exit 1; }; }; }
9508 mv $tmp/config.h
$ac_file
9514 # Run the commands associated with the file.
9516 config.h
) # update the timestamp
9517 echo 'timestamp for config.h' >"./stamp-h1"
9522 cat >>$CONFIG_STATUS <<\_ACEOF
9525 # CONFIG_COMMANDS section.
9527 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9528 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9529 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9530 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9532 X"$ac_dest" : 'X\(//\)[^/]' \| \
9533 X"$ac_dest" : 'X\(//\)$' \| \
9534 X"$ac_dest" : 'X\(/\)' \| \
9535 . : '\(.\)' 2>/dev/null ||
9537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9539 /^X\(\/\/\)$/{ s//\1/; q; }
9540 /^X\(\/\).*/{ s//\1/; q; }
9542 { if $as_mkdir_p; then
9547 while test ! -d "$as_dir"; do
9548 as_dirs
="$as_dir $as_dirs"
9549 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9551 X"$as_dir" : 'X\(//\)[^/]' \| \
9552 X"$as_dir" : 'X\(//\)$' \| \
9553 X"$as_dir" : 'X\(/\)' \| \
9554 . : '\(.\)' 2>/dev/null ||
9556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9558 /^X\(\/\/\)$/{ s//\1/; q; }
9559 /^X\(\/\).*/{ s//\1/; q; }
9562 test ! -n "$as_dirs" || mkdir
$as_dirs
9563 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9565 { (exit 1); exit 1; }; }; }
9569 if test "$ac_dir" != .
; then
9570 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9571 # A "../" for each directory in $ac_dir_suffix.
9572 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9574 ac_dir_suffix
= ac_top_builddir
=
9578 .
) # No --srcdir option. We are building in place.
9580 if test -z "$ac_top_builddir"; then
9583 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9585 [\\/]* | ?
:[\\/]* ) # Absolute path.
9586 ac_srcdir
=$srcdir$ac_dir_suffix;
9587 ac_top_srcdir
=$srcdir ;;
9589 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9590 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9593 # Do not use `cd foo && pwd` to compute absolute paths, because
9594 # the directories may not exist.
9596 .
) ac_abs_builddir
="$ac_dir";;
9599 .
) ac_abs_builddir
=`pwd`;;
9600 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9601 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9604 case $ac_abs_builddir in
9605 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9607 case ${ac_top_builddir}.
in
9608 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9609 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9610 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9613 case $ac_abs_builddir in
9614 .
) ac_abs_srcdir
=$ac_srcdir;;
9617 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9618 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9619 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9622 case $ac_abs_builddir in
9623 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9625 case $ac_top_srcdir in
9626 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9627 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9628 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9633 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9634 echo "$as_me: executing $ac_dest commands" >&6;}
9636 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
9637 # Strip MF so we end up with the name of the file.
9638 mf
=`echo "$mf" | sed -e 's/:.*$//'`
9639 # Check whether this is an Automake generated Makefile or not.
9640 # We used to match only the files named `Makefile.in', but
9641 # some people rename them; so instead we look at the file content.
9642 # Grep'ing the first line is not enough: some people post-process
9643 # each Makefile.in and add a new line on top of each file to say so.
9644 # So let's grep whole file.
9645 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
9646 dirpart
=`(dirname "$mf") 2>/dev/null ||
9647 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9648 X"$mf" : 'X\(//\)[^/]' \| \
9649 X"$mf" : 'X\(//\)$' \| \
9650 X"$mf" : 'X\(/\)' \| \
9651 . : '\(.\)' 2>/dev/null ||
9653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9655 /^X\(\/\/\)$/{ s//\1/; q; }
9656 /^X\(\/\).*/{ s//\1/; q; }
9661 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
9662 # Extract the definition of DEP_FILES from the Makefile without
9664 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9665 test -z "$DEPDIR" && continue
9666 # When using ansi2knr, U may be empty or an underscore; expand it
9667 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9668 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
9669 # We invoke sed twice because it is the simplest approach to
9670 # changing $(DEPDIR) to its actual value in the expansion.
9671 for file in `sed -n -e '
9672 /^DEP_FILES = .*\\\\$/ {
9681 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9682 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9683 # Make sure the directory exists.
9684 test -f "$dirpart/$file" && continue
9685 fdir
=`(dirname "$file") 2>/dev/null ||
9686 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9687 X"$file" : 'X\(//\)[^/]' \| \
9688 X"$file" : 'X\(//\)$' \| \
9689 X"$file" : 'X\(/\)' \| \
9690 . : '\(.\)' 2>/dev/null ||
9692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9694 /^X\(\/\/\)$/{ s//\1/; q; }
9695 /^X\(\/\).*/{ s//\1/; q; }
9697 { if $as_mkdir_p; then
9698 mkdir
-p $dirpart/$fdir
9700 as_dir
=$dirpart/$fdir
9702 while test ! -d "$as_dir"; do
9703 as_dirs
="$as_dir $as_dirs"
9704 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9706 X"$as_dir" : 'X\(//\)[^/]' \| \
9707 X"$as_dir" : 'X\(//\)$' \| \
9708 X"$as_dir" : 'X\(/\)' \| \
9709 . : '\(.\)' 2>/dev/null ||
9711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9713 /^X\(\/\/\)$/{ s//\1/; q; }
9714 /^X\(\/\).*/{ s//\1/; q; }
9717 test ! -n "$as_dirs" || mkdir
$as_dirs
9718 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9719 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9720 { (exit 1); exit 1; }; }; }
9722 # echo "creating $dirpart/$file"
9723 echo '# dummy' > "$dirpart/$file"
9731 cat >>$CONFIG_STATUS <<\_ACEOF
9733 { (exit 0); exit 0; }
9735 chmod +x
$CONFIG_STATUS
9736 ac_clean_files
=$ac_clean_files_save
9739 # configure is writing to config.log, and then calls config.status.
9740 # config.status does its own redirection, appending to config.log.
9741 # Unfortunately, on DOS this fails, as config.log is still kept open
9742 # by configure, so config.status won't be able to write to it; its
9743 # output is simply discarded. So we exec the FD to /dev/null,
9744 # effectively closing config.log, so it can be properly (re)opened and
9745 # appended to by config.status. When coming back to configure, we
9746 # need to make the FD available again.
9747 if test "$no_create" != yes; then
9749 ac_config_status_args
=
9750 test "$silent" = yes &&
9751 ac_config_status_args
="$ac_config_status_args --quiet"
9753 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9755 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9756 # would make configure fail if this is the last instruction.
9757 $ac_cs_success ||
{ (exit 1); exit 1; }
9764 zebra version : ${VERSION}
9765 host operationg system : ${host_os}
9766 source code location : ${srcdir}
9768 compiler flags : ${CFLAGS}
9769 link libraries : ${LIBS}
9770 directory for pid files : ${ac_piddir}