]> git.proxmox.com Git - mirror_frr.git/blame - configure
Initial revision
[mirror_frr.git] / configure
CommitLineData
718e3744 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.54.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40do
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
45 fi
46done
47
48# Required to use basename.
49if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51else
52 as_expr=false
53fi
54
55if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57else
58 as_basename=false
59fi
60
61
62# Name of the executable.
63as_me=`$as_basename "$0" ||
64$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
73
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149done
150;;
151 esac
152
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
163 N
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
174
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
181}
182
183
184case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189esac
190
191if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193else
194 as_expr=false
195fi
196
197rm -f conf$$ conf$$.exe conf$$.file
198echo >conf$$.file
199if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
207 fi
208elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210else
211 as_ln_s='cp -p'
212fi
213rm -f conf$$ conf$$.exe conf$$.file
214
215if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217else
218 as_mkdir_p=false
219fi
220
221as_executable_p="test -f"
222
223# Sed expression to map a string onto a valid CPP name.
224as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226# Sed expression to map a string onto a valid variable name.
227as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230# IFS
231# We need space, tab and new line, in precisely that order.
232as_nl='
233'
234IFS=" $as_nl"
235
236# CDPATH.
237$as_unset CDPATH
238
239
240# Name of the host.
241# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242# so uname gets run too.
243ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245exec 6>&1
246
247#
248# Initializations.
249#
250ac_default_prefix=/usr/local
251ac_config_libobj_dir=.
252cross_compiling=no
253subdirs=
254MFLAGS=
255MAKEFLAGS=
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258# Maximum number of lines to put in a shell here document.
259# This variable seems obsolete. It should probably be removed, and
260# only ac_max_sed_lines should be used.
261: ${ac_max_here_lines=38}
262
263# Identity of this package.
264PACKAGE_NAME=
265PACKAGE_TARNAME=
266PACKAGE_VERSION=
267PACKAGE_STRING=
268PACKAGE_BUGREPORT=
269
270ac_unique_file="lib/zebra.h"
271# Factoring default headers for most tests.
272ac_includes_default="\
273#include <stdio.h>
274#if HAVE_SYS_TYPES_H
275# include <sys/types.h>
276#endif
277#if HAVE_SYS_STAT_H
278# include <sys/stat.h>
279#endif
280#if STDC_HEADERS
281# include <stdlib.h>
282# include <stddef.h>
283#else
284# if HAVE_STDLIB_H
285# include <stdlib.h>
286# endif
287#endif
288#if HAVE_STRING_H
289# if !STDC_HEADERS && HAVE_MEMORY_H
290# include <memory.h>
291# endif
292# include <string.h>
293#endif
294#if HAVE_STRINGS_H
295# include <strings.h>
296#endif
297#if HAVE_INTTYPES_H
298# include <inttypes.h>
299#else
300# if HAVE_STDINT_H
301# include <stdint.h>
302# endif
303#endif
304#if HAVE_UNISTD_H
305# include <unistd.h>
306#endif"
307
308ac_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 CYGPATH_W 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 am__fastdepCC_TRUE am__fastdepCC_FALSE 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'
309ac_subst_files=''
310
311# Initialize some variables set by options.
312ac_init_help=
313ac_init_version=false
314# The variables have the same names as the options, with
315# dashes changed to underlines.
316cache_file=/dev/null
317exec_prefix=NONE
318no_create=
319no_recursion=
320prefix=NONE
321program_prefix=NONE
322program_suffix=NONE
323program_transform_name=s,x,x,
324silent=
325site=
326srcdir=
327verbose=
328x_includes=NONE
329x_libraries=NONE
330
331# Installation directory options.
332# These are left unexpanded so users can "make install exec_prefix=/foo"
333# and all the variables that are supposed to be based on exec_prefix
334# by default will actually change.
335# Use braces instead of parens because sh, perl, etc. also accept them.
336bindir='${exec_prefix}/bin'
337sbindir='${exec_prefix}/sbin'
338libexecdir='${exec_prefix}/libexec'
339datadir='${prefix}/share'
340sysconfdir='${prefix}/etc'
341sharedstatedir='${prefix}/com'
342localstatedir='${prefix}/var'
343libdir='${exec_prefix}/lib'
344includedir='${prefix}/include'
345oldincludedir='/usr/include'
346infodir='${prefix}/info'
347mandir='${prefix}/man'
348
349ac_prev=
350for ac_option
351do
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
355 ac_prev=
356 continue
357 fi
358
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
360
361 # Accept the important Cygnus configure options, so we can diagnose typos.
362
363 case $ac_option in
364
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368 bindir=$ac_optarg ;;
369
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
374
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
381
382 --config-cache | -C)
383 cache_file=config.cache ;;
384
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386 ac_prev=datadir ;;
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388 | --da=*)
389 datadir=$ac_optarg ;;
390
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
399
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 case $ac_option in
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "enable_$ac_feature='$ac_optarg'" ;;
412
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
421
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
424 with_gas=yes ;;
425
426 -help | --help | --hel | --he | -h)
427 ac_init_help=long ;;
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
432
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
437
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
444
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
446 ac_prev=infodir ;;
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
449
450 -libdir | --libdir | --libdi | --libd)
451 ac_prev=libdir ;;
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
453 libdir=$ac_optarg ;;
454
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
461
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
470
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472 ac_prev=mandir ;;
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474 mandir=$ac_optarg ;;
475
476 -nfp | --nfp | --nf)
477 # Obsolete; use --without-fp.
478 with_fp=no ;;
479
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
482 no_create=yes ;;
483
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486 no_recursion=yes ;;
487
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
496
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498 ac_prev=prefix ;;
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500 prefix=$ac_optarg ;;
501
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
508
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
515
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
532
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
535 silent=yes ;;
536
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538 ac_prev=sbindir ;;
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540 | --sbi=* | --sb=*)
541 sbindir=$ac_optarg ;;
542
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
546 | --sha | --sh)
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551 | --sha=* | --sh=*)
552 sharedstatedir=$ac_optarg ;;
553
554 -site | --site | --sit)
555 ac_prev=site ;;
556 -site=* | --site=* | --sit=*)
557 site=$ac_optarg ;;
558
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560 ac_prev=srcdir ;;
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562 srcdir=$ac_optarg ;;
563
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
570
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
575
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
577 verbose=yes ;;
578
579 -version | --version | --versio | --versi | --vers | -V)
580 ac_init_version=: ;;
581
582 -with-* | --with-*)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
589 case $ac_option in
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591 *) ac_optarg=yes ;;
592 esac
593 eval "with_$ac_package='$ac_optarg'" ;;
594
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
603
604 --x)
605 # Obsolete; use --with-x.
606 with_x=yes ;;
607
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
614
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
621
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
625 ;;
626
627 *=*)
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
635 export $ac_envvar ;;
636
637 *)
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
643 ;;
644
645 esac
646done
647
648if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
652fi
653
654# Be sure to have absolute paths.
655for ac_var in exec_prefix prefix
656do
657 eval ac_val=$`echo $ac_var`
658 case $ac_val in
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
662 esac
663done
664
665# Be sure to have absolute paths.
666for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
668do
669 eval ac_val=$`echo $ac_var`
670 case $ac_val in
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
674 esac
675done
676
677# There might be people who depend on the old broken behavior: `$host'
678# used to hold the argument of --host etc.
679# FIXME: To remove some day.
680build=$build_alias
681host=$host_alias
682target=$target_alias
683
684# FIXME: To remove some day.
685if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
691 cross_compiling=yes
692 fi
693fi
694
695ac_tool_prefix=
696test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698test "$silent" = yes && exec 6>/dev/null
699
700
701# Find the source files, if location was not specified.
702if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
711echo X"$0" |
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
716 s/.*/./; q'`
717 srcdir=$ac_confdir
718 if test ! -r $srcdir/$ac_unique_file; then
719 srcdir=..
720 fi
721else
722 ac_srcdir_defaulted=no
723fi
724if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
728 else
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
731 fi
732fi
733(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737ac_env_build_alias_set=${build_alias+set}
738ac_env_build_alias_value=$build_alias
739ac_cv_env_build_alias_set=${build_alias+set}
740ac_cv_env_build_alias_value=$build_alias
741ac_env_host_alias_set=${host_alias+set}
742ac_env_host_alias_value=$host_alias
743ac_cv_env_host_alias_set=${host_alias+set}
744ac_cv_env_host_alias_value=$host_alias
745ac_env_target_alias_set=${target_alias+set}
746ac_env_target_alias_value=$target_alias
747ac_cv_env_target_alias_set=${target_alias+set}
748ac_cv_env_target_alias_value=$target_alias
749ac_env_CC_set=${CC+set}
750ac_env_CC_value=$CC
751ac_cv_env_CC_set=${CC+set}
752ac_cv_env_CC_value=$CC
753ac_env_CFLAGS_set=${CFLAGS+set}
754ac_env_CFLAGS_value=$CFLAGS
755ac_cv_env_CFLAGS_set=${CFLAGS+set}
756ac_cv_env_CFLAGS_value=$CFLAGS
757ac_env_LDFLAGS_set=${LDFLAGS+set}
758ac_env_LDFLAGS_value=$LDFLAGS
759ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760ac_cv_env_LDFLAGS_value=$LDFLAGS
761ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762ac_env_CPPFLAGS_value=$CPPFLAGS
763ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765ac_env_CPP_set=${CPP+set}
766ac_env_CPP_value=$CPP
767ac_cv_env_CPP_set=${CPP+set}
768ac_cv_env_CPP_value=$CPP
769
770#
771# Report the --help message.
772#
773if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
776 cat <<_ACEOF
777\`configure' configures this package to adapt to many kinds of systems.
778
779Usage: $0 [OPTION]... [VAR=VALUE]...
780
781To assign environment variables (e.g., CC, CFLAGS...), specify them as
782VAR=VALUE. See below for descriptions of some of the useful variables.
783
784Defaults for the options are specified in brackets.
785
786Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
796
797_ACEOF
798
799 cat <<_ACEOF
800Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
805
806By default, \`make install' will install all the files in
807\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809for instance \`--prefix=\$HOME'.
810
811For better control, use the options below.
812
813Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
826_ACEOF
827
828 cat <<\_ACEOF
829
830Program names:
831 --program-prefix=PREFIX prepend PREFIX to installed program names
832 --program-suffix=SUFFIX append SUFFIX to installed program names
833 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
834
835System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --disable-dependency-tracking Speeds up one-time builds
849 --enable-dependency-tracking Do not reject slow dependency extractors
850 --enable-vtysh, Make integrated VTY version of zebra
851 --disable-ipv6 turn off IPv6 related features and daemons
852 --disable-zebra do not build zebra daemon
853 --disable-bgpd do not build bgpd
854 --disable-ripd do not build ripd
855 --disable-ripngd do not build ripngd
856 --disable-ospfd do not build ospfd
857 --disable-ospf6d do not build ospf6d
858 --disable-bgp-announce, turn off BGP route announcement
859 --enable-netlink force to use Linux netlink interface
860 --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
861 --enable-snmp enable SNMP support
862 --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon
863 --enable-nssa enable OSPF NSSA option
864 --enable-opaque-lsa enable OSPF Opaque-LSA support (RFC2370)
865 --enable-ospf-te enable Traffic Engineering Extension to OSPF
866 --enable-multipath=ARG enable multipath function, ARG must be digit
867
868Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-cflags Set CFLAGS for use in compilation.
872 --with-libpam use libpam for PAM support in vtysh
873
874Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
882
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886_ACEOF
887fi
888
889if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901 ac_dir_suffix= ac_top_builddir=
902fi
903
904case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918esac
919# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
920# absolute.
921ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
922ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
923ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
924ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
925
926 cd $ac_dir
927 # Check for guested configure; otherwise get Cygnus style configure.
928 if test -f $ac_srcdir/configure.gnu; then
929 echo
930 $SHELL $ac_srcdir/configure.gnu --help=recursive
931 elif test -f $ac_srcdir/configure; then
932 echo
933 $SHELL $ac_srcdir/configure --help=recursive
934 elif test -f $ac_srcdir/configure.ac ||
935 test -f $ac_srcdir/configure.in; then
936 echo
937 $ac_configure --help
938 else
939 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940 fi
941 cd $ac_popdir
942 done
943fi
944
945test -n "$ac_init_help" && exit 0
946if $ac_init_version; then
947 cat <<\_ACEOF
948
949Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
950Free Software Foundation, Inc.
951This configure script is free software; the Free Software Foundation
952gives unlimited permission to copy, distribute and modify it.
953_ACEOF
954 exit 0
955fi
956exec 5>config.log
957cat >&5 <<_ACEOF
958This file contains any messages produced by compilers while
959running configure, to aid debugging if configure makes a mistake.
960
961It was created by $as_me, which was
962generated by GNU Autoconf 2.54. Invocation command line was
963
964 $ $0 $@
965
966_ACEOF
967{
968cat <<_ASUNAME
969## --------- ##
970## Platform. ##
971## --------- ##
972
973hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
974uname -m = `(uname -m) 2>/dev/null || echo unknown`
975uname -r = `(uname -r) 2>/dev/null || echo unknown`
976uname -s = `(uname -s) 2>/dev/null || echo unknown`
977uname -v = `(uname -v) 2>/dev/null || echo unknown`
978
979/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
980/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
981
982/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
983/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
984/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
985hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
986/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
987/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
988/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
989
990_ASUNAME
991
992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
993for as_dir in $PATH
994do
995 IFS=$as_save_IFS
996 test -z "$as_dir" && as_dir=.
997 echo "PATH: $as_dir"
998done
999
1000} >&5
1001
1002cat >&5 <<_ACEOF
1003
1004
1005## ----------- ##
1006## Core tests. ##
1007## ----------- ##
1008
1009_ACEOF
1010
1011
1012# Keep a trace of the command line.
1013# Strip out --no-create and --no-recursion so they do not pile up.
1014# Also quote any args containing shell meta-characters.
1015ac_configure_args=
1016ac_sep=
1017for ac_arg
1018do
1019 case $ac_arg in
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n ) continue ;;
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 continue ;;
1025 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1026 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1027 esac
1028 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1029 # Get rid of the leading space.
1030 ac_sep=" "
1031done
1032
1033# When interrupted or exit'd, cleanup temporary files, and complete
1034# config.log. We remove comments because anyway the quotes in there
1035# would cause problems or look ugly.
1036# WARNING: Be sure not to use single quotes in there, as some shells,
1037# such as our DU 5.0 friend, will then `close' the trap.
1038trap 'exit_status=$?
1039 # Save into config.log some information that might help in debugging.
1040 {
1041 echo
1042
1043 cat <<\_ASBOX
1044## ---------------- ##
1045## Cache variables. ##
1046## ---------------- ##
1047_ASBOX
1048 echo
1049 # The following way of writing the cache mishandles newlines in values,
1050{
1051 (set) 2>&1 |
1052 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1053 *ac_space=\ *)
1054 sed -n \
1055 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1057 ;;
1058 *)
1059 sed -n \
1060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1061 ;;
1062 esac;
1063}
1064 echo
1065
1066 cat <<\_ASBOX
1067## ----------------- ##
1068## Output variables. ##
1069## ----------------- ##
1070_ASBOX
1071 echo
1072 for ac_var in $ac_subst_vars
1073 do
1074 eval ac_val=$`echo $ac_var`
1075 echo "$ac_var='"'"'$ac_val'"'"'"
1076 done | sort
1077 echo
1078
1079 if test -n "$ac_subst_files"; then
1080 cat <<\_ASBOX
1081## ------------- ##
1082## Output files. ##
1083## ------------- ##
1084_ASBOX
1085 echo
1086 for ac_var in $ac_subst_files
1087 do
1088 eval ac_val=$`echo $ac_var`
1089 echo "$ac_var='"'"'$ac_val'"'"'"
1090 done | sort
1091 echo
1092 fi
1093
1094 if test -s confdefs.h; then
1095 cat <<\_ASBOX
1096## ----------- ##
1097## confdefs.h. ##
1098## ----------- ##
1099_ASBOX
1100 echo
1101 sed "/^$/d" confdefs.h | sort
1102 echo
1103 fi
1104 test "$ac_signal" != 0 &&
1105 echo "$as_me: caught signal $ac_signal"
1106 echo "$as_me: exit $exit_status"
1107 } >&5
1108 rm -f core core.* *.core &&
1109 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1110 exit $exit_status
1111 ' 0
1112for ac_signal in 1 2 13 15; do
1113 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114done
1115ac_signal=0
1116
1117# confdefs.h avoids OS command line length limits that DEFS can exceed.
1118rm -rf conftest* confdefs.h
1119# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120echo >confdefs.h
1121
1122# Predefined preprocessor variables.
1123
1124cat >>confdefs.h <<_ACEOF
1125#define PACKAGE_NAME "$PACKAGE_NAME"
1126_ACEOF
1127
1128
1129cat >>confdefs.h <<_ACEOF
1130#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131_ACEOF
1132
1133
1134cat >>confdefs.h <<_ACEOF
1135#define PACKAGE_VERSION "$PACKAGE_VERSION"
1136_ACEOF
1137
1138
1139cat >>confdefs.h <<_ACEOF
1140#define PACKAGE_STRING "$PACKAGE_STRING"
1141_ACEOF
1142
1143
1144cat >>confdefs.h <<_ACEOF
1145#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146_ACEOF
1147
1148
1149# Let the site file select an alternate cache file if it wants to.
1150# Prefer explicitly selected file to automatically selected ones.
1151if test -z "$CONFIG_SITE"; then
1152 if test "x$prefix" != xNONE; then
1153 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1154 else
1155 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156 fi
1157fi
1158for ac_site_file in $CONFIG_SITE; do
1159 if test -r "$ac_site_file"; then
1160 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161echo "$as_me: loading site script $ac_site_file" >&6;}
1162 sed 's/^/| /' "$ac_site_file" >&5
1163 . "$ac_site_file"
1164 fi
1165done
1166
1167if test -r "$cache_file"; then
1168 # Some versions of bash will fail to source /dev/null (special
1169 # files actually), so we avoid doing that.
1170 if test -f "$cache_file"; then
1171 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172echo "$as_me: loading cache $cache_file" >&6;}
1173 case $cache_file in
1174 [\\/]* | ?:[\\/]* ) . $cache_file;;
1175 *) . ./$cache_file;;
1176 esac
1177 fi
1178else
1179 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180echo "$as_me: creating cache $cache_file" >&6;}
1181 >$cache_file
1182fi
1183
1184# Check that the precious variables saved in the cache have kept the same
1185# value.
1186ac_cache_corrupted=false
1187for ac_var in `(set) 2>&1 |
1188 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190 eval ac_new_set=\$ac_env_${ac_var}_set
1191 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192 eval ac_new_val="\$ac_env_${ac_var}_value"
1193 case $ac_old_set,$ac_new_set in
1194 set,)
1195 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197 ac_cache_corrupted=: ;;
1198 ,set)
1199 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201 ac_cache_corrupted=: ;;
1202 ,);;
1203 *)
1204 if test "x$ac_old_val" != "x$ac_new_val"; then
1205 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208echo "$as_me: former value: $ac_old_val" >&2;}
1209 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210echo "$as_me: current value: $ac_new_val" >&2;}
1211 ac_cache_corrupted=:
1212 fi;;
1213 esac
1214 # Pass precious variables to config.status.
1215 if test "$ac_new_set" = set; then
1216 case $ac_new_val in
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 *) ac_arg=$ac_var=$ac_new_val ;;
1220 esac
1221 case " $ac_configure_args " in
1222 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1223 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224 esac
1225 fi
1226done
1227if $ac_cache_corrupted; then
1228 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232 { (exit 1); exit 1; }; }
1233fi
1234
1235ac_ext=c
1236ac_cpp='$CPP $CPPFLAGS'
1237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259am__api_version="1.7"
1260ac_aux_dir=
1261for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1262 if test -f $ac_dir/install-sh; then
1263 ac_aux_dir=$ac_dir
1264 ac_install_sh="$ac_aux_dir/install-sh -c"
1265 break
1266 elif test -f $ac_dir/install.sh; then
1267 ac_aux_dir=$ac_dir
1268 ac_install_sh="$ac_aux_dir/install.sh -c"
1269 break
1270 elif test -f $ac_dir/shtool; then
1271 ac_aux_dir=$ac_dir
1272 ac_install_sh="$ac_aux_dir/shtool install -c"
1273 break
1274 fi
1275done
1276if test -z "$ac_aux_dir"; then
1277 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1278echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1279 { (exit 1); exit 1; }; }
1280fi
1281ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1282ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1283ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1284
1285# Find a good install program. We prefer a C program (faster),
1286# so one script is as good as another. But avoid the broken or
1287# incompatible versions:
1288# SysV /etc/install, /usr/sbin/install
1289# SunOS /usr/etc/install
1290# IRIX /sbin/install
1291# AIX /bin/install
1292# AmigaOS /C/install, which installs bootblocks on floppy discs
1293# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1294# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1295# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1296# ./install, which can be erroneously created by make from ./install.sh.
1297echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1298echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1299if test -z "$INSTALL"; then
1300if test "${ac_cv_path_install+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1302else
1303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1304for as_dir in $PATH
1305do
1306 IFS=$as_save_IFS
1307 test -z "$as_dir" && as_dir=.
1308 # Account for people who put trailing slashes in PATH elements.
1309case $as_dir/ in
1310 ./ | .// | /cC/* | \
1311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1312 /usr/ucb/* ) ;;
1313 *)
1314 # OSF1 and SCO ODT 3.0 have their own names for install.
1315 # Don't use installbsd from OSF since it installs stuff as root
1316 # by default.
1317 for ac_prog in ginstall scoinst install; do
1318 for ac_exec_ext in '' $ac_executable_extensions; do
1319 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1320 if test $ac_prog = install &&
1321 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1322 # AIX install. It has an incompatible calling convention.
1323 :
1324 elif test $ac_prog = install &&
1325 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1326 # program-specific install script used by HP pwplus--don't use.
1327 :
1328 else
1329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1330 break 3
1331 fi
1332 fi
1333 done
1334 done
1335 ;;
1336esac
1337done
1338
1339
1340fi
1341 if test "${ac_cv_path_install+set}" = set; then
1342 INSTALL=$ac_cv_path_install
1343 else
1344 # As a last resort, use the slow shell script. We don't cache a
1345 # path for INSTALL within a source directory, because that will
1346 # break other packages using the cache if that directory is
1347 # removed, or if the path is relative.
1348 INSTALL=$ac_install_sh
1349 fi
1350fi
1351echo "$as_me:$LINENO: result: $INSTALL" >&5
1352echo "${ECHO_T}$INSTALL" >&6
1353
1354# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1355# It thinks the first close brace ends the variable substitution.
1356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1357
1358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1359
1360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1361
1362echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1363echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1364# Just in case
1365sleep 1
1366echo timestamp > conftest.file
1367# Do `set' in a subshell so we don't clobber the current shell's
1368# arguments. Must try -L first in case configure is actually a
1369# symlink; some systems play weird games with the mod time of symlinks
1370# (eg FreeBSD returns the mod time of the symlink's containing
1371# directory).
1372if (
1373 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1374 if test "$*" = "X"; then
1375 # -L didn't work.
1376 set X `ls -t $srcdir/configure conftest.file`
1377 fi
1378 rm -f conftest.file
1379 if test "$*" != "X $srcdir/configure conftest.file" \
1380 && test "$*" != "X conftest.file $srcdir/configure"; then
1381
1382 # If neither matched, then we have a broken ls. This can happen
1383 # if, for instance, CONFIG_SHELL is bash and it inherits a
1384 # broken ls alias from the environment. This has actually
1385 # happened. Such a system could not be considered "sane".
1386 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1387alias in your environment" >&5
1388echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1389alias in your environment" >&2;}
1390 { (exit 1); exit 1; }; }
1391 fi
1392
1393 test "$2" = conftest.file
1394 )
1395then
1396 # Ok.
1397 :
1398else
1399 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1400Check your system clock" >&5
1401echo "$as_me: error: newly created file is older than distributed files!
1402Check your system clock" >&2;}
1403 { (exit 1); exit 1; }; }
1404fi
1405echo "$as_me:$LINENO: result: yes" >&5
1406echo "${ECHO_T}yes" >&6
1407test "$program_prefix" != NONE &&
1408 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1409# Use a double $ so make ignores it.
1410test "$program_suffix" != NONE &&
1411 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1412# Double any \ or $. echo might interpret backslashes.
1413# By default was `s,x,x', remove it if useless.
1414cat <<\_ACEOF >conftest.sed
1415s/[\\$]/&&/g;s/;s,x,x,$//
1416_ACEOF
1417program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1418rm conftest.sed
1419
1420
1421# expand $ac_aux_dir to an absolute path
1422am_aux_dir=`cd $ac_aux_dir && pwd`
1423
1424test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1425# Use eval to expand $SHELL
1426if eval "$MISSING --run true"; then
1427 am_missing_run="$MISSING --run "
1428else
1429 am_missing_run=
1430 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1431echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1432fi
1433
1434for ac_prog in gawk mawk nawk awk
1435do
1436 # Extract the first word of "$ac_prog", so it can be a program name with args.
1437set dummy $ac_prog; ac_word=$2
1438echo "$as_me:$LINENO: checking for $ac_word" >&5
1439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440if test "${ac_cv_prog_AWK+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443 if test -n "$AWK"; then
1444 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1445else
1446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447for as_dir in $PATH
1448do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_AWK="$ac_prog"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457done
1458done
1459
1460fi
1461fi
1462AWK=$ac_cv_prog_AWK
1463if test -n "$AWK"; then
1464 echo "$as_me:$LINENO: result: $AWK" >&5
1465echo "${ECHO_T}$AWK" >&6
1466else
1467 echo "$as_me:$LINENO: result: no" >&5
1468echo "${ECHO_T}no" >&6
1469fi
1470
1471 test -n "$AWK" && break
1472done
1473
1474echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1475echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1476set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1477if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 cat >conftest.make <<\_ACEOF
1481all:
1482 @echo 'ac_maketemp="${MAKE}"'
1483_ACEOF
1484# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1485eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1486if test -n "$ac_maketemp"; then
1487 eval ac_cv_prog_make_${ac_make}_set=yes
1488else
1489 eval ac_cv_prog_make_${ac_make}_set=no
1490fi
1491rm -f conftest.make
1492fi
1493if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1494 echo "$as_me:$LINENO: result: yes" >&5
1495echo "${ECHO_T}yes" >&6
1496 SET_MAKE=
1497else
1498 echo "$as_me:$LINENO: result: no" >&5
1499echo "${ECHO_T}no" >&6
1500 SET_MAKE="MAKE=${MAKE-make}"
1501fi
1502
1503 # test to see if srcdir already configured
1504if test "`cd $srcdir && pwd`" != "`pwd`" &&
1505 test -f $srcdir/config.status; then
1506 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1507echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510
1511# test whether we have cygpath
1512if test -z "$CYGPATH_W"; then
1513 if (cygpath --version) >/dev/null 2>/dev/null; then
1514 CYGPATH_W='cygpath -w'
1515 else
1516 CYGPATH_W=echo
1517 fi
1518fi
1519
1520
1521# Define the identity of the package.
1522 PACKAGE=zebra
1523 VERSION=0.93
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE "$PACKAGE"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define VERSION "$VERSION"
1533_ACEOF
1534
1535# Some tools Automake needs.
1536
1537ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1538
1539
1540AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1541
1542
1543AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1544
1545
1546AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1547
1548
1549MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1550
1551
1552AMTAR=${AMTAR-"${am_missing_run}tar"}
1553
1554install_sh=${install_sh-"$am_aux_dir/install-sh"}
1555
1556# Installed binaries are usually stripped using `strip' when the user
1557# run `make install-strip'. However `strip' might not be the right
1558# tool to use in cross-compilation environments, therefore Automake
1559# will honor the `STRIP' environment variable to overrule this program.
1560if test "$cross_compiling" != no; then
1561 if test -n "$ac_tool_prefix"; then
1562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1563set dummy ${ac_tool_prefix}strip; ac_word=$2
1564echo "$as_me:$LINENO: checking for $ac_word" >&5
1565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566if test "${ac_cv_prog_STRIP+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569 if test -n "$STRIP"; then
1570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1571else
1572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573for as_dir in $PATH
1574do
1575 IFS=$as_save_IFS
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 break 2
1582 fi
1583done
1584done
1585
1586fi
1587fi
1588STRIP=$ac_cv_prog_STRIP
1589if test -n "$STRIP"; then
1590 echo "$as_me:$LINENO: result: $STRIP" >&5
1591echo "${ECHO_T}$STRIP" >&6
1592else
1593 echo "$as_me:$LINENO: result: no" >&5
1594echo "${ECHO_T}no" >&6
1595fi
1596
1597fi
1598if test -z "$ac_cv_prog_STRIP"; then
1599 ac_ct_STRIP=$STRIP
1600 # Extract the first word of "strip", so it can be a program name with args.
1601set dummy strip; ac_word=$2
1602echo "$as_me:$LINENO: checking for $ac_word" >&5
1603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 if test -n "$ac_ct_STRIP"; then
1608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1609else
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 ac_cv_prog_ac_ct_STRIP="strip"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621done
1622done
1623
1624 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1625fi
1626fi
1627ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1628if test -n "$ac_ct_STRIP"; then
1629 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1630echo "${ECHO_T}$ac_ct_STRIP" >&6
1631else
1632 echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
1634fi
1635
1636 STRIP=$ac_ct_STRIP
1637else
1638 STRIP="$ac_cv_prog_STRIP"
1639fi
1640
1641fi
1642INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1643
1644# We need awk for the "check" target. The system "awk" is bad on
1645# some platforms.
1646
1647
1648
1649 ac_config_headers="$ac_config_headers config.h"
1650
1651
1652# Make sure we can run config.sub.
1653$ac_config_sub sun4 >/dev/null 2>&1 ||
1654 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1655echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1656 { (exit 1); exit 1; }; }
1657
1658echo "$as_me:$LINENO: checking build system type" >&5
1659echo $ECHO_N "checking build system type... $ECHO_C" >&6
1660if test "${ac_cv_build+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 ac_cv_build_alias=$build_alias
1664test -z "$ac_cv_build_alias" &&
1665 ac_cv_build_alias=`$ac_config_guess`
1666test -z "$ac_cv_build_alias" &&
1667 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1668echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1669 { (exit 1); exit 1; }; }
1670ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1672echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675fi
1676echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1677echo "${ECHO_T}$ac_cv_build" >&6
1678build=$ac_cv_build
1679build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684echo "$as_me:$LINENO: checking host system type" >&5
1685echo $ECHO_N "checking host system type... $ECHO_C" >&6
1686if test "${ac_cv_host+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689 ac_cv_host_alias=$host_alias
1690test -z "$ac_cv_host_alias" &&
1691 ac_cv_host_alias=$ac_cv_build_alias
1692ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1694echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1695 { (exit 1); exit 1; }; }
1696
1697fi
1698echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1699echo "${ECHO_T}$ac_cv_host" >&6
1700host=$ac_cv_host
1701host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706
1707
1708# Check whether --with-cflags or --without-cflags was given.
1709if test "${with_cflags+set}" = set; then
1710 withval="$with_cflags"
1711
1712fi;
1713if test "x$with_cflags" != "x" ; then
1714 CFLAGS="$with_cflags" ; cflags_specified=yes ;
1715elif test -n "$CFLAGS" ; then
1716 cflags_specified=yes ;
1717fi
1718
1719ac_ext=c
1720ac_cpp='$CPP $CPPFLAGS'
1721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1723ac_compiler_gnu=$ac_cv_c_compiler_gnu
1724if test -n "$ac_tool_prefix"; then
1725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1726set dummy ${ac_tool_prefix}gcc; ac_word=$2
1727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729if test "${ac_cv_prog_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 if test -n "$CC"; then
1733 ac_cv_prog_CC="$CC" # Let the user override the test.
1734else
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746done
1747done
1748
1749fi
1750fi
1751CC=$ac_cv_prog_CC
1752if test -n "$CC"; then
1753 echo "$as_me:$LINENO: result: $CC" >&5
1754echo "${ECHO_T}$CC" >&6
1755else
1756 echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
1758fi
1759
1760fi
1761if test -z "$ac_cv_prog_CC"; then
1762 ac_ct_CC=$CC
1763 # Extract the first word of "gcc", so it can be a program name with args.
1764set dummy gcc; ac_word=$2
1765echo "$as_me:$LINENO: checking for $ac_word" >&5
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770 if test -n "$ac_ct_CC"; then
1771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1772else
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_ac_ct_CC="gcc"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784done
1785done
1786
1787fi
1788fi
1789ac_ct_CC=$ac_cv_prog_ac_ct_CC
1790if test -n "$ac_ct_CC"; then
1791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1792echo "${ECHO_T}$ac_ct_CC" >&6
1793else
1794 echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
1796fi
1797
1798 CC=$ac_ct_CC
1799else
1800 CC="$ac_cv_prog_CC"
1801fi
1802
1803if test -z "$CC"; then
1804 if test -n "$ac_tool_prefix"; then
1805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1806set dummy ${ac_tool_prefix}cc; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_CC="${ac_tool_prefix}cc"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1825 fi
1826done
1827done
1828
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6
1835else
1836 echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840fi
1841if test -z "$ac_cv_prog_CC"; then
1842 ac_ct_CC=$CC
1843 # Extract the first word of "cc", so it can be a program name with args.
1844set dummy cc; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850 if test -n "$ac_ct_CC"; then
1851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_ac_ct_CC="cc"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2
1863 fi
1864done
1865done
1866
1867fi
1868fi
1869ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870if test -n "$ac_ct_CC"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872echo "${ECHO_T}$ac_ct_CC" >&6
1873else
1874 echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878 CC=$ac_ct_CC
1879else
1880 CC="$ac_cv_prog_CC"
1881fi
1882
1883fi
1884if test -z "$CC"; then
1885 # Extract the first word of "cc", so it can be a program name with args.
1886set dummy cc; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1894else
1895 ac_prog_rejected=no
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1904 ac_prog_rejected=yes
1905 continue
1906 fi
1907 ac_cv_prog_CC="cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911done
1912done
1913
1914if test $ac_prog_rejected = yes; then
1915 # We found a bogon in the path, so make sure we never use it.
1916 set dummy $ac_cv_prog_CC
1917 shift
1918 if test $# != 0; then
1919 # We chose a different compiler from the bogus one.
1920 # However, it has the same basename, so the bogon will be chosen
1921 # first if we set CC to just the basename; use the full file name.
1922 shift
1923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1924 fi
1925fi
1926fi
1927fi
1928CC=$ac_cv_prog_CC
1929if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931echo "${ECHO_T}$CC" >&6
1932else
1933 echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6
1935fi
1936
1937fi
1938if test -z "$CC"; then
1939 if test -n "$ac_tool_prefix"; then
1940 for ac_prog in cl
1941 do
1942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1944echo "$as_me:$LINENO: checking for $ac_word" >&5
1945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946if test "${ac_cv_prog_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test.
1951else
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1962 fi
1963done
1964done
1965
1966fi
1967fi
1968CC=$ac_cv_prog_CC
1969if test -n "$CC"; then
1970 echo "$as_me:$LINENO: result: $CC" >&5
1971echo "${ECHO_T}$CC" >&6
1972else
1973 echo "$as_me:$LINENO: result: no" >&5
1974echo "${ECHO_T}no" >&6
1975fi
1976
1977 test -n "$CC" && break
1978 done
1979fi
1980if test -z "$CC"; then
1981 ac_ct_CC=$CC
1982 for ac_prog in cl
1983do
1984 # Extract the first word of "$ac_prog", so it can be a program name with args.
1985set dummy $ac_prog; ac_word=$2
1986echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991 if test -n "$ac_ct_CC"; then
1992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1993else
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_ac_ct_CC="$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005done
2006done
2007
2008fi
2009fi
2010ac_ct_CC=$ac_cv_prog_ac_ct_CC
2011if test -n "$ac_ct_CC"; then
2012 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2013echo "${ECHO_T}$ac_ct_CC" >&6
2014else
2015 echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6
2017fi
2018
2019 test -n "$ac_ct_CC" && break
2020done
2021
2022 CC=$ac_ct_CC
2023fi
2024
2025fi
2026
2027
2028test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2029echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2030 { (exit 1); exit 1; }; }
2031
2032# Provide some information about the compiler.
2033echo "$as_me:$LINENO:" \
2034 "checking for C compiler version" >&5
2035ac_compiler=`set X $ac_compile; echo $2`
2036{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2037 (eval $ac_compiler --version </dev/null >&5) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }
2041{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2042 (eval $ac_compiler -v </dev/null >&5) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }
2046{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2047 (eval $ac_compiler -V </dev/null >&5) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }
2051
2052cat >conftest.$ac_ext <<_ACEOF
2053#line $LINENO "configure"
2054#include "confdefs.h"
2055
2056int
2057main ()
2058{
2059
2060 ;
2061 return 0;
2062}
2063_ACEOF
2064ac_clean_files_save=$ac_clean_files
2065ac_clean_files="$ac_clean_files a.out a.exe"
2066# Try to create an executable without -o first, disregard a.out.
2067# It will help us diagnose broken compilers, and finding out an intuition
2068# of exeext.
2069echo "$as_me:$LINENO: checking for C compiler default output" >&5
2070echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2071ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2072if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2073 (eval $ac_link_default) 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; then
2077 # Find the output, starting from the most likely. This scheme is
2078# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2079# resort.
2080
2081# Be careful to initialize this variable, since it used to be cached.
2082# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2083ac_cv_exeext=
2084for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2085 test -f "$ac_file" || continue
2086 case $ac_file in
2087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2088 a.out ) # We found the default executable, but exeext='' is most
2089 # certainly right.
2090 break;;
2091 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2092 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2093 export ac_cv_exeext
2094 break;;
2095 * ) break;;
2096 esac
2097done
2098else
2099 echo "$as_me: failed program was:" >&5
2100cat conftest.$ac_ext >&5
2101{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2102check \`config.log' for details." >&5
2103echo "$as_me: error: C compiler cannot create executables
2104check \`config.log' for details." >&2;}
2105 { (exit 77); exit 77; }; }
2106fi
2107
2108ac_exeext=$ac_cv_exeext
2109echo "$as_me:$LINENO: result: $ac_file" >&5
2110echo "${ECHO_T}$ac_file" >&6
2111
2112# Check the compiler produces executables we can run. If not, either
2113# the compiler is broken, or we cross compile.
2114echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2115echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2116# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117# If not cross compiling, check that we can run a simple program.
2118if test "$cross_compiling" != yes; then
2119 if { ac_try='./$ac_file'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 cross_compiling=no
2126 else
2127 if test "$cross_compiling" = maybe; then
2128 cross_compiling=yes
2129 else
2130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2131If you meant to cross compile, use \`--host'." >&5
2132echo "$as_me: error: cannot run C compiled programs.
2133If you meant to cross compile, use \`--host'." >&2;}
2134 { (exit 1); exit 1; }; }
2135 fi
2136 fi
2137fi
2138echo "$as_me:$LINENO: result: yes" >&5
2139echo "${ECHO_T}yes" >&6
2140
2141rm -f a.out a.exe conftest$ac_cv_exeext
2142ac_clean_files=$ac_clean_files_save
2143# Check the compiler produces executables we can run. If not, either
2144# the compiler is broken, or we cross compile.
2145echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2146echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2147echo "$as_me:$LINENO: result: $cross_compiling" >&5
2148echo "${ECHO_T}$cross_compiling" >&6
2149
2150echo "$as_me:$LINENO: checking for suffix of executables" >&5
2151echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2153 (eval $ac_link) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; then
2157 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2158# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2159# work properly (i.e., refer to `conftest.exe'), while it won't with
2160# `rm'.
2161for ac_file in conftest.exe conftest conftest.*; do
2162 test -f "$ac_file" || continue
2163 case $ac_file in
2164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2166 export ac_cv_exeext
2167 break;;
2168 * ) break;;
2169 esac
2170done
2171else
2172 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2173echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2174 { (exit 1); exit 1; }; }
2175fi
2176
2177rm -f conftest$ac_cv_exeext
2178echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2179echo "${ECHO_T}$ac_cv_exeext" >&6
2180
2181rm -f conftest.$ac_ext
2182EXEEXT=$ac_cv_exeext
2183ac_exeext=$EXEEXT
2184echo "$as_me:$LINENO: checking for suffix of object files" >&5
2185echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2186if test "${ac_cv_objext+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 cat >conftest.$ac_ext <<_ACEOF
2190#line $LINENO "configure"
2191#include "confdefs.h"
2192
2193int
2194main ()
2195{
2196
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201rm -f conftest.o conftest.obj
2202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2208 case $ac_file in
2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2211 break;;
2212 esac
2213done
2214else
2215 echo "$as_me: failed program was:" >&5
2216cat conftest.$ac_ext >&5
2217{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2218echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2219 { (exit 1); exit 1; }; }
2220fi
2221
2222rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225echo "${ECHO_T}$ac_cv_objext" >&6
2226OBJEXT=$ac_cv_objext
2227ac_objext=$OBJEXT
2228echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2229echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2230if test "${ac_cv_c_compiler_gnu+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233 cat >conftest.$ac_ext <<_ACEOF
2234#line $LINENO "configure"
2235#include "confdefs.h"
2236
2237int
2238main ()
2239{
2240#ifndef __GNUC__
2241 choke me
2242#endif
2243
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2260 ac_compiler_gnu=yes
2261else
2262 echo "$as_me: failed program was:" >&5
2263cat conftest.$ac_ext >&5
2264ac_compiler_gnu=no
2265fi
2266rm -f conftest.$ac_objext conftest.$ac_ext
2267ac_cv_c_compiler_gnu=$ac_compiler_gnu
2268
2269fi
2270echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2271echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2272GCC=`test $ac_compiler_gnu = yes && echo yes`
2273ac_test_CFLAGS=${CFLAGS+set}
2274ac_save_CFLAGS=$CFLAGS
2275CFLAGS="-g"
2276echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2277echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2278if test "${ac_cv_prog_cc_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 cat >conftest.$ac_ext <<_ACEOF
2282#line $LINENO "configure"
2283#include "confdefs.h"
2284
2285int
2286main ()
2287{
2288
2289 ;
2290 return 0;
2291}
2292_ACEOF
2293rm -f conftest.$ac_objext
2294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 ac_cv_prog_cc_g=yes
2306else
2307 echo "$as_me: failed program was:" >&5
2308cat conftest.$ac_ext >&5
2309ac_cv_prog_cc_g=no
2310fi
2311rm -f conftest.$ac_objext conftest.$ac_ext
2312fi
2313echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315if test "$ac_test_CFLAGS" = set; then
2316 CFLAGS=$ac_save_CFLAGS
2317elif test $ac_cv_prog_cc_g = yes; then
2318 if test "$GCC" = yes; then
2319 CFLAGS="-g -O2"
2320 else
2321 CFLAGS="-g"
2322 fi
2323else
2324 if test "$GCC" = yes; then
2325 CFLAGS="-O2"
2326 else
2327 CFLAGS=
2328 fi
2329fi
2330echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335 ac_cv_prog_cc_stdc=no
2336ac_save_CC=$CC
2337cat >conftest.$ac_ext <<_ACEOF
2338#line $LINENO "configure"
2339#include "confdefs.h"
2340#include <stdarg.h>
2341#include <stdio.h>
2342#include <sys/types.h>
2343#include <sys/stat.h>
2344/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2345struct buf { int x; };
2346FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347static char *e (p, i)
2348 char **p;
2349 int i;
2350{
2351 return p[i];
2352}
2353static char *f (char * (*g) (char **, int), char **p, ...)
2354{
2355 char *s;
2356 va_list v;
2357 va_start (v,p);
2358 s = g (p, va_arg (v,int));
2359 va_end (v);
2360 return s;
2361}
2362int test (int i, double x);
2363struct s1 {int (*f) (int a);};
2364struct s2 {int (*f) (double a);};
2365int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2366int argc;
2367char **argv;
2368int
2369main ()
2370{
2371return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2372 ;
2373 return 0;
2374}
2375_ACEOF
2376# Don't try gcc -ansi; that turns off useful extensions and
2377# breaks some systems' header files.
2378# AIX -qlanglvl=ansi
2379# Ultrix and OSF/1 -std1
2380# HP-UX 10.20 and later -Ae
2381# HP-UX older versions -Aa -D_HPUX_SOURCE
2382# SVR4 -Xc -D__EXTENSIONS__
2383for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2384do
2385 CC="$ac_save_CC $ac_arg"
2386 rm -f conftest.$ac_objext
2387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 ac_cv_prog_cc_stdc=$ac_arg
2399break
2400else
2401 echo "$as_me: failed program was:" >&5
2402cat conftest.$ac_ext >&5
2403fi
2404rm -f conftest.$ac_objext
2405done
2406rm -f conftest.$ac_ext conftest.$ac_objext
2407CC=$ac_save_CC
2408
2409fi
2410
2411case "x$ac_cv_prog_cc_stdc" in
2412 x|xno)
2413 echo "$as_me:$LINENO: result: none needed" >&5
2414echo "${ECHO_T}none needed" >&6 ;;
2415 *)
2416 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2417echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2418 CC="$CC $ac_cv_prog_cc_stdc" ;;
2419esac
2420
2421# Some people use a C++ compiler to compile C. Since we use `exit',
2422# in C++ we need to declare it. In case someone uses the same compiler
2423# for both compiling C and C++ we need to have the C++ compiler decide
2424# the declaration of exit, since it's the most demanding environment.
2425cat >conftest.$ac_ext <<_ACEOF
2426#ifndef __cplusplus
2427 choke me
2428#endif
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 for ac_declaration in \
2443 ''\
2444 '#include <stdlib.h>' \
2445 'extern "C" void std::exit (int) throw (); using std::exit;' \
2446 'extern "C" void std::exit (int); using std::exit;' \
2447 'extern "C" void exit (int) throw ();' \
2448 'extern "C" void exit (int);' \
2449 'void exit (int);'
2450do
2451 cat >conftest.$ac_ext <<_ACEOF
2452#line $LINENO "configure"
2453#include "confdefs.h"
2454#include <stdlib.h>
2455$ac_declaration
2456int
2457main ()
2458{
2459exit (42);
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 :
2477else
2478 echo "$as_me: failed program was:" >&5
2479cat conftest.$ac_ext >&5
2480continue
2481fi
2482rm -f conftest.$ac_objext conftest.$ac_ext
2483 cat >conftest.$ac_ext <<_ACEOF
2484#line $LINENO "configure"
2485#include "confdefs.h"
2486$ac_declaration
2487int
2488main ()
2489{
2490exit (42);
2491 ;
2492 return 0;
2493}
2494_ACEOF
2495rm -f conftest.$ac_objext
2496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 break
2508else
2509 echo "$as_me: failed program was:" >&5
2510cat conftest.$ac_ext >&5
2511fi
2512rm -f conftest.$ac_objext conftest.$ac_ext
2513done
2514rm -f conftest*
2515if test -n "$ac_declaration"; then
2516 echo '#ifdef __cplusplus' >>confdefs.h
2517 echo $ac_declaration >>confdefs.h
2518 echo '#endif' >>confdefs.h
2519fi
2520
2521else
2522 echo "$as_me: failed program was:" >&5
2523cat conftest.$ac_ext >&5
2524fi
2525rm -f conftest.$ac_objext conftest.$ac_ext
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531rm -f .deps 2>/dev/null
2532mkdir .deps 2>/dev/null
2533if test -d .deps; then
2534 DEPDIR=.deps
2535else
2536 # MS-DOS does not allow filenames that begin with a dot.
2537 DEPDIR=_deps
2538fi
2539rmdir .deps 2>/dev/null
2540
2541
2542 ac_config_commands="$ac_config_commands depfiles"
2543
2544
2545am_make=${MAKE-make}
2546cat > confinc << 'END'
2547doit:
2548 @echo done
2549END
2550# If we don't find an include directive, just comment out the code.
2551echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2552echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2553am__include="#"
2554am__quote=
2555_am_result=none
2556# First try GNU make style include.
2557echo "include confinc" > confmf
2558# We grep out `Entering directory' and `Leaving directory'
2559# messages which can occur if `w' ends up in MAKEFLAGS.
2560# In particular we don't look at `^make:' because GNU make might
2561# be invoked under some other name (usually "gmake"), in which
2562# case it prints its new name instead of `make'.
2563if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2564 am__include=include
2565 am__quote=
2566 _am_result=GNU
2567fi
2568# Now try BSD make style include.
2569if test "$am__include" = "#"; then
2570 echo '.include "confinc"' > confmf
2571 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2572 am__include=.include
2573 am__quote="\""
2574 _am_result=BSD
2575 fi
2576fi
2577
2578
2579echo "$as_me:$LINENO: result: $_am_result" >&5
2580echo "${ECHO_T}$_am_result" >&6
2581rm -f confinc confmf
2582
2583# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2584if test "${enable_dependency_tracking+set}" = set; then
2585 enableval="$enable_dependency_tracking"
2586
2587fi;
2588if test "x$enable_dependency_tracking" != xno; then
2589 am_depcomp="$ac_aux_dir/depcomp"
2590 AMDEPBACKSLASH='\'
2591fi
2592
2593
2594if test "x$enable_dependency_tracking" != xno; then
2595 AMDEP_TRUE=
2596 AMDEP_FALSE='#'
2597else
2598 AMDEP_TRUE='#'
2599 AMDEP_FALSE=
2600fi
2601
2602
2603
2604
2605depcc="$CC" am_compiler_list=
2606
2607echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2608echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2609if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2613 # We make a subdir and do the tests there. Otherwise we can end up
2614 # making bogus files that we don't know about and never remove. For
2615 # instance it was reported that on HP-UX the gcc test will end up
2616 # making a dummy file named `D' -- because `-MD' means `put the output
2617 # in D'.
2618 mkdir conftest.dir
2619 # Copy depcomp to subdir because otherwise we won't find it if we're
2620 # using a relative directory.
2621 cp "$am_depcomp" conftest.dir
2622 cd conftest.dir
2623
2624 am_cv_CC_dependencies_compiler_type=none
2625 if test "$am_compiler_list" = ""; then
2626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2627 fi
2628 for depmode in $am_compiler_list; do
2629 # We need to recreate these files for each test, as the compiler may
2630 # overwrite some of them when testing with obscure command lines.
2631 # This happens at least with the AIX C compiler.
2632 echo '#include "conftest.h"' > conftest.c
2633 echo 'int i;' > conftest.h
2634 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2635
2636 case $depmode in
2637 nosideeffect)
2638 # after this tag, mechanisms are not by side-effect, so they'll
2639 # only be used when explicitly requested
2640 if test "x$enable_dependency_tracking" = xyes; then
2641 continue
2642 else
2643 break
2644 fi
2645 ;;
2646 none) break ;;
2647 esac
2648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2649 # mode. It turns out that the SunPro C++ compiler does not properly
2650 # handle `-M -o', and we need to detect this.
2651 if depmode=$depmode \
2652 source=conftest.c object=conftest.o \
2653 depfile=conftest.Po tmpdepfile=conftest.TPo \
2654 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2655 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2657 am_cv_CC_dependencies_compiler_type=$depmode
2658 break
2659 fi
2660 done
2661
2662 cd ..
2663 rm -rf conftest.dir
2664else
2665 am_cv_CC_dependencies_compiler_type=none
2666fi
2667
2668fi
2669echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2670echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2671CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2672
2673
2674
2675if
2676 test "x$enable_dependency_tracking" != xno \
2677 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2678 am__fastdepCC_TRUE=
2679 am__fastdepCC_FALSE='#'
2680else
2681 am__fastdepCC_TRUE='#'
2682 am__fastdepCC_FALSE=
2683fi
2684
2685
2686
2687if test "x$cflags_specified" = "x" ; then
2688 CFLAGS="$CFLAGS -Wall"
2689fi
2690
2691ac_ext=c
2692ac_cpp='$CPP $CPPFLAGS'
2693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2697echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2698# On Suns, sometimes $CPP names a directory.
2699if test -n "$CPP" && test -d "$CPP"; then
2700 CPP=
2701fi
2702if test -z "$CPP"; then
2703 if test "${ac_cv_prog_CPP+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705else
2706 # Double quotes because CPP needs to be expanded
2707 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2708 do
2709 ac_preproc_ok=false
2710for ac_c_preproc_warn_flag in '' yes
2711do
2712 # Use a header file that comes with gcc, so configuring glibc
2713 # with a fresh cross-compiler works.
2714 # On the NeXT, cc -E runs the code through the compiler's parser,
2715 # not just through cpp. "Syntax error" is here to catch this case.
2716 cat >conftest.$ac_ext <<_ACEOF
2717#line $LINENO "configure"
2718#include "confdefs.h"
2719#include <assert.h>
2720 Syntax error
2721_ACEOF
2722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2724 ac_status=$?
2725 grep -v '^ *+' conftest.er1 >conftest.err
2726 rm -f conftest.er1
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } >/dev/null; then
2730 if test -s conftest.err; then
2731 ac_cpp_err=$ac_c_preproc_warn_flag
2732 else
2733 ac_cpp_err=
2734 fi
2735else
2736 ac_cpp_err=yes
2737fi
2738if test -z "$ac_cpp_err"; then
2739 :
2740else
2741 echo "$as_me: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2743 # Broken: fails on valid input.
2744continue
2745fi
2746rm -f conftest.err conftest.$ac_ext
2747
2748 # OK, works on sane cases. Now check whether non-existent headers
2749 # can be detected and how.
2750 cat >conftest.$ac_ext <<_ACEOF
2751#line $LINENO "configure"
2752#include "confdefs.h"
2753#include <ac_nonexistent.h>
2754_ACEOF
2755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2757 ac_status=$?
2758 grep -v '^ *+' conftest.er1 >conftest.err
2759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } >/dev/null; then
2763 if test -s conftest.err; then
2764 ac_cpp_err=$ac_c_preproc_warn_flag
2765 else
2766 ac_cpp_err=
2767 fi
2768else
2769 ac_cpp_err=yes
2770fi
2771if test -z "$ac_cpp_err"; then
2772 # Broken: success on invalid input.
2773continue
2774else
2775 echo "$as_me: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 # Passes both tests.
2778ac_preproc_ok=:
2779break
2780fi
2781rm -f conftest.err conftest.$ac_ext
2782
2783done
2784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2785rm -f conftest.err conftest.$ac_ext
2786if $ac_preproc_ok; then
2787 break
2788fi
2789
2790 done
2791 ac_cv_prog_CPP=$CPP
2792
2793fi
2794 CPP=$ac_cv_prog_CPP
2795else
2796 ac_cv_prog_CPP=$CPP
2797fi
2798echo "$as_me:$LINENO: result: $CPP" >&5
2799echo "${ECHO_T}$CPP" >&6
2800ac_preproc_ok=false
2801for ac_c_preproc_warn_flag in '' yes
2802do
2803 # Use a header file that comes with gcc, so configuring glibc
2804 # with a fresh cross-compiler works.
2805 # On the NeXT, cc -E runs the code through the compiler's parser,
2806 # not just through cpp. "Syntax error" is here to catch this case.
2807 cat >conftest.$ac_ext <<_ACEOF
2808#line $LINENO "configure"
2809#include "confdefs.h"
2810#include <assert.h>
2811 Syntax error
2812_ACEOF
2813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } >/dev/null; then
2821 if test -s conftest.err; then
2822 ac_cpp_err=$ac_c_preproc_warn_flag
2823 else
2824 ac_cpp_err=
2825 fi
2826else
2827 ac_cpp_err=yes
2828fi
2829if test -z "$ac_cpp_err"; then
2830 :
2831else
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 # Broken: fails on valid input.
2835continue
2836fi
2837rm -f conftest.err conftest.$ac_ext
2838
2839 # OK, works on sane cases. Now check whether non-existent headers
2840 # can be detected and how.
2841 cat >conftest.$ac_ext <<_ACEOF
2842#line $LINENO "configure"
2843#include "confdefs.h"
2844#include <ac_nonexistent.h>
2845_ACEOF
2846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } >/dev/null; then
2854 if test -s conftest.err; then
2855 ac_cpp_err=$ac_c_preproc_warn_flag
2856 else
2857 ac_cpp_err=
2858 fi
2859else
2860 ac_cpp_err=yes
2861fi
2862if test -z "$ac_cpp_err"; then
2863 # Broken: success on invalid input.
2864continue
2865else
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 # Passes both tests.
2869ac_preproc_ok=:
2870break
2871fi
2872rm -f conftest.err conftest.$ac_ext
2873
2874done
2875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2876rm -f conftest.err conftest.$ac_ext
2877if $ac_preproc_ok; then
2878 :
2879else
2880 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2881echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2882 { (exit 1); exit 1; }; }
2883fi
2884
2885ac_ext=c
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890
2891# Find a good install program. We prefer a C program (faster),
2892# so one script is as good as another. But avoid the broken or
2893# incompatible versions:
2894# SysV /etc/install, /usr/sbin/install
2895# SunOS /usr/etc/install
2896# IRIX /sbin/install
2897# AIX /bin/install
2898# AmigaOS /C/install, which installs bootblocks on floppy discs
2899# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2900# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2901# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2902# ./install, which can be erroneously created by make from ./install.sh.
2903echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2904echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2905if test -z "$INSTALL"; then
2906if test "${ac_cv_path_install+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 # Account for people who put trailing slashes in PATH elements.
2915case $as_dir/ in
2916 ./ | .// | /cC/* | \
2917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2918 /usr/ucb/* ) ;;
2919 *)
2920 # OSF1 and SCO ODT 3.0 have their own names for install.
2921 # Don't use installbsd from OSF since it installs stuff as root
2922 # by default.
2923 for ac_prog in ginstall scoinst install; do
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2926 if test $ac_prog = install &&
2927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2928 # AIX install. It has an incompatible calling convention.
2929 :
2930 elif test $ac_prog = install &&
2931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2932 # program-specific install script used by HP pwplus--don't use.
2933 :
2934 else
2935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2936 break 3
2937 fi
2938 fi
2939 done
2940 done
2941 ;;
2942esac
2943done
2944
2945
2946fi
2947 if test "${ac_cv_path_install+set}" = set; then
2948 INSTALL=$ac_cv_path_install
2949 else
2950 # As a last resort, use the slow shell script. We don't cache a
2951 # path for INSTALL within a source directory, because that will
2952 # break other packages using the cache if that directory is
2953 # removed, or if the path is relative.
2954 INSTALL=$ac_install_sh
2955 fi
2956fi
2957echo "$as_me:$LINENO: result: $INSTALL" >&5
2958echo "${ECHO_T}$INSTALL" >&6
2959
2960# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2961# It thinks the first close brace ends the variable substitution.
2962test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2963
2964test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2965
2966test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2967
2968echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2969echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2970set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2971if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973else
2974 cat >conftest.make <<\_ACEOF
2975all:
2976 @echo 'ac_maketemp="${MAKE}"'
2977_ACEOF
2978# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2979eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2980if test -n "$ac_maketemp"; then
2981 eval ac_cv_prog_make_${ac_make}_set=yes
2982else
2983 eval ac_cv_prog_make_${ac_make}_set=no
2984fi
2985rm -f conftest.make
2986fi
2987if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2988 echo "$as_me:$LINENO: result: yes" >&5
2989echo "${ECHO_T}yes" >&6
2990 SET_MAKE=
2991else
2992 echo "$as_me:$LINENO: result: no" >&5
2993echo "${ECHO_T}no" >&6
2994 SET_MAKE="MAKE=${MAKE-make}"
2995fi
2996
2997if test -n "$ac_tool_prefix"; then
2998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2999set dummy ${ac_tool_prefix}ar; ac_word=$2
3000echo "$as_me:$LINENO: checking for $ac_word" >&5
3001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3002if test "${ac_cv_prog_AR+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005 if test -n "$AR"; then
3006 ac_cv_prog_AR="$AR" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_AR="${ac_tool_prefix}ar"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019done
3020done
3021
3022fi
3023fi
3024AR=$ac_cv_prog_AR
3025if test -n "$AR"; then
3026 echo "$as_me:$LINENO: result: $AR" >&5
3027echo "${ECHO_T}$AR" >&6
3028else
3029 echo "$as_me:$LINENO: result: no" >&5
3030echo "${ECHO_T}no" >&6
3031fi
3032
3033fi
3034if test -z "$ac_cv_prog_AR"; then
3035 ac_ct_AR=$AR
3036 # Extract the first word of "ar", so it can be a program name with args.
3037set dummy ar; ac_word=$2
3038echo "$as_me:$LINENO: checking for $ac_word" >&5
3039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3040if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042else
3043 if test -n "$ac_ct_AR"; then
3044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_ac_ct_AR="ar"
3054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057done
3058done
3059
3060fi
3061fi
3062ac_ct_AR=$ac_cv_prog_ac_ct_AR
3063if test -n "$ac_ct_AR"; then
3064 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3065echo "${ECHO_T}$ac_ct_AR" >&6
3066else
3067 echo "$as_me:$LINENO: result: no" >&5
3068echo "${ECHO_T}no" >&6
3069fi
3070
3071 AR=$ac_ct_AR
3072else
3073 AR="$ac_cv_prog_AR"
3074fi
3075
3076if test -n "$ac_tool_prefix"; then
3077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3078set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3079echo "$as_me:$LINENO: checking for $ac_word" >&5
3080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3081if test "${ac_cv_prog_RANLIB+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084 if test -n "$RANLIB"; then
3085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3086else
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098done
3099done
3100
3101fi
3102fi
3103RANLIB=$ac_cv_prog_RANLIB
3104if test -n "$RANLIB"; then
3105 echo "$as_me:$LINENO: result: $RANLIB" >&5
3106echo "${ECHO_T}$RANLIB" >&6
3107else
3108 echo "$as_me:$LINENO: result: no" >&5
3109echo "${ECHO_T}no" >&6
3110fi
3111
3112fi
3113if test -z "$ac_cv_prog_RANLIB"; then
3114 ac_ct_RANLIB=$RANLIB
3115 # Extract the first word of "ranlib", so it can be a program name with args.
3116set dummy ranlib; ac_word=$2
3117echo "$as_me:$LINENO: checking for $ac_word" >&5
3118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122 if test -n "$ac_ct_RANLIB"; then
3123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3124else
3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_ac_ct_RANLIB="ranlib"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136done
3137done
3138
3139 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3140fi
3141fi
3142ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3143if test -n "$ac_ct_RANLIB"; then
3144 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3145echo "${ECHO_T}$ac_ct_RANLIB" >&6
3146else
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149fi
3150
3151 RANLIB=$ac_ct_RANLIB
3152else
3153 RANLIB="$ac_cv_prog_RANLIB"
3154fi
3155
3156
3157
3158
3159echo "$as_me:$LINENO: checking for egrep" >&5
3160echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3161if test "${ac_cv_prog_egrep+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3165 then ac_cv_prog_egrep='grep -E'
3166 else ac_cv_prog_egrep='egrep'
3167 fi
3168fi
3169echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3170echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3171 EGREP=$ac_cv_prog_egrep
3172
3173
3174
3175echo "$as_me:$LINENO: checking for AIX" >&5
3176echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3177cat >conftest.$ac_ext <<_ACEOF
3178#line $LINENO "configure"
3179#include "confdefs.h"
3180#ifdef _AIX
3181 yes
3182#endif
3183
3184_ACEOF
3185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3186 $EGREP "yes" >/dev/null 2>&1; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188echo "${ECHO_T}yes" >&6
3189cat >>confdefs.h <<\_ACEOF
3190#define _ALL_SOURCE 1
3191_ACEOF
3192
3193else
3194 echo "$as_me:$LINENO: result: no" >&5
3195echo "${ECHO_T}no" >&6
3196fi
3197rm -f conftest*
3198
3199
3200
3201# Check whether --enable-vtysh or --disable-vtysh was given.
3202if test "${enable_vtysh+set}" = set; then
3203 enableval="$enable_vtysh"
3204
3205fi;
3206# Check whether --enable-ipv6 or --disable-ipv6 was given.
3207if test "${enable_ipv6+set}" = set; then
3208 enableval="$enable_ipv6"
3209
3210fi;
3211# Check whether --enable-zebra or --disable-zebra was given.
3212if test "${enable_zebra+set}" = set; then
3213 enableval="$enable_zebra"
3214
3215fi;
3216# Check whether --enable-bgpd or --disable-bgpd was given.
3217if test "${enable_bgpd+set}" = set; then
3218 enableval="$enable_bgpd"
3219
3220fi;
3221# Check whether --enable-ripd or --disable-ripd was given.
3222if test "${enable_ripd+set}" = set; then
3223 enableval="$enable_ripd"
3224
3225fi;
3226# Check whether --enable-ripngd or --disable-ripngd was given.
3227if test "${enable_ripngd+set}" = set; then
3228 enableval="$enable_ripngd"
3229
3230fi;
3231# Check whether --enable-ospfd or --disable-ospfd was given.
3232if test "${enable_ospfd+set}" = set; then
3233 enableval="$enable_ospfd"
3234
3235fi;
3236# Check whether --enable-ospf6d or --disable-ospf6d was given.
3237if test "${enable_ospf6d+set}" = set; then
3238 enableval="$enable_ospf6d"
3239
3240fi;
3241# Check whether --enable-bgp-announce or --disable-bgp-announce was given.
3242if test "${enable_bgp_announce+set}" = set; then
3243 enableval="$enable_bgp_announce"
3244
3245fi;
3246# Check whether --enable-netlink or --disable-netlink was given.
3247if test "${enable_netlink+set}" = set; then
3248 enableval="$enable_netlink"
3249
3250fi;
3251# Check whether --enable-broken-aliases or --disable-broken-aliases was given.
3252if test "${enable_broken_aliases+set}" = set; then
3253 enableval="$enable_broken_aliases"
3254
3255fi;
3256# Check whether --enable-snmp or --disable-snmp was given.
3257if test "${enable_snmp+set}" = set; then
3258 enableval="$enable_snmp"
3259
3260fi;
3261
3262# Check whether --with-libpam or --without-libpam was given.
3263if test "${with_libpam+set}" = set; then
3264 withval="$with_libpam"
3265
3266fi;
3267# Check whether --enable-tcpsock or --disable-tcpsock was given.
3268if test "${enable_tcpsock+set}" = set; then
3269 enableval="$enable_tcpsock"
3270
3271fi;
3272# Check whether --enable-nssa or --disable-nssa was given.
3273if test "${enable_nssa+set}" = set; then
3274 enableval="$enable_nssa"
3275
3276fi;
3277# Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
3278if test "${enable_opaque_lsa+set}" = set; then
3279 enableval="$enable_opaque_lsa"
3280
3281fi;
3282# Check whether --enable-ospf-te or --disable-ospf-te was given.
3283if test "${enable_ospf_te+set}" = set; then
3284 enableval="$enable_ospf_te"
3285
3286fi;
3287# Check whether --enable-multipath or --disable-multipath was given.
3288if test "${enable_multipath+set}" = set; then
3289 enableval="$enable_multipath"
3290
3291fi;
3292
3293
3294if test "${enable_broken_aliases}" = "yes"; then
3295 if test "${enable_netlink}" = "yes"
3296 then
3297 echo "Sorry, you can't use netlink with broken aliases"
3298 exit 1
3299 fi
3300 cat >>confdefs.h <<\_ACEOF
3301#define HAVE_BROKEN_ALIASES 1
3302_ACEOF
3303
3304 enable_netlink=no
3305fi
3306
3307if test "${enable_tcp_zebra}" = "yes"; then
3308 cat >>confdefs.h <<\_ACEOF
3309#define HAVE_TCP_ZEBRA 1
3310_ACEOF
3311
3312fi
3313
3314if test "${enable_nssa}" = "yes"; then
3315 cat >>confdefs.h <<\_ACEOF
3316#define HAVE_NSSA 1
3317_ACEOF
3318
3319fi
3320
3321if test "${enable_opaque_lsa}" = "yes"; then
3322 cat >>confdefs.h <<\_ACEOF
3323#define HAVE_OPAQUE_LSA 1
3324_ACEOF
3325
3326fi
3327
3328if test "${enable_ospf_te}" = "yes"; then
3329 cat >>confdefs.h <<\_ACEOF
3330#define HAVE_OPAQUE_LSA 1
3331_ACEOF
3332
3333 cat >>confdefs.h <<\_ACEOF
3334#define HAVE_OSPF_TE 1
3335_ACEOF
3336
3337fi
3338
3339
3340
3341MULTIPATH_NUM=1
3342
3343case "${enable_multipath}" in
3344 [0-9]|[1-9][0-9])
3345 MULTIPATH_NUM="${enable_multipath}"
3346 ;;
3347 "")
3348 ;;
3349 *)
3350 echo "Please specify digit to --enable-multipath ARG."
3351 exit 1
3352 ;;
3353esac
3354
3355
3356
3357
3358echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3359echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3360if test "${ac_cv_header_stdc+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363 cat >conftest.$ac_ext <<_ACEOF
3364#line $LINENO "configure"
3365#include "confdefs.h"
3366#include <stdlib.h>
3367#include <stdarg.h>
3368#include <string.h>
3369#include <float.h>
3370
3371_ACEOF
3372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } >/dev/null; then
3380 if test -s conftest.err; then
3381 ac_cpp_err=$ac_c_preproc_warn_flag
3382 else
3383 ac_cpp_err=
3384 fi
3385else
3386 ac_cpp_err=yes
3387fi
3388if test -z "$ac_cpp_err"; then
3389 ac_cv_header_stdc=yes
3390else
3391 echo "$as_me: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 ac_cv_header_stdc=no
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396
3397if test $ac_cv_header_stdc = yes; then
3398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3399 cat >conftest.$ac_ext <<_ACEOF
3400#line $LINENO "configure"
3401#include "confdefs.h"
3402#include <string.h>
3403
3404_ACEOF
3405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406 $EGREP "memchr" >/dev/null 2>&1; then
3407 :
3408else
3409 ac_cv_header_stdc=no
3410fi
3411rm -f conftest*
3412
3413fi
3414
3415if test $ac_cv_header_stdc = yes; then
3416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3417 cat >conftest.$ac_ext <<_ACEOF
3418#line $LINENO "configure"
3419#include "confdefs.h"
3420#include <stdlib.h>
3421
3422_ACEOF
3423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "free" >/dev/null 2>&1; then
3425 :
3426else
3427 ac_cv_header_stdc=no
3428fi
3429rm -f conftest*
3430
3431fi
3432
3433if test $ac_cv_header_stdc = yes; then
3434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3435 if test "$cross_compiling" = yes; then
3436 :
3437else
3438 cat >conftest.$ac_ext <<_ACEOF
3439#line $LINENO "configure"
3440#include "confdefs.h"
3441#include <ctype.h>
3442#if ((' ' & 0x0FF) == 0x020)
3443# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3444# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3445#else
3446# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3447 || ('j' <= (c) && (c) <= 'r') \
3448 || ('s' <= (c) && (c) <= 'z'))
3449# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3450#endif
3451
3452#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3453int
3454main ()
3455{
3456 int i;
3457 for (i = 0; i < 256; i++)
3458 if (XOR (islower (i), ISLOWER (i))
3459 || toupper (i) != TOUPPER (i))
3460 exit(2);
3461 exit (0);
3462}
3463_ACEOF
3464rm -f conftest$ac_exeext
3465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3466 (eval $ac_link) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 :
3476else
3477 echo "$as_me: program exited with status $ac_status" >&5
3478echo "$as_me: failed program was:" >&5
3479cat conftest.$ac_ext >&5
3480( exit $ac_status )
3481ac_cv_header_stdc=no
3482fi
3483rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3484fi
3485fi
3486fi
3487echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489if test $ac_cv_header_stdc = yes; then
3490
3491cat >>confdefs.h <<\_ACEOF
3492#define STDC_HEADERS 1
3493_ACEOF
3494
3495fi
3496
3497# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3508 inttypes.h stdint.h unistd.h
3509do
3510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511echo "$as_me:$LINENO: checking for $ac_header" >&5
3512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515else
3516 cat >conftest.$ac_ext <<_ACEOF
3517#line $LINENO "configure"
3518#include "confdefs.h"
3519$ac_includes_default
3520
3521#include <$ac_header>
3522_ACEOF
3523rm -f conftest.$ac_objext
3524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 eval "$as_ac_Header=yes"
3536else
3537 echo "$as_me: failed program was:" >&5
3538cat conftest.$ac_ext >&5
3539eval "$as_ac_Header=no"
3540fi
3541rm -f conftest.$ac_objext conftest.$ac_ext
3542fi
3543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3545if test `eval echo '${'$as_ac_Header'}'` = yes; then
3546 cat >>confdefs.h <<_ACEOF
3547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3548_ACEOF
3549
3550fi
3551
3552done
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580for 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
3581do
3582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3583if eval "test \"\${$as_ac_Header+set}\" = set"; then
3584 echo "$as_me:$LINENO: checking for $ac_header" >&5
3585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3586if eval "test \"\${$as_ac_Header+set}\" = set"; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588fi
3589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3591else
3592 # Is the header compilable?
3593echo "$as_me:$LINENO: checking $ac_header usability" >&5
3594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3595cat >conftest.$ac_ext <<_ACEOF
3596#line $LINENO "configure"
3597#include "confdefs.h"
3598$ac_includes_default
3599#include <$ac_header>
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_header_compiler=yes
3614else
3615 echo "$as_me: failed program was:" >&5
3616cat conftest.$ac_ext >&5
3617ac_header_compiler=no
3618fi
3619rm -f conftest.$ac_objext conftest.$ac_ext
3620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3621echo "${ECHO_T}$ac_header_compiler" >&6
3622
3623# Is the header present?
3624echo "$as_me:$LINENO: checking $ac_header presence" >&5
3625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3626cat >conftest.$ac_ext <<_ACEOF
3627#line $LINENO "configure"
3628#include "confdefs.h"
3629#include <$ac_header>
3630_ACEOF
3631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } >/dev/null; then
3639 if test -s conftest.err; then
3640 ac_cpp_err=$ac_c_preproc_warn_flag
3641 else
3642 ac_cpp_err=
3643 fi
3644else
3645 ac_cpp_err=yes
3646fi
3647if test -z "$ac_cpp_err"; then
3648 ac_header_preproc=yes
3649else
3650 echo "$as_me: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 ac_header_preproc=no
3653fi
3654rm -f conftest.err conftest.$ac_ext
3655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3656echo "${ECHO_T}$ac_header_preproc" >&6
3657
3658# So? What about this header?
3659case $ac_header_compiler:$ac_header_preproc in
3660 yes:no )
3661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3665 no:yes )
3666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3669echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3672esac
3673echo "$as_me:$LINENO: checking for $ac_header" >&5
3674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3675if eval "test \"\${$as_ac_Header+set}\" = set"; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678 eval "$as_ac_Header=$ac_header_preproc"
3679fi
3680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3682
3683fi
3684if test `eval echo '${'$as_ac_Header'}'` = yes; then
3685 cat >>confdefs.h <<_ACEOF
3686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3687_ACEOF
3688
3689fi
3690
3691done
3692
3693
3694echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3695echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3696if test "${ac_cv_c_const+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 cat >conftest.$ac_ext <<_ACEOF
3700#line $LINENO "configure"
3701#include "confdefs.h"
3702
3703int
3704main ()
3705{
3706/* FIXME: Include the comments suggested by Paul. */
3707#ifndef __cplusplus
3708 /* Ultrix mips cc rejects this. */
3709 typedef int charset[2];
3710 const charset x;
3711 /* SunOS 4.1.1 cc rejects this. */
3712 char const *const *ccp;
3713 char **p;
3714 /* NEC SVR4.0.2 mips cc rejects this. */
3715 struct point {int x, y;};
3716 static struct point const zero = {0,0};
3717 /* AIX XL C 1.02.0.0 rejects this.
3718 It does not let you subtract one const X* pointer from another in
3719 an arm of an if-expression whose if-part is not a constant
3720 expression */
3721 const char *g = "string";
3722 ccp = &g + (g ? g-g : 0);
3723 /* HPUX 7.0 cc rejects these. */
3724 ++ccp;
3725 p = (char**) ccp;
3726 ccp = (char const *const *) p;
3727 { /* SCO 3.2v4 cc rejects this. */
3728 char *t;
3729 char const *s = 0 ? (char *) 0 : (char const *) 0;
3730
3731 *t++ = 0;
3732 }
3733 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3734 int x[] = {25, 17};
3735 const int *foo = &x[0];
3736 ++foo;
3737 }
3738 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3739 typedef const int *iptr;
3740 iptr p = 0;
3741 ++p;
3742 }
3743 { /* AIX XL C 1.02.0.0 rejects this saying
3744 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3745 struct s { int j; const int *ap[3]; };
3746 struct s *b; b->j = 5;
3747 }
3748 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3749 const int foo = 10;
3750 }
3751#endif
3752
3753 ;
3754 return 0;
3755}
3756_ACEOF
3757rm -f conftest.$ac_objext
3758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3759 (eval $ac_compile) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 (eval $ac_try) 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 ac_cv_c_const=yes
3770else
3771 echo "$as_me: failed program was:" >&5
3772cat conftest.$ac_ext >&5
3773ac_cv_c_const=no
3774fi
3775rm -f conftest.$ac_objext conftest.$ac_ext
3776fi
3777echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3778echo "${ECHO_T}$ac_cv_c_const" >&6
3779if test $ac_cv_c_const = no; then
3780
3781cat >>confdefs.h <<\_ACEOF
3782#define const
3783_ACEOF
3784
3785fi
3786
3787echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3788echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3789if test "${ac_cv_type_signal+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792 cat >conftest.$ac_ext <<_ACEOF
3793#line $LINENO "configure"
3794#include "confdefs.h"
3795#include <sys/types.h>
3796#include <signal.h>
3797#ifdef signal
3798# undef signal
3799#endif
3800#ifdef __cplusplus
3801extern "C" void (*signal (int, void (*)(int)))(int);
3802#else
3803void (*signal ()) ();
3804#endif
3805
3806int
3807main ()
3808{
3809int i;
3810 ;
3811 return 0;
3812}
3813_ACEOF
3814rm -f conftest.$ac_objext
3815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_cv_type_signal=void
3827else
3828 echo "$as_me: failed program was:" >&5
3829cat conftest.$ac_ext >&5
3830ac_cv_type_signal=int
3831fi
3832rm -f conftest.$ac_objext conftest.$ac_ext
3833fi
3834echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3835echo "${ECHO_T}$ac_cv_type_signal" >&6
3836
3837cat >>confdefs.h <<_ACEOF
3838#define RETSIGTYPE $ac_cv_type_signal
3839_ACEOF
3840
3841
3842
3843case "$host" in
3844 *-sunos5.6* | *-solaris2.6*)
3845 opsys=sol2-6
3846 cat >>confdefs.h <<\_ACEOF
3847#define SUNOS_5 1
3848_ACEOF
3849
3850
3851echo "$as_me:$LINENO: checking for main in -lxnet" >&5
3852echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
3853if test "${ac_cv_lib_xnet_main+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 ac_check_lib_save_LIBS=$LIBS
3857LIBS="-lxnet $LIBS"
3858cat >conftest.$ac_ext <<_ACEOF
3859#line $LINENO "configure"
3860#include "confdefs.h"
3861
3862
3863int
3864main ()
3865{
3866main ();
3867 ;
3868 return 0;
3869}
3870_ACEOF
3871rm -f conftest.$ac_objext conftest$ac_exeext
3872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3873 (eval $ac_link) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest$ac_exeext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_lib_xnet_main=yes
3884else
3885 echo "$as_me: failed program was:" >&5
3886cat conftest.$ac_ext >&5
3887ac_cv_lib_xnet_main=no
3888fi
3889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3890LIBS=$ac_check_lib_save_LIBS
3891fi
3892echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
3893echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
3894if test $ac_cv_lib_xnet_main = yes; then
3895 cat >>confdefs.h <<_ACEOF
3896#define HAVE_LIBXNET 1
3897_ACEOF
3898
3899 LIBS="-lxnet $LIBS"
3900
3901fi
3902
3903 CURSES=-lcurses
3904 ;;
3905 *-sunos5* | *-solaris2*)
3906 cat >>confdefs.h <<\_ACEOF
3907#define SUNOS_5 1
3908_ACEOF
3909
3910
3911echo "$as_me:$LINENO: checking for main in -lsocket" >&5
3912echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
3913if test "${ac_cv_lib_socket_main+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 ac_check_lib_save_LIBS=$LIBS
3917LIBS="-lsocket $LIBS"
3918cat >conftest.$ac_ext <<_ACEOF
3919#line $LINENO "configure"
3920#include "confdefs.h"
3921
3922
3923int
3924main ()
3925{
3926main ();
3927 ;
3928 return 0;
3929}
3930_ACEOF
3931rm -f conftest.$ac_objext conftest$ac_exeext
3932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3933 (eval $ac_link) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_lib_socket_main=yes
3944else
3945 echo "$as_me: failed program was:" >&5
3946cat conftest.$ac_ext >&5
3947ac_cv_lib_socket_main=no
3948fi
3949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3950LIBS=$ac_check_lib_save_LIBS
3951fi
3952echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
3953echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
3954if test $ac_cv_lib_socket_main = yes; then
3955 cat >>confdefs.h <<_ACEOF
3956#define HAVE_LIBSOCKET 1
3957_ACEOF
3958
3959 LIBS="-lsocket $LIBS"
3960
3961fi
3962
3963
3964echo "$as_me:$LINENO: checking for main in -lnsl" >&5
3965echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
3966if test "${ac_cv_lib_nsl_main+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969 ac_check_lib_save_LIBS=$LIBS
3970LIBS="-lnsl $LIBS"
3971cat >conftest.$ac_ext <<_ACEOF
3972#line $LINENO "configure"
3973#include "confdefs.h"
3974
3975
3976int
3977main ()
3978{
3979main ();
3980 ;
3981 return 0;
3982}
3983_ACEOF
3984rm -f conftest.$ac_objext conftest$ac_exeext
3985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986 (eval $ac_link) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -s conftest$ac_exeext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_lib_nsl_main=yes
3997else
3998 echo "$as_me: failed program was:" >&5
3999cat conftest.$ac_ext >&5
4000ac_cv_lib_nsl_main=no
4001fi
4002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4003LIBS=$ac_check_lib_save_LIBS
4004fi
4005echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4006echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4007if test $ac_cv_lib_nsl_main = yes; then
4008 cat >>confdefs.h <<_ACEOF
4009#define HAVE_LIBNSL 1
4010_ACEOF
4011
4012 LIBS="-lnsl $LIBS"
4013
4014fi
4015
4016 CURSES=-lcurses
4017 ;;
4018 *-linux-*)
4019 opsys=gnu-linux
4020 cat >>confdefs.h <<\_ACEOF
4021#define GNU_LINUX 1
4022_ACEOF
4023
4024 ;;
4025 *-nec-sysv4*)
4026
4027echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4028echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4029if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031else
4032 ac_check_lib_save_LIBS=$LIBS
4033LIBS="-lnsl $LIBS"
4034cat >conftest.$ac_ext <<_ACEOF
4035#line $LINENO "configure"
4036#include "confdefs.h"
4037
4038/* Override any gcc2 internal prototype to avoid an error. */
4039#ifdef __cplusplus
4040extern "C"
4041#endif
4042/* We use char because int might match the return type of a gcc2
4043 builtin and then its argument prototype would still apply. */
4044char gethostbyname ();
4045int
4046main ()
4047{
4048gethostbyname ();
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext conftest$ac_exeext
4054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055 (eval $ac_link) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -s conftest$ac_exeext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_cv_lib_nsl_gethostbyname=yes
4066else
4067 echo "$as_me: failed program was:" >&5
4068cat conftest.$ac_ext >&5
4069ac_cv_lib_nsl_gethostbyname=no
4070fi
4071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4072LIBS=$ac_check_lib_save_LIBS
4073fi
4074echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4075echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4076if test $ac_cv_lib_nsl_gethostbyname = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078#define HAVE_LIBNSL 1
4079_ACEOF
4080
4081 LIBS="-lnsl $LIBS"
4082
4083fi
4084
4085
4086echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4087echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4088if test "${ac_cv_lib_socket_socket+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 ac_check_lib_save_LIBS=$LIBS
4092LIBS="-lsocket $LIBS"
4093cat >conftest.$ac_ext <<_ACEOF
4094#line $LINENO "configure"
4095#include "confdefs.h"
4096
4097/* Override any gcc2 internal prototype to avoid an error. */
4098#ifdef __cplusplus
4099extern "C"
4100#endif
4101/* We use char because int might match the return type of a gcc2
4102 builtin and then its argument prototype would still apply. */
4103char socket ();
4104int
4105main ()
4106{
4107socket ();
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext conftest$ac_exeext
4113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114 (eval $ac_link) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -s conftest$ac_exeext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_lib_socket_socket=yes
4125else
4126 echo "$as_me: failed program was:" >&5
4127cat conftest.$ac_ext >&5
4128ac_cv_lib_socket_socket=no
4129fi
4130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4131LIBS=$ac_check_lib_save_LIBS
4132fi
4133echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4134echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4135if test $ac_cv_lib_socket_socket = yes; then
4136 cat >>confdefs.h <<_ACEOF
4137#define HAVE_LIBSOCKET 1
4138_ACEOF
4139
4140 LIBS="-lsocket $LIBS"
4141
4142fi
4143
4144 ;;
4145 *-freebsd3.2)
4146 cat >>confdefs.h <<\_ACEOF
4147#define FREEBSD_32 1
4148_ACEOF
4149
4150 ;;
4151 *-openbsd*)
4152 opsys=openbsd
4153 cat >>confdefs.h <<\_ACEOF
4154#define OPEN_BSD 1
4155_ACEOF
4156
4157 ;;
4158 *-bsdi*)
4159 opsys=bsdi
4160 OTHER_METHOD="mtu_kvm.o"
4161
4162echo "$as_me:$LINENO: checking for main in -lkvm" >&5
4163echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
4164if test "${ac_cv_lib_kvm_main+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166else
4167 ac_check_lib_save_LIBS=$LIBS
4168LIBS="-lkvm $LIBS"
4169cat >conftest.$ac_ext <<_ACEOF
4170#line $LINENO "configure"
4171#include "confdefs.h"
4172
4173
4174int
4175main ()
4176{
4177main ();
4178 ;
4179 return 0;
4180}
4181_ACEOF
4182rm -f conftest.$ac_objext conftest$ac_exeext
4183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -s conftest$ac_exeext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_lib_kvm_main=yes
4195else
4196 echo "$as_me: failed program was:" >&5
4197cat conftest.$ac_ext >&5
4198ac_cv_lib_kvm_main=no
4199fi
4200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4201LIBS=$ac_check_lib_save_LIBS
4202fi
4203echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
4204echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
4205if test $ac_cv_lib_kvm_main = yes; then
4206 cat >>confdefs.h <<_ACEOF
4207#define HAVE_LIBKVM 1
4208_ACEOF
4209
4210 LIBS="-lkvm $LIBS"
4211
4212fi
4213
4214 ;;
4215esac
4216
4217case "${host_cpu}-${host_os}" in
4218 i?86-solaris*)
4219 cat >>confdefs.h <<\_ACEOF
4220#define SOLARIS_X86 1
4221_ACEOF
4222
4223 ;;
4224esac
4225
4226case "${enable_vtysh}" in
4227 "yes") VTYSH="vtysh";
4228 cat >>confdefs.h <<\_ACEOF
4229#define VTYSH 1
4230_ACEOF
4231
4232
4233echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
4234echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
4235if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238 ac_check_lib_save_LIBS=$LIBS
4239LIBS="-ltinfo $LIBS"
4240cat >conftest.$ac_ext <<_ACEOF
4241#line $LINENO "configure"
4242#include "confdefs.h"
4243
4244/* Override any gcc2 internal prototype to avoid an error. */
4245#ifdef __cplusplus
4246extern "C"
4247#endif
4248/* We use char because int might match the return type of a gcc2
4249 builtin and then its argument prototype would still apply. */
4250char tputs ();
4251int
4252main ()
4253{
4254tputs ();
4255 ;
4256 return 0;
4257}
4258_ACEOF
4259rm -f conftest.$ac_objext conftest$ac_exeext
4260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4261 (eval $ac_link) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -s conftest$ac_exeext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_lib_tinfo_tputs=yes
4272else
4273 echo "$as_me: failed program was:" >&5
4274cat conftest.$ac_ext >&5
4275ac_cv_lib_tinfo_tputs=no
4276fi
4277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4278LIBS=$ac_check_lib_save_LIBS
4279fi
4280echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
4281echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
4282if test $ac_cv_lib_tinfo_tputs = yes; then
4283 cat >>confdefs.h <<_ACEOF
4284#define HAVE_LIBTINFO 1
4285_ACEOF
4286
4287 LIBS="-ltinfo $LIBS"
4288
4289else
4290
4291echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
4292echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
4293if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296 ac_check_lib_save_LIBS=$LIBS
4297LIBS="-lncurses $LIBS"
4298cat >conftest.$ac_ext <<_ACEOF
4299#line $LINENO "configure"
4300#include "confdefs.h"
4301
4302/* Override any gcc2 internal prototype to avoid an error. */
4303#ifdef __cplusplus
4304extern "C"
4305#endif
4306/* We use char because int might match the return type of a gcc2
4307 builtin and then its argument prototype would still apply. */
4308char tputs ();
4309int
4310main ()
4311{
4312tputs ();
4313 ;
4314 return 0;
4315}
4316_ACEOF
4317rm -f conftest.$ac_objext conftest$ac_exeext
4318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319 (eval $ac_link) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -s conftest$ac_exeext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 (eval $ac_try) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_lib_ncurses_tputs=yes
4330else
4331 echo "$as_me: failed program was:" >&5
4332cat conftest.$ac_ext >&5
4333ac_cv_lib_ncurses_tputs=no
4334fi
4335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4336LIBS=$ac_check_lib_save_LIBS
4337fi
4338echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
4339echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
4340if test $ac_cv_lib_ncurses_tputs = yes; then
4341 cat >>confdefs.h <<_ACEOF
4342#define HAVE_LIBNCURSES 1
4343_ACEOF
4344
4345 LIBS="-lncurses $LIBS"
4346
4347fi
4348
4349fi
4350
4351
4352echo "$as_me:$LINENO: checking for main in -lreadline" >&5
4353echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
4354if test "${ac_cv_lib_readline_main+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357 ac_check_lib_save_LIBS=$LIBS
4358LIBS="-lreadline $LIBS"
4359cat >conftest.$ac_ext <<_ACEOF
4360#line $LINENO "configure"
4361#include "confdefs.h"
4362
4363
4364int
4365main ()
4366{
4367main ();
4368 ;
4369 return 0;
4370}
4371_ACEOF
4372rm -f conftest.$ac_objext conftest$ac_exeext
4373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374 (eval $ac_link) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } &&
4378 { ac_try='test -s conftest$ac_exeext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 ac_cv_lib_readline_main=yes
4385else
4386 echo "$as_me: failed program was:" >&5
4387cat conftest.$ac_ext >&5
4388ac_cv_lib_readline_main=no
4389fi
4390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4391LIBS=$ac_check_lib_save_LIBS
4392fi
4393echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
4394echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
4395if test $ac_cv_lib_readline_main = yes; then
4396 cat >>confdefs.h <<_ACEOF
4397#define HAVE_LIBREADLINE 1
4398_ACEOF
4399
4400 LIBS="-lreadline $LIBS"
4401
4402fi
4403
4404 if test $ac_cv_lib_readline_main = no; then
4405 { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5
4406echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;}
4407 { (exit 1); exit 1; }; }
4408 fi
4409 if test "${ac_cv_header_readline_history_h+set}" = set; then
4410 echo "$as_me:$LINENO: checking for readline/history.h" >&5
4411echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4412if test "${ac_cv_header_readline_history_h+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4416echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4417else
4418 # Is the header compilable?
4419echo "$as_me:$LINENO: checking readline/history.h usability" >&5
4420echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
4421cat >conftest.$ac_ext <<_ACEOF
4422#line $LINENO "configure"
4423#include "confdefs.h"
4424$ac_includes_default
4425#include <readline/history.h>
4426_ACEOF
4427rm -f conftest.$ac_objext
4428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 (eval $ac_try) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_header_compiler=yes
4440else
4441 echo "$as_me: failed program was:" >&5
4442cat conftest.$ac_ext >&5
4443ac_header_compiler=no
4444fi
4445rm -f conftest.$ac_objext conftest.$ac_ext
4446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4447echo "${ECHO_T}$ac_header_compiler" >&6
4448
4449# Is the header present?
4450echo "$as_me:$LINENO: checking readline/history.h presence" >&5
4451echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
4452cat >conftest.$ac_ext <<_ACEOF
4453#line $LINENO "configure"
4454#include "confdefs.h"
4455#include <readline/history.h>
4456_ACEOF
4457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4459 ac_status=$?
4460 grep -v '^ *+' conftest.er1 >conftest.err
4461 rm -f conftest.er1
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } >/dev/null; then
4465 if test -s conftest.err; then
4466 ac_cpp_err=$ac_c_preproc_warn_flag
4467 else
4468 ac_cpp_err=
4469 fi
4470else
4471 ac_cpp_err=yes
4472fi
4473if test -z "$ac_cpp_err"; then
4474 ac_header_preproc=yes
4475else
4476 echo "$as_me: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4478 ac_header_preproc=no
4479fi
4480rm -f conftest.err conftest.$ac_ext
4481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4482echo "${ECHO_T}$ac_header_preproc" >&6
4483
4484# So? What about this header?
4485case $ac_header_compiler:$ac_header_preproc in
4486 yes:no )
4487 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
4488echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
4490echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4491 no:yes )
4492 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
4493echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
4495echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
4497echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4498esac
4499echo "$as_me:$LINENO: checking for readline/history.h" >&5
4500echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4501if test "${ac_cv_header_readline_history_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 ac_cv_header_readline_history_h=$ac_header_preproc
4505fi
4506echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4507echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4508
4509fi
4510
4511
4512 if test $ac_cv_header_readline_history_h = no;then
4513 { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
4514echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
4515 { (exit 1); exit 1; }; }
4516 fi
4517 ;;
4518 "no" ) VTYSH="";;
4519 * ) ;;
4520esac
4521
4522if test "$with_libpam" = "yes"; then
4523echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
4524echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
4525if test "${ac_cv_lib_pam_pam_start+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527else
4528 ac_check_lib_save_LIBS=$LIBS
4529LIBS="-lpam $LIBS"
4530cat >conftest.$ac_ext <<_ACEOF
4531#line $LINENO "configure"
4532#include "confdefs.h"
4533
4534/* Override any gcc2 internal prototype to avoid an error. */
4535#ifdef __cplusplus
4536extern "C"
4537#endif
4538/* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4540char pam_start ();
4541int
4542main ()
4543{
4544pam_start ();
4545 ;
4546 return 0;
4547}
4548_ACEOF
4549rm -f conftest.$ac_objext conftest$ac_exeext
4550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4551 (eval $ac_link) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -s conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_lib_pam_pam_start=yes
4562else
4563 echo "$as_me: failed program was:" >&5
4564cat conftest.$ac_ext >&5
4565ac_cv_lib_pam_pam_start=no
4566fi
4567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4568LIBS=$ac_check_lib_save_LIBS
4569fi
4570echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
4571echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
4572if test $ac_cv_lib_pam_pam_start = yes; then
4573 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
4574echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4575if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578 ac_check_lib_save_LIBS=$LIBS
4579LIBS="-lpam $LIBS"
4580cat >conftest.$ac_ext <<_ACEOF
4581#line $LINENO "configure"
4582#include "confdefs.h"
4583
4584/* Override any gcc2 internal prototype to avoid an error. */
4585#ifdef __cplusplus
4586extern "C"
4587#endif
4588/* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4590char misc_conv ();
4591int
4592main ()
4593{
4594misc_conv ();
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599rm -f conftest.$ac_objext conftest$ac_exeext
4600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601 (eval $ac_link) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest$ac_exeext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_lib_pam_misc_conv=yes
4612else
4613 echo "$as_me: failed program was:" >&5
4614cat conftest.$ac_ext >&5
4615ac_cv_lib_pam_misc_conv=no
4616fi
4617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618LIBS=$ac_check_lib_save_LIBS
4619fi
4620echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
4621echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4622if test $ac_cv_lib_pam_misc_conv = yes; then
4623 cat >>confdefs.h <<\_ACEOF
4624#define USE_PAM 1
4625_ACEOF
4626
4627 LIBPAM="-lpam"
4628else
4629 cat >>confdefs.h <<\_ACEOF
4630#define USE_PAM 1
4631_ACEOF
4632
4633 LIBPAM="-lpam -lpam_misc"
4634
4635fi
4636
4637
4638else
4639 echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
4640echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
4641if test "${ac_cv_lib_pam_pam_end+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644 ac_check_lib_save_LIBS=$LIBS
4645LIBS="-lpam -ldl $LIBS"
4646cat >conftest.$ac_ext <<_ACEOF
4647#line $LINENO "configure"
4648#include "confdefs.h"
4649
4650/* Override any gcc2 internal prototype to avoid an error. */
4651#ifdef __cplusplus
4652extern "C"
4653#endif
4654/* We use char because int might match the return type of a gcc2
4655 builtin and then its argument prototype would still apply. */
4656char pam_end ();
4657int
4658main ()
4659{
4660pam_end ();
4661 ;
4662 return 0;
4663}
4664_ACEOF
4665rm -f conftest.$ac_objext conftest$ac_exeext
4666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -s conftest$ac_exeext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 ac_cv_lib_pam_pam_end=yes
4678else
4679 echo "$as_me: failed program was:" >&5
4680cat conftest.$ac_ext >&5
4681ac_cv_lib_pam_pam_end=no
4682fi
4683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4684LIBS=$ac_check_lib_save_LIBS
4685fi
4686echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
4687echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
4688if test $ac_cv_lib_pam_pam_end = yes; then
4689 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
4690echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4691if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694 ac_check_lib_save_LIBS=$LIBS
4695LIBS="-lpam $LIBS"
4696cat >conftest.$ac_ext <<_ACEOF
4697#line $LINENO "configure"
4698#include "confdefs.h"
4699
4700/* Override any gcc2 internal prototype to avoid an error. */
4701#ifdef __cplusplus
4702extern "C"
4703#endif
4704/* We use char because int might match the return type of a gcc2
4705 builtin and then its argument prototype would still apply. */
4706char misc_conv ();
4707int
4708main ()
4709{
4710misc_conv ();
4711 ;
4712 return 0;
4713}
4714_ACEOF
4715rm -f conftest.$ac_objext conftest$ac_exeext
4716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -s conftest$ac_exeext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_cv_lib_pam_misc_conv=yes
4728else
4729 echo "$as_me: failed program was:" >&5
4730cat conftest.$ac_ext >&5
4731ac_cv_lib_pam_misc_conv=no
4732fi
4733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4734LIBS=$ac_check_lib_save_LIBS
4735fi
4736echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
4737echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4738if test $ac_cv_lib_pam_misc_conv = yes; then
4739 cat >>confdefs.h <<\_ACEOF
4740#define USE_PAM 1
4741_ACEOF
4742
4743 LIBPAM="-lpam -ldl"
4744else
4745 cat >>confdefs.h <<\_ACEOF
4746#define USE_PAM 1
4747_ACEOF
4748
4749 LIBPAM="-lpam -ldl -lpam_misc"
4750
4751fi
4752
4753
4754else
4755 { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
4756echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
4757fi
4758
4759
4760
4761fi
4762
4763fi
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs
4782do
4783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4784echo "$as_me:$LINENO: checking for $ac_func" >&5
4785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4786if eval "test \"\${$as_ac_var+set}\" = set"; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789 cat >conftest.$ac_ext <<_ACEOF
4790#line $LINENO "configure"
4791#include "confdefs.h"
4792/* System header to define __stub macros and hopefully few prototypes,
4793 which can conflict with char $ac_func (); below. */
4794#include <assert.h>
4795/* Override any gcc2 internal prototype to avoid an error. */
4796#ifdef __cplusplus
4797extern "C"
4798#endif
4799/* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4801char $ac_func ();
4802char (*f) ();
4803
4804int
4805main ()
4806{
4807/* The GNU C library defines this for functions which it implements
4808 to always fail with ENOSYS. Some functions are actually named
4809 something starting with __ and the normal name is an alias. */
4810#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4811choke me
4812#else
4813f = $ac_func;
4814#endif
4815
4816 ;
4817 return 0;
4818}
4819_ACEOF
4820rm -f conftest.$ac_objext conftest$ac_exeext
4821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4822 (eval $ac_link) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } &&
4826 { ac_try='test -s conftest$ac_exeext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 eval "$as_ac_var=yes"
4833else
4834 echo "$as_me: failed program was:" >&5
4835cat conftest.$ac_ext >&5
4836eval "$as_ac_var=no"
4837fi
4838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4839fi
4840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4842if test `eval echo '${'$as_ac_var'}'` = yes; then
4843 cat >>confdefs.h <<_ACEOF
4844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4845_ACEOF
4846
4847fi
4848done
4849
4850
4851for ac_func in setproctitle
4852do
4853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4854echo "$as_me:$LINENO: checking for $ac_func" >&5
4855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4856if eval "test \"\${$as_ac_var+set}\" = set"; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858else
4859 cat >conftest.$ac_ext <<_ACEOF
4860#line $LINENO "configure"
4861#include "confdefs.h"
4862/* System header to define __stub macros and hopefully few prototypes,
4863 which can conflict with char $ac_func (); below. */
4864#include <assert.h>
4865/* Override any gcc2 internal prototype to avoid an error. */
4866#ifdef __cplusplus
4867extern "C"
4868#endif
4869/* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4871char $ac_func ();
4872char (*f) ();
4873
4874int
4875main ()
4876{
4877/* The GNU C library defines this for functions which it implements
4878 to always fail with ENOSYS. Some functions are actually named
4879 something starting with __ and the normal name is an alias. */
4880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4881choke me
4882#else
4883f = $ac_func;
4884#endif
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
4890rm -f conftest.$ac_objext conftest$ac_exeext
4891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892 (eval $ac_link) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -s conftest$ac_exeext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 eval "$as_ac_var=yes"
4903else
4904 echo "$as_me: failed program was:" >&5
4905cat conftest.$ac_ext >&5
4906eval "$as_ac_var=no"
4907fi
4908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4909fi
4910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4912if test `eval echo '${'$as_ac_var'}'` = yes; then
4913 cat >>confdefs.h <<_ACEOF
4914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4915_ACEOF
4916
4917else
4918 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4919echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4920if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923 ac_check_lib_save_LIBS=$LIBS
4924LIBS="-lutil $LIBS"
4925cat >conftest.$ac_ext <<_ACEOF
4926#line $LINENO "configure"
4927#include "confdefs.h"
4928
4929/* Override any gcc2 internal prototype to avoid an error. */
4930#ifdef __cplusplus
4931extern "C"
4932#endif
4933/* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4935char setproctitle ();
4936int
4937main ()
4938{
4939setproctitle ();
4940 ;
4941 return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext conftest$ac_exeext
4945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -s conftest$ac_exeext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_cv_lib_util_setproctitle=yes
4957else
4958 echo "$as_me: failed program was:" >&5
4959cat conftest.$ac_ext >&5
4960ac_cv_lib_util_setproctitle=no
4961fi
4962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4963LIBS=$ac_check_lib_save_LIBS
4964fi
4965echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4966echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4967if test $ac_cv_lib_util_setproctitle = yes; then
4968 LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF
4969#define HAVE_SETPROCTITLE 1
4970_ACEOF
4971
4972fi
4973
4974fi
4975done
4976
4977
4978echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
4979echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
4980if test x"$opsys" = x"gnu-linux"; then
4981 if test "${enable_netlink}" = "yes";then
4982 echo "$as_me:$LINENO: result: netlink" >&5
4983echo "${ECHO_T}netlink" >&6
4984 RT_METHOD=rt_netlink.o
4985 cat >>confdefs.h <<\_ACEOF
4986#define HAVE_NETLINK 1
4987_ACEOF
4988
4989 netlink=yes
4990 elif test "${enable_netlink}" = "no"; then
4991 echo "$as_me:$LINENO: result: ioctl" >&5
4992echo "${ECHO_T}ioctl" >&6
4993 RT_METHOD=rt_ioctl.o
4994 netlink=no
4995 else
4996 cat >conftest.$ac_ext <<_ACEOF
4997#line $LINENO "configure"
4998#include "confdefs.h"
4999#include <linux/autoconf.h>
5000#include <linux/version.h>
5001#if LINUX_VERSION_CODE > 131328 /* 2.1.0 or later */
5002#ifdef CONFIG_RTNETLINK
5003 yes
5004#endif
5005#endif
5006#if LINUX_VERSION_CODE > 132112 /* 2.4.17 or later */
5007 yes
5008#endif
5009
5010_ACEOF
5011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "yes" >/dev/null 2>&1; then
5013 echo "$as_me:$LINENO: result: netlink" >&5
5014echo "${ECHO_T}netlink" >&6
5015 RT_METHOD=rt_netlink.o
5016 cat >>confdefs.h <<\_ACEOF
5017#define HAVE_NETLINK 1
5018_ACEOF
5019
5020 netlink=yes
5021else
5022 echo "$as_me:$LINENO: result: ioctl" >&5
5023echo "${ECHO_T}ioctl" >&6
5024 RT_METHOD=rt_ioctl.o
5025fi
5026rm -f conftest*
5027
5028 fi
5029else
5030 if test "$opsys" = "sol2-6";then
5031 echo "$as_me:$LINENO: result: solaris" >&5
5032echo "${ECHO_T}solaris" >&6
5033 KERNEL_METHOD="kernel_socket.o"
5034 RT_METHOD="rt_socket.o"
5035 else
5036 if test "$cross_compiling" = yes; then
5037 KERNEL_METHOD=kernel_socket.o
5038 RT_METHOD=rt_socket.o
5039 echo "$as_me:$LINENO: result: socket" >&5
5040echo "${ECHO_T}socket" >&6
5041else
5042 cat >conftest.$ac_ext <<_ACEOF
5043#line $LINENO "configure"
5044#include "confdefs.h"
5045#include <errno.h>
5046#include <sys/types.h>
5047#include <sys/socket.h>
5048
5049main ()
5050{
5051 int ac_sock;
5052
5053 ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
5054 if (ac_sock < 0 && errno == EINVAL)
5055 exit (1);
5056 exit (0);
5057}
5058_ACEOF
5059rm -f conftest$ac_exeext
5060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5061 (eval $ac_link) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 cat >>confdefs.h <<\_ACEOF
5071#define HAVE_AF_ROUTE 1
5072_ACEOF
5073
5074 KERNEL_METHOD=kernel_socket.o
5075 RT_METHOD=rt_socket.o
5076 echo "$as_me:$LINENO: result: socket" >&5
5077echo "${ECHO_T}socket" >&6
5078else
5079 echo "$as_me: program exited with status $ac_status" >&5
5080echo "$as_me: failed program was:" >&5
5081cat conftest.$ac_ext >&5
5082( exit $ac_status )
5083RT_METHOD=rt_ioctl.o
5084 echo "$as_me:$LINENO: result: ioctl" >&5
5085echo "${ECHO_T}ioctl" >&6
5086fi
5087rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5088fi
5089 fi
5090fi
5091
5092
5093
5094
5095echo "$as_me:$LINENO: checking route read method check" >&5
5096echo $ECHO_N "checking route read method check... $ECHO_C" >&6
5097if test "${zebra_rtread+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 if test "$netlink" = yes; then
5101 RTREAD_METHOD="rtread_netlink.o"
5102 zebra_rtread="netlink"
5103else
5104for zebra_rtread in /proc/net/route /dev/ip /dev/null;
5105do
5106 test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
5107done
5108case $zebra_rtread in
5109 "/proc/net/route") RTREAD_METHOD="rtread_proc.o"
5110 zebra_rtread="proc";;
5111 "/dev/ip") RTREAD_METHOD="rtread_getmsg.o"
5112 zebra_rtread="getmsg";;
5113 *) RTREAD_METHOD="rtread_sysctl.o"
5114 zebra_rtread="sysctl";;
5115esac
5116fi
5117fi
5118echo "$as_me:$LINENO: result: $zebra_rtread" >&5
5119echo "${ECHO_T}$zebra_rtread" >&6
5120
5121
5122echo "$as_me:$LINENO: checking interface looking up method" >&5
5123echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
5124if test "$netlink" = yes; then
5125 echo "$as_me:$LINENO: result: netlink" >&5
5126echo "${ECHO_T}netlink" >&6
5127 IF_METHOD=if_netlink.o
5128else
5129 if test "$opsys" = "sol2-6";then
5130 echo "$as_me:$LINENO: result: solaris" >&5
5131echo "${ECHO_T}solaris" >&6
5132 IF_METHOD=if_ioctl.o
5133 elif test "$opsys" = "openbsd";then
5134 echo "$as_me:$LINENO: result: openbsd" >&5
5135echo "${ECHO_T}openbsd" >&6
5136 IF_METHOD=if_ioctl.o
5137 elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
5138 echo "$as_me:$LINENO: result: sysctl" >&5
5139echo "${ECHO_T}sysctl" >&6
5140 IF_METHOD=if_sysctl.o
5141 cat >>confdefs.h <<\_ACEOF
5142#define HAVE_NET_RT_IFLIST 1
5143_ACEOF
5144
5145 else
5146 echo "$as_me:$LINENO: result: ioctl" >&5
5147echo "${ECHO_T}ioctl" >&6
5148 IF_METHOD=if_ioctl.o
5149 fi
5150fi
5151
5152
5153if test -r /proc/net/dev; then
5154 cat >>confdefs.h <<\_ACEOF
5155#define HAVE_PROC_NET_DEV 1
5156_ACEOF
5157
5158 IF_PROC=if_proc.o
5159fi
5160
5161if test -r /proc/net/if_inet6; then
5162 cat >>confdefs.h <<\_ACEOF
5163#define HAVE_PROC_NET_IF_INET6 1
5164_ACEOF
5165
5166 IF_PROC=if_proc.o
5167fi
5168
5169
5170echo "$as_me:$LINENO: checking ipforward method check" >&5
5171echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
5172if test "${zebra_ipforward_path+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175 for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
5176do
5177 test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
5178done
5179case $zebra_ipforward_path in
5180 "/proc/net/snmp") IPFORWARD=ipforward_proc.o
5181 zebra_ipforward_path="proc";;
5182 "/dev/ip")
5183 case "$host" in
5184 *-nec-sysv4*) IPFORWARD=ipforward_ews.o
5185 zebra_ipforward_path="ews";;
5186 *) IPFORWARD=ipforward_solaris.o
5187 zebra_ipforward_path="solaris";;
5188 esac;;
5189 *) IPFORWARD=ipforward_sysctl.o
5190 zebra_ipforward_path="sysctl";;
5191esac
5192fi
5193echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
5194echo "${ECHO_T}$zebra_ipforward_path" >&6
5195
5196
5197
5198for ac_func in getaddrinfo
5199do
5200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5201echo "$as_me:$LINENO: checking for $ac_func" >&5
5202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5203if eval "test \"\${$as_ac_var+set}\" = set"; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 cat >conftest.$ac_ext <<_ACEOF
5207#line $LINENO "configure"
5208#include "confdefs.h"
5209/* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func (); below. */
5211#include <assert.h>
5212/* Override any gcc2 internal prototype to avoid an error. */
5213#ifdef __cplusplus
5214extern "C"
5215#endif
5216/* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5218char $ac_func ();
5219char (*f) ();
5220
5221int
5222main ()
5223{
5224/* The GNU C library defines this for functions which it implements
5225 to always fail with ENOSYS. Some functions are actually named
5226 something starting with __ and the normal name is an alias. */
5227#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5228choke me
5229#else
5230f = $ac_func;
5231#endif
5232
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237rm -f conftest.$ac_objext conftest$ac_exeext
5238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -s conftest$ac_exeext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 eval "$as_ac_var=yes"
5250else
5251 echo "$as_me: failed program was:" >&5
5252cat conftest.$ac_ext >&5
5253eval "$as_ac_var=no"
5254fi
5255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5256fi
5257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5259if test `eval echo '${'$as_ac_var'}'` = yes; then
5260 cat >>confdefs.h <<_ACEOF
5261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5262_ACEOF
5263 have_getaddrinfo=yes
5264else
5265 have_getaddrinfo=no
5266fi
5267done
5268
5269
5270echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
5271echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
5272if test "${enable_ipv6}" = "no"; then
5273 echo "$as_me:$LINENO: result: disabled" >&5
5274echo "${ECHO_T}disabled" >&6
5275else
5276if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
5277 zebra_cv_ipv6=yes
5278 cat >>confdefs.h <<\_ACEOF
5279#define HAVE_IPV6 1
5280_ACEOF
5281
5282 cat >>confdefs.h <<\_ACEOF
5283#define INRIA_IPV6 1
5284_ACEOF
5285
5286 RIPNGD="ripngd"
5287 OSPF6D="ospf6d"
5288 LIB_IPV6=""
5289 echo "$as_me:$LINENO: result: INRIA IPv6" >&5
5290echo "${ECHO_T}INRIA IPv6" >&6
5291fi
5292if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
5293 zebra_cv_ipv6=yes
5294 cat >>confdefs.h <<\_ACEOF
5295#define HAVE_IPV6 1
5296_ACEOF
5297
5298 cat >>confdefs.h <<\_ACEOF
5299#define KAME 1
5300_ACEOF
5301
5302 RIPNGD="ripngd"
5303 OSPF6D="ospf6d"
5304 if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
5305 LIB_IPV6="-L/usr/local/v6/lib -linet6"
5306 fi
5307 echo "$as_me:$LINENO: result: KAME" >&5
5308echo "${ECHO_T}KAME" >&6
5309fi
5310if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
5311 zebra_cv_ipv6=yes
5312 cat >>confdefs.h <<\_ACEOF
5313#define HAVE_IPV6 1
5314_ACEOF
5315
5316 cat >>confdefs.h <<\_ACEOF
5317#define NRL 1
5318_ACEOF
5319
5320 RIPNGD="ripngd"
5321 OSPF6D="ospf6d"
5322 if test x"$opsys" = x"bsdi";then
5323 cat >>confdefs.h <<\_ACEOF
5324#define BSDI_NRL 1
5325_ACEOF
5326
5327 echo "$as_me:$LINENO: result: BSDI_NRL" >&5
5328echo "${ECHO_T}BSDI_NRL" >&6
5329 else
5330 echo "$as_me:$LINENO: result: NRL" >&5
5331echo "${ECHO_T}NRL" >&6
5332 fi
5333fi
5334
5335if test "${enable_ipv6}" = "yes"; then
5336 cat >conftest.$ac_ext <<_ACEOF
5337#line $LINENO "configure"
5338#include "confdefs.h"
5339
5340 #include <linux/version.h>
5341 /* 2.1.128 or later */
5342 #if LINUX_VERSION_CODE >= 0x020180
5343 yes
5344 #endif
5345_ACEOF
5346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5347 $EGREP "yes" >/dev/null 2>&1; then
5348 zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$as_me:$LINENO: result: Linux IPv6" >&5
5349echo "${ECHO_T}Linux IPv6" >&6
5350fi
5351rm -f conftest*
5352
5353else
5354 if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
5355 then
5356 zebra_cv_ipv6=yes
5357 zebra_cv_linux_ipv6=yes
5358 echo "$as_me:$LINENO: result: Linux IPv6" >&5
5359echo "${ECHO_T}Linux IPv6" >&6
5360 fi
5361fi
5362
5363if test "$zebra_cv_linux_ipv6" = "yes";then
5364 cat >>confdefs.h <<\_ACEOF
5365#define HAVE_IPV6 1
5366_ACEOF
5367
5368 echo "$as_me:$LINENO: checking for GNU libc 2.1" >&5
5369echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6
5370 cat >conftest.$ac_ext <<_ACEOF
5371#line $LINENO "configure"
5372#include "confdefs.h"
5373
5374#include <features.h>
5375#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5376 yes
5377#endif
5378_ACEOF
5379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 $EGREP "yes" >/dev/null 2>&1; then
5381 glibc=yes; echo "$as_me:$LINENO: result: yes" >&5
5382echo "${ECHO_T}yes" >&6
5383else
5384 echo "$as_me:$LINENO: result: no" >&5
5385echo "${ECHO_T}no" >&6
5386fi
5387rm -f conftest*
5388
5389 cat >>confdefs.h <<\_ACEOF
5390#define LINUX_IPV6 1
5391_ACEOF
5392
5393 RIPNGD="ripngd"
5394 OSPF6D="ospf6d"
5395 if test "$glibc" != "yes"; then
5396 INCLUDES="-I/usr/inet6/include"
5397 if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
5398 LIB_IPV6="-L/usr/inet6/lib -linet6"
5399 fi
5400 fi
5401fi
5402
5403LIBS="$LIB_IPV6 $LIBS"
5404
5405
5406if test x"$RIPNGD" = x""; then
5407 echo "$as_me:$LINENO: result: IPv4 only" >&5
5408echo "${ECHO_T}IPv4 only" >&6
5409fi
5410fi
5411
5412if test "${enable_zebra}" = "no";then
5413 ZEBRA=""
5414else
5415 ZEBRA="zebra"
5416fi
5417
5418if test "${enable_bgpd}" = "no";then
5419 BGPD=""
5420else
5421 BGPD="bgpd"
5422fi
5423
5424if test "${enable_ripd}" = "no";then
5425 RIPD=""
5426else
5427 RIPD="ripd"
5428fi
5429
5430if test "${enable_ospfd}" = "no";then
5431 OSPFD=""
5432else
5433 OSPFD="ospfd"
5434fi
5435
5436case "${enable_ripngd}" in
5437 "yes") RIPNGD="ripngd";;
5438 "no" ) RIPNGD="";;
5439 * ) ;;
5440esac
5441
5442case "${enable_ospf6d}" in
5443 "yes") OSPF6D="ospf6d";;
5444 "no" ) OSPF6D="";;
5445 * ) ;;
5446esac
5447
5448if test "${enable_bgp_announce}" = "no";then
5449 cat >>confdefs.h <<\_ACEOF
5450#define DISABLE_BGP_ANNOUNCE 1
5451_ACEOF
5452
5453fi
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
5465echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
5466if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469 ac_check_lib_save_LIBS=$LIBS
5470LIBS="-lc $LIBS"
5471cat >conftest.$ac_ext <<_ACEOF
5472#line $LINENO "configure"
5473#include "confdefs.h"
5474
5475/* Override any gcc2 internal prototype to avoid an error. */
5476#ifdef __cplusplus
5477extern "C"
5478#endif
5479/* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5481char inet_ntop ();
5482int
5483main ()
5484{
5485inet_ntop ();
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490rm -f conftest.$ac_objext conftest$ac_exeext
5491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492 (eval $ac_link) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try='test -s conftest$ac_exeext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 ac_cv_lib_c_inet_ntop=yes
5503else
5504 echo "$as_me: failed program was:" >&5
5505cat conftest.$ac_ext >&5
5506ac_cv_lib_c_inet_ntop=no
5507fi
5508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5509LIBS=$ac_check_lib_save_LIBS
5510fi
5511echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
5512echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
5513if test $ac_cv_lib_c_inet_ntop = yes; then
5514 cat >>confdefs.h <<\_ACEOF
5515#define HAVE_INET_NTOP 1
5516_ACEOF
5517
5518fi
5519
5520echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
5521echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
5522if test "${ac_cv_lib_c_inet_pton+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
5525 ac_check_lib_save_LIBS=$LIBS
5526LIBS="-lc $LIBS"
5527cat >conftest.$ac_ext <<_ACEOF
5528#line $LINENO "configure"
5529#include "confdefs.h"
5530
5531/* Override any gcc2 internal prototype to avoid an error. */
5532#ifdef __cplusplus
5533extern "C"
5534#endif
5535/* We use char because int might match the return type of a gcc2
5536 builtin and then its argument prototype would still apply. */
5537char inet_pton ();
5538int
5539main ()
5540{
5541inet_pton ();
5542 ;
5543 return 0;
5544}
5545_ACEOF
5546rm -f conftest.$ac_objext conftest$ac_exeext
5547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548 (eval $ac_link) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_lib_c_inet_pton=yes
5559else
5560 echo "$as_me: failed program was:" >&5
5561cat conftest.$ac_ext >&5
5562ac_cv_lib_c_inet_pton=no
5563fi
5564rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5565LIBS=$ac_check_lib_save_LIBS
5566fi
5567echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
5568echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
5569if test $ac_cv_lib_c_inet_pton = yes; then
5570 cat >>confdefs.h <<\_ACEOF
5571#define HAVE_INET_PTON 1
5572_ACEOF
5573
5574fi
5575
5576
5577echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
5578echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
5579if test "${ac_cv_lib_crypt_crypt+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582 ac_check_lib_save_LIBS=$LIBS
5583LIBS="-lcrypt $LIBS"
5584cat >conftest.$ac_ext <<_ACEOF
5585#line $LINENO "configure"
5586#include "confdefs.h"
5587
5588/* Override any gcc2 internal prototype to avoid an error. */
5589#ifdef __cplusplus
5590extern "C"
5591#endif
5592/* We use char because int might match the return type of a gcc2
5593 builtin and then its argument prototype would still apply. */
5594char crypt ();
5595int
5596main ()
5597{
5598crypt ();
5599 ;
5600 return 0;
5601}
5602_ACEOF
5603rm -f conftest.$ac_objext conftest$ac_exeext
5604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605 (eval $ac_link) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -s conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_lib_crypt_crypt=yes
5616else
5617 echo "$as_me: failed program was:" >&5
5618cat conftest.$ac_ext >&5
5619ac_cv_lib_crypt_crypt=no
5620fi
5621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622LIBS=$ac_check_lib_save_LIBS
5623fi
5624echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
5625echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
5626if test $ac_cv_lib_crypt_crypt = yes; then
5627 cat >>confdefs.h <<_ACEOF
5628#define HAVE_LIBCRYPT 1
5629_ACEOF
5630
5631 LIBS="-lcrypt $LIBS"
5632
5633fi
5634
5635
5636echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
5637echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
5638if test "${ac_cv_lib_resolv_res_init+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 ac_check_lib_save_LIBS=$LIBS
5642LIBS="-lresolv $LIBS"
5643cat >conftest.$ac_ext <<_ACEOF
5644#line $LINENO "configure"
5645#include "confdefs.h"
5646
5647/* Override any gcc2 internal prototype to avoid an error. */
5648#ifdef __cplusplus
5649extern "C"
5650#endif
5651/* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5653char res_init ();
5654int
5655main ()
5656{
5657res_init ();
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662rm -f conftest.$ac_objext conftest$ac_exeext
5663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -s conftest$ac_exeext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_lib_resolv_res_init=yes
5675else
5676 echo "$as_me: failed program was:" >&5
5677cat conftest.$ac_ext >&5
5678ac_cv_lib_resolv_res_init=no
5679fi
5680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681LIBS=$ac_check_lib_save_LIBS
5682fi
5683echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
5684echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
5685if test $ac_cv_lib_resolv_res_init = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687#define HAVE_LIBRESOLV 1
5688_ACEOF
5689
5690 LIBS="-lresolv $LIBS"
5691
5692fi
5693
5694
5695echo "$as_me:$LINENO: checking for main in -lm" >&5
5696echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5697if test "${ac_cv_lib_m_main+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 ac_check_lib_save_LIBS=$LIBS
5701LIBS="-lm $LIBS"
5702cat >conftest.$ac_ext <<_ACEOF
5703#line $LINENO "configure"
5704#include "confdefs.h"
5705
5706
5707int
5708main ()
5709{
5710main ();
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715rm -f conftest.$ac_objext conftest$ac_exeext
5716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_lib_m_main=yes
5728else
5729 echo "$as_me: failed program was:" >&5
5730cat conftest.$ac_ext >&5
5731ac_cv_lib_m_main=no
5732fi
5733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5734LIBS=$ac_check_lib_save_LIBS
5735fi
5736echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5737echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5738if test $ac_cv_lib_m_main = yes; then
5739 cat >>confdefs.h <<_ACEOF
5740#define HAVE_LIBM 1
5741_ACEOF
5742
5743 LIBS="-lm $LIBS"
5744
5745fi
5746
5747
5748echo "$as_me:$LINENO: checking for __inet_ntop" >&5
5749echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
5750if test "${ac_cv_func___inet_ntop+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 cat >conftest.$ac_ext <<_ACEOF
5754#line $LINENO "configure"
5755#include "confdefs.h"
5756/* System header to define __stub macros and hopefully few prototypes,
5757 which can conflict with char __inet_ntop (); below. */
5758#include <assert.h>
5759/* Override any gcc2 internal prototype to avoid an error. */
5760#ifdef __cplusplus
5761extern "C"
5762#endif
5763/* We use char because int might match the return type of a gcc2
5764 builtin and then its argument prototype would still apply. */
5765char __inet_ntop ();
5766char (*f) ();
5767
5768int
5769main ()
5770{
5771/* The GNU C library defines this for functions which it implements
5772 to always fail with ENOSYS. Some functions are actually named
5773 something starting with __ and the normal name is an alias. */
5774#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
5775choke me
5776#else
5777f = __inet_ntop;
5778#endif
5779
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784rm -f conftest.$ac_objext conftest$ac_exeext
5785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5786 (eval $ac_link) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -s conftest$ac_exeext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_cv_func___inet_ntop=yes
5797else
5798 echo "$as_me: failed program was:" >&5
5799cat conftest.$ac_ext >&5
5800ac_cv_func___inet_ntop=no
5801fi
5802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803fi
5804echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
5805echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
5806if test $ac_cv_func___inet_ntop = yes; then
5807 cat >>confdefs.h <<\_ACEOF
5808#define HAVE_INET_NTOP 1
5809_ACEOF
5810
5811fi
5812
5813echo "$as_me:$LINENO: checking for __inet_pton" >&5
5814echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
5815if test "${ac_cv_func___inet_pton+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 cat >conftest.$ac_ext <<_ACEOF
5819#line $LINENO "configure"
5820#include "confdefs.h"
5821/* System header to define __stub macros and hopefully few prototypes,
5822 which can conflict with char __inet_pton (); below. */
5823#include <assert.h>
5824/* Override any gcc2 internal prototype to avoid an error. */
5825#ifdef __cplusplus
5826extern "C"
5827#endif
5828/* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5830char __inet_pton ();
5831char (*f) ();
5832
5833int
5834main ()
5835{
5836/* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
5840choke me
5841#else
5842f = __inet_pton;
5843#endif
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
5849rm -f conftest.$ac_objext conftest$ac_exeext
5850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851 (eval $ac_link) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -s conftest$ac_exeext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_cv_func___inet_pton=yes
5862else
5863 echo "$as_me: failed program was:" >&5
5864cat conftest.$ac_ext >&5
5865ac_cv_func___inet_pton=no
5866fi
5867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868fi
5869echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
5870echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
5871if test $ac_cv_func___inet_pton = yes; then
5872 cat >>confdefs.h <<\_ACEOF
5873#define HAVE_INET_PTON 1
5874_ACEOF
5875
5876fi
5877
5878echo "$as_me:$LINENO: checking for __inet_aton" >&5
5879echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
5880if test "${ac_cv_func___inet_aton+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883 cat >conftest.$ac_ext <<_ACEOF
5884#line $LINENO "configure"
5885#include "confdefs.h"
5886/* System header to define __stub macros and hopefully few prototypes,
5887 which can conflict with char __inet_aton (); below. */
5888#include <assert.h>
5889/* Override any gcc2 internal prototype to avoid an error. */
5890#ifdef __cplusplus
5891extern "C"
5892#endif
5893/* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5895char __inet_aton ();
5896char (*f) ();
5897
5898int
5899main ()
5900{
5901/* The GNU C library defines this for functions which it implements
5902 to always fail with ENOSYS. Some functions are actually named
5903 something starting with __ and the normal name is an alias. */
5904#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
5905choke me
5906#else
5907f = __inet_aton;
5908#endif
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914rm -f conftest.$ac_objext conftest$ac_exeext
5915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_func___inet_aton=yes
5927else
5928 echo "$as_me: failed program was:" >&5
5929cat conftest.$ac_ext >&5
5930ac_cv_func___inet_aton=no
5931fi
5932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5933fi
5934echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
5935echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
5936if test $ac_cv_func___inet_aton = yes; then
5937 cat >>confdefs.h <<\_ACEOF
5938#define HAVE_INET_ATON 1
5939_ACEOF
5940
5941fi
5942
5943
5944echo "$as_me:$LINENO: checking for regexec in -lc" >&5
5945echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
5946if test "${ac_cv_lib_c_regexec+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949 ac_check_lib_save_LIBS=$LIBS
5950LIBS="-lc $LIBS"
5951cat >conftest.$ac_ext <<_ACEOF
5952#line $LINENO "configure"
5953#include "confdefs.h"
5954
5955/* Override any gcc2 internal prototype to avoid an error. */
5956#ifdef __cplusplus
5957extern "C"
5958#endif
5959/* We use char because int might match the return type of a gcc2
5960 builtin and then its argument prototype would still apply. */
5961char regexec ();
5962int
5963main ()
5964{
5965regexec ();
5966 ;
5967 return 0;
5968}
5969_ACEOF
5970rm -f conftest.$ac_objext conftest$ac_exeext
5971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972 (eval $ac_link) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } &&
5976 { ac_try='test -s conftest$ac_exeext'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 ac_cv_lib_c_regexec=yes
5983else
5984 echo "$as_me: failed program was:" >&5
5985cat conftest.$ac_ext >&5
5986ac_cv_lib_c_regexec=no
5987fi
5988rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5989LIBS=$ac_check_lib_save_LIBS
5990fi
5991echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
5992echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
5993if test $ac_cv_lib_c_regexec = yes; then
5994 cat >>confdefs.h <<\_ACEOF
5995#define HAVE_GNU_REGEX 1
5996_ACEOF
5997
5998 LIB_REGEX=""
5999else
6000 LIB_REGEX="regex.o"
6001fi
6002
6003
6004
6005
6006if test "${enable_snmp}" = "yes";then
6007 old_libs="${LIBS}"
6008 LIBS="-L/usr/local/lib"
6009 unset ac_cv_lib_snmp_asn_parse_int
6010 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6011echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6012if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014else
6015 ac_check_lib_save_LIBS=$LIBS
6016LIBS="-lsnmp $LIBS"
6017cat >conftest.$ac_ext <<_ACEOF
6018#line $LINENO "configure"
6019#include "confdefs.h"
6020
6021/* Override any gcc2 internal prototype to avoid an error. */
6022#ifdef __cplusplus
6023extern "C"
6024#endif
6025/* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6027char asn_parse_int ();
6028int
6029main ()
6030{
6031asn_parse_int ();
6032 ;
6033 return 0;
6034}
6035_ACEOF
6036rm -f conftest.$ac_objext conftest$ac_exeext
6037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6038 (eval $ac_link) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -s conftest$ac_exeext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_cv_lib_snmp_asn_parse_int=yes
6049else
6050 echo "$as_me: failed program was:" >&5
6051cat conftest.$ac_ext >&5
6052ac_cv_lib_snmp_asn_parse_int=no
6053fi
6054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6055LIBS=$ac_check_lib_save_LIBS
6056fi
6057echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6058echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6059if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6060 HAVE_SNMP=yes
6061fi
6062
6063 if test "${HAVE_SNMP}" = ""; then
6064 unset ac_cv_lib_snmp_asn_parse_int
6065 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6066echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
6067if test "${ac_cv_lib_crypto_main+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070 ac_check_lib_save_LIBS=$LIBS
6071LIBS="-lcrypto $LIBS"
6072cat >conftest.$ac_ext <<_ACEOF
6073#line $LINENO "configure"
6074#include "confdefs.h"
6075
6076
6077int
6078main ()
6079{
6080main ();
6081 ;
6082 return 0;
6083}
6084_ACEOF
6085rm -f conftest.$ac_objext conftest$ac_exeext
6086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_lib_crypto_main=yes
6098else
6099 echo "$as_me: failed program was:" >&5
6100cat conftest.$ac_ext >&5
6101ac_cv_lib_crypto_main=no
6102fi
6103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104LIBS=$ac_check_lib_save_LIBS
6105fi
6106echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6107echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
6108if test $ac_cv_lib_crypto_main = yes; then
6109 NEED_CRYPTO=yes
6110fi
6111
6112 if test "${NEED_CRYPTO}" = ""; then
6113 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6114echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6115if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118 ac_check_lib_save_LIBS=$LIBS
6119LIBS="-lsnmp $LIBS"
6120cat >conftest.$ac_ext <<_ACEOF
6121#line $LINENO "configure"
6122#include "confdefs.h"
6123
6124/* Override any gcc2 internal prototype to avoid an error. */
6125#ifdef __cplusplus
6126extern "C"
6127#endif
6128/* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6130char asn_parse_int ();
6131int
6132main ()
6133{
6134asn_parse_int ();
6135 ;
6136 return 0;
6137}
6138_ACEOF
6139rm -f conftest.$ac_objext conftest$ac_exeext
6140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141 (eval $ac_link) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -s conftest$ac_exeext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_lib_snmp_asn_parse_int=yes
6152else
6153 echo "$as_me: failed program was:" >&5
6154cat conftest.$ac_ext >&5
6155ac_cv_lib_snmp_asn_parse_int=no
6156fi
6157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6158LIBS=$ac_check_lib_save_LIBS
6159fi
6160echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6161echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6162if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6163 HAVE_SNMP=yes; NEED_CRYPTO=yes
6164fi
6165
6166 else
6167 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6168echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6169if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171else
6172 ac_check_lib_save_LIBS=$LIBS
6173LIBS="-lsnmp "-lcrypto" $LIBS"
6174cat >conftest.$ac_ext <<_ACEOF
6175#line $LINENO "configure"
6176#include "confdefs.h"
6177
6178/* Override any gcc2 internal prototype to avoid an error. */
6179#ifdef __cplusplus
6180extern "C"
6181#endif
6182/* We use char because int might match the return type of a gcc2
6183 builtin and then its argument prototype would still apply. */
6184char asn_parse_int ();
6185int
6186main ()
6187{
6188asn_parse_int ();
6189 ;
6190 return 0;
6191}
6192_ACEOF
6193rm -f conftest.$ac_objext conftest$ac_exeext
6194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6195 (eval $ac_link) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -s conftest$ac_exeext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_lib_snmp_asn_parse_int=yes
6206else
6207 echo "$as_me: failed program was:" >&5
6208cat conftest.$ac_ext >&5
6209ac_cv_lib_snmp_asn_parse_int=no
6210fi
6211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212LIBS=$ac_check_lib_save_LIBS
6213fi
6214echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6215echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6216if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6217 HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
6218fi
6219
6220 fi
6221 fi
6222 LIBS="${old_libs}"
6223
6224 if test "${HAVE_SNMP}" = ""; then
6225 old_libs="${LIBS}"
6226 LIBS="-L/usr/local/lib"
6227 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6228echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6229if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232 ac_check_lib_save_LIBS=$LIBS
6233LIBS="-lsnmp $LIBS"
6234cat >conftest.$ac_ext <<_ACEOF
6235#line $LINENO "configure"
6236#include "confdefs.h"
6237
6238/* Override any gcc2 internal prototype to avoid an error. */
6239#ifdef __cplusplus
6240extern "C"
6241#endif
6242/* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */
6244char asn_parse_int ();
6245int
6246main ()
6247{
6248asn_parse_int ();
6249 ;
6250 return 0;
6251}
6252_ACEOF
6253rm -f conftest.$ac_objext conftest$ac_exeext
6254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -s conftest$ac_exeext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_cv_lib_snmp_asn_parse_int=yes
6266else
6267 echo "$as_me: failed program was:" >&5
6268cat conftest.$ac_ext >&5
6269ac_cv_lib_snmp_asn_parse_int=no
6270fi
6271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6272LIBS=$ac_check_lib_save_LIBS
6273fi
6274echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6275echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6276if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6277 HAVE_SNMP=yes
6278fi
6279
6280 LIBS="${old_libs}"
6281 fi
6282 if test "${HAVE_SNMP}" = "yes"; then
6283 for ac_snmp in /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
6284 do
6285 test -f "${ac_snmp}" && break
6286 done
6287 case ${ac_snmp} in
6288 /usr/include/ucd-snmp/*)
6289 cat >>confdefs.h <<\_ACEOF
6290#define HAVE_SNMP 1
6291_ACEOF
6292
6293 CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
6294 LIBS="${LIBS} -lsnmp"
6295 ;;
6296 /usr/local/include/ucd-snmp/*)
6297 cat >>confdefs.h <<\_ACEOF
6298#define HAVE_SNMP 1
6299_ACEOF
6300
6301 CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp"
6302 LIBS="${LIBS} -L/usr/local/lib -lsnmp"
6303 ;;
6304 esac
6305 if test "${NEED_CRYPTO}" = "yes"; then
6306 LIBS="${LIBS} -lcrypto"
6307 fi
6308 fi
6309fi
6310
6311echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
6312echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
6313cat >conftest.$ac_ext <<_ACEOF
6314#line $LINENO "configure"
6315#include "confdefs.h"
6316#include <sys/types.h>
6317#include <sys/socket.h>
6318
6319int
6320main ()
6321{
6322static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
6323 ;
6324 return 0;
6325}
6326_ACEOF
6327rm -f conftest.$ac_objext
6328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329 (eval $ac_compile) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 echo "$as_me:$LINENO: result: yes" >&5
6340echo "${ECHO_T}yes" >&6
6341 cat >>confdefs.h <<\_ACEOF
6342#define HAVE_SA_LEN 1
6343_ACEOF
6344
6345else
6346 echo "$as_me: failed program was:" >&5
6347cat conftest.$ac_ext >&5
6348echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
6350fi
6351rm -f conftest.$ac_objext conftest.$ac_ext
6352
6353echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
6354echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
6355cat >conftest.$ac_ext <<_ACEOF
6356#line $LINENO "configure"
6357#include "confdefs.h"
6358#include <sys/types.h>
6359#include <netinet/in.h>
6360
6361int
6362main ()
6363{
6364static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369rm -f conftest.$ac_objext
6370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 echo "$as_me:$LINENO: result: yes" >&5
6382echo "${ECHO_T}yes" >&6
6383 cat >>confdefs.h <<\_ACEOF
6384#define HAVE_SIN_LEN 1
6385_ACEOF
6386
6387else
6388 echo "$as_me: failed program was:" >&5
6389cat conftest.$ac_ext >&5
6390echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
6392fi
6393rm -f conftest.$ac_objext conftest.$ac_ext
6394
6395echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
6396echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
6397cat >conftest.$ac_ext <<_ACEOF
6398#line $LINENO "configure"
6399#include "confdefs.h"
6400#include <sys/types.h>
6401#include <sys/un.h>
6402
6403int
6404main ()
6405{
6406static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
6407 ;
6408 return 0;
6409}
6410_ACEOF
6411rm -f conftest.$ac_objext
6412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 echo "$as_me:$LINENO: result: yes" >&5
6424echo "${ECHO_T}yes" >&6
6425 cat >>confdefs.h <<\_ACEOF
6426#define HAVE_SUN_LEN 1
6427_ACEOF
6428
6429else
6430 echo "$as_me: failed program was:" >&5
6431cat conftest.$ac_ext >&5
6432echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6
6434fi
6435rm -f conftest.$ac_objext conftest.$ac_ext
6436
6437if test "$zebra_cv_ipv6" = yes; then
6438 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
6439echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6441#line $LINENO "configure"
6442#include "confdefs.h"
6443#include <sys/types.h>
6444#include <netinet/in.h>
6445
6446int
6447main ()
6448{
6449static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
6450 ;
6451 return 0;
6452}
6453_ACEOF
6454rm -f conftest.$ac_objext
6455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456 (eval $ac_compile) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -s conftest.$ac_objext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 echo "$as_me:$LINENO: result: yes" >&5
6467echo "${ECHO_T}yes" >&6
6468 cat >>confdefs.h <<\_ACEOF
6469#define HAVE_SIN6_SCOPE_ID 1
6470_ACEOF
6471
6472else
6473 echo "$as_me: failed program was:" >&5
6474cat conftest.$ac_ext >&5
6475echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
6477fi
6478rm -f conftest.$ac_objext conftest.$ac_ext
6479fi
6480
6481echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
6482echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
6483cat >conftest.$ac_ext <<_ACEOF
6484#line $LINENO "configure"
6485#include "confdefs.h"
6486#include <sys/types.h>
6487#include <sys/socket.h>
6488#include <netinet/in.h>
6489
6490int
6491main ()
6492{
6493socklen_t ac_x;
6494 ;
6495 return 0;
6496}
6497_ACEOF
6498rm -f conftest.$ac_objext
6499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 echo "$as_me:$LINENO: result: yes" >&5
6511echo "${ECHO_T}yes" >&6
6512 cat >>confdefs.h <<\_ACEOF
6513#define HAVE_SOCKLEN_T 1
6514_ACEOF
6515
6516else
6517 echo "$as_me: failed program was:" >&5
6518cat conftest.$ac_ext >&5
6519echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6
6521fi
6522rm -f conftest.$ac_objext conftest.$ac_ext
6523
6524echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
6525echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
6526cat >conftest.$ac_ext <<_ACEOF
6527#line $LINENO "configure"
6528#include "confdefs.h"
6529#include <net/if_dl.h>
6530
6531_ACEOF
6532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 $EGREP "sockaddr_dl" >/dev/null 2>&1; then
6534 echo "$as_me:$LINENO: result: yes" >&5
6535echo "${ECHO_T}yes" >&6
6536 cat >>confdefs.h <<\_ACEOF
6537#define HAVE_SOCKADDR_DL 1
6538_ACEOF
6539
6540else
6541 echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6
6543fi
6544rm -f conftest*
6545
6546
6547echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
6548echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
6549cat >conftest.$ac_ext <<_ACEOF
6550#line $LINENO "configure"
6551#include "confdefs.h"
6552#include <net/if.h>
6553
6554_ACEOF
6555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6556 $EGREP "ifaliasreq" >/dev/null 2>&1; then
6557 echo "$as_me:$LINENO: result: yes" >&5
6558echo "${ECHO_T}yes" >&6
6559 cat >>confdefs.h <<\_ACEOF
6560#define HAVE_IFALIASREQ 1
6561_ACEOF
6562
6563else
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
6566fi
6567rm -f conftest*
6568
6569
6570echo "$as_me:$LINENO: checking whether struct if6_aliasreq exist" >&5
6571echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6
6572cat >conftest.$ac_ext <<_ACEOF
6573#line $LINENO "configure"
6574#include "confdefs.h"
6575#include <netinet6/in6_var.h>
6576
6577_ACEOF
6578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6579 $EGREP "in6_aliasreq" >/dev/null 2>&1; then
6580 echo "$as_me:$LINENO: result: yes" >&5
6581echo "${ECHO_T}yes" >&6
6582 cat >>confdefs.h <<\_ACEOF
6583#define HAVE_IN6_ALIASREQ 1
6584_ACEOF
6585
6586else
6587 echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
6589fi
6590rm -f conftest*
6591
6592
6593echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
6594echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
6595cat >conftest.$ac_ext <<_ACEOF
6596#line $LINENO "configure"
6597#include "confdefs.h"
6598#include <net/route.h>
6599
6600_ACEOF
6601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6602 $EGREP "rt_addrinfo" >/dev/null 2>&1; then
6603 echo "$as_me:$LINENO: result: yes" >&5
6604echo "${ECHO_T}yes" >&6
6605 cat >>confdefs.h <<\_ACEOF
6606#define HAVE_RT_ADDRINFO 1
6607_ACEOF
6608
6609else
6610 echo "$as_me:$LINENO: result: no" >&5
6611echo "${ECHO_T}no" >&6
6612fi
6613rm -f conftest*
6614
6615
6616echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
6617echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
6618cat >conftest.$ac_ext <<_ACEOF
6619#line $LINENO "configure"
6620#include "confdefs.h"
6621#include <netinet/in.h>
6622
6623int
6624main ()
6625{
6626struct in_pktinfo ac_x;
6627 ;
6628 return 0;
6629}
6630_ACEOF
6631rm -f conftest.$ac_objext
6632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -s conftest.$ac_objext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 echo "$as_me:$LINENO: result: yes" >&5
6644echo "${ECHO_T}yes" >&6
6645 cat >>confdefs.h <<\_ACEOF
6646#define HAVE_INPKTINFO 1
6647_ACEOF
6648
6649else
6650 echo "$as_me: failed program was:" >&5
6651cat conftest.$ac_ext >&5
6652echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6
6654fi
6655rm -f conftest.$ac_objext conftest.$ac_ext
6656
6657echo "$as_me:$LINENO: checking whether getrusage is available" >&5
6658echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
6659cat >conftest.$ac_ext <<_ACEOF
6660#line $LINENO "configure"
6661#include "confdefs.h"
6662#include <sys/resource.h>
6663
6664int
6665main ()
6666{
6667struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
6668 ;
6669 return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext
6673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 (eval $ac_compile) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -s conftest.$ac_objext'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
6684 echo "$as_me:$LINENO: result: yes" >&5
6685echo "${ECHO_T}yes" >&6
6686 cat >>confdefs.h <<\_ACEOF
6687#define HAVE_RUSAGE 1
6688_ACEOF
6689
6690else
6691 echo "$as_me: failed program was:" >&5
6692cat conftest.$ac_ext >&5
6693echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6
6695fi
6696rm -f conftest.$ac_objext conftest.$ac_ext
6697
6698file="${srcdir}/lib/version.h"
6699VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
6700
6701
6702echo "$as_me:$LINENO: checking pid file directory" >&5
6703echo $ECHO_N "checking pid file directory... $ECHO_C" >&6
6704if test "${ac_piddir+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706else
6707 for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null;
6708do
6709 test -d $ZEBRA_PID_DIR && break
6710done
6711ac_piddir=$ZEBRA_PID_DIR
6712if test $ZEBRA_PID_DIR = "/dev/null"; then
6713 echo "PID DIRECTORY NOT FOUND!"
6714fi
6715fi
6716echo "$as_me:$LINENO: result: $ac_piddir" >&5
6717echo "${ECHO_T}$ac_piddir" >&6
6718cat >>confdefs.h <<_ACEOF
6719#define PATH_ZEBRA_PID "$ac_piddir/zebra.pid"
6720_ACEOF
6721
6722cat >>confdefs.h <<_ACEOF
6723#define PATH_RIPD_PID "$ac_piddir/ripd.pid"
6724_ACEOF
6725
6726cat >>confdefs.h <<_ACEOF
6727#define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid"
6728_ACEOF
6729
6730cat >>confdefs.h <<_ACEOF
6731#define PATH_BGPD_PID "$ac_piddir/bgpd.pid"
6732_ACEOF
6733
6734cat >>confdefs.h <<_ACEOF
6735#define PATH_OSPFD_PID "$ac_piddir/ospfd.pid"
6736_ACEOF
6737
6738cat >>confdefs.h <<_ACEOF
6739#define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid"
6740_ACEOF
6741
6742
6743
6744echo "$as_me:$LINENO: checking for working htonl" >&5
6745echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
6746if test "${ac_cv_htonl_works+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749
6750cat >conftest.$ac_ext <<_ACEOF
6751#line $LINENO "configure"
6752#include "confdefs.h"
6753#ifdef HAVE_SYS_TYPES_H
6754#include <sys/types.h>
6755#endif
6756#ifdef HAVE_NETDB_H
6757#include <netdb.h>
6758#endif
6759#ifdef HAVE_NETINET_IN_H
6760#include <netinet/in.h>
6761#endif
6762int
6763main ()
6764{
6765htonl (0);
6766 ;
6767 return 0;
6768}
6769_ACEOF
6770rm -f conftest.$ac_objext conftest$ac_exeext
6771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6772 (eval $ac_link) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_htonl_works=yes
6783else
6784 echo "$as_me: failed program was:" >&5
6785cat conftest.$ac_ext >&5
6786ac_cv_htonl_works=no
6787fi
6788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6789fi
6790
6791echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
6792echo "${ECHO_T}$ac_cv_htonl_works" >&6
6793
6794 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"
6795cat >confcache <<\_ACEOF
6796# This file is a shell script that caches the results of configure
6797# tests run on this system so they can be shared between configure
6798# scripts and configure runs, see configure's option --config-cache.
6799# It is not useful on other systems. If it contains results you don't
6800# want to keep, you may remove or edit it.
6801#
6802# config.status only pays attention to the cache file if you give it
6803# the --recheck option to rerun configure.
6804#
6805# `ac_cv_env_foo' variables (set or unset) will be overridden when
6806# loading this file, other *unset* `ac_cv_foo' will be assigned the
6807# following values.
6808
6809_ACEOF
6810
6811# The following way of writing the cache mishandles newlines in values,
6812# but we know of no workaround that is simple, portable, and efficient.
6813# So, don't put newlines in cache variables' values.
6814# Ultrix sh set writes to stderr and can't be redirected directly,
6815# and sets the high bit in the cache file unless we assign to the vars.
6816{
6817 (set) 2>&1 |
6818 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6819 *ac_space=\ *)
6820 # `set' does not quote correctly, so add quotes (double-quote
6821 # substitution turns \\\\ into \\, and sed turns \\ into \).
6822 sed -n \
6823 "s/'/'\\\\''/g;
6824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6825 ;;
6826 *)
6827 # `set' quotes correctly as required by POSIX, so do not add quotes.
6828 sed -n \
6829 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6830 ;;
6831 esac;
6832} |
6833 sed '
6834 t clear
6835 : clear
6836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6837 t end
6838 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6839 : end' >>confcache
6840if cmp -s $cache_file confcache; then :; else
6841 if test -w $cache_file; then
6842 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6843 cat confcache >$cache_file
6844 else
6845 echo "not updating unwritable cache $cache_file"
6846 fi
6847fi
6848rm -f confcache
6849
6850test "x$prefix" = xNONE && prefix=$ac_default_prefix
6851# Let make expand exec_prefix.
6852test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6853
6854# VPATH may cause trouble with some makes, so we remove $(srcdir),
6855# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6856# trailing colons and then remove the whole line if VPATH becomes empty
6857# (actually we leave an empty line to preserve line numbers).
6858if test "x$srcdir" = x.; then
6859 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6860s/:*\$(srcdir):*/:/;
6861s/:*\${srcdir}:*/:/;
6862s/:*@srcdir@:*/:/;
6863s/^\([^=]*=[ ]*\):*/\1/;
6864s/:*$//;
6865s/^[^=]*=[ ]*$//;
6866}'
6867fi
6868
6869DEFS=-DHAVE_CONFIG_H
6870
6871ac_libobjs=
6872ac_ltlibobjs=
6873for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6874 # 1. Remove the extension, and $U if already installed.
6875 ac_i=`echo "$ac_i" |
6876 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6877 # 2. Add them.
6878 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6879 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6880done
6881LIBOBJS=$ac_libobjs
6882
6883LTLIBOBJS=$ac_ltlibobjs
6884
6885
6886if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6887 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6888Usually this means the macro was only invoked conditionally." >&5
6889echo "$as_me: error: conditional \"AMDEP\" was never defined.
6890Usually this means the macro was only invoked conditionally." >&2;}
6891 { (exit 1); exit 1; }; }
6892fi
6893if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6894 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6895Usually this means the macro was only invoked conditionally." >&5
6896echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6897Usually this means the macro was only invoked conditionally." >&2;}
6898 { (exit 1); exit 1; }; }
6899fi
6900
6901: ${CONFIG_STATUS=./config.status}
6902ac_clean_files_save=$ac_clean_files
6903ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6904{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6905echo "$as_me: creating $CONFIG_STATUS" >&6;}
6906cat >$CONFIG_STATUS <<_ACEOF
6907#! $SHELL
6908# Generated by $as_me.
6909# Run this file to recreate the current configuration.
6910# Compiler output produced by configure, useful for debugging
6911# configure, is in config.log if it exists.
6912
6913debug=false
6914SHELL=\${CONFIG_SHELL-$SHELL}
6915_ACEOF
6916
6917cat >>$CONFIG_STATUS <<\_ACEOF
6918## --------------------- ##
6919## M4sh Initialization. ##
6920## --------------------- ##
6921
6922# Be Bourne compatible
6923if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6924 emulate sh
6925 NULLCMD=:
6926 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6927 # is contrary to our usage. Disable this feature.
6928 alias -g '${1+"$@"}'='"$@"'
6929elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6930 set -o posix
6931fi
6932
6933# Support unset when possible.
6934if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6935 as_unset=unset
6936else
6937 as_unset=false
6938fi
6939
6940
6941# Work around bugs in pre-3.0 UWIN ksh.
6942$as_unset ENV MAIL MAILPATH
6943PS1='$ '
6944PS2='> '
6945PS4='+ '
6946
6947# NLS nuisances.
6948for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
6949do
6950 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6951 eval $as_var=C; export $as_var
6952 else
6953 $as_unset $as_var
6954 fi
6955done
6956
6957# Required to use basename.
6958if expr a : '\(a\)' >/dev/null 2>&1; then
6959 as_expr=expr
6960else
6961 as_expr=false
6962fi
6963
6964if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6965 as_basename=basename
6966else
6967 as_basename=false
6968fi
6969
6970
6971# Name of the executable.
6972as_me=`$as_basename "$0" ||
6973$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6974 X"$0" : 'X\(//\)$' \| \
6975 X"$0" : 'X\(/\)$' \| \
6976 . : '\(.\)' 2>/dev/null ||
6977echo X/"$0" |
6978 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6979 /^X\/\(\/\/\)$/{ s//\1/; q; }
6980 /^X\/\(\/\).*/{ s//\1/; q; }
6981 s/.*/./; q'`
6982
6983
6984# PATH needs CR, and LINENO needs CR and PATH.
6985# Avoid depending upon Character Ranges.
6986as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6987as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6988as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6989as_cr_digits='0123456789'
6990as_cr_alnum=$as_cr_Letters$as_cr_digits
6991
6992# The user is always right.
6993if test "${PATH_SEPARATOR+set}" != set; then
6994 echo "#! /bin/sh" >conftest.sh
6995 echo "exit 0" >>conftest.sh
6996 chmod +x conftest.sh
6997 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
6998 PATH_SEPARATOR=';'
6999 else
7000 PATH_SEPARATOR=:
7001 fi
7002 rm -f conftest.sh
7003fi
7004
7005
7006 as_lineno_1=$LINENO
7007 as_lineno_2=$LINENO
7008 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7009 test "x$as_lineno_1" != "x$as_lineno_2" &&
7010 test "x$as_lineno_3" = "x$as_lineno_2" || {
7011 # Find who we are. Look in the path if we contain no path at all
7012 # relative or not.
7013 case $0 in
7014 *[\\/]* ) as_myself=$0 ;;
7015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7021done
7022
7023 ;;
7024 esac
7025 # We did not find ourselves, most probably we were run as `sh COMMAND'
7026 # in which case we are not to be found in the path.
7027 if test "x$as_myself" = x; then
7028 as_myself=$0
7029 fi
7030 if test ! -f "$as_myself"; then
7031 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7032echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7033 { (exit 1); exit 1; }; }
7034 fi
7035 case $CONFIG_SHELL in
7036 '')
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for as_base in sh bash ksh sh5; do
7043 case $as_dir in
7044 /*)
7045 if ("$as_dir/$as_base" -c '
7046 as_lineno_1=$LINENO
7047 as_lineno_2=$LINENO
7048 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7049 test "x$as_lineno_1" != "x$as_lineno_2" &&
7050 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7051 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7052 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7053 CONFIG_SHELL=$as_dir/$as_base
7054 export CONFIG_SHELL
7055 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7056 fi;;
7057 esac
7058 done
7059done
7060;;
7061 esac
7062
7063 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7064 # uniformly replaced by the line number. The first 'sed' inserts a
7065 # line-number line before each line; the second 'sed' does the real
7066 # work. The second script uses 'N' to pair each line-number line
7067 # with the numbered line, and appends trailing '-' during
7068 # substitution so that $LINENO is not a special case at line end.
7069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7070 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7071 sed '=' <$as_myself |
7072 sed '
7073 N
7074 s,$,-,
7075 : loop
7076 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7077 t loop
7078 s,-$,,
7079 s,^['$as_cr_digits']*\n,,
7080 ' >$as_me.lineno &&
7081 chmod +x $as_me.lineno ||
7082 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7083echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7084 { (exit 1); exit 1; }; }
7085
7086 # Don't try to exec as it changes $[0], causing all sort of problems
7087 # (the dirname of $[0] is not the place where we might find the
7088 # original and so on. Autoconf is especially sensible to this).
7089 . ./$as_me.lineno
7090 # Exit status is that of the last command.
7091 exit
7092}
7093
7094
7095case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7096 *c*,-n*) ECHO_N= ECHO_C='
7097' ECHO_T=' ' ;;
7098 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7099 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7100esac
7101
7102if expr a : '\(a\)' >/dev/null 2>&1; then
7103 as_expr=expr
7104else
7105 as_expr=false
7106fi
7107
7108rm -f conf$$ conf$$.exe conf$$.file
7109echo >conf$$.file
7110if ln -s conf$$.file conf$$ 2>/dev/null; then
7111 # We could just check for DJGPP; but this test a) works b) is more generic
7112 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7113 if test -f conf$$.exe; then
7114 # Don't use ln at all; we don't have any links
7115 as_ln_s='cp -p'
7116 else
7117 as_ln_s='ln -s'
7118 fi
7119elif ln conf$$.file conf$$ 2>/dev/null; then
7120 as_ln_s=ln
7121else
7122 as_ln_s='cp -p'
7123fi
7124rm -f conf$$ conf$$.exe conf$$.file
7125
7126if mkdir -p . 2>/dev/null; then
7127 as_mkdir_p=:
7128else
7129 as_mkdir_p=false
7130fi
7131
7132as_executable_p="test -f"
7133
7134# Sed expression to map a string onto a valid CPP name.
7135as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7136
7137# Sed expression to map a string onto a valid variable name.
7138as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7139
7140
7141# IFS
7142# We need space, tab and new line, in precisely that order.
7143as_nl='
7144'
7145IFS=" $as_nl"
7146
7147# CDPATH.
7148$as_unset CDPATH
7149
7150exec 6>&1
7151
7152# Open the log real soon, to keep \$[0] and so on meaningful, and to
7153# report actual input values of CONFIG_FILES etc. instead of their
7154# values after options handling. Logging --version etc. is OK.
7155exec 5>>config.log
7156{
7157 echo
7158 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7159## Running $as_me. ##
7160_ASBOX
7161} >&5
7162cat >&5 <<_CSEOF
7163
7164This file was extended by $as_me, which was
7165generated by GNU Autoconf 2.54. Invocation command line was
7166
7167 CONFIG_FILES = $CONFIG_FILES
7168 CONFIG_HEADERS = $CONFIG_HEADERS
7169 CONFIG_LINKS = $CONFIG_LINKS
7170 CONFIG_COMMANDS = $CONFIG_COMMANDS
7171 $ $0 $@
7172
7173_CSEOF
7174echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7175echo >&5
7176_ACEOF
7177
7178# Files that config.status was made for.
7179if test -n "$ac_config_files"; then
7180 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7181fi
7182
7183if test -n "$ac_config_headers"; then
7184 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7185fi
7186
7187if test -n "$ac_config_links"; then
7188 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7189fi
7190
7191if test -n "$ac_config_commands"; then
7192 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7193fi
7194
7195cat >>$CONFIG_STATUS <<\_ACEOF
7196
7197ac_cs_usage="\
7198\`$as_me' instantiates files from templates according to the
7199current configuration.
7200
7201Usage: $0 [OPTIONS] [FILE]...
7202
7203 -h, --help print this help, then exit
7204 -V, --version print version number, then exit
7205 -d, --debug don't remove temporary files
7206 --recheck update $as_me by reconfiguring in the same conditions
7207 --file=FILE[:TEMPLATE]
7208 instantiate the configuration file FILE
7209 --header=FILE[:TEMPLATE]
7210 instantiate the configuration header FILE
7211
7212Configuration files:
7213$config_files
7214
7215Configuration headers:
7216$config_headers
7217
7218Configuration commands:
7219$config_commands
7220
7221Report bugs to <bug-autoconf@gnu.org>."
7222_ACEOF
7223
7224cat >>$CONFIG_STATUS <<_ACEOF
7225ac_cs_version="\\
7226config.status
7227configured by $0, generated by GNU Autoconf 2.54,
7228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7229
7230Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7231Free Software Foundation, Inc.
7232This config.status script is free software; the Free Software Foundation
7233gives unlimited permission to copy, distribute and modify it."
7234srcdir=$srcdir
7235INSTALL="$INSTALL"
7236_ACEOF
7237
7238cat >>$CONFIG_STATUS <<\_ACEOF
7239# If no file are specified by the user, then we need to provide default
7240# value. By we need to know if files were specified by the user.
7241ac_need_defaults=:
7242while test $# != 0
7243do
7244 case $1 in
7245 --*=*)
7246 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7247 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7248 ac_shift=:
7249 ;;
7250 -*)
7251 ac_option=$1
7252 ac_optarg=$2
7253 ac_shift=shift
7254 ;;
7255 *) # This is not an option, so the user has probably given explicit
7256 # arguments.
7257 ac_option=$1
7258 ac_need_defaults=false;;
7259 esac
7260
7261 case $ac_option in
7262 # Handling of the options.
7263_ACEOF
7264cat >>$CONFIG_STATUS <<_ACEOF
7265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7266 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7267 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7268_ACEOF
7269cat >>$CONFIG_STATUS <<\_ACEOF
7270 --version | --vers* | -V )
7271 echo "$ac_cs_version"; exit 0 ;;
7272 --he | --h)
7273 # Conflict between --help and --header
7274 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7275Try \`$0 --help' for more information." >&5
7276echo "$as_me: error: ambiguous option: $1
7277Try \`$0 --help' for more information." >&2;}
7278 { (exit 1); exit 1; }; };;
7279 --help | --hel | -h )
7280 echo "$ac_cs_usage"; exit 0 ;;
7281 --debug | --d* | -d )
7282 debug=: ;;
7283 --file | --fil | --fi | --f )
7284 $ac_shift
7285 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7286 ac_need_defaults=false;;
7287 --header | --heade | --head | --hea )
7288 $ac_shift
7289 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7290 ac_need_defaults=false;;
7291
7292 # This is an error.
7293 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7294Try \`$0 --help' for more information." >&5
7295echo "$as_me: error: unrecognized option: $1
7296Try \`$0 --help' for more information." >&2;}
7297 { (exit 1); exit 1; }; } ;;
7298
7299 *) ac_config_targets="$ac_config_targets $1" ;;
7300
7301 esac
7302 shift
7303done
7304
7305_ACEOF
7306
7307cat >>$CONFIG_STATUS <<_ACEOF
7308#
7309# INIT-COMMANDS section.
7310#
7311
7312AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7313
7314_ACEOF
7315
7316
7317
7318cat >>$CONFIG_STATUS <<\_ACEOF
7319for ac_config_target in $ac_config_targets
7320do
7321 case "$ac_config_target" in
7322 # Handling of arguments.
7323 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7324 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7325 "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
7326 "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
7327 "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
7328 "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
7329 "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
7330 "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
7331 "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
7332 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7333 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7334 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7335 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7336echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7337 { (exit 1); exit 1; }; };;
7338 esac
7339done
7340
7341# If the user did not use the arguments to specify the items to instantiate,
7342# then the envvar interface is used. Set only those that are not.
7343# We use the long form for the default assignment because of an extremely
7344# bizarre bug on SunOS 4.1.3.
7345if $ac_need_defaults; then
7346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7348 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7349fi
7350
7351# Create a temporary directory, and hook for its removal unless debugging.
7352$debug ||
7353{
7354 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7355 trap '{ (exit 1); exit 1; }' 1 2 13 15
7356}
7357
7358# Create a (secure) tmp directory for tmp files.
7359: ${TMPDIR=/tmp}
7360{
7361 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7362 test -n "$tmp" && test -d "$tmp"
7363} ||
7364{
7365 tmp=$TMPDIR/cs$$-$RANDOM
7366 (umask 077 && mkdir $tmp)
7367} ||
7368{
7369 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7370 { (exit 1); exit 1; }
7371}
7372
7373_ACEOF
7374
7375cat >>$CONFIG_STATUS <<_ACEOF
7376
7377#
7378# CONFIG_FILES section.
7379#
7380
7381# No need to generate the scripts if there are no CONFIG_FILES.
7382# This happens for instance when ./config.status config.h
7383if test -n "\$CONFIG_FILES"; then
7384 # Protect against being on the right side of a sed subst in config.status.
7385 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7386 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7387s,@SHELL@,$SHELL,;t t
7388s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7389s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7390s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7391s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7392s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7393s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7394s,@exec_prefix@,$exec_prefix,;t t
7395s,@prefix@,$prefix,;t t
7396s,@program_transform_name@,$program_transform_name,;t t
7397s,@bindir@,$bindir,;t t
7398s,@sbindir@,$sbindir,;t t
7399s,@libexecdir@,$libexecdir,;t t
7400s,@datadir@,$datadir,;t t
7401s,@sysconfdir@,$sysconfdir,;t t
7402s,@sharedstatedir@,$sharedstatedir,;t t
7403s,@localstatedir@,$localstatedir,;t t
7404s,@libdir@,$libdir,;t t
7405s,@includedir@,$includedir,;t t
7406s,@oldincludedir@,$oldincludedir,;t t
7407s,@infodir@,$infodir,;t t
7408s,@mandir@,$mandir,;t t
7409s,@build_alias@,$build_alias,;t t
7410s,@host_alias@,$host_alias,;t t
7411s,@target_alias@,$target_alias,;t t
7412s,@DEFS@,$DEFS,;t t
7413s,@ECHO_C@,$ECHO_C,;t t
7414s,@ECHO_N@,$ECHO_N,;t t
7415s,@ECHO_T@,$ECHO_T,;t t
7416s,@LIBS@,$LIBS,;t t
7417s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7418s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7419s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7420s,@CYGPATH_W@,$CYGPATH_W,;t t
7421s,@PACKAGE@,$PACKAGE,;t t
7422s,@VERSION@,$VERSION,;t t
7423s,@ACLOCAL@,$ACLOCAL,;t t
7424s,@AUTOCONF@,$AUTOCONF,;t t
7425s,@AUTOMAKE@,$AUTOMAKE,;t t
7426s,@AUTOHEADER@,$AUTOHEADER,;t t
7427s,@MAKEINFO@,$MAKEINFO,;t t
7428s,@AMTAR@,$AMTAR,;t t
7429s,@install_sh@,$install_sh,;t t
7430s,@STRIP@,$STRIP,;t t
7431s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7432s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7433s,@AWK@,$AWK,;t t
7434s,@SET_MAKE@,$SET_MAKE,;t t
7435s,@build@,$build,;t t
7436s,@build_cpu@,$build_cpu,;t t
7437s,@build_vendor@,$build_vendor,;t t
7438s,@build_os@,$build_os,;t t
7439s,@host@,$host,;t t
7440s,@host_cpu@,$host_cpu,;t t
7441s,@host_vendor@,$host_vendor,;t t
7442s,@host_os@,$host_os,;t t
7443s,@CC@,$CC,;t t
7444s,@CFLAGS@,$CFLAGS,;t t
7445s,@LDFLAGS@,$LDFLAGS,;t t
7446s,@CPPFLAGS@,$CPPFLAGS,;t t
7447s,@ac_ct_CC@,$ac_ct_CC,;t t
7448s,@EXEEXT@,$EXEEXT,;t t
7449s,@OBJEXT@,$OBJEXT,;t t
7450s,@DEPDIR@,$DEPDIR,;t t
7451s,@am__include@,$am__include,;t t
7452s,@am__quote@,$am__quote,;t t
7453s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7454s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7455s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7456s,@CCDEPMODE@,$CCDEPMODE,;t t
7457s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7458s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7459s,@CPP@,$CPP,;t t
7460s,@AR@,$AR,;t t
7461s,@ac_ct_AR@,$ac_ct_AR,;t t
7462s,@RANLIB@,$RANLIB,;t t
7463s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7464s,@EGREP@,$EGREP,;t t
7465s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
7466s,@LIBPAM@,$LIBPAM,;t t
7467s,@RT_METHOD@,$RT_METHOD,;t t
7468s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
7469s,@OTHER_METHOD@,$OTHER_METHOD,;t t
7470s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
7471s,@IF_METHOD@,$IF_METHOD,;t t
7472s,@IF_PROC@,$IF_PROC,;t t
7473s,@IPFORWARD@,$IPFORWARD,;t t
7474s,@LIB_IPV6@,$LIB_IPV6,;t t
7475s,@ZEBRA@,$ZEBRA,;t t
7476s,@BGPD@,$BGPD,;t t
7477s,@RIPD@,$RIPD,;t t
7478s,@RIPNGD@,$RIPNGD,;t t
7479s,@OSPFD@,$OSPFD,;t t
7480s,@OSPF6D@,$OSPF6D,;t t
7481s,@VTYSH@,$VTYSH,;t t
7482s,@INCLUDES@,$INCLUDES,;t t
7483s,@CURSES@,$CURSES,;t t
7484s,@LIB_REGEX@,$LIB_REGEX,;t t
7485s,@LIBOBJS@,$LIBOBJS,;t t
7486s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7487CEOF
7488
7489_ACEOF
7490
7491 cat >>$CONFIG_STATUS <<\_ACEOF
7492 # Split the substitutions into bite-sized pieces for seds with
7493 # small command number limits, like on Digital OSF/1 and HP-UX.
7494 ac_max_sed_lines=48
7495 ac_sed_frag=1 # Number of current file.
7496 ac_beg=1 # First line for current file.
7497 ac_end=$ac_max_sed_lines # Line after last line for current file.
7498 ac_more_lines=:
7499 ac_sed_cmds=
7500 while $ac_more_lines; do
7501 if test $ac_beg -gt 1; then
7502 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7503 else
7504 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7505 fi
7506 if test ! -s $tmp/subs.frag; then
7507 ac_more_lines=false
7508 else
7509 # The purpose of the label and of the branching condition is to
7510 # speed up the sed processing (if there are no `@' at all, there
7511 # is no need to browse any of the substitutions).
7512 # These are the two extra sed commands mentioned above.
7513 (echo ':t
7514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7515 if test -z "$ac_sed_cmds"; then
7516 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7517 else
7518 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7519 fi
7520 ac_sed_frag=`expr $ac_sed_frag + 1`
7521 ac_beg=$ac_end
7522 ac_end=`expr $ac_end + $ac_max_sed_lines`
7523 fi
7524 done
7525 if test -z "$ac_sed_cmds"; then
7526 ac_sed_cmds=cat
7527 fi
7528fi # test -n "$CONFIG_FILES"
7529
7530_ACEOF
7531cat >>$CONFIG_STATUS <<\_ACEOF
7532for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7533 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7534 case $ac_file in
7535 - | *:- | *:-:* ) # input from stdin
7536 cat >$tmp/stdin
7537 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7538 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7539 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7540 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7541 * ) ac_file_in=$ac_file.in ;;
7542 esac
7543
7544 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7545 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7546$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7547 X"$ac_file" : 'X\(//\)[^/]' \| \
7548 X"$ac_file" : 'X\(//\)$' \| \
7549 X"$ac_file" : 'X\(/\)' \| \
7550 . : '\(.\)' 2>/dev/null ||
7551echo X"$ac_file" |
7552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7554 /^X\(\/\/\)$/{ s//\1/; q; }
7555 /^X\(\/\).*/{ s//\1/; q; }
7556 s/.*/./; q'`
7557 { if $as_mkdir_p; then
7558 mkdir -p "$ac_dir"
7559 else
7560 as_dir="$ac_dir"
7561 as_dirs=
7562 while test ! -d "$as_dir"; do
7563 as_dirs="$as_dir $as_dirs"
7564 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7565$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7566 X"$as_dir" : 'X\(//\)[^/]' \| \
7567 X"$as_dir" : 'X\(//\)$' \| \
7568 X"$as_dir" : 'X\(/\)' \| \
7569 . : '\(.\)' 2>/dev/null ||
7570echo X"$as_dir" |
7571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7573 /^X\(\/\/\)$/{ s//\1/; q; }
7574 /^X\(\/\).*/{ s//\1/; q; }
7575 s/.*/./; q'`
7576 done
7577 test ! -n "$as_dirs" || mkdir $as_dirs
7578 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7579echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7580 { (exit 1); exit 1; }; }; }
7581
7582 ac_builddir=.
7583
7584if test "$ac_dir" != .; then
7585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7586 # A "../" for each directory in $ac_dir_suffix.
7587 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7588else
7589 ac_dir_suffix= ac_top_builddir=
7590fi
7591
7592case $srcdir in
7593 .) # No --srcdir option. We are building in place.
7594 ac_srcdir=.
7595 if test -z "$ac_top_builddir"; then
7596 ac_top_srcdir=.
7597 else
7598 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7599 fi ;;
7600 [\\/]* | ?:[\\/]* ) # Absolute path.
7601 ac_srcdir=$srcdir$ac_dir_suffix;
7602 ac_top_srcdir=$srcdir ;;
7603 *) # Relative path.
7604 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7605 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7606esac
7607# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7608# absolute.
7609ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7610ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7611ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7612ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7613
7614
7615 case $INSTALL in
7616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7617 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7618 esac
7619
7620 if test x"$ac_file" != x-; then
7621 { echo "$as_me:$LINENO: creating $ac_file" >&5
7622echo "$as_me: creating $ac_file" >&6;}
7623 rm -f "$ac_file"
7624 fi
7625 # Let's still pretend it is `configure' which instantiates (i.e., don't
7626 # use $as_me), people would be surprised to read:
7627 # /* config.h. Generated by config.status. */
7628 if test x"$ac_file" = x-; then
7629 configure_input=
7630 else
7631 configure_input="$ac_file. "
7632 fi
7633 configure_input=$configure_input"Generated from `echo $ac_file_in |
7634 sed 's,.*/,,'` by configure."
7635
7636 # First look for the input files in the build tree, otherwise in the
7637 # src tree.
7638 ac_file_inputs=`IFS=:
7639 for f in $ac_file_in; do
7640 case $f in
7641 -) echo $tmp/stdin ;;
7642 [\\/$]*)
7643 # Absolute (can't be DOS-style, as IFS=:)
7644 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7645echo "$as_me: error: cannot find input file: $f" >&2;}
7646 { (exit 1); exit 1; }; }
7647 echo $f;;
7648 *) # Relative
7649 if test -f "$f"; then
7650 # Build tree
7651 echo $f
7652 elif test -f "$srcdir/$f"; then
7653 # Source tree
7654 echo $srcdir/$f
7655 else
7656 # /dev/null tree
7657 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7658echo "$as_me: error: cannot find input file: $f" >&2;}
7659 { (exit 1); exit 1; }; }
7660 fi;;
7661 esac
7662 done` || { (exit 1); exit 1; }
7663_ACEOF
7664cat >>$CONFIG_STATUS <<_ACEOF
7665 sed "$ac_vpsub
7666$extrasub
7667_ACEOF
7668cat >>$CONFIG_STATUS <<\_ACEOF
7669:t
7670/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7671s,@configure_input@,$configure_input,;t t
7672s,@srcdir@,$ac_srcdir,;t t
7673s,@abs_srcdir@,$ac_abs_srcdir,;t t
7674s,@top_srcdir@,$ac_top_srcdir,;t t
7675s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7676s,@builddir@,$ac_builddir,;t t
7677s,@abs_builddir@,$ac_abs_builddir,;t t
7678s,@top_builddir@,$ac_top_builddir,;t t
7679s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7680s,@INSTALL@,$ac_INSTALL,;t t
7681" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7682 rm -f $tmp/stdin
7683 if test x"$ac_file" != x-; then
7684 mv $tmp/out $ac_file
7685 else
7686 cat $tmp/out
7687 rm -f $tmp/out
7688 fi
7689
7690done
7691_ACEOF
7692cat >>$CONFIG_STATUS <<\_ACEOF
7693
7694#
7695# CONFIG_HEADER section.
7696#
7697
7698# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7699# NAME is the cpp macro being defined and VALUE is the value it is being given.
7700#
7701# ac_d sets the value in "#define NAME VALUE" lines.
7702ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7703ac_dB='[ ].*$,\1#\2'
7704ac_dC=' '
7705ac_dD=',;t'
7706# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7707ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7708ac_uB='$,\1#\2define\3'
7709ac_uC=' '
7710ac_uD=',;t'
7711
7712for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7714 case $ac_file in
7715 - | *:- | *:-:* ) # input from stdin
7716 cat >$tmp/stdin
7717 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7718 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7719 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7721 * ) ac_file_in=$ac_file.in ;;
7722 esac
7723
7724 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7725echo "$as_me: creating $ac_file" >&6;}
7726
7727 # First look for the input files in the build tree, otherwise in the
7728 # src tree.
7729 ac_file_inputs=`IFS=:
7730 for f in $ac_file_in; do
7731 case $f in
7732 -) echo $tmp/stdin ;;
7733 [\\/$]*)
7734 # Absolute (can't be DOS-style, as IFS=:)
7735 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7736echo "$as_me: error: cannot find input file: $f" >&2;}
7737 { (exit 1); exit 1; }; }
7738 echo $f;;
7739 *) # Relative
7740 if test -f "$f"; then
7741 # Build tree
7742 echo $f
7743 elif test -f "$srcdir/$f"; then
7744 # Source tree
7745 echo $srcdir/$f
7746 else
7747 # /dev/null tree
7748 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7749echo "$as_me: error: cannot find input file: $f" >&2;}
7750 { (exit 1); exit 1; }; }
7751 fi;;
7752 esac
7753 done` || { (exit 1); exit 1; }
7754 # Remove the trailing spaces.
7755 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7756
7757_ACEOF
7758
7759# Transform confdefs.h into two sed scripts, `conftest.defines' and
7760# `conftest.undefs', that substitutes the proper values into
7761# config.h.in to produce config.h. The first handles `#define'
7762# templates, and the second `#undef' templates.
7763# And first: Protect against being on the right side of a sed subst in
7764# config.status. Protect against being in an unquoted here document
7765# in config.status.
7766rm -f conftest.defines conftest.undefs
7767# Using a here document instead of a string reduces the quoting nightmare.
7768# Putting comments in sed scripts is not portable.
7769#
7770# `end' is used to avoid that the second main sed command (meant for
7771# 0-ary CPP macros) applies to n-ary macro definitions.
7772# See the Autoconf documentation for `clear'.
7773cat >confdef2sed.sed <<\_ACEOF
7774s/[\\&,]/\\&/g
7775s,[\\$`],\\&,g
7776t clear
7777: clear
7778s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7779t end
7780s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7781: end
7782_ACEOF
7783# If some macros were called several times there might be several times
7784# the same #defines, which is useless. Nevertheless, we may not want to
7785# sort them, since we want the *last* AC-DEFINE to be honored.
7786uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7787sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7788rm -f confdef2sed.sed
7789
7790# This sed command replaces #undef with comments. This is necessary, for
7791# example, in the case of _POSIX_SOURCE, which is predefined and required
7792# on some systems where configure will not decide to define it.
7793cat >>conftest.undefs <<\_ACEOF
7794s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7795_ACEOF
7796
7797# Break up conftest.defines because some shells have a limit on the size
7798# of here documents, and old seds have small limits too (100 cmds).
7799echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7800echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7801echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7802echo ' :' >>$CONFIG_STATUS
7803rm -f conftest.tail
7804while grep . conftest.defines >/dev/null
7805do
7806 # Write a limited-size here document to $tmp/defines.sed.
7807 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7808 # Speed up: don't consider the non `#define' lines.
7809 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7810 # Work around the forget-to-reset-the-flag bug.
7811 echo 't clr' >>$CONFIG_STATUS
7812 echo ': clr' >>$CONFIG_STATUS
7813 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7814 echo 'CEOF
7815 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7816 rm -f $tmp/in
7817 mv $tmp/out $tmp/in
7818' >>$CONFIG_STATUS
7819 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7820 rm -f conftest.defines
7821 mv conftest.tail conftest.defines
7822done
7823rm -f conftest.defines
7824echo ' fi # grep' >>$CONFIG_STATUS
7825echo >>$CONFIG_STATUS
7826
7827# Break up conftest.undefs because some shells have a limit on the size
7828# of here documents, and old seds have small limits too (100 cmds).
7829echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7830rm -f conftest.tail
7831while grep . conftest.undefs >/dev/null
7832do
7833 # Write a limited-size here document to $tmp/undefs.sed.
7834 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7835 # Speed up: don't consider the non `#undef'
7836 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7837 # Work around the forget-to-reset-the-flag bug.
7838 echo 't clr' >>$CONFIG_STATUS
7839 echo ': clr' >>$CONFIG_STATUS
7840 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7841 echo 'CEOF
7842 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7843 rm -f $tmp/in
7844 mv $tmp/out $tmp/in
7845' >>$CONFIG_STATUS
7846 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7847 rm -f conftest.undefs
7848 mv conftest.tail conftest.undefs
7849done
7850rm -f conftest.undefs
7851
7852cat >>$CONFIG_STATUS <<\_ACEOF
7853 # Let's still pretend it is `configure' which instantiates (i.e., don't
7854 # use $as_me), people would be surprised to read:
7855 # /* config.h. Generated by config.status. */
7856 if test x"$ac_file" = x-; then
7857 echo "/* Generated by configure. */" >$tmp/config.h
7858 else
7859 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7860 fi
7861 cat $tmp/in >>$tmp/config.h
7862 rm -f $tmp/in
7863 if test x"$ac_file" != x-; then
7864 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7865 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7866echo "$as_me: $ac_file is unchanged" >&6;}
7867 else
7868 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7869$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7870 X"$ac_file" : 'X\(//\)[^/]' \| \
7871 X"$ac_file" : 'X\(//\)$' \| \
7872 X"$ac_file" : 'X\(/\)' \| \
7873 . : '\(.\)' 2>/dev/null ||
7874echo X"$ac_file" |
7875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7877 /^X\(\/\/\)$/{ s//\1/; q; }
7878 /^X\(\/\).*/{ s//\1/; q; }
7879 s/.*/./; q'`
7880 { if $as_mkdir_p; then
7881 mkdir -p "$ac_dir"
7882 else
7883 as_dir="$ac_dir"
7884 as_dirs=
7885 while test ! -d "$as_dir"; do
7886 as_dirs="$as_dir $as_dirs"
7887 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7888$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7889 X"$as_dir" : 'X\(//\)[^/]' \| \
7890 X"$as_dir" : 'X\(//\)$' \| \
7891 X"$as_dir" : 'X\(/\)' \| \
7892 . : '\(.\)' 2>/dev/null ||
7893echo X"$as_dir" |
7894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7896 /^X\(\/\/\)$/{ s//\1/; q; }
7897 /^X\(\/\).*/{ s//\1/; q; }
7898 s/.*/./; q'`
7899 done
7900 test ! -n "$as_dirs" || mkdir $as_dirs
7901 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7902echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7903 { (exit 1); exit 1; }; }; }
7904
7905 rm -f $ac_file
7906 mv $tmp/config.h $ac_file
7907 fi
7908 else
7909 cat $tmp/config.h
7910 rm -f $tmp/config.h
7911 fi
7912_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
7913echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7914$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7915 X$ac_file : 'X\(//\)[^/]' \| \
7916 X$ac_file : 'X\(//\)$' \| \
7917 X$ac_file : 'X\(/\)' \| \
7918 . : '\(.\)' 2>/dev/null ||
7919echo X$ac_file |
7920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7922 /^X\(\/\/\)$/{ s//\1/; q; }
7923 /^X\(\/\).*/{ s//\1/; q; }
7924 s/.*/./; q'`/stamp-h$_am_stamp_count
7925done
7926_ACEOF
7927cat >>$CONFIG_STATUS <<\_ACEOF
7928
7929#
7930# CONFIG_COMMANDS section.
7931#
7932for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7933 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7934 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7935 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7936$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7937 X"$ac_dest" : 'X\(//\)[^/]' \| \
7938 X"$ac_dest" : 'X\(//\)$' \| \
7939 X"$ac_dest" : 'X\(/\)' \| \
7940 . : '\(.\)' 2>/dev/null ||
7941echo X"$ac_dest" |
7942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7944 /^X\(\/\/\)$/{ s//\1/; q; }
7945 /^X\(\/\).*/{ s//\1/; q; }
7946 s/.*/./; q'`
7947 ac_builddir=.
7948
7949if test "$ac_dir" != .; then
7950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7951 # A "../" for each directory in $ac_dir_suffix.
7952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7953else
7954 ac_dir_suffix= ac_top_builddir=
7955fi
7956
7957case $srcdir in
7958 .) # No --srcdir option. We are building in place.
7959 ac_srcdir=.
7960 if test -z "$ac_top_builddir"; then
7961 ac_top_srcdir=.
7962 else
7963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7964 fi ;;
7965 [\\/]* | ?:[\\/]* ) # Absolute path.
7966 ac_srcdir=$srcdir$ac_dir_suffix;
7967 ac_top_srcdir=$srcdir ;;
7968 *) # Relative path.
7969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7971esac
7972# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7973# absolute.
7974ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7975ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7976ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7977ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7978
7979
7980 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7981echo "$as_me: executing $ac_dest commands" >&6;}
7982 case $ac_dest in
7983 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7984 # Strip MF so we end up with the name of the file.
7985 mf=`echo "$mf" | sed -e 's/:.*$//'`
7986 # Check whether this is an Automake generated Makefile or not.
7987 # We used to match only the files named `Makefile.in', but
7988 # some people rename them; so instead we look at the file content.
7989 # Grep'ing the first line is not enough: some people post-process
7990 # each Makefile.in and add a new line on top of each file to say so.
7991 # So let's grep whole file.
7992 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7993 dirpart=`(dirname "$mf") 2>/dev/null ||
7994$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7995 X"$mf" : 'X\(//\)[^/]' \| \
7996 X"$mf" : 'X\(//\)$' \| \
7997 X"$mf" : 'X\(/\)' \| \
7998 . : '\(.\)' 2>/dev/null ||
7999echo X"$mf" |
8000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8002 /^X\(\/\/\)$/{ s//\1/; q; }
8003 /^X\(\/\).*/{ s//\1/; q; }
8004 s/.*/./; q'`
8005 else
8006 continue
8007 fi
8008 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8009 # Extract the definition of DEP_FILES from the Makefile without
8010 # running `make'.
8011 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8012 test -z "$DEPDIR" && continue
8013 # When using ansi2knr, U may be empty or an underscore; expand it
8014 U=`sed -n -e '/^U = / s///p' < "$mf"`
8015 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8016 # We invoke sed twice because it is the simplest approach to
8017 # changing $(DEPDIR) to its actual value in the expansion.
8018 for file in `sed -n -e '
8019 /^DEP_FILES = .*\\\\$/ {
8020 s/^DEP_FILES = //
8021 :loop
8022 s/\\\\$//
8023 p
8024 n
8025 /\\\\$/ b loop
8026 p
8027 }
8028 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8029 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8030 # Make sure the directory exists.
8031 test -f "$dirpart/$file" && continue
8032 fdir=`(dirname "$file") 2>/dev/null ||
8033$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8034 X"$file" : 'X\(//\)[^/]' \| \
8035 X"$file" : 'X\(//\)$' \| \
8036 X"$file" : 'X\(/\)' \| \
8037 . : '\(.\)' 2>/dev/null ||
8038echo X"$file" |
8039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8041 /^X\(\/\/\)$/{ s//\1/; q; }
8042 /^X\(\/\).*/{ s//\1/; q; }
8043 s/.*/./; q'`
8044 { if $as_mkdir_p; then
8045 mkdir -p $dirpart/$fdir
8046 else
8047 as_dir=$dirpart/$fdir
8048 as_dirs=
8049 while test ! -d "$as_dir"; do
8050 as_dirs="$as_dir $as_dirs"
8051 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8052$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8053 X"$as_dir" : 'X\(//\)[^/]' \| \
8054 X"$as_dir" : 'X\(//\)$' \| \
8055 X"$as_dir" : 'X\(/\)' \| \
8056 . : '\(.\)' 2>/dev/null ||
8057echo X"$as_dir" |
8058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8060 /^X\(\/\/\)$/{ s//\1/; q; }
8061 /^X\(\/\).*/{ s//\1/; q; }
8062 s/.*/./; q'`
8063 done
8064 test ! -n "$as_dirs" || mkdir $as_dirs
8065 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8066echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8067 { (exit 1); exit 1; }; }; }
8068
8069 # echo "creating $dirpart/$file"
8070 echo '# dummy' > "$dirpart/$file"
8071 done
8072done
8073 ;;
8074 esac
8075done
8076_ACEOF
8077
8078cat >>$CONFIG_STATUS <<\_ACEOF
8079
8080{ (exit 0); exit 0; }
8081_ACEOF
8082chmod +x $CONFIG_STATUS
8083ac_clean_files=$ac_clean_files_save
8084
8085
8086# configure is writing to config.log, and then calls config.status.
8087# config.status does its own redirection, appending to config.log.
8088# Unfortunately, on DOS this fails, as config.log is still kept open
8089# by configure, so config.status won't be able to write to it; its
8090# output is simply discarded. So we exec the FD to /dev/null,
8091# effectively closing config.log, so it can be properly (re)opened and
8092# appended to by config.status. When coming back to configure, we
8093# need to make the FD available again.
8094if test "$no_create" != yes; then
8095 ac_cs_success=:
8096 exec 5>/dev/null
8097 $SHELL $CONFIG_STATUS || ac_cs_success=false
8098 exec 5>>config.log
8099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8100 # would make configure fail if this is the last instruction.
8101 $ac_cs_success || { (exit 1); exit 1; }
8102fi
8103
8104
8105echo "
8106zebra configuration
8107-------------------
8108zebra version : ${VERSION}
8109host operationg system : ${host_os}
8110source code location : ${srcdir}
8111compiler : ${CC}
8112compiler flags : ${CFLAGS}
8113directory for pid files : ${ac_piddir}
8114"