MiniDLNA update: 1.0.19.1 to 1.0.20
[tomato.git] / release / src / router / zebra / configure
blob11a7bb40e69a8b82b9f81bd4cea97d443d44dce8
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
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`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="lib/zebra.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
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'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
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'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
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.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
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)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
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)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
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'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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; }; }
631 *=*)
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'"
639 export $ac_envvar ;;
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}
649 esac
650 done
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`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
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`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
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
695 cross_compiling=yes
699 ac_tool_prefix=
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 ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
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; }; }
732 else
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}
754 ac_env_CC_value=$CC
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.
780 cat <<_ACEOF
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.
790 Configuration:
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 \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
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]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
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
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 _ACEOF
845 if test -n "$ac_init_help"; then
847 cat <<\_ACEOF
849 Optional Features:
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)
874 Optional Packages:
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>
888 CPP C preprocessor
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.
893 _ACEOF
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
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'`
907 else
908 ac_dir_suffix= ac_top_builddir=
911 case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
927 # Do not use `cd foo && pwd` to compute absolute paths, because
928 # the directories may not exist.
929 case `pwd` in
930 .) ac_abs_builddir="$ac_dir";;
932 case "$ac_dir" in
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 esac;;
937 esac
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}.;;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
950 case $ac_srcdir in
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 esac;;
955 esac
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;;
963 esac;;
964 esac
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981 cd $ac_popdir
982 done
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987 cat <<\_ACEOF
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.
992 _ACEOF
993 exit 0
995 exec 5>config.log
996 cat >&5 <<_ACEOF
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
1003 $ $0 $@
1005 _ACEOF
1007 cat <<_ASUNAME
1008 ## --------- ##
1009 ## Platform. ##
1010 ## --------- ##
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`
1029 _ASUNAME
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 for as_dir in $PATH
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037 done
1039 } >&5
1041 cat >&5 <<_ACEOF
1044 ## ----------- ##
1045 ## Core tests. ##
1046 ## ----------- ##
1048 _ACEOF
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.
1056 ac_configure_args=
1057 ac_configure_args0=
1058 ac_configure_args1=
1059 ac_sep=
1060 ac_must_keep_next=false
1061 for ac_pass in 1 2
1063 for ac_arg
1065 case $ac_arg in
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)
1069 continue ;;
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 esac
1073 case $ac_pass in
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.
1079 else
1080 case $ac_arg in
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 ;;
1087 esac
1089 -* ) ac_must_keep_next=true ;;
1090 esac
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1094 ac_sep=" "
1096 esac
1097 done
1098 done
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.
1110 echo
1112 cat <<\_ASBOX
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1116 _ASBOX
1117 echo
1118 # The following way of writing the cache mishandles newlines in values,
1120 (set) 2>&1 |
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 *ac_space=\ *)
1123 sed -n \
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 sed -n \
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 esac;
1133 echo
1135 cat <<\_ASBOX
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_vars
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1148 if test -n "$ac_subst_files"; then
1149 cat <<\_ASBOX
1150 ## ------------- ##
1151 ## Output files. ##
1152 ## ------------- ##
1153 _ASBOX
1154 echo
1155 for ac_var in $ac_subst_files
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1163 if test -s confdefs.h; then
1164 cat <<\_ASBOX
1165 ## ----------- ##
1166 ## confdefs.h. ##
1167 ## ----------- ##
1168 _ASBOX
1169 echo
1170 sed "/^$/d" confdefs.h | sort
1171 echo
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1176 } >&5
1177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 exit $exit_status
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 done
1184 ac_signal=0
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.
1189 echo >confdefs.h
1191 # Predefined preprocessor variables.
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 _ACEOF
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"
1223 else
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
1232 . "$ac_site_file"
1234 done
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;}
1242 case $cache_file in
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1245 esac
1247 else
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1253 # Check that the precious variables saved in the cache have kept the same
1254 # value.
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
1263 set,)
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=: ;;
1267 ,set)
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=: ;;
1271 ,);;
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=:
1281 fi;;
1282 esac
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1285 case $ac_new_val in
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1289 esac
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'" ;;
1293 esac
1295 done
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; }; }
1304 ac_ext=c
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"
1329 ac_aux_dir=
1330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 break
1335 elif test -f $ac_dir/install.sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 break
1339 elif test -f $ac_dir/shtool; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 break
1344 done
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
1360 # AIX /bin/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
1372 else
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1376 IFS=$as_save_IFS
1377 test -z "$as_dir" && as_dir=.
1378 # Account for people who put trailing slashes in PATH elements.
1379 case $as_dir/ in
1380 ./ | .// | /cC/* | \
1381 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1382 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1383 /usr/ucb/* ) ;;
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
1387 # by default.
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.
1399 else
1400 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1401 break 3
1404 done
1405 done
1407 esac
1408 done
1412 if test "${ac_cv_path_install+set}" = set; then
1413 INSTALL=$ac_cv_path_install
1414 else
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
1435 # Just in case
1436 sleep 1
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
1442 # directory).
1443 if (
1444 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1445 if test "$*" = "X"; then
1446 # -L didn't work.
1447 set X `ls -t $srcdir/configure conftest.file`
1449 rm -f 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
1466 then
1467 # Ok.
1469 else
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,$//
1487 _ACEOF
1488 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1489 rm 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 "
1499 else
1500 am_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
1513 else
1514 if test -n "$AWK"; then
1515 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1516 else
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1520 IFS=$as_save_IFS
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
1526 break 2
1528 done
1529 done
1533 AWK=$ac_cv_prog_AWK
1534 if test -n "$AWK"; then
1535 echo "$as_me:$LINENO: result: $AWK" >&5
1536 echo "${ECHO_T}$AWK" >&6
1537 else
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1542 test -n "$AWK" && break
1543 done
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
1550 else
1551 cat >conftest.make <<\_ACEOF
1552 all:
1553 @echo 'ac_maketemp="$(MAKE)"'
1554 _ACEOF
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
1559 else
1560 eval ac_cv_prog_make_${ac_make}_set=no
1562 rm -f conftest.make
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
1567 SET_MAKE=
1568 else
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.
1583 PACKAGE=zebra
1584 VERSION=0.95
1587 cat >>confdefs.h <<_ACEOF
1588 #define PACKAGE "$PACKAGE"
1589 _ACEOF
1592 cat >>confdefs.h <<_ACEOF
1593 #define VERSION "$VERSION"
1594 _ACEOF
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
1629 else
1630 if test -n "$STRIP"; then
1631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1632 else
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1636 IFS=$as_save_IFS
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
1642 break 2
1644 done
1645 done
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
1653 else
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1659 if test -z "$ac_cv_prog_STRIP"; then
1660 ac_ct_STRIP=$STRIP
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
1667 else
1668 if test -n "$ac_ct_STRIP"; then
1669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1674 IFS=$as_save_IFS
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
1680 break 2
1682 done
1683 done
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
1692 else
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1697 STRIP=$ac_ct_STRIP
1698 else
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
1706 # some platforms.
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
1727 else
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
1743 build=$ac_cv_build
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
1753 else
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
1765 host=$ac_cv_host
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 ;
1794 ac_ext=c
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
1806 else
1807 if test -n "$CC"; then
1808 ac_cv_prog_CC="$CC" # Let the user override the test.
1809 else
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1813 IFS=$as_save_IFS
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
1819 break 2
1821 done
1822 done
1826 CC=$ac_cv_prog_CC
1827 if test -n "$CC"; then
1828 echo "$as_me:$LINENO: result: $CC" >&5
1829 echo "${ECHO_T}$CC" >&6
1830 else
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1836 if test -z "$ac_cv_prog_CC"; then
1837 ac_ct_CC=$CC
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
1844 else
1845 if test -n "$ac_ct_CC"; then
1846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1851 IFS=$as_save_IFS
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
1857 break 2
1859 done
1860 done
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
1868 else
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1873 CC=$ac_ct_CC
1874 else
1875 CC="$ac_cv_prog_CC"
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
1886 else
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
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
1899 break 2
1901 done
1902 done
1906 CC=$ac_cv_prog_CC
1907 if test -n "$CC"; then
1908 echo "$as_me:$LINENO: result: $CC" >&5
1909 echo "${ECHO_T}$CC" >&6
1910 else
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1916 if test -z "$ac_cv_prog_CC"; then
1917 ac_ct_CC=$CC
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
1924 else
1925 if test -n "$ac_ct_CC"; then
1926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1927 else
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1931 IFS=$as_save_IFS
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
1937 break 2
1939 done
1940 done
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
1948 else
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 CC=$ac_ct_CC
1954 else
1955 CC="$ac_cv_prog_CC"
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
1966 else
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 else
1970 ac_prog_rejected=no
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1974 IFS=$as_save_IFS
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
1980 continue
1982 ac_cv_prog_CC="cc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1986 done
1987 done
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
1992 shift
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.
1997 shift
1998 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2003 CC=$ac_cv_prog_CC
2004 if test -n "$CC"; then
2005 echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6
2007 else
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
2015 for ac_prog in cl
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
2023 else
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2030 IFS=$as_save_IFS
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
2036 break 2
2038 done
2039 done
2043 CC=$ac_cv_prog_CC
2044 if test -n "$CC"; then
2045 echo "$as_me:$LINENO: result: $CC" >&5
2046 echo "${ECHO_T}$CC" >&6
2047 else
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$CC" && break
2053 done
2055 if test -z "$CC"; then
2056 ac_ct_CC=$CC
2057 for ac_prog in cl
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
2065 else
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2072 IFS=$as_save_IFS
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
2078 break 2
2080 done
2081 done
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
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$ac_ct_CC" && break
2095 done
2097 CC=$ac_ct_CC
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
2115 ac_status=$?
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
2120 ac_status=$?
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
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2137 main ()
2141 return 0;
2143 _ACEOF
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
2148 # of exeext.
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
2154 ac_status=$?
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
2159 # resort.
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.
2163 ac_cv_exeext=
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
2168 case $ac_file in
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2171 conftest.$ac_ext )
2172 # This is the source file.
2174 [ab].out )
2175 # We found the default executable, but exeext='' is most
2176 # certainly right.
2177 break;;
2178 *.* )
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.
2183 export ac_cv_exeext
2184 break;;
2186 break;;
2187 esac
2188 done
2189 else
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
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 cross_compiling=no
2218 else
2219 if test "$cross_compiling" = maybe; then
2220 cross_compiling=yes
2221 else
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
2248 ac_status=$?
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
2254 # `rm'.
2255 for ac_file in conftest.exe conftest conftest.*; do
2256 test -f "$ac_file" || continue
2257 case $ac_file in
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260 export ac_cv_exeext
2261 break;;
2262 * ) break;;
2263 esac
2264 done
2265 else
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
2279 ac_exeext=$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
2284 else
2285 cat >conftest.$ac_ext <<_ACEOF
2286 /* confdefs.h. */
2287 _ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2293 main ()
2297 return 0;
2299 _ACEOF
2300 rm -f conftest.o conftest.obj
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>&5
2303 ac_status=$?
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
2307 case $ac_file in
2308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2310 break;;
2311 esac
2312 done
2313 else
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
2329 ac_objext=$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
2334 else
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h. */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2343 main ()
2345 #ifndef __GNUC__
2346 choke me
2347 #endif
2350 return 0;
2352 _ACEOF
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2356 ac_status=$?
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
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
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
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
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_compiler_gnu=yes
2376 else
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2380 ac_compiler_gnu=no
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
2391 CFLAGS="-g"
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
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h. */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2405 main ()
2409 return 0;
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>conftest.er1
2415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
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
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
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
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 ac_cv_prog_cc_g=yes
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2439 ac_cv_prog_cc_g=no
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
2449 CFLAGS="-g -O2"
2450 else
2451 CFLAGS="-g"
2453 else
2454 if test "$GCC" = yes; then
2455 CFLAGS="-O2"
2456 else
2457 CFLAGS=
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
2464 else
2465 ac_cv_prog_cc_stdc=no
2466 ac_save_CC=$CC
2467 cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h. */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2473 #include <stdarg.h>
2474 #include <stdio.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)
2481 char **p;
2482 int i;
2484 return p[i];
2486 static char *f (char * (*g) (char **, int), char **p, ...)
2488 char *s;
2489 va_list v;
2490 va_start (v,p);
2491 s = g (p, va_arg (v,int));
2492 va_end (v);
2493 return s;
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);
2509 int argc;
2510 char **argv;
2512 main ()
2514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2516 return 0;
2518 _ACEOF
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
2532 ac_status=$?
2533 grep -v '^ *+' conftest.er1 >conftest.err
2534 rm -f conftest.er1
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
2541 (eval $ac_try) 2>&5
2542 ac_status=$?
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
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 ac_cv_prog_cc_stdc=$ac_arg
2552 break
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2558 rm -f conftest.err conftest.$ac_objext
2559 done
2560 rm -f conftest.$ac_ext conftest.$ac_objext
2561 CC=$ac_save_CC
2565 case "x$ac_cv_prog_cc_stdc" in
2566 x|xno)
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" ;;
2573 esac
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
2580 #ifndef __cplusplus
2581 choke me
2582 #endif
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
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
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
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
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 for ac_declaration in \
2607 '' \
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);' \
2612 'void exit (int);'
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620 $ac_declaration
2621 #include <stdlib.h>
2623 main ()
2625 exit (42);
2627 return 0;
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>conftest.er1
2633 ac_status=$?
2634 grep -v '^ *+' conftest.er1 >conftest.err
2635 rm -f conftest.er1
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
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
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
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2653 else
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 continue
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660 cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h. */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2666 $ac_declaration
2668 main ()
2670 exit (42);
2672 return 0;
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
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
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
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
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 break
2698 else
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
2704 done
2705 rm -f conftest*
2706 if test -n "$ac_declaration"; then
2707 echo '#ifdef __cplusplus' >>confdefs.h
2708 echo $ac_declaration >>confdefs.h
2709 echo '#endif' >>confdefs.h
2712 else
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
2718 ac_ext=c
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
2726 DEPDIR=.deps
2727 else
2728 # MS-DOS does not allow filenames that begin with a dot.
2729 DEPDIR=_deps
2731 rmdir .deps 2>/dev/null
2734 ac_config_commands="$ac_config_commands depfiles"
2737 am_make=${MAKE-make}
2738 cat > confinc << 'END'
2739 doit:
2740 @echo done
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
2745 am__include="#"
2746 am__quote=
2747 _am_result=none
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
2756 am__include=include
2757 am__quote=
2758 _am_result=GNU
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
2765 am__quote="\""
2766 _am_result=BSD
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"
2782 AMDEPBACKSLASH='\'
2786 if test "x$enable_dependency_tracking" != xno; then
2787 AMDEP_TRUE=
2788 AMDEP_FALSE='#'
2789 else
2790 AMDEP_TRUE='#'
2791 AMDEP_FALSE=
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
2803 else
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
2809 # in D'.
2810 mkdir conftest.dir
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
2814 cd 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
2828 case $depmode in
2829 nosideeffect)
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
2833 continue
2834 else
2835 break
2838 none) break ;;
2839 esac
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
2850 break
2852 done
2854 cd ..
2855 rm -rf conftest.dir
2856 else
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" ;
2876 ac_ext=c
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
2885 CPP=
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 # Double quotes because CPP needs to be expanded
2892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894 ac_preproc_ok=false
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
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914 Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
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
2927 else
2928 ac_cpp_err=
2930 else
2931 ac_cpp_err=yes
2933 if test -z "$ac_cpp_err"; then
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2939 # Broken: fails on valid input.
2940 continue
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
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
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
2965 else
2966 ac_cpp_err=
2968 else
2969 ac_cpp_err=yes
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2973 continue
2974 else
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Passes both tests.
2979 ac_preproc_ok=:
2980 break
2982 rm -f conftest.err conftest.$ac_ext
2984 done
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
2988 break
2991 done
2992 ac_cv_prog_CPP=$CPP
2995 CPP=$ac_cv_prog_CPP
2996 else
2997 ac_cv_prog_CPP=$CPP
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3001 ac_preproc_ok=false
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
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021 Syntax error
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
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
3034 else
3035 ac_cpp_err=
3037 else
3038 ac_cpp_err=yes
3040 if test -z "$ac_cpp_err"; then
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Broken: fails on valid input.
3047 continue
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
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
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
3072 else
3073 ac_cpp_err=
3075 else
3076 ac_cpp_err=yes
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3080 continue
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3089 rm -f conftest.err conftest.$ac_ext
3091 done
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
3096 else
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; }; }
3104 ac_ext=c
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
3116 # AIX /bin/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
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 # Account for people who put trailing slashes in PATH elements.
3135 case $as_dir/ in
3136 ./ | .// | /cC/* | \
3137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3138 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3139 /usr/ucb/* ) ;;
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
3143 # by default.
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.
3155 else
3156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3157 break 3
3160 done
3161 done
3163 esac
3164 done
3168 if test "${ac_cv_path_install+set}" = set; then
3169 INSTALL=$ac_cv_path_install
3170 else
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
3194 else
3195 cat >conftest.make <<\_ACEOF
3196 all:
3197 @echo 'ac_maketemp="$(MAKE)"'
3198 _ACEOF
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
3203 else
3204 eval ac_cv_prog_make_${ac_make}_set=no
3206 rm -f conftest.make
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
3211 SET_MAKE=
3212 else
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
3225 else
3226 if test -n "$AR"; then
3227 ac_cv_prog_AR="$AR" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3232 IFS=$as_save_IFS
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
3238 break 2
3240 done
3241 done
3245 AR=$ac_cv_prog_AR
3246 if test -n "$AR"; then
3247 echo "$as_me:$LINENO: result: $AR" >&5
3248 echo "${ECHO_T}$AR" >&6
3249 else
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3255 if test -z "$ac_cv_prog_AR"; then
3256 ac_ct_AR=$AR
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
3263 else
3264 if test -n "$ac_ct_AR"; then
3265 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3270 IFS=$as_save_IFS
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
3276 break 2
3278 done
3279 done
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
3287 else
3288 echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3292 AR=$ac_ct_AR
3293 else
3294 AR="$ac_cv_prog_AR"
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
3304 else
3305 if test -n "$RANLIB"; then
3306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3311 IFS=$as_save_IFS
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
3317 break 2
3319 done
3320 done
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
3328 else
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
3342 else
3343 if test -n "$ac_ct_RANLIB"; then
3344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3349 IFS=$as_save_IFS
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
3355 break 2
3357 done
3358 done
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
3367 else
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3372 RANLIB=$ac_ct_RANLIB
3373 else
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
3384 else
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
3399 /* confdefs.h. */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 #ifdef _AIX
3406 #endif
3408 _ACEOF
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
3415 _ACEOF
3417 else
3418 echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3421 rm -f conftest*
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"
3529 then
3530 echo "Sorry, you can't use netlink with broken aliases"
3531 exit 1
3534 cat >>confdefs.h <<\_ACEOF
3535 #define HAVE_BROKEN_ALIASES
3536 _ACEOF
3538 enable_netlink=no
3541 if test "${enable_tcp_zebra}" = "yes"; then
3543 cat >>confdefs.h <<\_ACEOF
3544 #define HAVE_TCP_ZEBRA
3545 _ACEOF
3549 if test "${enable_nssa}" = "yes"; then
3551 cat >>confdefs.h <<\_ACEOF
3552 #define HAVE_NSSA
3553 _ACEOF
3557 if test "${enable_irdp}" = "yes"; then
3559 cat >>confdefs.h <<\_ACEOF
3560 #define HAVE_IRDP
3561 _ACEOF
3565 if test "${enable_opaque_lsa}" = "yes"; then
3567 cat >>confdefs.h <<\_ACEOF
3568 #define HAVE_OPAQUE_LSA
3569 _ACEOF
3573 if test "${enable_ospf_te}" = "yes"; then
3575 cat >>confdefs.h <<\_ACEOF
3576 #define HAVE_OPAQUE_LSA
3577 _ACEOF
3580 cat >>confdefs.h <<\_ACEOF
3581 #define HAVE_OSPF_TE
3582 _ACEOF
3587 MULTIPATH_NUM=1
3589 case "${enable_multipath}" in
3590 [0-9]|[1-9][0-9])
3591 MULTIPATH_NUM="${enable_multipath}"
3596 echo "Please specify digit to --enable-multipath ARG."
3597 exit 1
3599 esac
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
3608 else
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 #include <stdlib.h>
3616 #include <stdarg.h>
3617 #include <string.h>
3618 #include <float.h>
3621 main ()
3625 return 0;
3627 _ACEOF
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
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
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
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
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_cv_header_stdc=yes
3651 else
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
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include <string.h>
3669 _ACEOF
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671 $EGREP "memchr" >/dev/null 2>&1; then
3673 else
3674 ac_cv_header_stdc=no
3676 rm -f conftest*
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
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 #include <stdlib.h>
3690 _ACEOF
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 $EGREP "free" >/dev/null 2>&1; then
3694 else
3695 ac_cv_header_stdc=no
3697 rm -f conftest*
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
3705 else
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h. */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #include <ctype.h>
3713 #if ((' ' & 0x0FF) == 0x020)
3714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3716 #else
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))
3722 #endif
3724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3726 main ()
3728 int i;
3729 for (i = 0; i < 256; i++)
3730 if (XOR (islower (i), ISLOWER (i))
3731 || toupper (i) != TOUPPER (i))
3732 exit(2);
3733 exit (0);
3735 _ACEOF
3736 rm -f conftest$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>&5
3739 ac_status=$?
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
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3748 else
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
3753 ( exit $ac_status )
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
3766 _ACEOF
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
3788 else
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _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>
3798 _ACEOF
3799 rm -f conftest.$ac_objext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
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
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
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
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 eval "$as_ac_Header=yes"
3822 else
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
3835 _ACEOF
3839 done
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 netinet6/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
3878 else
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
3883 /* confdefs.h. */
3884 _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>
3890 _ACEOF
3891 rm -f conftest.$ac_objext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
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
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
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
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_header_compiler=yes
3914 else
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
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 #include <$ac_header>
3934 _ACEOF
3935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
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
3946 else
3947 ac_cpp_err=
3949 else
3950 ac_cpp_err=yes
3952 if test -z "$ac_cpp_err"; then
3953 ac_header_preproc=yes
3954 else
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
3966 yes:no: )
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
3973 no: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;}
3987 cat <<\_ASBOX
3988 ## ------------------------------------------ ##
3989 ## Report this to the AC_PACKAGE_NAME lists. ##
3990 ## ------------------------------------------ ##
3991 _ASBOX
3993 sed "s/^/$as_me: WARNING: /" >&2
3995 esac
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
4000 else
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
4010 _ACEOF
4014 done
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
4021 else
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4030 main ()
4032 /* FIXME: Include the comments suggested by Paul. */
4033 #ifndef __cplusplus
4034 /* Ultrix mips cc rejects this. */
4035 typedef int charset[2];
4036 const charset x;
4037 /* SunOS 4.1.1 cc rejects this. */
4038 char const *const *ccp;
4039 char **p;
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
4046 expression */
4047 const char *g = "string";
4048 ccp = &g + (g ? g-g : 0);
4049 /* HPUX 7.0 cc rejects these. */
4050 ++ccp;
4051 p = (char**) ccp;
4052 ccp = (char const *const *) p;
4053 { /* SCO 3.2v4 cc rejects this. */
4054 char *t;
4055 char const *s = 0 ? (char *) 0 : (char const *) 0;
4057 *t++ = 0;
4059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4060 int x[] = {25, 17};
4061 const int *foo = &x[0];
4062 ++foo;
4064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4065 typedef const int *iptr;
4066 iptr p = 0;
4067 ++p;
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 */
4075 const int foo = 10;
4077 #endif
4080 return 0;
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
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
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
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
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_cv_c_const=yes
4106 else
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110 ac_cv_c_const=no
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
4119 #define const
4120 _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
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <sys/types.h>
4136 #include <signal.h>
4137 #ifdef signal
4138 # undef signal
4139 #endif
4140 #ifdef __cplusplus
4141 extern "C" void (*signal (int, void (*)(int)))(int);
4142 #else
4143 void (*signal ()) ();
4144 #endif
4147 main ()
4149 int i;
4151 return 0;
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
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
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
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
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_type_signal=void
4177 else
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
4190 _ACEOF
4194 case "$host" in
4195 *-sunos5.6* | *-solaris2.6*)
4196 opsys=sol2-6
4198 cat >>confdefs.h <<\_ACEOF
4199 #define SUNOS_5
4200 _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
4207 else
4208 ac_check_lib_save_LIBS=$LIBS
4209 LIBS="-lxnet $LIBS"
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4219 main ()
4221 main ();
4223 return 0;
4225 _ACEOF
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
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
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
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
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
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_lib_xnet_main=yes
4249 else
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
4264 _ACEOF
4266 LIBS="-lxnet $LIBS"
4270 CURSES=-lcurses
4272 *-sunos5* | *-solaris2*)
4274 cat >>confdefs.h <<\_ACEOF
4275 #define SUNOS_5
4276 _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
4283 else
4284 ac_check_lib_save_LIBS=$LIBS
4285 LIBS="-lsocket $LIBS"
4286 cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h. */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4295 main ()
4297 main ();
4299 return 0;
4301 _ACEOF
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
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
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
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
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
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_lib_socket_main=yes
4325 else
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
4340 _ACEOF
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
4351 else
4352 ac_check_lib_save_LIBS=$LIBS
4353 LIBS="-lnsl $LIBS"
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h. */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4363 main ()
4365 main ();
4367 return 0;
4369 _ACEOF
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
4373 ac_status=$?
4374 grep -v '^ *+' conftest.er1 >conftest.err
4375 rm -f conftest.er1
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
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
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
4388 (eval $ac_try) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_lib_nsl_main=yes
4393 else
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
4408 _ACEOF
4410 LIBS="-lnsl $LIBS"
4414 CURSES=-lcurses
4416 *-linux-*)
4417 opsys=gnu-linux
4419 cat >>confdefs.h <<\_ACEOF
4420 #define GNU_LINUX
4421 _ACEOF
4424 *-nec-sysv4*)
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
4430 else
4431 ac_check_lib_save_LIBS=$LIBS
4432 LIBS="-lnsl $LIBS"
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _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. */
4441 #ifdef __cplusplus
4442 extern "C"
4443 #endif
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 ();
4448 main ()
4450 gethostbyname ();
4452 return 0;
4454 _ACEOF
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
4458 ac_status=$?
4459 grep -v '^ *+' conftest.er1 >conftest.err
4460 rm -f conftest.er1
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
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
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
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_lib_nsl_gethostbyname=yes
4478 else
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
4493 _ACEOF
4495 LIBS="-lnsl $LIBS"
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
4504 else
4505 ac_check_lib_save_LIBS=$LIBS
4506 LIBS="-lsocket $LIBS"
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _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. */
4515 #ifdef __cplusplus
4516 extern "C"
4517 #endif
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4520 char socket ();
4522 main ()
4524 socket ();
4526 return 0;
4528 _ACEOF
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
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
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
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
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
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_cv_lib_socket_socket=yes
4552 else
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
4567 _ACEOF
4569 LIBS="-lsocket $LIBS"
4574 *-freebsd3.2)
4576 cat >>confdefs.h <<\_ACEOF
4577 #define FREEBSD_32
4578 _ACEOF
4581 *-openbsd*)
4582 opsys=openbsd
4584 cat >>confdefs.h <<\_ACEOF
4585 #define OPEN_BSD
4586 _ACEOF
4589 *-bsdi*)
4590 opsys=bsdi
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
4597 else
4598 ac_check_lib_save_LIBS=$LIBS
4599 LIBS="-lkvm $LIBS"
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4609 main ()
4611 main ();
4613 return 0;
4615 _ACEOF
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
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
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
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
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
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_lib_kvm_main=yes
4639 else
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
4654 _ACEOF
4656 LIBS="-lkvm $LIBS"
4661 esac
4663 case "${enable_vtysh}" in
4664 "yes")
4665 VTYSH="vtysh";
4667 cat >>confdefs.h <<\_ACEOF
4668 #define VTYSH
4669 _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
4676 else
4677 ac_check_lib_save_LIBS=$LIBS
4678 LIBS="-ltinfo $LIBS"
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _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. */
4687 #ifdef __cplusplus
4688 extern "C"
4689 #endif
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char tputs ();
4694 main ()
4696 tputs ();
4698 return 0;
4700 _ACEOF
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
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
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
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
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
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_lib_tinfo_tputs=yes
4724 else
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
4739 _ACEOF
4741 LIBS="-ltinfo $LIBS"
4743 else
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
4749 else
4750 ac_check_lib_save_LIBS=$LIBS
4751 LIBS="-lncurses $LIBS"
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _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. */
4760 #ifdef __cplusplus
4761 extern "C"
4762 #endif
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4765 char tputs ();
4767 main ()
4769 tputs ();
4771 return 0;
4773 _ACEOF
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
4777 ac_status=$?
4778 grep -v '^ *+' conftest.er1 >conftest.err
4779 rm -f conftest.er1
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
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
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
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_lib_ncurses_tputs=yes
4797 else
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
4812 _ACEOF
4814 LIBS="-lncurses $LIBS"
4816 else
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
4822 else
4823 ac_check_lib_save_LIBS=$LIBS
4824 LIBS="-ltermcap $LIBS"
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _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. */
4833 #ifdef __cplusplus
4834 extern "C"
4835 #endif
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4838 char tputs ();
4840 main ()
4842 tputs ();
4844 return 0;
4846 _ACEOF
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
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
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
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
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
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_lib_termcap_tputs=yes
4870 else
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
4885 _ACEOF
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
4900 else
4901 ac_check_lib_save_LIBS=$LIBS
4902 LIBS="-lreadline $LIBS"
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4912 main ()
4914 main ();
4916 return 0;
4918 _ACEOF
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
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
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
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
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
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_lib_readline_main=yes
4942 else
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
4957 _ACEOF
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
4976 else
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
4981 /* confdefs.h. */
4982 _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>
4988 _ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
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
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
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
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_header_compiler=yes
5012 else
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
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 #include <readline/history.h>
5032 _ACEOF
5033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
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
5044 else
5045 ac_cpp_err=
5047 else
5048 ac_cpp_err=yes
5050 if test -z "$ac_cpp_err"; then
5051 ac_header_preproc=yes
5052 else
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
5064 yes:no: )
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
5071 no: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;}
5085 cat <<\_ASBOX
5086 ## ------------------------------------------ ##
5087 ## Report this to the AC_PACKAGE_NAME lists. ##
5088 ## ------------------------------------------ ##
5089 _ASBOX
5091 sed "s/^/$as_me: WARNING: /" >&2
5093 esac
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
5098 else
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; }; }
5113 "no")
5114 VTYSH=""
5118 esac
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
5125 else
5126 ac_check_lib_save_LIBS=$LIBS
5127 LIBS="-lpam $LIBS"
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _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. */
5136 #ifdef __cplusplus
5137 extern "C"
5138 #endif
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5141 char pam_start ();
5143 main ()
5145 pam_start ();
5147 return 0;
5149 _ACEOF
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
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
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
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
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
5168 (eval $ac_try) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_lib_pam_pam_start=yes
5173 else
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
5190 else
5191 ac_check_lib_save_LIBS=$LIBS
5192 LIBS="-lpam $LIBS"
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _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. */
5201 #ifdef __cplusplus
5202 extern "C"
5203 #endif
5204 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */
5206 char misc_conv ();
5208 main ()
5210 misc_conv ();
5212 return 0;
5214 _ACEOF
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
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
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
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
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
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_lib_pam_misc_conv=yes
5238 else
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
5253 #define USE_PAM
5254 _ACEOF
5256 LIBPAM="-lpam"
5257 else
5259 cat >>confdefs.h <<\_ACEOF
5260 #define USE_PAM
5261 _ACEOF
5263 LIBPAM="-lpam -lpam_misc"
5268 else
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
5273 else
5274 ac_check_lib_save_LIBS=$LIBS
5275 LIBS="-lpam -ldl $LIBS"
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _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. */
5284 #ifdef __cplusplus
5285 extern "C"
5286 #endif
5287 /* We use char because int might match the return type of a gcc2
5288 builtin and then its argument prototype would still apply. */
5289 char pam_end ();
5291 main ()
5293 pam_end ();
5295 return 0;
5297 _ACEOF
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
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
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
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
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
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_lib_pam_pam_end=yes
5321 else
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
5338 else
5339 ac_check_lib_save_LIBS=$LIBS
5340 LIBS="-lpam $LIBS"
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _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. */
5349 #ifdef __cplusplus
5350 extern "C"
5351 #endif
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5354 char misc_conv ();
5356 main ()
5358 misc_conv ();
5360 return 0;
5362 _ACEOF
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
5366 ac_status=$?
5367 grep -v '^ *+' conftest.er1 >conftest.err
5368 rm -f conftest.er1
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
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
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
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 ac_cv_lib_pam_misc_conv=yes
5386 else
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
5400 #define USE_PAM 1
5401 _ACEOF
5403 LIBPAM="-lpam -ldl"
5404 else
5405 cat >>confdefs.h <<\_ACEOF
5406 #define USE_PAM 1
5407 _ACEOF
5409 LIBPAM="-lpam -ldl -lpam_misc"
5414 else
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
5430 else
5431 # See if sys/param.h defines the BYTE_ORDER macro.
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _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>
5442 main ()
5444 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5445 bogus endian macros
5446 #endif
5449 return 0;
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
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
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
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
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
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
5476 /* confdefs.h. */
5477 _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>
5485 main ()
5487 #if BYTE_ORDER != BIG_ENDIAN
5488 not big endian
5489 #endif
5492 return 0;
5494 _ACEOF
5495 rm -f conftest.$ac_objext
5496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5497 (eval $ac_compile) 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
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
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
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
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 ac_cv_c_bigendian=yes
5518 else
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
5525 else
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
5534 /* confdefs.h. */
5535 _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; }
5546 main ()
5548 _ascii (); _ebcdic ();
5550 return 0;
5552 _ACEOF
5553 rm -f conftest.$ac_objext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555 (eval $ac_compile) 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
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
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
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
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
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
5581 else
5582 # finding both strings is unlikely to happen, but who knows?
5583 ac_cv_c_bigendian=unknown
5586 else
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
5592 else
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5600 main ()
5602 /* Are we little or big endian? From Harbison&Steele. */
5603 union
5605 long l;
5606 char c[sizeof (long)];
5607 } u;
5608 u.l = 1;
5609 exit (u.c[sizeof (long) - 1] == 1);
5611 _ACEOF
5612 rm -f conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>&5
5615 ac_status=$?
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
5619 (eval $ac_try) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_c_bigendian=no
5624 else
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
5629 ( exit $ac_status )
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
5640 yes)
5642 cat >>confdefs.h <<\_ACEOF
5643 #define WORDS_BIGENDIAN 1
5644 _ACEOF
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; }; } ;;
5654 esac
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
5677 else
5678 cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h. */
5680 _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. */
5693 #ifdef __STDC__
5694 # include <limits.h>
5695 #else
5696 # include <assert.h>
5697 #endif
5699 #undef $ac_func
5701 /* Override any gcc2 internal prototype to avoid an error. */
5702 #ifdef __cplusplus
5703 extern "C"
5705 #endif
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5708 char $ac_func ();
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)
5713 choke me
5714 #else
5715 char (*f) () = $ac_func;
5716 #endif
5717 #ifdef __cplusplus
5719 #endif
5722 main ()
5724 return f != $ac_func;
5726 return 0;
5728 _ACEOF
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
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
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
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
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
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 eval "$as_ac_var=yes"
5752 else
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
5766 _ACEOF
5769 done
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
5779 else
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _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. */
5795 #ifdef __STDC__
5796 # include <limits.h>
5797 #else
5798 # include <assert.h>
5799 #endif
5801 #undef $ac_func
5803 /* Override any gcc2 internal prototype to avoid an error. */
5804 #ifdef __cplusplus
5805 extern "C"
5807 #endif
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5810 char $ac_func ();
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)
5815 choke me
5816 #else
5817 char (*f) () = $ac_func;
5818 #endif
5819 #ifdef __cplusplus
5821 #endif
5824 main ()
5826 return f != $ac_func;
5828 return 0;
5830 _ACEOF
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
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
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
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
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
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 eval "$as_ac_var=yes"
5854 else
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
5868 _ACEOF
5870 else
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
5875 else
5876 ac_check_lib_save_LIBS=$LIBS
5877 LIBS="-lutil $LIBS"
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _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. */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
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 ();
5893 main ()
5895 setproctitle ();
5897 return 0;
5899 _ACEOF
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
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
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
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
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
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_lib_util_setproctitle=yes
5923 else
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
5938 _ACEOF
5943 done
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
5956 _ACEOF
5958 netlink=yes
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
5963 netlink=no
5964 else
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
5971 _ACEOF
5973 netlink=yes
5975 else
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"
5981 else
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
5987 else
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #include <errno.h>
5995 #include <sys/types.h>
5996 #include <sys/socket.h>
5998 main ()
6000 int ac_sock;
6002 ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
6003 if (ac_sock < 0 && errno == EINVAL)
6004 exit (1);
6005 exit (0);
6007 _ACEOF
6008 rm -f conftest$ac_exeext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6010 (eval $ac_link) 2>&5
6011 ac_status=$?
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
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
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
6023 else
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
6028 ( exit $ac_status )
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
6045 else
6046 if test "$netlink" = yes; then
6047 RTREAD_METHOD="rtread_netlink.o"
6048 zebra_rtread="netlink"
6049 else
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
6053 done
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";;
6061 esac
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
6074 else
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
6090 _ACEOF
6092 else
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
6104 _ACEOF
6106 IF_PROC=if_proc.o
6109 if test -r /proc/net/if_inet6; then
6111 cat >>confdefs.h <<\_ACEOF
6112 #define HAVE_PROC_NET_IF_INET6
6113 _ACEOF
6115 IF_PROC=if_proc.o
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
6123 else
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
6127 done
6128 case $zebra_ipforward_path in
6129 "/proc/net/snmp") IPFORWARD=ipforward_proc.o
6130 zebra_ipforward_path="proc";;
6131 "/dev/ip")
6132 case "$host" in
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";;
6139 esac;;
6140 *) IPFORWARD=ipforward_sysctl.o
6141 zebra_ipforward_path="sysctl";;
6142 esac
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
6156 else
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _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. */
6172 #ifdef __STDC__
6173 # include <limits.h>
6174 #else
6175 # include <assert.h>
6176 #endif
6178 #undef $ac_func
6180 /* Override any gcc2 internal prototype to avoid an error. */
6181 #ifdef __cplusplus
6182 extern "C"
6184 #endif
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6187 char $ac_func ();
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)
6192 choke me
6193 #else
6194 char (*f) () = $ac_func;
6195 #endif
6196 #ifdef __cplusplus
6198 #endif
6201 main ()
6203 return f != $ac_func;
6205 return 0;
6207 _ACEOF
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
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
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
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
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
6226 (eval $ac_try) 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 eval "$as_ac_var=yes"
6231 else
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
6245 _ACEOF
6246 have_getaddrinfo=yes
6247 else
6248 have_getaddrinfo=no
6250 done
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
6258 else
6259 if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
6260 zebra_cv_ipv6=yes
6262 cat >>confdefs.h <<\_ACEOF
6263 #define HAVE_IPV6
6264 _ACEOF
6267 cat >>confdefs.h <<\_ACEOF
6268 #define INRIA_IPV6
6269 _ACEOF
6271 RIPNGD="ripngd"
6272 OSPF6D="ospf6d"
6273 LIB_IPV6=""
6274 echo "$as_me:$LINENO: result: INRIA IPv6" >&5
6275 echo "${ECHO_T}INRIA IPv6" >&6
6277 if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
6278 zebra_cv_ipv6=yes
6280 cat >>confdefs.h <<\_ACEOF
6281 #define HAVE_IPV6
6282 _ACEOF
6285 cat >>confdefs.h <<\_ACEOF
6286 #define KAME
6287 _ACEOF
6289 RIPNGD="ripngd"
6290 OSPF6D="ospf6d"
6291 if test -d /usr/local/v6/lib -a -f /usr/local/v6/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/netinet6/in6.h >/dev/null 2>&1; then
6298 zebra_cv_ipv6=yes
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_IPV6
6302 _ACEOF
6305 cat >>confdefs.h <<\_ACEOF
6306 #define NRL
6307 _ACEOF
6309 RIPNGD="ripngd"
6310 OSPF6D="ospf6d"
6311 if test x"$opsys" = x"bsdi";then
6313 cat >>confdefs.h <<\_ACEOF
6314 #define BSDI_NRL
6315 _ACEOF
6317 echo "$as_me:$LINENO: result: BSDI_NRL" >&5
6318 echo "${ECHO_T}BSDI_NRL" >&6
6319 else
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
6327 /* confdefs.h. */
6328 _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
6337 #endif
6338 _ACEOF
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
6344 rm -f conftest*
6346 else
6347 if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
6348 then
6349 zebra_cv_ipv6=yes
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
6358 #define HAVE_IPV6 1
6359 _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
6364 /* confdefs.h. */
6365 _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
6373 #endif
6374 _ACEOF
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
6379 else
6380 echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6
6383 rm -f conftest*
6386 cat >>confdefs.h <<\_ACEOF
6387 #define LINUX_IPV6
6388 _ACEOF
6390 RIPNGD="ripngd"
6391 OSPF6D="ospf6d"
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
6413 _ACEOF
6415 case "$host" in
6416 *-linux-*)
6418 cat >>confdefs.h <<\_ACEOF
6419 #define HAVE_LINUX_TCP_SIGNATURE
6420 _ACEOF
6423 *-openbsd*)
6425 cat >>confdefs.h <<\_ACEOF
6426 #define HAVE_OPENBSD_TCP_SIGNATURE
6427 _ACEOF
6431 echo "Sorry, your OS don't support TCP signature."
6432 exit 1
6434 esac
6437 if test "${enable_zebra}" = "no";then
6438 ZEBRA=""
6439 else
6440 ZEBRA="zebra"
6443 if test "${enable_bgpd}" = "no";then
6444 BGPD=""
6445 else
6446 BGPD="bgpd"
6449 if test "${enable_ripd}" = "no";then
6450 RIPD=""
6451 else
6452 RIPD="ripd"
6455 if test "${enable_ospfd}" = "no";then
6456 OSPFD=""
6457 else
6458 OSPFD="ospfd"
6461 case "${enable_ripngd}" in
6462 "yes") RIPNGD="ripngd";;
6463 "no" ) RIPNGD="";;
6464 * ) ;;
6465 esac
6467 case "${enable_ospf6d}" in
6468 "yes") OSPF6D="ospf6d";;
6469 "no" ) OSPF6D="";;
6470 * ) ;;
6471 esac
6473 if test "${enable_bgp_announce}" = "no";then
6475 cat >>confdefs.h <<\_ACEOF
6476 #define DISABLE_BGP_ANNOUNCE
6477 _ACEOF
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
6494 else
6495 ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lc $LIBS"
6497 cat >conftest.$ac_ext <<_ACEOF
6498 /* confdefs.h. */
6499 _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. */
6505 #ifdef __cplusplus
6506 extern "C"
6507 #endif
6508 /* We use char because int might match the return type of a gcc2
6509 builtin and then its argument prototype would still apply. */
6510 char inet_ntop ();
6512 main ()
6514 inet_ntop ();
6516 return 0;
6518 _ACEOF
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
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
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
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
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
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_lib_c_inet_ntop=yes
6542 else
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
6558 _ACEOF
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
6566 else
6567 ac_check_lib_save_LIBS=$LIBS
6568 LIBS="-lc $LIBS"
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _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. */
6577 #ifdef __cplusplus
6578 extern "C"
6579 #endif
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char inet_pton ();
6584 main ()
6586 inet_pton ();
6588 return 0;
6590 _ACEOF
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
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
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
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
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
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_lib_c_inet_pton=yes
6614 else
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
6630 _ACEOF
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
6639 else
6640 ac_check_lib_save_LIBS=$LIBS
6641 LIBS="-lcrypt $LIBS"
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h. */
6644 _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. */
6650 #ifdef __cplusplus
6651 extern "C"
6652 #endif
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6655 char crypt ();
6657 main ()
6659 crypt ();
6661 return 0;
6663 _ACEOF
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
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
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
6676 (eval $ac_try) 2>&5
6677 ac_status=$?
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
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_lib_crypt_crypt=yes
6687 else
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
6702 _ACEOF
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
6713 else
6714 ac_check_lib_save_LIBS=$LIBS
6715 LIBS="-lresolv $LIBS"
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _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. */
6724 #ifdef __cplusplus
6725 extern "C"
6726 #endif
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6729 char res_init ();
6731 main ()
6733 res_init ();
6735 return 0;
6737 _ACEOF
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
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
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
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
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
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 ac_cv_lib_resolv_res_init=yes
6761 else
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
6776 _ACEOF
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
6787 else
6788 ac_check_lib_save_LIBS=$LIBS
6789 LIBS="-lm $LIBS"
6790 cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6799 main ()
6801 main ();
6803 return 0;
6805 _ACEOF
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
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
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
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
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
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_lib_m_main=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_lib_m_main=no
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
6843 #define HAVE_LIBM 1
6844 _ACEOF
6846 LIBS="-lm $LIBS"
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
6855 else
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _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. */
6871 #ifdef __STDC__
6872 # include <limits.h>
6873 #else
6874 # include <assert.h>
6875 #endif
6877 #undef __inet_ntop
6879 /* Override any gcc2 internal prototype to avoid an error. */
6880 #ifdef __cplusplus
6881 extern "C"
6883 #endif
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)
6891 choke me
6892 #else
6893 char (*f) () = __inet_ntop;
6894 #endif
6895 #ifdef __cplusplus
6897 #endif
6900 main ()
6902 return f != __inet_ntop;
6904 return 0;
6906 _ACEOF
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
6910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
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
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
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
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_func___inet_ntop=yes
6930 else
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
6944 _ACEOF
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
6952 else
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h. */
6955 _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. */
6968 #ifdef __STDC__
6969 # include <limits.h>
6970 #else
6971 # include <assert.h>
6972 #endif
6974 #undef __inet_pton
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 #ifdef __cplusplus
6978 extern "C"
6980 #endif
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)
6988 choke me
6989 #else
6990 char (*f) () = __inet_pton;
6991 #endif
6992 #ifdef __cplusplus
6994 #endif
6997 main ()
6999 return f != __inet_pton;
7001 return 0;
7003 _ACEOF
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
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
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
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
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
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_func___inet_pton=yes
7027 else
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
7041 _ACEOF
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
7049 else
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _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. */
7065 #ifdef __STDC__
7066 # include <limits.h>
7067 #else
7068 # include <assert.h>
7069 #endif
7071 #undef __inet_aton
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 #ifdef __cplusplus
7075 extern "C"
7077 #endif
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)
7085 choke me
7086 #else
7087 char (*f) () = __inet_aton;
7088 #endif
7089 #ifdef __cplusplus
7091 #endif
7094 main ()
7096 return f != __inet_aton;
7098 return 0;
7100 _ACEOF
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
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
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
7113 (eval $ac_try) 2>&5
7114 ac_status=$?
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
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_func___inet_aton=yes
7124 else
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
7138 _ACEOF
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
7147 else
7148 ac_check_lib_save_LIBS=$LIBS
7149 LIBS="-lc $LIBS"
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _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. */
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7163 char regexec ();
7165 main ()
7167 regexec ();
7169 return 0;
7171 _ACEOF
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
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
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
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
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
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 ac_cv_lib_c_regexec=yes
7195 else
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
7211 _ACEOF
7213 LIB_REGEX=""
7214 else
7215 LIB_REGEX="regex.o"
7220 if test "${enable_snmp}" = "yes"; then
7221 saved_libs="${LIBS}"
7222 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"
7229 LIBS=${link_dir}
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
7238 else
7239 ac_check_lib_save_LIBS=$LIBS
7240 LIBS="-lnetsnmp $LIBS"
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _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. */
7249 #ifdef __cplusplus
7250 extern "C"
7251 #endif
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 ();
7256 main ()
7258 asn_parse_int ();
7260 return 0;
7262 _ACEOF
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
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
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
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
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
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_lib_netsnmp_asn_parse_int=yes
7286 else
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
7309 else
7310 ac_check_lib_save_LIBS=$LIBS
7311 LIBS="-lsnmp $LIBS"
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _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. */
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
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 ();
7327 main ()
7329 asn_parse_int ();
7331 return 0;
7333 _ACEOF
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
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
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
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
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
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_lib_snmp_asn_parse_int=yes
7357 else
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
7379 else
7380 ac_check_lib_save_LIBS=$LIBS
7381 LIBS="-lcrypto $LIBS"
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7391 main ()
7393 main ();
7395 return 0;
7397 _ACEOF
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
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
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
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
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
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_cv_lib_crypto_main=yes
7421 else
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
7434 NEED_CRYPTO=yes
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
7447 else
7448 ac_check_lib_save_LIBS=$LIBS
7449 LIBS="-lnetsnmp -lcrypto $LIBS"
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _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. */
7458 #ifdef __cplusplus
7459 extern "C"
7460 #endif
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 ();
7465 main ()
7467 asn_parse_int ();
7469 return 0;
7471 _ACEOF
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
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
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
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
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
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_cv_lib_netsnmp_asn_parse_int=yes
7495 else
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
7518 else
7519 ac_check_lib_save_LIBS=$LIBS
7520 LIBS="-lsnmp -lcrypto $LIBS"
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _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. */
7529 #ifdef __cplusplus
7530 extern "C"
7531 #endif
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 ();
7536 main ()
7538 asn_parse_int ();
7540 return 0;
7542 _ACEOF
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
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
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
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
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
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_lib_snmp_asn_parse_int=yes
7566 else
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
7583 done
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"
7606 done
7607 done
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
7613 done
7614 ac_snmp_header=`echo ${ac_snmp} | sed -e 's/\/asn1.h//'`
7615 ac_snmp_header="-I${ac_snmp_header}"
7617 case ${ac_snmp} in
7618 /usr/local/include/net-snmp/*)
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_SNMP
7622 _ACEOF
7625 cat >>confdefs.h <<\_ACEOF
7626 #define HAVE_NETSNMP
7627 _ACEOF
7629 CFLAGS="${CFLAGS} -I/usr/local/include"
7631 */net-snmp/*)
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_SNMP
7635 _ACEOF
7638 cat >>confdefs.h <<\_ACEOF
7639 #define HAVE_NETSNMP
7640 _ACEOF
7643 /usr/local/include/ucd-snmp/*)
7645 cat >>confdefs.h <<\_ACEOF
7646 #define HAVE_SNMP
7647 _ACEOF
7649 CFLAGS="${CFLAGS} -I/usr/local/include"
7651 */ucd-snmp/*)
7653 cat >>confdefs.h <<\_ACEOF
7654 #define HAVE_SNMP
7655 _ACEOF
7658 esac
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
7667 /* confdefs.h. */
7668 _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>
7676 main ()
7678 static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
7680 return 0;
7682 _ACEOF
7683 rm -f conftest.$ac_objext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7685 (eval $ac_compile) 2>conftest.er1
7686 ac_status=$?
7687 grep -v '^ *+' conftest.er1 >conftest.err
7688 rm -f conftest.er1
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
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
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
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
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
7709 #define HAVE_SA_LEN
7710 _ACEOF
7712 else
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
7724 /* confdefs.h. */
7725 _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>
7733 main ()
7735 static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
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
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
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
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
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
7767 _ACEOF
7769 else
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
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 #include <sys/types.h>
7787 #include <sys/un.h>
7790 main ()
7792 static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
7794 return 0;
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
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
7809 (eval $ac_try) 2>&5
7810 ac_status=$?
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
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
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
7824 _ACEOF
7826 else
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
7839 /* confdefs.h. */
7840 _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>
7848 main ()
7850 static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
7852 return 0;
7854 _ACEOF
7855 rm -f conftest.$ac_objext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7857 (eval $ac_compile) 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
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
7867 (eval $ac_try) 2>&5
7868 ac_status=$?
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
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
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
7882 _ACEOF
7884 else
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
7898 /* confdefs.h. */
7899 _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>
7907 main ()
7909 static struct in6_addr ac_i; ac_i = in6addr_loopback;
7911 return 0;
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>conftest.er1
7917 ac_status=$?
7918 grep -v '^ *+' conftest.er1 >conftest.err
7919 rm -f conftest.er1
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
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
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
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
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
7941 _ACEOF
7943 else
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
7956 /* confdefs.h. */
7957 _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>
7966 main ()
7968 socklen_t ac_x;
7970 return 0;
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975 (eval $ac_compile) 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
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
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
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
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
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
8000 _ACEOF
8002 else
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
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 #include <net/if_dl.h>
8021 _ACEOF
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
8029 _ACEOF
8031 else
8032 echo "$as_me:$LINENO: result: no" >&5
8033 echo "${ECHO_T}no" >&6
8035 rm -f conftest*
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
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <net/if.h>
8048 _ACEOF
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
8056 _ACEOF
8058 else
8059 echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6
8062 rm -f conftest*
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
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <netinet6/in6_var.h>
8075 _ACEOF
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
8083 _ACEOF
8085 else
8086 echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8089 rm -f conftest*
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
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 #include <net/route.h>
8102 _ACEOF
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
8110 _ACEOF
8112 else
8113 echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6
8116 rm -f conftest*
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
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 #include <netinet/in.h>
8130 main ()
8132 struct in_pktinfo ac_x;
8134 return 0;
8136 _ACEOF
8137 rm -f conftest.$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
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
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
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
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
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
8164 _ACEOF
8166 else
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
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 #include <sys/resource.h>
8186 main ()
8188 struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
8190 return 0;
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>conftest.er1
8196 ac_status=$?
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
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
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
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
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
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
8219 #define HAVE_RUSAGE
8220 _ACEOF
8222 else
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
8239 else
8240 for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null;
8242 test -d $ZEBRA_PID_DIR && break
8243 done
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"
8254 _ACEOF
8257 cat >>confdefs.h <<_ACEOF
8258 #define PATH_RIPD_PID "$ac_piddir/ripd.pid"
8259 _ACEOF
8262 cat >>confdefs.h <<_ACEOF
8263 #define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid"
8264 _ACEOF
8267 cat >>confdefs.h <<_ACEOF
8268 #define PATH_BGPD_PID "$ac_piddir/bgpd.pid"
8269 _ACEOF
8272 cat >>confdefs.h <<_ACEOF
8273 #define PATH_OSPFD_PID "$ac_piddir/ospfd.pid"
8274 _ACEOF
8277 cat >>confdefs.h <<_ACEOF
8278 #define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid"
8279 _ACEOF
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
8287 else
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h. */
8291 _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>
8297 #endif
8298 #ifdef HAVE_NETDB_H
8299 #include <netdb.h>
8300 #endif
8301 #ifdef HAVE_NETINET_IN_H
8302 #include <netinet/in.h>
8303 #endif
8305 main ()
8307 htonl (0);
8309 return 0;
8311 _ACEOF
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
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
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
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
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
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_htonl_works=yes
8335 else
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
8361 # following values.
8363 _ACEOF
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.
8371 (set) 2>&1 |
8372 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8373 *ac_space=\ *)
8374 # `set' does not quote correctly, so add quotes (double-quote
8375 # substitution turns \\\\ into \\, and sed turns \\ into \).
8376 sed -n \
8377 "s/'/'\\\\''/g;
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.
8382 sed -n \
8383 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8385 esac;
8387 sed '
8388 t clear
8389 : clear
8390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8391 t end
8392 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8393 : end' >>confcache
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
8398 else
8399 echo "not updating unwritable cache $cache_file"
8402 rm -f confcache
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}:*/:/;
8416 s/:*@srcdir@:*/:/;
8417 s/^\([^=]*=[ ]*\):*/\1/;
8418 s/:*$//;
8419 s/^[^=]*=[ ]*$//;
8423 DEFS=-DHAVE_CONFIG_H
8425 ac_libobjs=
8426 ac_ltlibobjs=
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$//'`
8431 # 2. Add them.
8432 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8433 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8434 done
8435 LIBOBJS=$ac_libobjs
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
8454 #! $SHELL
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.
8460 debug=false
8461 ac_cs_recheck=false
8462 ac_cs_silent=false
8463 SHELL=\${CONFIG_SHELL-$SHELL}
8464 _ACEOF
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
8473 emulate sh
8474 NULLCMD=:
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
8479 set -o posix
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
8485 as_unset=unset
8486 else
8487 as_unset=false
8491 # Work around bugs in pre-3.0 UWIN ksh.
8492 $as_unset ENV MAIL MAILPATH
8493 PS1='$ '
8494 PS2='> '
8495 PS4='+ '
8497 # NLS nuisances.
8498 for as_var in \
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
8505 else
8506 $as_unset $as_var
8508 done
8510 # Required to use basename.
8511 if expr a : '\(a\)' >/dev/null 2>&1; then
8512 as_expr=expr
8513 else
8514 as_expr=false
8517 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8518 as_basename=basename
8519 else
8520 as_basename=false
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 ||
8530 echo X/"$0" |
8531 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8532 /^X\/\(\/\/\)$/{ s//\1/; q; }
8533 /^X\/\(\/\).*/{ s//\1/; q; }
8534 s/.*/./; 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
8549 chmod +x conf$$.sh
8550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8551 PATH_SEPARATOR=';'
8552 else
8553 PATH_SEPARATOR=:
8555 rm -f conf$$.sh
8559 as_lineno_1=$LINENO
8560 as_lineno_2=$LINENO
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
8565 # relative or not.
8566 case $0 in
8567 *[\\/]* ) as_myself=$0 ;;
8568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8574 done
8577 esac
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
8581 as_myself=$0
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
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for as_base in sh bash ksh sh5; do
8596 case $as_dir in
8598 if ("$as_dir/$as_base" -c '
8599 as_lineno_1=$LINENO
8600 as_lineno_2=$LINENO
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
8607 export CONFIG_SHELL
8608 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8609 fi;;
8610 esac
8611 done
8612 done
8614 esac
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 |
8625 sed '
8627 s,$,-,
8628 : loop
8629 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8630 t loop
8631 s,-$,,
8632 s,^['$as_cr_digits']*\n,,
8633 ' >$as_me.lineno &&
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).
8642 . ./$as_me.lineno
8643 # Exit status is that of the last command.
8644 exit
8648 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8649 *c*,-n*) ECHO_N= ECHO_C='
8650 ' ECHO_T=' ' ;;
8651 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8652 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8653 esac
8655 if expr a : '\(a\)' >/dev/null 2>&1; then
8656 as_expr=expr
8657 else
8658 as_expr=false
8661 rm -f conf$$ conf$$.exe conf$$.file
8662 echo >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
8668 as_ln_s='cp -p'
8669 else
8670 as_ln_s='ln -s'
8672 elif ln conf$$.file conf$$ 2>/dev/null; then
8673 as_ln_s=ln
8674 else
8675 as_ln_s='cp -p'
8677 rm -f conf$$ conf$$.exe conf$$.file
8679 if mkdir -p . 2>/dev/null; then
8680 as_mkdir_p=:
8681 else
8682 test -d ./-p && rmdir ./-p
8683 as_mkdir_p=false
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'"
8695 # IFS
8696 # We need space, tab and new line, in precisely that order.
8697 as_nl='
8699 IFS=" $as_nl"
8701 # CDPATH.
8702 $as_unset CDPATH
8704 exec 6>&1
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.
8709 exec 5>>config.log
8711 echo
8712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8713 ## Running $as_me. ##
8714 _ASBOX
8715 } >&5
8716 cat >&5 <<_CSEOF
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
8725 $ $0 $@
8727 _CSEOF
8728 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8729 echo >&5
8730 _ACEOF
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
8751 ac_cs_usage="\
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:
8768 $config_files
8770 Configuration headers:
8771 $config_headers
8773 Configuration commands:
8774 $config_commands
8776 Report bugs to <bug-autoconf@gnu.org>."
8777 _ACEOF
8779 cat >>$CONFIG_STATUS <<_ACEOF
8780 ac_cs_version="\\
8781 config.status
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."
8788 srcdir=$srcdir
8789 INSTALL="$INSTALL"
8790 _ACEOF
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.
8795 ac_need_defaults=:
8796 while test $# != 0
8798 case $1 in
8799 --*=*)
8800 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8801 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8802 ac_shift=:
8805 ac_option=$1
8806 ac_optarg=$2
8807 ac_shift=shift
8809 *) # This is not an option, so the user has probably given explicit
8810 # arguments.
8811 ac_option=$1
8812 ac_need_defaults=false;;
8813 esac
8815 case $ac_option in
8816 # Handling of the options.
8817 _ACEOF
8818 cat >>$CONFIG_STATUS <<\_ACEOF
8819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8820 ac_cs_recheck=: ;;
8821 --version | --vers* | -V )
8822 echo "$ac_cs_version"; exit 0 ;;
8823 --he | --h)
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 )
8833 debug=: ;;
8834 --file | --fil | --fi | --f )
8835 $ac_shift
8836 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8837 ac_need_defaults=false;;
8838 --header | --heade | --head | --hea )
8839 $ac_shift
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)
8844 ac_cs_silent=: ;;
8846 # This is an error.
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" ;;
8855 esac
8856 shift
8857 done
8859 ac_configure_extra_args=
8861 if $ac_cs_silent; then
8862 exec 6>/dev/null
8863 ac_configure_extra_args="$ac_configure_extra_args --silent"
8866 _ACEOF
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
8873 _ACEOF
8875 cat >>$CONFIG_STATUS <<_ACEOF
8877 # INIT-COMMANDS section.
8880 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8882 _ACEOF
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; }; };;
8906 esac
8907 done
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.
8923 $debug ||
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"
8934 } ||
8936 tmp=./confstat$$-$RANDOM
8937 (umask 077 && mkdir $tmp)
8938 } ||
8940 echo "$me: cannot create a temporary directory in ." >&2
8941 { (exit 1); exit 1; }
8944 _ACEOF
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
8983 s,@DEFS@,$DEFS,;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
8987 s,@LIBS@,$LIBS,;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
9003 s,@AWK@,$AWK,;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
9009 s,@host@,$host,;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
9013 s,@CC@,$CC,;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
9027 s,@CPP@,$CPP,;t t
9028 s,@AR@,$AR,;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
9044 s,@BGPD@,$BGPD,;t t
9045 s,@RIPD@,$RIPD,;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
9055 CEOF
9057 _ACEOF
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.
9062 ac_max_sed_lines=48
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.
9066 ac_more_lines=:
9067 ac_sed_cmds=
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
9071 else
9072 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9074 if test ! -s $tmp/subs.frag; then
9075 ac_more_lines=false
9076 else
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.
9081 (echo ':t
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"
9085 else
9086 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9088 ac_sed_frag=`expr $ac_sed_frag + 1`
9089 ac_beg=$ac_end
9090 ac_end=`expr $ac_end + $ac_max_sed_lines`
9092 done
9093 if test -z "$ac_sed_cmds"; then
9094 ac_sed_cmds=cat
9096 fi # test -n "$CONFIG_FILES"
9098 _ACEOF
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".
9102 case $ac_file in
9103 - | *:- | *:-:* ) # input from stdin
9104 cat >$tmp/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 ;;
9110 esac
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 ||
9119 echo X"$ac_file" |
9120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9122 /^X\(\/\/\)$/{ s//\1/; q; }
9123 /^X\(\/\).*/{ s//\1/; q; }
9124 s/.*/./; q'`
9125 { if $as_mkdir_p; then
9126 mkdir -p "$ac_dir"
9127 else
9128 as_dir="$ac_dir"
9129 as_dirs=
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 ||
9138 echo X"$as_dir" |
9139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9141 /^X\(\/\/\)$/{ s//\1/; q; }
9142 /^X\(\/\).*/{ s//\1/; q; }
9143 s/.*/./; q'`
9144 done
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; }; }; }
9150 ac_builddir=.
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'`
9156 else
9157 ac_dir_suffix= ac_top_builddir=
9160 case $srcdir in
9161 .) # No --srcdir option. We are building in place.
9162 ac_srcdir=.
9163 if test -z "$ac_top_builddir"; then
9164 ac_top_srcdir=.
9165 else
9166 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9167 fi ;;
9168 [\\/]* | ?:[\\/]* ) # Absolute path.
9169 ac_srcdir=$srcdir$ac_dir_suffix;
9170 ac_top_srcdir=$srcdir ;;
9171 *) # Relative path.
9172 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9173 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9174 esac
9176 # Do not use `cd foo && pwd` to compute absolute paths, because
9177 # the directories may not exist.
9178 case `pwd` in
9179 .) ac_abs_builddir="$ac_dir";;
9181 case "$ac_dir" in
9182 .) ac_abs_builddir=`pwd`;;
9183 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9184 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9185 esac;;
9186 esac
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}.;;
9194 esac;;
9195 esac
9196 case $ac_abs_builddir in
9197 .) ac_abs_srcdir=$ac_srcdir;;
9199 case $ac_srcdir in
9200 .) ac_abs_srcdir=$ac_abs_builddir;;
9201 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9202 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9203 esac;;
9204 esac
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;;
9212 esac;;
9213 esac
9216 case $INSTALL in
9217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9218 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9219 esac
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;}
9224 rm -f "$ac_file"
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
9230 configure_input=
9231 else
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
9238 # src tree.
9239 ac_file_inputs=`IFS=:
9240 for f in $ac_file_in; do
9241 case $f in
9242 -) echo $tmp/stdin ;;
9243 [\\/$]*)
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; }; }
9248 echo "$f";;
9249 *) # Relative
9250 if test -f "$f"; then
9251 # Build tree
9252 echo "$f"
9253 elif test -f "$srcdir/$f"; then
9254 # Source tree
9255 echo "$srcdir/$f"
9256 else
9257 # /dev/null tree
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; }; }
9261 fi;;
9262 esac
9263 done` || { (exit 1); exit 1; }
9264 _ACEOF
9265 cat >>$CONFIG_STATUS <<_ACEOF
9266 sed "$ac_vpsub
9267 $extrasub
9268 _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
9283 rm -f $tmp/stdin
9284 if test x"$ac_file" != x-; then
9285 mv $tmp/out $ac_file
9286 else
9287 cat $tmp/out
9288 rm -f $tmp/out
9291 done
9292 _ACEOF
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'
9305 ac_dC=' '
9306 ac_dD=',;t'
9307 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9308 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9309 ac_uB='$,\1#\2define\3'
9310 ac_uC=' '
9311 ac_uD=',;t'
9313 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9315 case $ac_file in
9316 - | *:- | *:-:* ) # input from stdin
9317 cat >$tmp/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 ;;
9323 esac
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
9329 # src tree.
9330 ac_file_inputs=`IFS=:
9331 for f in $ac_file_in; do
9332 case $f in
9333 -) echo $tmp/stdin ;;
9334 [\\/$]*)
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.
9340 echo "$f";;
9341 *) # Relative
9342 if test -f "$f"; then
9343 # Build tree
9344 echo "$f"
9345 elif test -f "$srcdir/$f"; then
9346 # Source tree
9347 echo "$srcdir/$f"
9348 else
9349 # /dev/null tree
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; }; }
9353 fi;;
9354 esac
9355 done` || { (exit 1); exit 1; }
9356 # Remove the trailing spaces.
9357 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9359 _ACEOF
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
9367 # in config.status.
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
9376 s/[\\&,]/\\&/g
9377 s,[\\$`],\\&,g
9378 t clear
9379 : clear
9380 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9381 t end
9382 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9383 : end
9384 _ACEOF
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]*,/* & */,
9397 _ACEOF
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
9405 rm -f conftest.tail
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
9416 echo 'CEOF
9417 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9418 rm -f $tmp/in
9419 mv $tmp/out $tmp/in
9420 ' >>$CONFIG_STATUS
9421 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9422 rm -f conftest.defines
9423 mv conftest.tail conftest.defines
9424 done
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
9432 rm -f conftest.tail
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
9443 echo 'CEOF
9444 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9445 rm -f $tmp/in
9446 mv $tmp/out $tmp/in
9447 ' >>$CONFIG_STATUS
9448 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9449 rm -f conftest.undefs
9450 mv conftest.tail conftest.undefs
9451 done
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
9460 else
9461 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9463 cat $tmp/in >>$tmp/config.h
9464 rm -f $tmp/in
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;}
9469 else
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 ||
9476 echo X"$ac_file" |
9477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9479 /^X\(\/\/\)$/{ s//\1/; q; }
9480 /^X\(\/\).*/{ s//\1/; q; }
9481 s/.*/./; q'`
9482 { if $as_mkdir_p; then
9483 mkdir -p "$ac_dir"
9484 else
9485 as_dir="$ac_dir"
9486 as_dirs=
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 ||
9495 echo X"$as_dir" |
9496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9498 /^X\(\/\/\)$/{ s//\1/; q; }
9499 /^X\(\/\).*/{ s//\1/; q; }
9500 s/.*/./; q'`
9501 done
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; }; }; }
9507 rm -f $ac_file
9508 mv $tmp/config.h $ac_file
9510 else
9511 cat $tmp/config.h
9512 rm -f $tmp/config.h
9514 # Run the commands associated with the file.
9515 case $ac_file in
9516 config.h ) # update the timestamp
9517 echo 'timestamp for config.h' >"./stamp-h1"
9519 esac
9520 done
9521 _ACEOF
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 ||
9536 echo X"$ac_dest" |
9537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9539 /^X\(\/\/\)$/{ s//\1/; q; }
9540 /^X\(\/\).*/{ s//\1/; q; }
9541 s/.*/./; q'`
9542 { if $as_mkdir_p; then
9543 mkdir -p "$ac_dir"
9544 else
9545 as_dir="$ac_dir"
9546 as_dirs=
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 ||
9555 echo X"$as_dir" |
9556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9558 /^X\(\/\/\)$/{ s//\1/; q; }
9559 /^X\(\/\).*/{ s//\1/; q; }
9560 s/.*/./; q'`
9561 done
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; }; }; }
9567 ac_builddir=.
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'`
9573 else
9574 ac_dir_suffix= ac_top_builddir=
9577 case $srcdir in
9578 .) # No --srcdir option. We are building in place.
9579 ac_srcdir=.
9580 if test -z "$ac_top_builddir"; then
9581 ac_top_srcdir=.
9582 else
9583 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9584 fi ;;
9585 [\\/]* | ?:[\\/]* ) # Absolute path.
9586 ac_srcdir=$srcdir$ac_dir_suffix;
9587 ac_top_srcdir=$srcdir ;;
9588 *) # Relative path.
9589 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9590 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9591 esac
9593 # Do not use `cd foo && pwd` to compute absolute paths, because
9594 # the directories may not exist.
9595 case `pwd` in
9596 .) ac_abs_builddir="$ac_dir";;
9598 case "$ac_dir" in
9599 .) ac_abs_builddir=`pwd`;;
9600 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9601 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9602 esac;;
9603 esac
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}.;;
9611 esac;;
9612 esac
9613 case $ac_abs_builddir in
9614 .) ac_abs_srcdir=$ac_srcdir;;
9616 case $ac_srcdir in
9617 .) ac_abs_srcdir=$ac_abs_builddir;;
9618 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9619 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9620 esac;;
9621 esac
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;;
9629 esac;;
9630 esac
9633 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9634 echo "$as_me: executing $ac_dest commands" >&6;}
9635 case $ac_dest in
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 ||
9652 echo X"$mf" |
9653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9655 /^X\(\/\/\)$/{ s//\1/; q; }
9656 /^X\(\/\).*/{ s//\1/; q; }
9657 s/.*/./; q'`
9658 else
9659 continue
9661 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9662 # Extract the definition of DEP_FILES from the Makefile without
9663 # running `make'.
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 = .*\\\\$/ {
9673 s/^DEP_FILES = //
9674 :loop
9675 s/\\\\$//
9678 /\\\\$/ b loop
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 ||
9691 echo X"$file" |
9692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9694 /^X\(\/\/\)$/{ s//\1/; q; }
9695 /^X\(\/\).*/{ s//\1/; q; }
9696 s/.*/./; q'`
9697 { if $as_mkdir_p; then
9698 mkdir -p $dirpart/$fdir
9699 else
9700 as_dir=$dirpart/$fdir
9701 as_dirs=
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 ||
9710 echo X"$as_dir" |
9711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9713 /^X\(\/\/\)$/{ s//\1/; q; }
9714 /^X\(\/\).*/{ s//\1/; q; }
9715 s/.*/./; q'`
9716 done
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"
9724 done
9725 done
9727 esac
9728 done
9729 _ACEOF
9731 cat >>$CONFIG_STATUS <<\_ACEOF
9733 { (exit 0); exit 0; }
9734 _ACEOF
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
9748 ac_cs_success=:
9749 ac_config_status_args=
9750 test "$silent" = yes &&
9751 ac_config_status_args="$ac_config_status_args --quiet"
9752 exec 5>/dev/null
9753 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9754 exec 5>>config.log
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; }
9761 echo "
9762 zebra configuration
9763 -------------------
9764 zebra version : ${VERSION}
9765 host operationg system : ${host_os}
9766 source code location : ${srcdir}
9767 compiler : ${CC}
9768 compiler flags : ${CFLAGS}
9769 link libraries : ${LIBS}
9770 directory for pid files : ${ac_piddir}