]> git.proxmox.com Git - mirror_frr.git/blob - configure
Initial revision
[mirror_frr.git] / configure
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
14 if 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+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
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
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo 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.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if 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
94 fi
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
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
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
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
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
149 done
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
184 case `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= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if 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
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_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.
227 as_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.
232 as_nl='
233 '
234 IFS=" $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.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${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.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="lib/zebra.h"
271 # Factoring default headers for most tests.
272 ac_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
308 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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'
309 ac_subst_files=''
310
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_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.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
348
349 ac_prev=
350 for ac_option
351 do
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
623 Try \`$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
646 done
647
648 if 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; }; }
652 fi
653
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
656 do
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
663 done
664
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
668 do
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
675 done
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.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
683
684 # FIXME: To remove some day.
685 if 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
693 fi
694
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698 test "$silent" = yes && exec 6>/dev/null
699
700
701 # Find the source files, if location was not specified.
702 if 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 ||
711 echo 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
721 else
722 ac_srcdir_defaulted=no
723 fi
724 if 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
732 fi
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; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
769
770 #
771 # Report the --help message.
772 #
773 if 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
779 Usage: $0 [OPTION]... [VAR=VALUE]...
780
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE. See below for descriptions of some of the useful variables.
783
784 Defaults for the options are specified in brackets.
785
786 Configuration:
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
800 Installation 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
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
810
811 For better control, use the options below.
812
813 Fine 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
830 Program 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
835 System 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
839 fi
840
841 if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845 Optional 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
868 Optional 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
874 Some 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
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 _ACEOF
887 fi
888
889 if 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
896 if 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'`
900 else
901 ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $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 ;;
918 esac
919 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
920 # absolute.
921 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
922 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
923 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
924 ac_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
943 fi
944
945 test -n "$ac_init_help" && exit 0
946 if $ac_init_version; then
947 cat <<\_ACEOF
948
949 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
950 Free Software Foundation, Inc.
951 This configure script is free software; the Free Software Foundation
952 gives unlimited permission to copy, distribute and modify it.
953 _ACEOF
954 exit 0
955 fi
956 exec 5>config.log
957 cat >&5 <<_ACEOF
958 This file contains any messages produced by compilers while
959 running configure, to aid debugging if configure makes a mistake.
960
961 It was created by $as_me, which was
962 generated by GNU Autoconf 2.54. Invocation command line was
963
964 $ $0 $@
965
966 _ACEOF
967 {
968 cat <<_ASUNAME
969 ## --------- ##
970 ## Platform. ##
971 ## --------- ##
972
973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
974 uname -m = `(uname -m) 2>/dev/null || echo unknown`
975 uname -r = `(uname -r) 2>/dev/null || echo unknown`
976 uname -s = `(uname -s) 2>/dev/null || echo unknown`
977 uname -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`
985 hostinfo = `(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
992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
993 for as_dir in $PATH
994 do
995 IFS=$as_save_IFS
996 test -z "$as_dir" && as_dir=.
997 echo "PATH: $as_dir"
998 done
999
1000 } >&5
1001
1002 cat >&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.
1015 ac_configure_args=
1016 ac_sep=
1017 for ac_arg
1018 do
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=" "
1031 done
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.
1038 trap '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
1112 for ac_signal in 1 2 13 15; do
1113 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 done
1115 ac_signal=0
1116
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 echo >confdefs.h
1121
1122 # Predefined preprocessor variables.
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 _ACEOF
1142
1143
1144 cat >>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.
1151 if 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
1157 fi
1158 for 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
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162 sed 's/^/| /' "$ac_site_file" >&5
1163 . "$ac_site_file"
1164 fi
1165 done
1166
1167 if 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
1172 echo "$as_me: loading cache $cache_file" >&6;}
1173 case $cache_file in
1174 [\\/]* | ?:[\\/]* ) . $cache_file;;
1175 *) . ./$cache_file;;
1176 esac
1177 fi
1178 else
1179 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1181 >$cache_file
1182 fi
1183
1184 # Check that the precious variables saved in the cache have kept the same
1185 # value.
1186 ac_cache_corrupted=false
1187 for 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
1196 echo "$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
1200 echo "$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
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208 echo "$as_me: former value: $ac_old_val" >&2;}
1209 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210 echo "$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
1226 done
1227 if $ac_cache_corrupted; then
1228 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$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
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232 { (exit 1); exit 1; }; }
1233 fi
1234
1235 ac_ext=c
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_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
1259 am__api_version="1.7"
1260 ac_aux_dir=
1261 for 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
1275 done
1276 if test -z "$ac_aux_dir"; then
1277 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1278 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1279 { (exit 1); exit 1; }; }
1280 fi
1281 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1282 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1283 ac_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.
1297 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1298 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1299 if test -z "$INSTALL"; then
1300 if test "${ac_cv_path_install+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 else
1303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1304 for as_dir in $PATH
1305 do
1306 IFS=$as_save_IFS
1307 test -z "$as_dir" && as_dir=.
1308 # Account for people who put trailing slashes in PATH elements.
1309 case $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 ;;
1336 esac
1337 done
1338
1339
1340 fi
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
1350 fi
1351 echo "$as_me:$LINENO: result: $INSTALL" >&5
1352 echo "${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.
1356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1357
1358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1359
1360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1361
1362 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1363 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1364 # Just in case
1365 sleep 1
1366 echo 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).
1372 if (
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
1387 alias in your environment" >&5
1388 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1389 alias in your environment" >&2;}
1390 { (exit 1); exit 1; }; }
1391 fi
1392
1393 test "$2" = conftest.file
1394 )
1395 then
1396 # Ok.
1397 :
1398 else
1399 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1400 Check your system clock" >&5
1401 echo "$as_me: error: newly created file is older than distributed files!
1402 Check your system clock" >&2;}
1403 { (exit 1); exit 1; }; }
1404 fi
1405 echo "$as_me:$LINENO: result: yes" >&5
1406 echo "${ECHO_T}yes" >&6
1407 test "$program_prefix" != NONE &&
1408 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1409 # Use a double $ so make ignores it.
1410 test "$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.
1414 cat <<\_ACEOF >conftest.sed
1415 s/[\\$]/&&/g;s/;s,x,x,$//
1416 _ACEOF
1417 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1418 rm conftest.sed
1419
1420
1421 # expand $ac_aux_dir to an absolute path
1422 am_aux_dir=`cd $ac_aux_dir && pwd`
1423
1424 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1425 # Use eval to expand $SHELL
1426 if eval "$MISSING --run true"; then
1427 am_missing_run="$MISSING --run "
1428 else
1429 am_missing_run=
1430 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1431 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1432 fi
1433
1434 for ac_prog in gawk mawk nawk awk
1435 do
1436 # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_AWK+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$AWK"; then
1444 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
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
1457 done
1458 done
1459
1460 fi
1461 fi
1462 AWK=$ac_cv_prog_AWK
1463 if test -n "$AWK"; then
1464 echo "$as_me:$LINENO: result: $AWK" >&5
1465 echo "${ECHO_T}$AWK" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471 test -n "$AWK" && break
1472 done
1473
1474 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1475 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1476 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1477 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 cat >conftest.make <<\_ACEOF
1481 all:
1482 @echo 'ac_maketemp="${MAKE}"'
1483 _ACEOF
1484 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1485 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1486 if test -n "$ac_maketemp"; then
1487 eval ac_cv_prog_make_${ac_make}_set=yes
1488 else
1489 eval ac_cv_prog_make_${ac_make}_set=no
1490 fi
1491 rm -f conftest.make
1492 fi
1493 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1494 echo "$as_me:$LINENO: result: yes" >&5
1495 echo "${ECHO_T}yes" >&6
1496 SET_MAKE=
1497 else
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1500 SET_MAKE="MAKE=${MAKE-make}"
1501 fi
1502
1503 # test to see if srcdir already configured
1504 if 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
1507 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1508 { (exit 1); exit 1; }; }
1509 fi
1510
1511 # test whether we have cygpath
1512 if 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
1518 fi
1519
1520
1521 # Define the identity of the package.
1522 PACKAGE=zebra
1523 VERSION=0.93
1524
1525
1526 cat >>confdefs.h <<_ACEOF
1527 #define PACKAGE "$PACKAGE"
1528 _ACEOF
1529
1530
1531 cat >>confdefs.h <<_ACEOF
1532 #define VERSION "$VERSION"
1533 _ACEOF
1534
1535 # Some tools Automake needs.
1536
1537 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1538
1539
1540 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1541
1542
1543 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1544
1545
1546 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1547
1548
1549 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1550
1551
1552 AMTAR=${AMTAR-"${am_missing_run}tar"}
1553
1554 install_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.
1560 if 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.
1563 set dummy ${ac_tool_prefix}strip; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_STRIP+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 if test -n "$STRIP"; then
1570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
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
1583 done
1584 done
1585
1586 fi
1587 fi
1588 STRIP=$ac_cv_prog_STRIP
1589 if test -n "$STRIP"; then
1590 echo "$as_me:$LINENO: result: $STRIP" >&5
1591 echo "${ECHO_T}$STRIP" >&6
1592 else
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597 fi
1598 if 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.
1601 set dummy strip; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607 if test -n "$ac_ct_STRIP"; then
1608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1609 else
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
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
1621 done
1622 done
1623
1624 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1625 fi
1626 fi
1627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1628 if test -n "$ac_ct_STRIP"; then
1629 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1630 echo "${ECHO_T}$ac_ct_STRIP" >&6
1631 else
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636 STRIP=$ac_ct_STRIP
1637 else
1638 STRIP="$ac_cv_prog_STRIP"
1639 fi
1640
1641 fi
1642 INSTALL_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
1655 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1656 { (exit 1); exit 1; }; }
1657
1658 echo "$as_me:$LINENO: checking build system type" >&5
1659 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1660 if test "${ac_cv_build+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663 ac_cv_build_alias=$build_alias
1664 test -z "$ac_cv_build_alias" &&
1665 ac_cv_build_alias=`$ac_config_guess`
1666 test -z "$ac_cv_build_alias" &&
1667 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1668 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1669 { (exit 1); exit 1; }; }
1670 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1677 echo "${ECHO_T}$ac_cv_build" >&6
1678 build=$ac_cv_build
1679 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 echo "$as_me:$LINENO: checking host system type" >&5
1685 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1686 if test "${ac_cv_host+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689 ac_cv_host_alias=$host_alias
1690 test -z "$ac_cv_host_alias" &&
1691 ac_cv_host_alias=$ac_cv_build_alias
1692 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1695 { (exit 1); exit 1; }; }
1696
1697 fi
1698 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1699 echo "${ECHO_T}$ac_cv_host" >&6
1700 host=$ac_cv_host
1701 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706
1707
1708 # Check whether --with-cflags or --without-cflags was given.
1709 if test "${with_cflags+set}" = set; then
1710 withval="$with_cflags"
1711
1712 fi;
1713 if test "x$with_cflags" != "x" ; then
1714 CFLAGS="$with_cflags" ; cflags_specified=yes ;
1715 elif test -n "$CFLAGS" ; then
1716 cflags_specified=yes ;
1717 fi
1718
1719 ac_ext=c
1720 ac_cpp='$CPP $CPPFLAGS'
1721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1724 if 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.
1726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732 if test -n "$CC"; then
1733 ac_cv_prog_CC="$CC" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
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
1746 done
1747 done
1748
1749 fi
1750 fi
1751 CC=$ac_cv_prog_CC
1752 if test -n "$CC"; then
1753 echo "$as_me:$LINENO: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 fi
1761 if 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.
1764 set dummy gcc; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770 if test -n "$ac_ct_CC"; then
1771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
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
1784 done
1785 done
1786
1787 fi
1788 fi
1789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1790 if test -n "$ac_ct_CC"; then
1791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1792 echo "${ECHO_T}$ac_ct_CC" >&6
1793 else
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798 CC=$ac_ct_CC
1799 else
1800 CC="$ac_cv_prog_CC"
1801 fi
1802
1803 if 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.
1806 set dummy ${ac_tool_prefix}cc; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1817 do
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
1826 done
1827 done
1828
1829 fi
1830 fi
1831 CC=$ac_cv_prog_CC
1832 if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6
1835 else
1836 echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1838 fi
1839
1840 fi
1841 if 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.
1844 set dummy cc; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 if test -n "$ac_ct_CC"; then
1851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
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
1864 done
1865 done
1866
1867 fi
1868 fi
1869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870 if test -n "$ac_ct_CC"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872 echo "${ECHO_T}$ac_ct_CC" >&6
1873 else
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878 CC=$ac_ct_CC
1879 else
1880 CC="$ac_cv_prog_CC"
1881 fi
1882
1883 fi
1884 if test -z "$CC"; then
1885 # Extract the first word of "cc", so it can be a program name with args.
1886 set dummy cc; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1894 else
1895 ac_prog_rejected=no
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
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
1911 done
1912 done
1913
1914 if 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
1925 fi
1926 fi
1927 fi
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 fi
1938 if 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.
1943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
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
1963 done
1964 done
1965
1966 fi
1967 fi
1968 CC=$ac_cv_prog_CC
1969 if test -n "$CC"; then
1970 echo "$as_me:$LINENO: result: $CC" >&5
1971 echo "${ECHO_T}$CC" >&6
1972 else
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 fi
1976
1977 test -n "$CC" && break
1978 done
1979 fi
1980 if test -z "$CC"; then
1981 ac_ct_CC=$CC
1982 for ac_prog in cl
1983 do
1984 # Extract the first word of "$ac_prog", so it can be a program name with args.
1985 set dummy $ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 if test -n "$ac_ct_CC"; then
1992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
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
2005 done
2006 done
2007
2008 fi
2009 fi
2010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2011 if test -n "$ac_ct_CC"; then
2012 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2013 echo "${ECHO_T}$ac_ct_CC" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2017 fi
2018
2019 test -n "$ac_ct_CC" && break
2020 done
2021
2022 CC=$ac_ct_CC
2023 fi
2024
2025 fi
2026
2027
2028 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2029 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2030 { (exit 1); exit 1; }; }
2031
2032 # Provide some information about the compiler.
2033 echo "$as_me:$LINENO:" \
2034 "checking for C compiler version" >&5
2035 ac_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
2052 cat >conftest.$ac_ext <<_ACEOF
2053 #line $LINENO "configure"
2054 #include "confdefs.h"
2055
2056 int
2057 main ()
2058 {
2059
2060 ;
2061 return 0;
2062 }
2063 _ACEOF
2064 ac_clean_files_save=$ac_clean_files
2065 ac_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.
2069 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2070 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2072 if { (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.
2083 ac_cv_exeext=
2084 for 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
2097 done
2098 else
2099 echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2102 check \`config.log' for details." >&5
2103 echo "$as_me: error: C compiler cannot create executables
2104 check \`config.log' for details." >&2;}
2105 { (exit 77); exit 77; }; }
2106 fi
2107
2108 ac_exeext=$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_file" >&5
2110 echo "${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.
2114 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2115 echo $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.
2118 if 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.
2131 If you meant to cross compile, use \`--host'." >&5
2132 echo "$as_me: error: cannot run C compiled programs.
2133 If you meant to cross compile, use \`--host'." >&2;}
2134 { (exit 1); exit 1; }; }
2135 fi
2136 fi
2137 fi
2138 echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6
2140
2141 rm -f a.out a.exe conftest$ac_cv_exeext
2142 ac_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.
2145 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2146 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2147 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2148 echo "${ECHO_T}$cross_compiling" >&6
2149
2150 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2151 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2152 if { (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'.
2161 for 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
2170 done
2171 else
2172 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2173 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2174 { (exit 1); exit 1; }; }
2175 fi
2176
2177 rm -f conftest$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2179 echo "${ECHO_T}$ac_cv_exeext" >&6
2180
2181 rm -f conftest.$ac_ext
2182 EXEEXT=$ac_cv_exeext
2183 ac_exeext=$EXEEXT
2184 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2185 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2186 if test "${ac_cv_objext+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189 cat >conftest.$ac_ext <<_ACEOF
2190 #line $LINENO "configure"
2191 #include "confdefs.h"
2192
2193 int
2194 main ()
2195 {
2196
2197 ;
2198 return 0;
2199 }
2200 _ACEOF
2201 rm -f conftest.o conftest.obj
2202 if { (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
2213 done
2214 else
2215 echo "$as_me: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2218 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2219 { (exit 1); exit 1; }; }
2220 fi
2221
2222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223 fi
2224 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225 echo "${ECHO_T}$ac_cv_objext" >&6
2226 OBJEXT=$ac_cv_objext
2227 ac_objext=$OBJEXT
2228 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2229 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2230 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 cat >conftest.$ac_ext <<_ACEOF
2234 #line $LINENO "configure"
2235 #include "confdefs.h"
2236
2237 int
2238 main ()
2239 {
2240 #ifndef __GNUC__
2241 choke me
2242 #endif
2243
2244 ;
2245 return 0;
2246 }
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (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
2261 else
2262 echo "$as_me: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2264 ac_compiler_gnu=no
2265 fi
2266 rm -f conftest.$ac_objext conftest.$ac_ext
2267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2268
2269 fi
2270 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2271 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2272 GCC=`test $ac_compiler_gnu = yes && echo yes`
2273 ac_test_CFLAGS=${CFLAGS+set}
2274 ac_save_CFLAGS=$CFLAGS
2275 CFLAGS="-g"
2276 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 #include "confdefs.h"
2284
2285 int
2286 main ()
2287 {
2288
2289 ;
2290 return 0;
2291 }
2292 _ACEOF
2293 rm -f conftest.$ac_objext
2294 if { (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
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2309 ac_cv_prog_cc_g=no
2310 fi
2311 rm -f conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315 if test "$ac_test_CFLAGS" = set; then
2316 CFLAGS=$ac_save_CFLAGS
2317 elif 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
2323 else
2324 if test "$GCC" = yes; then
2325 CFLAGS="-O2"
2326 else
2327 CFLAGS=
2328 fi
2329 fi
2330 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 ac_cv_prog_cc_stdc=no
2336 ac_save_CC=$CC
2337 cat >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. */
2345 struct buf { int x; };
2346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347 static char *e (p, i)
2348 char **p;
2349 int i;
2350 {
2351 return p[i];
2352 }
2353 static 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 }
2362 int test (int i, double x);
2363 struct s1 {int (*f) (int a);};
2364 struct s2 {int (*f) (double a);};
2365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2366 int argc;
2367 char **argv;
2368 int
2369 main ()
2370 {
2371 return 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__
2383 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2384 do
2385 CC="$ac_save_CC $ac_arg"
2386 rm -f conftest.$ac_objext
2387 if { (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
2399 break
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 fi
2404 rm -f conftest.$ac_objext
2405 done
2406 rm -f conftest.$ac_ext conftest.$ac_objext
2407 CC=$ac_save_CC
2408
2409 fi
2410
2411 case "x$ac_cv_prog_cc_stdc" in
2412 x|xno)
2413 echo "$as_me:$LINENO: result: none needed" >&5
2414 echo "${ECHO_T}none needed" >&6 ;;
2415 *)
2416 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2417 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2418 CC="$CC $ac_cv_prog_cc_stdc" ;;
2419 esac
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.
2425 cat >conftest.$ac_ext <<_ACEOF
2426 #ifndef __cplusplus
2427 choke me
2428 #endif
2429 _ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (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);'
2450 do
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 #include "confdefs.h"
2454 #include <stdlib.h>
2455 $ac_declaration
2456 int
2457 main ()
2458 {
2459 exit (42);
2460 ;
2461 return 0;
2462 }
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (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 :
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 continue
2481 fi
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2483 cat >conftest.$ac_ext <<_ACEOF
2484 #line $LINENO "configure"
2485 #include "confdefs.h"
2486 $ac_declaration
2487 int
2488 main ()
2489 {
2490 exit (42);
2491 ;
2492 return 0;
2493 }
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (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
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 fi
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2513 done
2514 rm -f conftest*
2515 if test -n "$ac_declaration"; then
2516 echo '#ifdef __cplusplus' >>confdefs.h
2517 echo $ac_declaration >>confdefs.h
2518 echo '#endif' >>confdefs.h
2519 fi
2520
2521 else
2522 echo "$as_me: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 fi
2525 rm -f conftest.$ac_objext conftest.$ac_ext
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 rm -f .deps 2>/dev/null
2532 mkdir .deps 2>/dev/null
2533 if test -d .deps; then
2534 DEPDIR=.deps
2535 else
2536 # MS-DOS does not allow filenames that begin with a dot.
2537 DEPDIR=_deps
2538 fi
2539 rmdir .deps 2>/dev/null
2540
2541
2542 ac_config_commands="$ac_config_commands depfiles"
2543
2544
2545 am_make=${MAKE-make}
2546 cat > confinc << 'END'
2547 doit:
2548 @echo done
2549 END
2550 # If we don't find an include directive, just comment out the code.
2551 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2552 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2553 am__include="#"
2554 am__quote=
2555 _am_result=none
2556 # First try GNU make style include.
2557 echo "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'.
2563 if 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
2567 fi
2568 # Now try BSD make style include.
2569 if 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
2576 fi
2577
2578
2579 echo "$as_me:$LINENO: result: $_am_result" >&5
2580 echo "${ECHO_T}$_am_result" >&6
2581 rm -f confinc confmf
2582
2583 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2584 if test "${enable_dependency_tracking+set}" = set; then
2585 enableval="$enable_dependency_tracking"
2586
2587 fi;
2588 if test "x$enable_dependency_tracking" != xno; then
2589 am_depcomp="$ac_aux_dir/depcomp"
2590 AMDEPBACKSLASH='\'
2591 fi
2592
2593
2594 if test "x$enable_dependency_tracking" != xno; then
2595 AMDEP_TRUE=
2596 AMDEP_FALSE='#'
2597 else
2598 AMDEP_TRUE='#'
2599 AMDEP_FALSE=
2600 fi
2601
2602
2603
2604
2605 depcc="$CC" am_compiler_list=
2606
2607 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
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
2664 else
2665 am_cv_CC_dependencies_compiler_type=none
2666 fi
2667
2668 fi
2669 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2670 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2671 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2672
2673
2674
2675 if
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='#'
2680 else
2681 am__fastdepCC_TRUE='#'
2682 am__fastdepCC_FALSE=
2683 fi
2684
2685
2686
2687 if test "x$cflags_specified" = "x" ; then
2688 CFLAGS="$CFLAGS -Wall"
2689 fi
2690
2691 ac_ext=c
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2697 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2698 # On Suns, sometimes $CPP names a directory.
2699 if test -n "$CPP" && test -d "$CPP"; then
2700 CPP=
2701 fi
2702 if test -z "$CPP"; then
2703 if test "${ac_cv_prog_CPP+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
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
2710 for ac_c_preproc_warn_flag in '' yes
2711 do
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
2722 if { (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
2735 else
2736 ac_cpp_err=yes
2737 fi
2738 if test -z "$ac_cpp_err"; then
2739 :
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2743 # Broken: fails on valid input.
2744 continue
2745 fi
2746 rm -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
2755 if { (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
2768 else
2769 ac_cpp_err=yes
2770 fi
2771 if test -z "$ac_cpp_err"; then
2772 # Broken: success on invalid input.
2773 continue
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 # Passes both tests.
2778 ac_preproc_ok=:
2779 break
2780 fi
2781 rm -f conftest.err conftest.$ac_ext
2782
2783 done
2784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2785 rm -f conftest.err conftest.$ac_ext
2786 if $ac_preproc_ok; then
2787 break
2788 fi
2789
2790 done
2791 ac_cv_prog_CPP=$CPP
2792
2793 fi
2794 CPP=$ac_cv_prog_CPP
2795 else
2796 ac_cv_prog_CPP=$CPP
2797 fi
2798 echo "$as_me:$LINENO: result: $CPP" >&5
2799 echo "${ECHO_T}$CPP" >&6
2800 ac_preproc_ok=false
2801 for ac_c_preproc_warn_flag in '' yes
2802 do
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
2813 if { (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
2826 else
2827 ac_cpp_err=yes
2828 fi
2829 if test -z "$ac_cpp_err"; then
2830 :
2831 else
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 # Broken: fails on valid input.
2835 continue
2836 fi
2837 rm -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
2846 if { (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
2859 else
2860 ac_cpp_err=yes
2861 fi
2862 if test -z "$ac_cpp_err"; then
2863 # Broken: success on invalid input.
2864 continue
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 # Passes both tests.
2869 ac_preproc_ok=:
2870 break
2871 fi
2872 rm -f conftest.err conftest.$ac_ext
2873
2874 done
2875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2876 rm -f conftest.err conftest.$ac_ext
2877 if $ac_preproc_ok; then
2878 :
2879 else
2880 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2881 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_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.
2903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2905 if test -z "$INSTALL"; then
2906 if test "${ac_cv_path_install+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 # Account for people who put trailing slashes in PATH elements.
2915 case $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 ;;
2942 esac
2943 done
2944
2945
2946 fi
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
2956 fi
2957 echo "$as_me:$LINENO: result: $INSTALL" >&5
2958 echo "${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.
2962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2963
2964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2965
2966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2967
2968 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2969 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2970 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2971 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 cat >conftest.make <<\_ACEOF
2975 all:
2976 @echo 'ac_maketemp="${MAKE}"'
2977 _ACEOF
2978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2979 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2980 if test -n "$ac_maketemp"; then
2981 eval ac_cv_prog_make_${ac_make}_set=yes
2982 else
2983 eval ac_cv_prog_make_${ac_make}_set=no
2984 fi
2985 rm -f conftest.make
2986 fi
2987 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2988 echo "$as_me:$LINENO: result: yes" >&5
2989 echo "${ECHO_T}yes" >&6
2990 SET_MAKE=
2991 else
2992 echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2994 SET_MAKE="MAKE=${MAKE-make}"
2995 fi
2996
2997 if 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.
2999 set dummy ${ac_tool_prefix}ar; ac_word=$2
3000 echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3002 if test "${ac_cv_prog_AR+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005 if test -n "$AR"; then
3006 ac_cv_prog_AR="$AR" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
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
3019 done
3020 done
3021
3022 fi
3023 fi
3024 AR=$ac_cv_prog_AR
3025 if test -n "$AR"; then
3026 echo "$as_me:$LINENO: result: $AR" >&5
3027 echo "${ECHO_T}$AR" >&6
3028 else
3029 echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6
3031 fi
3032
3033 fi
3034 if 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.
3037 set dummy ar; ac_word=$2
3038 echo "$as_me:$LINENO: checking for $ac_word" >&5
3039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3040 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043 if test -n "$ac_ct_AR"; then
3044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
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
3057 done
3058 done
3059
3060 fi
3061 fi
3062 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3063 if test -n "$ac_ct_AR"; then
3064 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3065 echo "${ECHO_T}$ac_ct_AR" >&6
3066 else
3067 echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6
3069 fi
3070
3071 AR=$ac_ct_AR
3072 else
3073 AR="$ac_cv_prog_AR"
3074 fi
3075
3076 if 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.
3078 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3079 echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3081 if test "${ac_cv_prog_RANLIB+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 if test -n "$RANLIB"; then
3085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
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
3098 done
3099 done
3100
3101 fi
3102 fi
3103 RANLIB=$ac_cv_prog_RANLIB
3104 if test -n "$RANLIB"; then
3105 echo "$as_me:$LINENO: result: $RANLIB" >&5
3106 echo "${ECHO_T}$RANLIB" >&6
3107 else
3108 echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3110 fi
3111
3112 fi
3113 if 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.
3116 set dummy ranlib; ac_word=$2
3117 echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 if test -n "$ac_ct_RANLIB"; then
3123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
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
3136 done
3137 done
3138
3139 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3140 fi
3141 fi
3142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3143 if test -n "$ac_ct_RANLIB"; then
3144 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3145 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149 fi
3150
3151 RANLIB=$ac_ct_RANLIB
3152 else
3153 RANLIB="$ac_cv_prog_RANLIB"
3154 fi
3155
3156
3157
3158
3159 echo "$as_me:$LINENO: checking for egrep" >&5
3160 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3161 if test "${ac_cv_prog_egrep+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
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
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3170 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3171 EGREP=$ac_cv_prog_egrep
3172
3173
3174
3175 echo "$as_me:$LINENO: checking for AIX" >&5
3176 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 #include "confdefs.h"
3180 #ifdef _AIX
3181 yes
3182 #endif
3183
3184 _ACEOF
3185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3186 $EGREP "yes" >/dev/null 2>&1; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188 echo "${ECHO_T}yes" >&6
3189 cat >>confdefs.h <<\_ACEOF
3190 #define _ALL_SOURCE 1
3191 _ACEOF
3192
3193 else
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 fi
3197 rm -f conftest*
3198
3199
3200
3201 # Check whether --enable-vtysh or --disable-vtysh was given.
3202 if test "${enable_vtysh+set}" = set; then
3203 enableval="$enable_vtysh"
3204
3205 fi;
3206 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3207 if test "${enable_ipv6+set}" = set; then
3208 enableval="$enable_ipv6"
3209
3210 fi;
3211 # Check whether --enable-zebra or --disable-zebra was given.
3212 if test "${enable_zebra+set}" = set; then
3213 enableval="$enable_zebra"
3214
3215 fi;
3216 # Check whether --enable-bgpd or --disable-bgpd was given.
3217 if test "${enable_bgpd+set}" = set; then
3218 enableval="$enable_bgpd"
3219
3220 fi;
3221 # Check whether --enable-ripd or --disable-ripd was given.
3222 if test "${enable_ripd+set}" = set; then
3223 enableval="$enable_ripd"
3224
3225 fi;
3226 # Check whether --enable-ripngd or --disable-ripngd was given.
3227 if test "${enable_ripngd+set}" = set; then
3228 enableval="$enable_ripngd"
3229
3230 fi;
3231 # Check whether --enable-ospfd or --disable-ospfd was given.
3232 if test "${enable_ospfd+set}" = set; then
3233 enableval="$enable_ospfd"
3234
3235 fi;
3236 # Check whether --enable-ospf6d or --disable-ospf6d was given.
3237 if test "${enable_ospf6d+set}" = set; then
3238 enableval="$enable_ospf6d"
3239
3240 fi;
3241 # Check whether --enable-bgp-announce or --disable-bgp-announce was given.
3242 if test "${enable_bgp_announce+set}" = set; then
3243 enableval="$enable_bgp_announce"
3244
3245 fi;
3246 # Check whether --enable-netlink or --disable-netlink was given.
3247 if test "${enable_netlink+set}" = set; then
3248 enableval="$enable_netlink"
3249
3250 fi;
3251 # Check whether --enable-broken-aliases or --disable-broken-aliases was given.
3252 if test "${enable_broken_aliases+set}" = set; then
3253 enableval="$enable_broken_aliases"
3254
3255 fi;
3256 # Check whether --enable-snmp or --disable-snmp was given.
3257 if test "${enable_snmp+set}" = set; then
3258 enableval="$enable_snmp"
3259
3260 fi;
3261
3262 # Check whether --with-libpam or --without-libpam was given.
3263 if test "${with_libpam+set}" = set; then
3264 withval="$with_libpam"
3265
3266 fi;
3267 # Check whether --enable-tcpsock or --disable-tcpsock was given.
3268 if test "${enable_tcpsock+set}" = set; then
3269 enableval="$enable_tcpsock"
3270
3271 fi;
3272 # Check whether --enable-nssa or --disable-nssa was given.
3273 if test "${enable_nssa+set}" = set; then
3274 enableval="$enable_nssa"
3275
3276 fi;
3277 # Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
3278 if test "${enable_opaque_lsa+set}" = set; then
3279 enableval="$enable_opaque_lsa"
3280
3281 fi;
3282 # Check whether --enable-ospf-te or --disable-ospf-te was given.
3283 if test "${enable_ospf_te+set}" = set; then
3284 enableval="$enable_ospf_te"
3285
3286 fi;
3287 # Check whether --enable-multipath or --disable-multipath was given.
3288 if test "${enable_multipath+set}" = set; then
3289 enableval="$enable_multipath"
3290
3291 fi;
3292
3293
3294 if 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
3305 fi
3306
3307 if test "${enable_tcp_zebra}" = "yes"; then
3308 cat >>confdefs.h <<\_ACEOF
3309 #define HAVE_TCP_ZEBRA 1
3310 _ACEOF
3311
3312 fi
3313
3314 if test "${enable_nssa}" = "yes"; then
3315 cat >>confdefs.h <<\_ACEOF
3316 #define HAVE_NSSA 1
3317 _ACEOF
3318
3319 fi
3320
3321 if test "${enable_opaque_lsa}" = "yes"; then
3322 cat >>confdefs.h <<\_ACEOF
3323 #define HAVE_OPAQUE_LSA 1
3324 _ACEOF
3325
3326 fi
3327
3328 if 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
3337 fi
3338
3339
3340
3341 MULTIPATH_NUM=1
3342
3343 case "${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 ;;
3353 esac
3354
3355
3356
3357
3358 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3359 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3360 if test "${ac_cv_header_stdc+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
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
3372 if { (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
3385 else
3386 ac_cpp_err=yes
3387 fi
3388 if test -z "$ac_cpp_err"; then
3389 ac_cv_header_stdc=yes
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 ac_cv_header_stdc=no
3394 fi
3395 rm -f conftest.err conftest.$ac_ext
3396
3397 if 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
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406 $EGREP "memchr" >/dev/null 2>&1; then
3407 :
3408 else
3409 ac_cv_header_stdc=no
3410 fi
3411 rm -f conftest*
3412
3413 fi
3414
3415 if 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
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "free" >/dev/null 2>&1; then
3425 :
3426 else
3427 ac_cv_header_stdc=no
3428 fi
3429 rm -f conftest*
3430
3431 fi
3432
3433 if 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 :
3437 else
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)))
3453 int
3454 main ()
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
3464 rm -f conftest$ac_exeext
3465 if { (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 :
3476 else
3477 echo "$as_me: program exited with status $ac_status" >&5
3478 echo "$as_me: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 ( exit $ac_status )
3481 ac_cv_header_stdc=no
3482 fi
3483 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3484 fi
3485 fi
3486 fi
3487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489 if test $ac_cv_header_stdc = yes; then
3490
3491 cat >>confdefs.h <<\_ACEOF
3492 #define STDC_HEADERS 1
3493 _ACEOF
3494
3495 fi
3496
3497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3508 inttypes.h stdint.h unistd.h
3509 do
3510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
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
3523 rm -f conftest.$ac_objext
3524 if { (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"
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3539 eval "$as_ac_Header=no"
3540 fi
3541 rm -f conftest.$ac_objext conftest.$ac_ext
3542 fi
3543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3545 if 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
3550 fi
3551
3552 done
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
3580 for ac_header in string.h stropts.h sys/conf.h sys/ksym.h sys/time.h sys/times.h sys/select.h sys/sysctl.h sys/sockio.h sys/types.h net/if_dl.h net/if_var.h linux/version.h kvm.h netdb.h netinet/in.h net/netopt.h netinet/in_var.h netinet/in6_var.h netinet/in6.h inet/nd.h asm/types.h netinet/icmp6.h netinet6/nd6.h libutil.h
3581 do
3582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3584 echo "$as_me:$LINENO: checking for $ac_header" >&5
3585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 fi
3589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3591 else
3592 # Is the header compilable?
3593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3595 cat >conftest.$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3597 #include "confdefs.h"
3598 $ac_includes_default
3599 #include <$ac_header>
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (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
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 ac_header_compiler=no
3618 fi
3619 rm -f conftest.$ac_objext conftest.$ac_ext
3620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3621 echo "${ECHO_T}$ac_header_compiler" >&6
3622
3623 # Is the header present?
3624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3627 #line $LINENO "configure"
3628 #include "confdefs.h"
3629 #include <$ac_header>
3630 _ACEOF
3631 if { (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
3644 else
3645 ac_cpp_err=yes
3646 fi
3647 if test -z "$ac_cpp_err"; then
3648 ac_header_preproc=yes
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 ac_header_preproc=no
3653 fi
3654 rm -f conftest.err conftest.$ac_ext
3655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3656 echo "${ECHO_T}$ac_header_preproc" >&6
3657
3658 # So? What about this header?
3659 case $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
3662 echo "$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
3664 echo "$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
3667 echo "$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
3669 echo "$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
3671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3672 esac
3673 echo "$as_me:$LINENO: checking for $ac_header" >&5
3674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 eval "$as_ac_Header=$ac_header_preproc"
3679 fi
3680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3682
3683 fi
3684 if 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
3689 fi
3690
3691 done
3692
3693
3694 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3695 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3696 if test "${ac_cv_c_const+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 cat >conftest.$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3701 #include "confdefs.h"
3702
3703 int
3704 main ()
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
3757 rm -f conftest.$ac_objext
3758 if { (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
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3773 ac_cv_c_const=no
3774 fi
3775 rm -f conftest.$ac_objext conftest.$ac_ext
3776 fi
3777 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3778 echo "${ECHO_T}$ac_cv_c_const" >&6
3779 if test $ac_cv_c_const = no; then
3780
3781 cat >>confdefs.h <<\_ACEOF
3782 #define const
3783 _ACEOF
3784
3785 fi
3786
3787 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3788 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3789 if test "${ac_cv_type_signal+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
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
3801 extern "C" void (*signal (int, void (*)(int)))(int);
3802 #else
3803 void (*signal ()) ();
3804 #endif
3805
3806 int
3807 main ()
3808 {
3809 int i;
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (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
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 ac_cv_type_signal=int
3831 fi
3832 rm -f conftest.$ac_objext conftest.$ac_ext
3833 fi
3834 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3835 echo "${ECHO_T}$ac_cv_type_signal" >&6
3836
3837 cat >>confdefs.h <<_ACEOF
3838 #define RETSIGTYPE $ac_cv_type_signal
3839 _ACEOF
3840
3841
3842
3843 case "$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
3851 echo "$as_me:$LINENO: checking for main in -lxnet" >&5
3852 echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
3853 if test "${ac_cv_lib_xnet_main+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 ac_check_lib_save_LIBS=$LIBS
3857 LIBS="-lxnet $LIBS"
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3860 #include "confdefs.h"
3861
3862
3863 int
3864 main ()
3865 {
3866 main ();
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 rm -f conftest.$ac_objext conftest$ac_exeext
3872 if { (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
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 ac_cv_lib_xnet_main=no
3888 fi
3889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3890 LIBS=$ac_check_lib_save_LIBS
3891 fi
3892 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
3893 echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
3894 if 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
3901 fi
3902
3903 CURSES=-lcurses
3904 ;;
3905 *-sunos5* | *-solaris2*)
3906 cat >>confdefs.h <<\_ACEOF
3907 #define SUNOS_5 1
3908 _ACEOF
3909
3910
3911 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
3912 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
3913 if test "${ac_cv_lib_socket_main+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 ac_check_lib_save_LIBS=$LIBS
3917 LIBS="-lsocket $LIBS"
3918 cat >conftest.$ac_ext <<_ACEOF
3919 #line $LINENO "configure"
3920 #include "confdefs.h"
3921
3922
3923 int
3924 main ()
3925 {
3926 main ();
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 rm -f conftest.$ac_objext conftest$ac_exeext
3932 if { (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
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3947 ac_cv_lib_socket_main=no
3948 fi
3949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3950 LIBS=$ac_check_lib_save_LIBS
3951 fi
3952 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
3953 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
3954 if 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
3961 fi
3962
3963
3964 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
3965 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
3966 if test "${ac_cv_lib_nsl_main+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 ac_check_lib_save_LIBS=$LIBS
3970 LIBS="-lnsl $LIBS"
3971 cat >conftest.$ac_ext <<_ACEOF
3972 #line $LINENO "configure"
3973 #include "confdefs.h"
3974
3975
3976 int
3977 main ()
3978 {
3979 main ();
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext conftest$ac_exeext
3985 if { (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
3997 else
3998 echo "$as_me: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 ac_cv_lib_nsl_main=no
4001 fi
4002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4003 LIBS=$ac_check_lib_save_LIBS
4004 fi
4005 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4006 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4007 if 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
4014 fi
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
4027 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4028 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4029 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032 ac_check_lib_save_LIBS=$LIBS
4033 LIBS="-lnsl $LIBS"
4034 cat >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
4040 extern "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. */
4044 char gethostbyname ();
4045 int
4046 main ()
4047 {
4048 gethostbyname ();
4049 ;
4050 return 0;
4051 }
4052 _ACEOF
4053 rm -f conftest.$ac_objext conftest$ac_exeext
4054 if { (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
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4069 ac_cv_lib_nsl_gethostbyname=no
4070 fi
4071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4072 LIBS=$ac_check_lib_save_LIBS
4073 fi
4074 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4075 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4076 if 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
4083 fi
4084
4085
4086 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4087 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4088 if test "${ac_cv_lib_socket_socket+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 ac_check_lib_save_LIBS=$LIBS
4092 LIBS="-lsocket $LIBS"
4093 cat >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
4099 extern "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. */
4103 char socket ();
4104 int
4105 main ()
4106 {
4107 socket ();
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext conftest$ac_exeext
4113 if { (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
4125 else
4126 echo "$as_me: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 ac_cv_lib_socket_socket=no
4129 fi
4130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4131 LIBS=$ac_check_lib_save_LIBS
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4134 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4135 if 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
4142 fi
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
4162 echo "$as_me:$LINENO: checking for main in -lkvm" >&5
4163 echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
4164 if test "${ac_cv_lib_kvm_main+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167 ac_check_lib_save_LIBS=$LIBS
4168 LIBS="-lkvm $LIBS"
4169 cat >conftest.$ac_ext <<_ACEOF
4170 #line $LINENO "configure"
4171 #include "confdefs.h"
4172
4173
4174 int
4175 main ()
4176 {
4177 main ();
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (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
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4198 ac_cv_lib_kvm_main=no
4199 fi
4200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4201 LIBS=$ac_check_lib_save_LIBS
4202 fi
4203 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
4204 echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
4205 if 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
4212 fi
4213
4214 ;;
4215 esac
4216
4217 case "${host_cpu}-${host_os}" in
4218 i?86-solaris*)
4219 cat >>confdefs.h <<\_ACEOF
4220 #define SOLARIS_X86 1
4221 _ACEOF
4222
4223 ;;
4224 esac
4225
4226 case "${enable_vtysh}" in
4227 "yes") VTYSH="vtysh";
4228 cat >>confdefs.h <<\_ACEOF
4229 #define VTYSH 1
4230 _ACEOF
4231
4232
4233 echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
4234 echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
4235 if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 ac_check_lib_save_LIBS=$LIBS
4239 LIBS="-ltinfo $LIBS"
4240 cat >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
4246 extern "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. */
4250 char tputs ();
4251 int
4252 main ()
4253 {
4254 tputs ();
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (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
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4275 ac_cv_lib_tinfo_tputs=no
4276 fi
4277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4278 LIBS=$ac_check_lib_save_LIBS
4279 fi
4280 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
4281 echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
4282 if 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
4289 else
4290
4291 echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
4292 echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
4293 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 ac_check_lib_save_LIBS=$LIBS
4297 LIBS="-lncurses $LIBS"
4298 cat >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
4304 extern "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. */
4308 char tputs ();
4309 int
4310 main ()
4311 {
4312 tputs ();
4313 ;
4314 return 0;
4315 }
4316 _ACEOF
4317 rm -f conftest.$ac_objext conftest$ac_exeext
4318 if { (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
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 ac_cv_lib_ncurses_tputs=no
4334 fi
4335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4336 LIBS=$ac_check_lib_save_LIBS
4337 fi
4338 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
4339 echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
4340 if 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
4347 fi
4348
4349 fi
4350
4351
4352 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
4353 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
4354 if test "${ac_cv_lib_readline_main+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 ac_check_lib_save_LIBS=$LIBS
4358 LIBS="-lreadline $LIBS"
4359 cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 #include "confdefs.h"
4362
4363
4364 int
4365 main ()
4366 {
4367 main ();
4368 ;
4369 return 0;
4370 }
4371 _ACEOF
4372 rm -f conftest.$ac_objext conftest$ac_exeext
4373 if { (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
4385 else
4386 echo "$as_me: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 ac_cv_lib_readline_main=no
4389 fi
4390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4391 LIBS=$ac_check_lib_save_LIBS
4392 fi
4393 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
4394 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
4395 if 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
4402 fi
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
4406 echo "$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
4411 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4412 if test "${ac_cv_header_readline_history_h+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4416 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4417 else
4418 # Is the header compilable?
4419 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
4420 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
4421 cat >conftest.$ac_ext <<_ACEOF
4422 #line $LINENO "configure"
4423 #include "confdefs.h"
4424 $ac_includes_default
4425 #include <readline/history.h>
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (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
4440 else
4441 echo "$as_me: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4443 ac_header_compiler=no
4444 fi
4445 rm -f conftest.$ac_objext conftest.$ac_ext
4446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4447 echo "${ECHO_T}$ac_header_compiler" >&6
4448
4449 # Is the header present?
4450 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
4451 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
4452 cat >conftest.$ac_ext <<_ACEOF
4453 #line $LINENO "configure"
4454 #include "confdefs.h"
4455 #include <readline/history.h>
4456 _ACEOF
4457 if { (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
4470 else
4471 ac_cpp_err=yes
4472 fi
4473 if test -z "$ac_cpp_err"; then
4474 ac_header_preproc=yes
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4478 ac_header_preproc=no
4479 fi
4480 rm -f conftest.err conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4482 echo "${ECHO_T}$ac_header_preproc" >&6
4483
4484 # So? What about this header?
4485 case $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
4488 echo "$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
4490 echo "$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
4493 echo "$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
4495 echo "$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
4497 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4498 esac
4499 echo "$as_me:$LINENO: checking for readline/history.h" >&5
4500 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4501 if test "${ac_cv_header_readline_history_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 ac_cv_header_readline_history_h=$ac_header_preproc
4505 fi
4506 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4507 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4508
4509 fi
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
4514 echo "$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 * ) ;;
4520 esac
4521
4522 if test "$with_libpam" = "yes"; then
4523 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
4524 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
4525 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 ac_check_lib_save_LIBS=$LIBS
4529 LIBS="-lpam $LIBS"
4530 cat >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
4536 extern "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. */
4540 char pam_start ();
4541 int
4542 main ()
4543 {
4544 pam_start ();
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext conftest$ac_exeext
4550 if { (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
4562 else
4563 echo "$as_me: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4565 ac_cv_lib_pam_pam_start=no
4566 fi
4567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4568 LIBS=$ac_check_lib_save_LIBS
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
4571 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
4572 if test $ac_cv_lib_pam_pam_start = yes; then
4573 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
4574 echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4575 if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 ac_check_lib_save_LIBS=$LIBS
4579 LIBS="-lpam $LIBS"
4580 cat >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
4586 extern "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. */
4590 char misc_conv ();
4591 int
4592 main ()
4593 {
4594 misc_conv ();
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext conftest$ac_exeext
4600 if { (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
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 ac_cv_lib_pam_misc_conv=no
4616 fi
4617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618 LIBS=$ac_check_lib_save_LIBS
4619 fi
4620 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
4621 echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4622 if 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"
4628 else
4629 cat >>confdefs.h <<\_ACEOF
4630 #define USE_PAM 1
4631 _ACEOF
4632
4633 LIBPAM="-lpam -lpam_misc"
4634
4635 fi
4636
4637
4638 else
4639 echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
4640 echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
4641 if test "${ac_cv_lib_pam_pam_end+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 ac_check_lib_save_LIBS=$LIBS
4645 LIBS="-lpam -ldl $LIBS"
4646 cat >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
4652 extern "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. */
4656 char pam_end ();
4657 int
4658 main ()
4659 {
4660 pam_end ();
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (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
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 ac_cv_lib_pam_pam_end=no
4682 fi
4683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4684 LIBS=$ac_check_lib_save_LIBS
4685 fi
4686 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
4687 echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
4688 if test $ac_cv_lib_pam_pam_end = yes; then
4689 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
4690 echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4691 if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 ac_check_lib_save_LIBS=$LIBS
4695 LIBS="-lpam $LIBS"
4696 cat >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
4702 extern "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. */
4706 char misc_conv ();
4707 int
4708 main ()
4709 {
4710 misc_conv ();
4711 ;
4712 return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.$ac_objext conftest$ac_exeext
4716 if { (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
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 ac_cv_lib_pam_misc_conv=no
4732 fi
4733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4735 fi
4736 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
4737 echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4738 if 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"
4744 else
4745 cat >>confdefs.h <<\_ACEOF
4746 #define USE_PAM 1
4747 _ACEOF
4748
4749 LIBPAM="-lpam -ldl -lpam_misc"
4750
4751 fi
4752
4753
4754 else
4755 { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
4756 echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
4757 fi
4758
4759
4760
4761 fi
4762
4763 fi
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781 for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs
4782 do
4783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4784 echo "$as_me:$LINENO: checking for $ac_func" >&5
4785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4786 if eval "test \"\${$as_ac_var+set}\" = set"; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
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
4797 extern "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. */
4801 char $ac_func ();
4802 char (*f) ();
4803
4804 int
4805 main ()
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)
4811 choke me
4812 #else
4813 f = $ac_func;
4814 #endif
4815
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext conftest$ac_exeext
4821 if { (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"
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 eval "$as_ac_var=no"
4837 fi
4838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4839 fi
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4842 if 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
4847 fi
4848 done
4849
4850
4851 for ac_func in setproctitle
4852 do
4853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4854 echo "$as_me:$LINENO: checking for $ac_func" >&5
4855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4856 if eval "test \"\${$as_ac_var+set}\" = set"; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
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
4867 extern "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. */
4871 char $ac_func ();
4872 char (*f) ();
4873
4874 int
4875 main ()
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)
4881 choke me
4882 #else
4883 f = $ac_func;
4884 #endif
4885
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (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"
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4906 eval "$as_ac_var=no"
4907 fi
4908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4909 fi
4910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4912 if 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
4917 else
4918 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4919 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4920 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 ac_check_lib_save_LIBS=$LIBS
4924 LIBS="-lutil $LIBS"
4925 cat >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
4931 extern "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. */
4935 char setproctitle ();
4936 int
4937 main ()
4938 {
4939 setproctitle ();
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 rm -f conftest.$ac_objext conftest$ac_exeext
4945 if { (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
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4960 ac_cv_lib_util_setproctitle=no
4961 fi
4962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4963 LIBS=$ac_check_lib_save_LIBS
4964 fi
4965 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4966 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4967 if test $ac_cv_lib_util_setproctitle = yes; then
4968 LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF
4969 #define HAVE_SETPROCTITLE 1
4970 _ACEOF
4971
4972 fi
4973
4974 fi
4975 done
4976
4977
4978 echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
4979 echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
4980 if test x"$opsys" = x"gnu-linux"; then
4981 if test "${enable_netlink}" = "yes";then
4982 echo "$as_me:$LINENO: result: netlink" >&5
4983 echo "${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
4992 echo "${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
5011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "yes" >/dev/null 2>&1; then
5013 echo "$as_me:$LINENO: result: netlink" >&5
5014 echo "${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
5021 else
5022 echo "$as_me:$LINENO: result: ioctl" >&5
5023 echo "${ECHO_T}ioctl" >&6
5024 RT_METHOD=rt_ioctl.o
5025 fi
5026 rm -f conftest*
5027
5028 fi
5029 else
5030 if test "$opsys" = "sol2-6";then
5031 echo "$as_me:$LINENO: result: solaris" >&5
5032 echo "${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
5040 echo "${ECHO_T}socket" >&6
5041 else
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
5049 main ()
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
5059 rm -f conftest$ac_exeext
5060 if { (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
5077 echo "${ECHO_T}socket" >&6
5078 else
5079 echo "$as_me: program exited with status $ac_status" >&5
5080 echo "$as_me: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5082 ( exit $ac_status )
5083 RT_METHOD=rt_ioctl.o
5084 echo "$as_me:$LINENO: result: ioctl" >&5
5085 echo "${ECHO_T}ioctl" >&6
5086 fi
5087 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5088 fi
5089 fi
5090 fi
5091
5092
5093
5094
5095 echo "$as_me:$LINENO: checking route read method check" >&5
5096 echo $ECHO_N "checking route read method check... $ECHO_C" >&6
5097 if test "${zebra_rtread+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 if test "$netlink" = yes; then
5101 RTREAD_METHOD="rtread_netlink.o"
5102 zebra_rtread="netlink"
5103 else
5104 for zebra_rtread in /proc/net/route /dev/ip /dev/null;
5105 do
5106 test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
5107 done
5108 case $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";;
5115 esac
5116 fi
5117 fi
5118 echo "$as_me:$LINENO: result: $zebra_rtread" >&5
5119 echo "${ECHO_T}$zebra_rtread" >&6
5120
5121
5122 echo "$as_me:$LINENO: checking interface looking up method" >&5
5123 echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
5124 if test "$netlink" = yes; then
5125 echo "$as_me:$LINENO: result: netlink" >&5
5126 echo "${ECHO_T}netlink" >&6
5127 IF_METHOD=if_netlink.o
5128 else
5129 if test "$opsys" = "sol2-6";then
5130 echo "$as_me:$LINENO: result: solaris" >&5
5131 echo "${ECHO_T}solaris" >&6
5132 IF_METHOD=if_ioctl.o
5133 elif test "$opsys" = "openbsd";then
5134 echo "$as_me:$LINENO: result: openbsd" >&5
5135 echo "${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
5139 echo "${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
5147 echo "${ECHO_T}ioctl" >&6
5148 IF_METHOD=if_ioctl.o
5149 fi
5150 fi
5151
5152
5153 if 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
5159 fi
5160
5161 if 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
5167 fi
5168
5169
5170 echo "$as_me:$LINENO: checking ipforward method check" >&5
5171 echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
5172 if test "${zebra_ipforward_path+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
5176 do
5177 test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
5178 done
5179 case $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";;
5191 esac
5192 fi
5193 echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
5194 echo "${ECHO_T}$zebra_ipforward_path" >&6
5195
5196
5197
5198 for ac_func in getaddrinfo
5199 do
5200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5201 echo "$as_me:$LINENO: checking for $ac_func" >&5
5202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5203 if eval "test \"\${$as_ac_var+set}\" = set"; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
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
5214 extern "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. */
5218 char $ac_func ();
5219 char (*f) ();
5220
5221 int
5222 main ()
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)
5228 choke me
5229 #else
5230 f = $ac_func;
5231 #endif
5232
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 rm -f conftest.$ac_objext conftest$ac_exeext
5238 if { (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"
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 eval "$as_ac_var=no"
5254 fi
5255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5256 fi
5257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5259 if 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
5264 else
5265 have_getaddrinfo=no
5266 fi
5267 done
5268
5269
5270 echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
5271 echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
5272 if test "${enable_ipv6}" = "no"; then
5273 echo "$as_me:$LINENO: result: disabled" >&5
5274 echo "${ECHO_T}disabled" >&6
5275 else
5276 if 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
5290 echo "${ECHO_T}INRIA IPv6" >&6
5291 fi
5292 if 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
5308 echo "${ECHO_T}KAME" >&6
5309 fi
5310 if 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
5328 echo "${ECHO_T}BSDI_NRL" >&6
5329 else
5330 echo "$as_me:$LINENO: result: NRL" >&5
5331 echo "${ECHO_T}NRL" >&6
5332 fi
5333 fi
5334
5335 if 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
5346 if (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
5349 echo "${ECHO_T}Linux IPv6" >&6
5350 fi
5351 rm -f conftest*
5352
5353 else
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
5359 echo "${ECHO_T}Linux IPv6" >&6
5360 fi
5361 fi
5362
5363 if 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
5369 echo $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
5379 if (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
5382 echo "${ECHO_T}yes" >&6
5383 else
5384 echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6
5386 fi
5387 rm -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
5401 fi
5402
5403 LIBS="$LIB_IPV6 $LIBS"
5404
5405
5406 if test x"$RIPNGD" = x""; then
5407 echo "$as_me:$LINENO: result: IPv4 only" >&5
5408 echo "${ECHO_T}IPv4 only" >&6
5409 fi
5410 fi
5411
5412 if test "${enable_zebra}" = "no";then
5413 ZEBRA=""
5414 else
5415 ZEBRA="zebra"
5416 fi
5417
5418 if test "${enable_bgpd}" = "no";then
5419 BGPD=""
5420 else
5421 BGPD="bgpd"
5422 fi
5423
5424 if test "${enable_ripd}" = "no";then
5425 RIPD=""
5426 else
5427 RIPD="ripd"
5428 fi
5429
5430 if test "${enable_ospfd}" = "no";then
5431 OSPFD=""
5432 else
5433 OSPFD="ospfd"
5434 fi
5435
5436 case "${enable_ripngd}" in
5437 "yes") RIPNGD="ripngd";;
5438 "no" ) RIPNGD="";;
5439 * ) ;;
5440 esac
5441
5442 case "${enable_ospf6d}" in
5443 "yes") OSPF6D="ospf6d";;
5444 "no" ) OSPF6D="";;
5445 * ) ;;
5446 esac
5447
5448 if test "${enable_bgp_announce}" = "no";then
5449 cat >>confdefs.h <<\_ACEOF
5450 #define DISABLE_BGP_ANNOUNCE 1
5451 _ACEOF
5452
5453 fi
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
5465 echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
5466 if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 ac_check_lib_save_LIBS=$LIBS
5470 LIBS="-lc $LIBS"
5471 cat >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
5477 extern "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. */
5481 char inet_ntop ();
5482 int
5483 main ()
5484 {
5485 inet_ntop ();
5486 ;
5487 return 0;
5488 }
5489 _ACEOF
5490 rm -f conftest.$ac_objext conftest$ac_exeext
5491 if { (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
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5506 ac_cv_lib_c_inet_ntop=no
5507 fi
5508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5509 LIBS=$ac_check_lib_save_LIBS
5510 fi
5511 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
5512 echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
5513 if test $ac_cv_lib_c_inet_ntop = yes; then
5514 cat >>confdefs.h <<\_ACEOF
5515 #define HAVE_INET_NTOP 1
5516 _ACEOF
5517
5518 fi
5519
5520 echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
5521 echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
5522 if test "${ac_cv_lib_c_inet_pton+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 ac_check_lib_save_LIBS=$LIBS
5526 LIBS="-lc $LIBS"
5527 cat >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
5533 extern "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. */
5537 char inet_pton ();
5538 int
5539 main ()
5540 {
5541 inet_pton ();
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (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
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 cat conftest.$ac_ext >&5
5562 ac_cv_lib_c_inet_pton=no
5563 fi
5564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5565 LIBS=$ac_check_lib_save_LIBS
5566 fi
5567 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
5568 echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
5569 if test $ac_cv_lib_c_inet_pton = yes; then
5570 cat >>confdefs.h <<\_ACEOF
5571 #define HAVE_INET_PTON 1
5572 _ACEOF
5573
5574 fi
5575
5576
5577 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
5578 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
5579 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 ac_check_lib_save_LIBS=$LIBS
5583 LIBS="-lcrypt $LIBS"
5584 cat >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
5590 extern "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. */
5594 char crypt ();
5595 int
5596 main ()
5597 {
5598 crypt ();
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (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
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 ac_cv_lib_crypt_crypt=no
5620 fi
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 LIBS=$ac_check_lib_save_LIBS
5623 fi
5624 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
5625 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
5626 if 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
5633 fi
5634
5635
5636 echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
5637 echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
5638 if test "${ac_cv_lib_resolv_res_init+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 ac_check_lib_save_LIBS=$LIBS
5642 LIBS="-lresolv $LIBS"
5643 cat >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
5649 extern "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. */
5653 char res_init ();
5654 int
5655 main ()
5656 {
5657 res_init ();
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (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
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_cv_lib_resolv_res_init=no
5679 fi
5680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5682 fi
5683 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
5684 echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
5685 if 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
5692 fi
5693
5694
5695 echo "$as_me:$LINENO: checking for main in -lm" >&5
5696 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5697 if test "${ac_cv_lib_m_main+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 ac_check_lib_save_LIBS=$LIBS
5701 LIBS="-lm $LIBS"
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 #include "confdefs.h"
5705
5706
5707 int
5708 main ()
5709 {
5710 main ();
5711 ;
5712 return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (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
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 cat conftest.$ac_ext >&5
5731 ac_cv_lib_m_main=no
5732 fi
5733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_check_lib_save_LIBS
5735 fi
5736 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5737 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5738 if 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
5745 fi
5746
5747
5748 echo "$as_me:$LINENO: checking for __inet_ntop" >&5
5749 echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
5750 if test "${ac_cv_func___inet_ntop+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
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
5761 extern "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. */
5765 char __inet_ntop ();
5766 char (*f) ();
5767
5768 int
5769 main ()
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)
5775 choke me
5776 #else
5777 f = __inet_ntop;
5778 #endif
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 rm -f conftest.$ac_objext conftest$ac_exeext
5785 if { (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
5797 else
5798 echo "$as_me: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5800 ac_cv_func___inet_ntop=no
5801 fi
5802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803 fi
5804 echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
5805 echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
5806 if test $ac_cv_func___inet_ntop = yes; then
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_INET_NTOP 1
5809 _ACEOF
5810
5811 fi
5812
5813 echo "$as_me:$LINENO: checking for __inet_pton" >&5
5814 echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
5815 if test "${ac_cv_func___inet_pton+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
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
5826 extern "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. */
5830 char __inet_pton ();
5831 char (*f) ();
5832
5833 int
5834 main ()
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)
5840 choke me
5841 #else
5842 f = __inet_pton;
5843 #endif
5844
5845 ;
5846 return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (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
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5865 ac_cv_func___inet_pton=no
5866 fi
5867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868 fi
5869 echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
5870 echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
5871 if test $ac_cv_func___inet_pton = yes; then
5872 cat >>confdefs.h <<\_ACEOF
5873 #define HAVE_INET_PTON 1
5874 _ACEOF
5875
5876 fi
5877
5878 echo "$as_me:$LINENO: checking for __inet_aton" >&5
5879 echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
5880 if test "${ac_cv_func___inet_aton+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
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
5891 extern "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. */
5895 char __inet_aton ();
5896 char (*f) ();
5897
5898 int
5899 main ()
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)
5905 choke me
5906 #else
5907 f = __inet_aton;
5908 #endif
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (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
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 ac_cv_func___inet_aton=no
5931 fi
5932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5933 fi
5934 echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
5935 echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
5936 if test $ac_cv_func___inet_aton = yes; then
5937 cat >>confdefs.h <<\_ACEOF
5938 #define HAVE_INET_ATON 1
5939 _ACEOF
5940
5941 fi
5942
5943
5944 echo "$as_me:$LINENO: checking for regexec in -lc" >&5
5945 echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
5946 if test "${ac_cv_lib_c_regexec+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 ac_check_lib_save_LIBS=$LIBS
5950 LIBS="-lc $LIBS"
5951 cat >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
5957 extern "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. */
5961 char regexec ();
5962 int
5963 main ()
5964 {
5965 regexec ();
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext conftest$ac_exeext
5971 if { (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
5983 else
5984 echo "$as_me: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 ac_cv_lib_c_regexec=no
5987 fi
5988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5989 LIBS=$ac_check_lib_save_LIBS
5990 fi
5991 echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
5992 echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
5993 if 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=""
5999 else
6000 LIB_REGEX="regex.o"
6001 fi
6002
6003
6004
6005
6006 if 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
6011 echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6012 if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015 ac_check_lib_save_LIBS=$LIBS
6016 LIBS="-lsnmp $LIBS"
6017 cat >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
6023 extern "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. */
6027 char asn_parse_int ();
6028 int
6029 main ()
6030 {
6031 asn_parse_int ();
6032 ;
6033 return 0;
6034 }
6035 _ACEOF
6036 rm -f conftest.$ac_objext conftest$ac_exeext
6037 if { (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
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6052 ac_cv_lib_snmp_asn_parse_int=no
6053 fi
6054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6055 LIBS=$ac_check_lib_save_LIBS
6056 fi
6057 echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6058 echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6059 if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6060 HAVE_SNMP=yes
6061 fi
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
6066 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
6067 if test "${ac_cv_lib_crypto_main+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 ac_check_lib_save_LIBS=$LIBS
6071 LIBS="-lcrypto $LIBS"
6072 cat >conftest.$ac_ext <<_ACEOF
6073 #line $LINENO "configure"
6074 #include "confdefs.h"
6075
6076
6077 int
6078 main ()
6079 {
6080 main ();
6081 ;
6082 return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (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
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6101 ac_cv_lib_crypto_main=no
6102 fi
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6107 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
6108 if test $ac_cv_lib_crypto_main = yes; then
6109 NEED_CRYPTO=yes
6110 fi
6111
6112 if test "${NEED_CRYPTO}" = ""; then
6113 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6114 echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6115 if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 ac_check_lib_save_LIBS=$LIBS
6119 LIBS="-lsnmp $LIBS"
6120 cat >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
6126 extern "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. */
6130 char asn_parse_int ();
6131 int
6132 main ()
6133 {
6134 asn_parse_int ();
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext conftest$ac_exeext
6140 if { (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
6152 else
6153 echo "$as_me: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6155 ac_cv_lib_snmp_asn_parse_int=no
6156 fi
6157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6158 LIBS=$ac_check_lib_save_LIBS
6159 fi
6160 echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6161 echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6162 if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6163 HAVE_SNMP=yes; NEED_CRYPTO=yes
6164 fi
6165
6166 else
6167 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6168 echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6169 if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 ac_check_lib_save_LIBS=$LIBS
6173 LIBS="-lsnmp "-lcrypto" $LIBS"
6174 cat >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
6180 extern "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. */
6184 char asn_parse_int ();
6185 int
6186 main ()
6187 {
6188 asn_parse_int ();
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 rm -f conftest.$ac_objext conftest$ac_exeext
6194 if { (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
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6209 ac_cv_lib_snmp_asn_parse_int=no
6210 fi
6211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_check_lib_save_LIBS
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6215 echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6216 if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6217 HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
6218 fi
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
6228 echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6229 if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 ac_check_lib_save_LIBS=$LIBS
6233 LIBS="-lsnmp $LIBS"
6234 cat >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
6240 extern "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. */
6244 char asn_parse_int ();
6245 int
6246 main ()
6247 {
6248 asn_parse_int ();
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (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
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6269 ac_cv_lib_snmp_asn_parse_int=no
6270 fi
6271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6272 LIBS=$ac_check_lib_save_LIBS
6273 fi
6274 echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6275 echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6276 if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6277 HAVE_SNMP=yes
6278 fi
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
6309 fi
6310
6311 echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
6312 echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
6313 cat >conftest.$ac_ext <<_ACEOF
6314 #line $LINENO "configure"
6315 #include "confdefs.h"
6316 #include <sys/types.h>
6317 #include <sys/socket.h>
6318
6319 int
6320 main ()
6321 {
6322 static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
6323 ;
6324 return 0;
6325 }
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (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
6340 echo "${ECHO_T}yes" >&6
6341 cat >>confdefs.h <<\_ACEOF
6342 #define HAVE_SA_LEN 1
6343 _ACEOF
6344
6345 else
6346 echo "$as_me: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6348 echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6
6350 fi
6351 rm -f conftest.$ac_objext conftest.$ac_ext
6352
6353 echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
6354 echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 #include "confdefs.h"
6358 #include <sys/types.h>
6359 #include <netinet/in.h>
6360
6361 int
6362 main ()
6363 {
6364 static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (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
6382 echo "${ECHO_T}yes" >&6
6383 cat >>confdefs.h <<\_ACEOF
6384 #define HAVE_SIN_LEN 1
6385 _ACEOF
6386
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6390 echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6392 fi
6393 rm -f conftest.$ac_objext conftest.$ac_ext
6394
6395 echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
6396 echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
6397 cat >conftest.$ac_ext <<_ACEOF
6398 #line $LINENO "configure"
6399 #include "confdefs.h"
6400 #include <sys/types.h>
6401 #include <sys/un.h>
6402
6403 int
6404 main ()
6405 {
6406 static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
6407 ;
6408 return 0;
6409 }
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (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
6424 echo "${ECHO_T}yes" >&6
6425 cat >>confdefs.h <<\_ACEOF
6426 #define HAVE_SUN_LEN 1
6427 _ACEOF
6428
6429 else
6430 echo "$as_me: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6432 echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6
6434 fi
6435 rm -f conftest.$ac_objext conftest.$ac_ext
6436
6437 if test "$zebra_cv_ipv6" = yes; then
6438 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
6439 echo $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
6446 int
6447 main ()
6448 {
6449 static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
6450 ;
6451 return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (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
6467 echo "${ECHO_T}yes" >&6
6468 cat >>confdefs.h <<\_ACEOF
6469 #define HAVE_SIN6_SCOPE_ID 1
6470 _ACEOF
6471
6472 else
6473 echo "$as_me: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6475 echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6
6477 fi
6478 rm -f conftest.$ac_objext conftest.$ac_ext
6479 fi
6480
6481 echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
6482 echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
6483 cat >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
6490 int
6491 main ()
6492 {
6493 socklen_t ac_x;
6494 ;
6495 return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (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
6511 echo "${ECHO_T}yes" >&6
6512 cat >>confdefs.h <<\_ACEOF
6513 #define HAVE_SOCKLEN_T 1
6514 _ACEOF
6515
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6519 echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6
6521 fi
6522 rm -f conftest.$ac_objext conftest.$ac_ext
6523
6524 echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
6525 echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 #include "confdefs.h"
6529 #include <net/if_dl.h>
6530
6531 _ACEOF
6532 if (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
6535 echo "${ECHO_T}yes" >&6
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_SOCKADDR_DL 1
6538 _ACEOF
6539
6540 else
6541 echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6
6543 fi
6544 rm -f conftest*
6545
6546
6547 echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
6548 echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
6549 cat >conftest.$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6551 #include "confdefs.h"
6552 #include <net/if.h>
6553
6554 _ACEOF
6555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6556 $EGREP "ifaliasreq" >/dev/null 2>&1; then
6557 echo "$as_me:$LINENO: result: yes" >&5
6558 echo "${ECHO_T}yes" >&6
6559 cat >>confdefs.h <<\_ACEOF
6560 #define HAVE_IFALIASREQ 1
6561 _ACEOF
6562
6563 else
6564 echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6
6566 fi
6567 rm -f conftest*
6568
6569
6570 echo "$as_me:$LINENO: checking whether struct if6_aliasreq exist" >&5
6571 echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6
6572 cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6574 #include "confdefs.h"
6575 #include <netinet6/in6_var.h>
6576
6577 _ACEOF
6578 if (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
6581 echo "${ECHO_T}yes" >&6
6582 cat >>confdefs.h <<\_ACEOF
6583 #define HAVE_IN6_ALIASREQ 1
6584 _ACEOF
6585
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6589 fi
6590 rm -f conftest*
6591
6592
6593 echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
6594 echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
6595 cat >conftest.$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 #include "confdefs.h"
6598 #include <net/route.h>
6599
6600 _ACEOF
6601 if (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
6604 echo "${ECHO_T}yes" >&6
6605 cat >>confdefs.h <<\_ACEOF
6606 #define HAVE_RT_ADDRINFO 1
6607 _ACEOF
6608
6609 else
6610 echo "$as_me:$LINENO: result: no" >&5
6611 echo "${ECHO_T}no" >&6
6612 fi
6613 rm -f conftest*
6614
6615
6616 echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
6617 echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6619 #line $LINENO "configure"
6620 #include "confdefs.h"
6621 #include <netinet/in.h>
6622
6623 int
6624 main ()
6625 {
6626 struct in_pktinfo ac_x;
6627 ;
6628 return 0;
6629 }
6630 _ACEOF
6631 rm -f conftest.$ac_objext
6632 if { (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
6644 echo "${ECHO_T}yes" >&6
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_INPKTINFO 1
6647 _ACEOF
6648
6649 else
6650 echo "$as_me: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6652 echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6
6654 fi
6655 rm -f conftest.$ac_objext conftest.$ac_ext
6656
6657 echo "$as_me:$LINENO: checking whether getrusage is available" >&5
6658 echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
6659 cat >conftest.$ac_ext <<_ACEOF
6660 #line $LINENO "configure"
6661 #include "confdefs.h"
6662 #include <sys/resource.h>
6663
6664 int
6665 main ()
6666 {
6667 struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (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
6685 echo "${ECHO_T}yes" >&6
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_RUSAGE 1
6688 _ACEOF
6689
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6693 echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6
6695 fi
6696 rm -f conftest.$ac_objext conftest.$ac_ext
6697
6698 file="${srcdir}/lib/version.h"
6699 VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
6700
6701
6702 echo "$as_me:$LINENO: checking pid file directory" >&5
6703 echo $ECHO_N "checking pid file directory... $ECHO_C" >&6
6704 if test "${ac_piddir+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null;
6708 do
6709 test -d $ZEBRA_PID_DIR && break
6710 done
6711 ac_piddir=$ZEBRA_PID_DIR
6712 if test $ZEBRA_PID_DIR = "/dev/null"; then
6713 echo "PID DIRECTORY NOT FOUND!"
6714 fi
6715 fi
6716 echo "$as_me:$LINENO: result: $ac_piddir" >&5
6717 echo "${ECHO_T}$ac_piddir" >&6
6718 cat >>confdefs.h <<_ACEOF
6719 #define PATH_ZEBRA_PID "$ac_piddir/zebra.pid"
6720 _ACEOF
6721
6722 cat >>confdefs.h <<_ACEOF
6723 #define PATH_RIPD_PID "$ac_piddir/ripd.pid"
6724 _ACEOF
6725
6726 cat >>confdefs.h <<_ACEOF
6727 #define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid"
6728 _ACEOF
6729
6730 cat >>confdefs.h <<_ACEOF
6731 #define PATH_BGPD_PID "$ac_piddir/bgpd.pid"
6732 _ACEOF
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define PATH_OSPFD_PID "$ac_piddir/ospfd.pid"
6736 _ACEOF
6737
6738 cat >>confdefs.h <<_ACEOF
6739 #define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid"
6740 _ACEOF
6741
6742
6743
6744 echo "$as_me:$LINENO: checking for working htonl" >&5
6745 echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
6746 if test "${ac_cv_htonl_works+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749
6750 cat >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
6762 int
6763 main ()
6764 {
6765 htonl (0);
6766 ;
6767 return 0;
6768 }
6769 _ACEOF
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (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
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 ac_cv_htonl_works=no
6787 fi
6788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6789 fi
6790
6791 echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
6792 echo "${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"
6795 cat >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
6840 if 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
6847 fi
6848 rm -f confcache
6849
6850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6851 # Let make expand exec_prefix.
6852 test "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).
6858 if test "x$srcdir" = x.; then
6859 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6860 s/:*\$(srcdir):*/:/;
6861 s/:*\${srcdir}:*/:/;
6862 s/:*@srcdir@:*/:/;
6863 s/^\([^=]*=[ ]*\):*/\1/;
6864 s/:*$//;
6865 s/^[^=]*=[ ]*$//;
6866 }'
6867 fi
6868
6869 DEFS=-DHAVE_CONFIG_H
6870
6871 ac_libobjs=
6872 ac_ltlibobjs=
6873 for 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'
6880 done
6881 LIBOBJS=$ac_libobjs
6882
6883 LTLIBOBJS=$ac_ltlibobjs
6884
6885
6886 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6887 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6888 Usually this means the macro was only invoked conditionally." >&5
6889 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6890 Usually this means the macro was only invoked conditionally." >&2;}
6891 { (exit 1); exit 1; }; }
6892 fi
6893 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6894 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6895 Usually this means the macro was only invoked conditionally." >&5
6896 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6897 Usually this means the macro was only invoked conditionally." >&2;}
6898 { (exit 1); exit 1; }; }
6899 fi
6900
6901 : ${CONFIG_STATUS=./config.status}
6902 ac_clean_files_save=$ac_clean_files
6903 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6904 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6905 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6906 cat >$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
6913 debug=false
6914 SHELL=\${CONFIG_SHELL-$SHELL}
6915 _ACEOF
6916
6917 cat >>$CONFIG_STATUS <<\_ACEOF
6918 ## --------------------- ##
6919 ## M4sh Initialization. ##
6920 ## --------------------- ##
6921
6922 # Be Bourne compatible
6923 if 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+"$@"}'='"$@"'
6929 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6930 set -o posix
6931 fi
6932
6933 # Support unset when possible.
6934 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6935 as_unset=unset
6936 else
6937 as_unset=false
6938 fi
6939
6940
6941 # Work around bugs in pre-3.0 UWIN ksh.
6942 $as_unset ENV MAIL MAILPATH
6943 PS1='$ '
6944 PS2='> '
6945 PS4='+ '
6946
6947 # NLS nuisances.
6948 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
6949 do
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
6955 done
6956
6957 # Required to use basename.
6958 if expr a : '\(a\)' >/dev/null 2>&1; then
6959 as_expr=expr
6960 else
6961 as_expr=false
6962 fi
6963
6964 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6965 as_basename=basename
6966 else
6967 as_basename=false
6968 fi
6969
6970
6971 # Name of the executable.
6972 as_me=`$as_basename "$0" ||
6973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6974 X"$0" : 'X\(//\)$' \| \
6975 X"$0" : 'X\(/\)$' \| \
6976 . : '\(.\)' 2>/dev/null ||
6977 echo 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.
6986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6989 as_cr_digits='0123456789'
6990 as_cr_alnum=$as_cr_Letters$as_cr_digits
6991
6992 # The user is always right.
6993 if 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
7003 fi
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
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7021 done
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
7032 echo "$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
7038 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7039 do
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
7059 done
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
7083 echo "$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
7095 case `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= ;;
7100 esac
7101
7102 if expr a : '\(a\)' >/dev/null 2>&1; then
7103 as_expr=expr
7104 else
7105 as_expr=false
7106 fi
7107
7108 rm -f conf$$ conf$$.exe conf$$.file
7109 echo >conf$$.file
7110 if 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
7119 elif ln conf$$.file conf$$ 2>/dev/null; then
7120 as_ln_s=ln
7121 else
7122 as_ln_s='cp -p'
7123 fi
7124 rm -f conf$$ conf$$.exe conf$$.file
7125
7126 if mkdir -p . 2>/dev/null; then
7127 as_mkdir_p=:
7128 else
7129 as_mkdir_p=false
7130 fi
7131
7132 as_executable_p="test -f"
7133
7134 # Sed expression to map a string onto a valid CPP name.
7135 as_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.
7138 as_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.
7143 as_nl='
7144 '
7145 IFS=" $as_nl"
7146
7147 # CDPATH.
7148 $as_unset CDPATH
7149
7150 exec 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.
7155 exec 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
7162 cat >&5 <<_CSEOF
7163
7164 This file was extended by $as_me, which was
7165 generated 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
7174 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7175 echo >&5
7176 _ACEOF
7177
7178 # Files that config.status was made for.
7179 if test -n "$ac_config_files"; then
7180 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7181 fi
7182
7183 if test -n "$ac_config_headers"; then
7184 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7185 fi
7186
7187 if test -n "$ac_config_links"; then
7188 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7189 fi
7190
7191 if test -n "$ac_config_commands"; then
7192 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7193 fi
7194
7195 cat >>$CONFIG_STATUS <<\_ACEOF
7196
7197 ac_cs_usage="\
7198 \`$as_me' instantiates files from templates according to the
7199 current configuration.
7200
7201 Usage: $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
7212 Configuration files:
7213 $config_files
7214
7215 Configuration headers:
7216 $config_headers
7217
7218 Configuration commands:
7219 $config_commands
7220
7221 Report bugs to <bug-autoconf@gnu.org>."
7222 _ACEOF
7223
7224 cat >>$CONFIG_STATUS <<_ACEOF
7225 ac_cs_version="\\
7226 config.status
7227 configured by $0, generated by GNU Autoconf 2.54,
7228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7229
7230 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7231 Free Software Foundation, Inc.
7232 This config.status script is free software; the Free Software Foundation
7233 gives unlimited permission to copy, distribute and modify it."
7234 srcdir=$srcdir
7235 INSTALL="$INSTALL"
7236 _ACEOF
7237
7238 cat >>$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.
7241 ac_need_defaults=:
7242 while test $# != 0
7243 do
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
7264 cat >>$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
7269 cat >>$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
7275 Try \`$0 --help' for more information." >&5
7276 echo "$as_me: error: ambiguous option: $1
7277 Try \`$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
7294 Try \`$0 --help' for more information." >&5
7295 echo "$as_me: error: unrecognized option: $1
7296 Try \`$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
7303 done
7304
7305 _ACEOF
7306
7307 cat >>$CONFIG_STATUS <<_ACEOF
7308 #
7309 # INIT-COMMANDS section.
7310 #
7311
7312 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7313
7314 _ACEOF
7315
7316
7317
7318 cat >>$CONFIG_STATUS <<\_ACEOF
7319 for ac_config_target in $ac_config_targets
7320 do
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
7336 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7337 { (exit 1); exit 1; }; };;
7338 esac
7339 done
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.
7345 if $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
7349 fi
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
7375 cat >>$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
7383 if 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
7387 s,@SHELL@,$SHELL,;t t
7388 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7389 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7390 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7391 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7392 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7393 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7394 s,@exec_prefix@,$exec_prefix,;t t
7395 s,@prefix@,$prefix,;t t
7396 s,@program_transform_name@,$program_transform_name,;t t
7397 s,@bindir@,$bindir,;t t
7398 s,@sbindir@,$sbindir,;t t
7399 s,@libexecdir@,$libexecdir,;t t
7400 s,@datadir@,$datadir,;t t
7401 s,@sysconfdir@,$sysconfdir,;t t
7402 s,@sharedstatedir@,$sharedstatedir,;t t
7403 s,@localstatedir@,$localstatedir,;t t
7404 s,@libdir@,$libdir,;t t
7405 s,@includedir@,$includedir,;t t
7406 s,@oldincludedir@,$oldincludedir,;t t
7407 s,@infodir@,$infodir,;t t
7408 s,@mandir@,$mandir,;t t
7409 s,@build_alias@,$build_alias,;t t
7410 s,@host_alias@,$host_alias,;t t
7411 s,@target_alias@,$target_alias,;t t
7412 s,@DEFS@,$DEFS,;t t
7413 s,@ECHO_C@,$ECHO_C,;t t
7414 s,@ECHO_N@,$ECHO_N,;t t
7415 s,@ECHO_T@,$ECHO_T,;t t
7416 s,@LIBS@,$LIBS,;t t
7417 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7418 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7419 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7420 s,@CYGPATH_W@,$CYGPATH_W,;t t
7421 s,@PACKAGE@,$PACKAGE,;t t
7422 s,@VERSION@,$VERSION,;t t
7423 s,@ACLOCAL@,$ACLOCAL,;t t
7424 s,@AUTOCONF@,$AUTOCONF,;t t
7425 s,@AUTOMAKE@,$AUTOMAKE,;t t
7426 s,@AUTOHEADER@,$AUTOHEADER,;t t
7427 s,@MAKEINFO@,$MAKEINFO,;t t
7428 s,@AMTAR@,$AMTAR,;t t
7429 s,@install_sh@,$install_sh,;t t
7430 s,@STRIP@,$STRIP,;t t
7431 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7432 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7433 s,@AWK@,$AWK,;t t
7434 s,@SET_MAKE@,$SET_MAKE,;t t
7435 s,@build@,$build,;t t
7436 s,@build_cpu@,$build_cpu,;t t
7437 s,@build_vendor@,$build_vendor,;t t
7438 s,@build_os@,$build_os,;t t
7439 s,@host@,$host,;t t
7440 s,@host_cpu@,$host_cpu,;t t
7441 s,@host_vendor@,$host_vendor,;t t
7442 s,@host_os@,$host_os,;t t
7443 s,@CC@,$CC,;t t
7444 s,@CFLAGS@,$CFLAGS,;t t
7445 s,@LDFLAGS@,$LDFLAGS,;t t
7446 s,@CPPFLAGS@,$CPPFLAGS,;t t
7447 s,@ac_ct_CC@,$ac_ct_CC,;t t
7448 s,@EXEEXT@,$EXEEXT,;t t
7449 s,@OBJEXT@,$OBJEXT,;t t
7450 s,@DEPDIR@,$DEPDIR,;t t
7451 s,@am__include@,$am__include,;t t
7452 s,@am__quote@,$am__quote,;t t
7453 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7454 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7455 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7456 s,@CCDEPMODE@,$CCDEPMODE,;t t
7457 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7458 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7459 s,@CPP@,$CPP,;t t
7460 s,@AR@,$AR,;t t
7461 s,@ac_ct_AR@,$ac_ct_AR,;t t
7462 s,@RANLIB@,$RANLIB,;t t
7463 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7464 s,@EGREP@,$EGREP,;t t
7465 s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
7466 s,@LIBPAM@,$LIBPAM,;t t
7467 s,@RT_METHOD@,$RT_METHOD,;t t
7468 s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
7469 s,@OTHER_METHOD@,$OTHER_METHOD,;t t
7470 s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
7471 s,@IF_METHOD@,$IF_METHOD,;t t
7472 s,@IF_PROC@,$IF_PROC,;t t
7473 s,@IPFORWARD@,$IPFORWARD,;t t
7474 s,@LIB_IPV6@,$LIB_IPV6,;t t
7475 s,@ZEBRA@,$ZEBRA,;t t
7476 s,@BGPD@,$BGPD,;t t
7477 s,@RIPD@,$RIPD,;t t
7478 s,@RIPNGD@,$RIPNGD,;t t
7479 s,@OSPFD@,$OSPFD,;t t
7480 s,@OSPF6D@,$OSPF6D,;t t
7481 s,@VTYSH@,$VTYSH,;t t
7482 s,@INCLUDES@,$INCLUDES,;t t
7483 s,@CURSES@,$CURSES,;t t
7484 s,@LIB_REGEX@,$LIB_REGEX,;t t
7485 s,@LIBOBJS@,$LIBOBJS,;t t
7486 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7487 CEOF
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
7528 fi # test -n "$CONFIG_FILES"
7529
7530 _ACEOF
7531 cat >>$CONFIG_STATUS <<\_ACEOF
7532 for 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 ||
7551 echo 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 ||
7570 echo 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
7579 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7580 { (exit 1); exit 1; }; }; }
7581
7582 ac_builddir=.
7583
7584 if 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'`
7588 else
7589 ac_dir_suffix= ac_top_builddir=
7590 fi
7591
7592 case $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 ;;
7606 esac
7607 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7608 # absolute.
7609 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7610 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7611 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7612 ac_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
7622 echo "$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
7645 echo "$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
7658 echo "$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
7664 cat >>$CONFIG_STATUS <<_ACEOF
7665 sed "$ac_vpsub
7666 $extrasub
7667 _ACEOF
7668 cat >>$CONFIG_STATUS <<\_ACEOF
7669 :t
7670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7671 s,@configure_input@,$configure_input,;t t
7672 s,@srcdir@,$ac_srcdir,;t t
7673 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7674 s,@top_srcdir@,$ac_top_srcdir,;t t
7675 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7676 s,@builddir@,$ac_builddir,;t t
7677 s,@abs_builddir@,$ac_abs_builddir,;t t
7678 s,@top_builddir@,$ac_top_builddir,;t t
7679 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7680 s,@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
7690 done
7691 _ACEOF
7692 cat >>$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.
7702 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7703 ac_dB='[ ].*$,\1#\2'
7704 ac_dC=' '
7705 ac_dD=',;t'
7706 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7707 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7708 ac_uB='$,\1#\2define\3'
7709 ac_uC=' '
7710 ac_uD=',;t'
7711
7712 for 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
7725 echo "$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
7736 echo "$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
7749 echo "$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.
7766 rm -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'.
7773 cat >confdef2sed.sed <<\_ACEOF
7774 s/[\\&,]/\\&/g
7775 s,[\\$`],\\&,g
7776 t clear
7777 : clear
7778 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7779 t end
7780 s,^[ ]*#[ ]*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.
7786 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7787 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7788 rm -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.
7793 cat >>conftest.undefs <<\_ACEOF
7794 s,^[ ]*#[ ]*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).
7799 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7800 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7801 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7802 echo ' :' >>$CONFIG_STATUS
7803 rm -f conftest.tail
7804 while grep . conftest.defines >/dev/null
7805 do
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
7822 done
7823 rm -f conftest.defines
7824 echo ' fi # grep' >>$CONFIG_STATUS
7825 echo >>$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).
7829 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7830 rm -f conftest.tail
7831 while grep . conftest.undefs >/dev/null
7832 do
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
7849 done
7850 rm -f conftest.undefs
7851
7852 cat >>$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
7866 echo "$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 ||
7874 echo 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 ||
7893 echo 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
7902 echo "$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`
7913 echo "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 ||
7919 echo 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
7925 done
7926 _ACEOF
7927 cat >>$CONFIG_STATUS <<\_ACEOF
7928
7929 #
7930 # CONFIG_COMMANDS section.
7931 #
7932 for 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 ||
7941 echo 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
7949 if 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'`
7953 else
7954 ac_dir_suffix= ac_top_builddir=
7955 fi
7956
7957 case $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 ;;
7971 esac
7972 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7973 # absolute.
7974 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7975 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7976 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7977 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7978
7979
7980 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7981 echo "$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 ||
7999 echo 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 ||
8038 echo 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 ||
8057 echo 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
8066 echo "$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
8072 done
8073 ;;
8074 esac
8075 done
8076 _ACEOF
8077
8078 cat >>$CONFIG_STATUS <<\_ACEOF
8079
8080 { (exit 0); exit 0; }
8081 _ACEOF
8082 chmod +x $CONFIG_STATUS
8083 ac_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.
8094 if 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; }
8102 fi
8103
8104
8105 echo "
8106 zebra configuration
8107 -------------------
8108 zebra version : ${VERSION}
8109 host operationg system : ${host_os}
8110 source code location : ${srcdir}
8111 compiler : ${CC}
8112 compiler flags : ${CFLAGS}
8113 directory for pid files : ${ac_piddir}
8114 "