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