blob: 23ed7dcced7637528d83b2964dd397d37701bfdc [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
paulccf35572003-03-01 11:42:20 +00003# Generated by GNU Autoconf 2.53.
paul718e3742002-12-13 20:15:29 +00004#
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.
paulccf35572003-03-01 11:42:20 +00009
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
paul718e3742002-12-13 20:15:29 +000017## --------------------- ##
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=:
paul718e3742002-12-13 20:15:29 +000025elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
paulccf35572003-03-01 11:42:20 +000029# NLS nuisances.
paul718e3742002-12-13 20:15:29 +000030# 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
paulccf35572003-03-01 11:42:20 +000037(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; }
paul718e3742002-12-13 20:15:29 +000061
62
63# Name of the executable.
paulccf35572003-03-01 11:42:20 +000064as_me=`(basename "$0") 2>/dev/null ||
paul718e3742002-12-13 20:15:29 +000065$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
paul718e3742002-12-13 20:15:29 +000075# 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
paulccf35572003-03-01 11:42:20 +000088 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +000089 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
paul718e3742002-12-13 20:15:29 +0000141 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
paul718e3742002-12-13 20:15:29 +0000213as_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.
paulccf35572003-03-01 11:42:20 +0000229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
paul718e3742002-12-13 20:15:29 +0000230
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
paul718e3742002-12-13 20:15:29 +0000243cross_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
paul718e3742002-12-13 20:15:29 +0000299
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
paul718e3742002-12-13 20:15:29 +0000722srcdir=`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`
paulccf35572003-03-01 11:42:20 +0000908ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
paul718e3742002-12-13 20:15:29 +0000909ac_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
paulccf35572003-03-01 11:42:20 +0000948generated by GNU Autoconf 2.53. Invocation command line was
paul718e3742002-12-13 20:15:29 +0000949
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
paulccf35572003-03-01 11:42:20 +00001014 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
paul718e3742002-12-13 20:15:29 +00001019 # Get rid of the leading space.
paul718e3742002-12-13 20:15:29 +00001020done
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
paul718e3742002-12-13 20:15:29 +00001031 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
paul718e3742002-12-13 20:15:29 +00001053 if test -s confdefs.h; then
1054 cat <<\_ASBOX
1055## ----------- ##
1056## confdefs.h. ##
1057## ----------- ##
1058_ASBOX
1059 echo
paulccf35572003-03-01 11:42:20 +00001060 sed "/^$/d" confdefs.h
paul718e3742002-12-13 20:15:29 +00001061 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
paulccf35572003-03-01 11:42:20 +00001217am__api_version="1.6"
paul718e3742002-12-13 20:15:29 +00001218ac_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
paul718e3742002-12-13 20:15:29 +00001469# Define the identity of the package.
1470 PACKAGE=zebra
paulccf35572003-03-01 11:42:20 +00001471 VERSION=0.94
paul718e3742002-12-13 20:15:29 +00001472
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
paulccf35572003-03-01 11:42:20 +00001597# 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
paul718e3742002-12-13 20:15:29 +00001602
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
paulccf35572003-03-01 11:42:20 +00001875 set dummy "$as_dir/$ac_word" ${1+"$@"}
1876 shift
1877 ac_cv_prog_CC="$@"
paul718e3742002-12-13 20:15:29 +00001878 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
paulccf35572003-03-01 11:42:20 +00002010#ifdef F77_DUMMY_MAIN
2011# ifdef __cplusplus
2012 extern "C"
2013# endif
2014 int F77_DUMMY_MAIN() { return 1; }
2015#endif
paul718e3742002-12-13 20:15:29 +00002016int
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=
paulccf35572003-03-01 11:42:20 +00002044for 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
paul718e3742002-12-13 20:15:29 +00002047 case $ac_file in
paulccf35572003-03-01 11:42:20 +00002048 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
paul718e3742002-12-13 20:15:29 +00002049 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
paulccf35572003-03-01 11:42:20 +00002062{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2063echo "$as_me: error: C compiler cannot create executables" >&2;}
paul718e3742002-12-13 20:15:29 +00002064 { (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'.
paulccf35572003-03-01 11:42:20 +00002120for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
paul718e3742002-12-13 20:15:29 +00002121 case $ac_file in
paulccf35572003-03-01 11:42:20 +00002122 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
paul718e3742002-12-13 20:15:29 +00002123 *.* ) 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
paulccf35572003-03-01 11:42:20 +00002151#ifdef F77_DUMMY_MAIN
2152# ifdef __cplusplus
2153 extern "C"
2154# endif
2155 int F77_DUMMY_MAIN() { return 1; }
2156#endif
paul718e3742002-12-13 20:15:29 +00002157int
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
paulccf35572003-03-01 11:42:20 +00002173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
paul718e3742002-12-13 20:15:29 +00002174 *) 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
paulccf35572003-03-01 11:42:20 +00002201#ifdef F77_DUMMY_MAIN
2202# ifdef __cplusplus
2203 extern "C"
2204# endif
2205 int F77_DUMMY_MAIN() { return 1; }
2206#endif
paul718e3742002-12-13 20:15:29 +00002207int
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
paulccf35572003-03-01 11:42:20 +00002255#ifdef F77_DUMMY_MAIN
2256# ifdef __cplusplus
2257 extern "C"
2258# endif
2259 int F77_DUMMY_MAIN() { return 1; }
2260#endif
paul718e3742002-12-13 20:15:29 +00002261int
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
paul718e3742002-12-13 20:15:29 +00002306# 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
paulccf35572003-03-01 11:42:20 +00002341#ifdef F77_DUMMY_MAIN
2342# ifdef __cplusplus
2343 extern "C"
2344# endif
2345 int F77_DUMMY_MAIN() { return 1; }
2346#endif
paul718e3742002-12-13 20:15:29 +00002347int
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
paulccf35572003-03-01 11:42:20 +00002378#ifdef F77_DUMMY_MAIN
2379# ifdef __cplusplus
2380 extern "C"
2381# endif
2382 int F77_DUMMY_MAIN() { return 1; }
2383#endif
paul718e3742002-12-13 20:15:29 +00002384int
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
paulccf35572003-03-01 11:42:20 +00002439ac_config_commands="$ac_config_commands depfiles"
paul718e3742002-12-13 20:15:29 +00002440
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'.
paulccf35572003-03-01 11:42:20 +00002460if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
paul718e3742002-12-13 20:15:29 +00002461 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
paul718e3742002-12-13 20:15:29 +00002572if 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=$?
paulccf35572003-03-01 11:42:20 +00002610 egrep -v '^ *\+' conftest.er1 >conftest.err
paul718e3742002-12-13 20:15:29 +00002611 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=$?
paulccf35572003-03-01 11:42:20 +00002643 egrep -v '^ *\+' conftest.er1 >conftest.err
paul718e3742002-12-13 20:15:29 +00002644 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=$?
paulccf35572003-03-01 11:42:20 +00002701 egrep -v '^ *\+' conftest.er1 >conftest.err
paul718e3742002-12-13 20:15:29 +00002702 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=$?
paulccf35572003-03-01 11:42:20 +00002734 egrep -v '^ *\+' conftest.er1 >conftest.err
paul718e3742002-12-13 20:15:29 +00002735 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
paul718e3742002-12-13 20:15:29 +00003044
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 |
paulccf35572003-03-01 11:42:20 +00003056 egrep "yes" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00003057 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
paulccf35572003-03-01 11:42:20 +00003170
3171cat >>confdefs.h <<\_ACEOF
3172#define HAVE_BROKEN_ALIASES
paul718e3742002-12-13 20:15:29 +00003173_ACEOF
3174
3175 enable_netlink=no
3176fi
3177
3178if test "${enable_tcp_zebra}" = "yes"; then
paulccf35572003-03-01 11:42:20 +00003179
3180cat >>confdefs.h <<\_ACEOF
3181#define HAVE_TCP_ZEBRA
paul718e3742002-12-13 20:15:29 +00003182_ACEOF
3183
3184fi
3185
3186if test "${enable_nssa}" = "yes"; then
paulccf35572003-03-01 11:42:20 +00003187
3188cat >>confdefs.h <<\_ACEOF
3189#define HAVE_NSSA
paul718e3742002-12-13 20:15:29 +00003190_ACEOF
3191
3192fi
3193
3194if test "${enable_opaque_lsa}" = "yes"; then
paulccf35572003-03-01 11:42:20 +00003195
3196cat >>confdefs.h <<\_ACEOF
3197#define HAVE_OPAQUE_LSA
paul718e3742002-12-13 20:15:29 +00003198_ACEOF
3199
3200fi
3201
3202if test "${enable_ospf_te}" = "yes"; then
paulccf35572003-03-01 11:42:20 +00003203
3204cat >>confdefs.h <<\_ACEOF
3205#define HAVE_OPAQUE_LSA
paul718e3742002-12-13 20:15:29 +00003206_ACEOF
3207
paulccf35572003-03-01 11:42:20 +00003208
3209cat >>confdefs.h <<\_ACEOF
3210#define HAVE_OSPF_TE
paul718e3742002-12-13 20:15:29 +00003211_ACEOF
3212
3213fi
3214
3215
3216
3217MULTIPATH_NUM=1
3218
3219case "${enable_multipath}" in
3220 [0-9]|[1-9][0-9])
3221 MULTIPATH_NUM="${enable_multipath}"
3222 ;;
3223 "")
3224 ;;
3225 *)
3226 echo "Please specify digit to --enable-multipath ARG."
3227 exit 1
3228 ;;
3229esac
3230
3231
3232
3233
3234echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3235echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3236if test "${ac_cv_header_stdc+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239 cat >conftest.$ac_ext <<_ACEOF
3240#line $LINENO "configure"
3241#include "confdefs.h"
3242#include <stdlib.h>
3243#include <stdarg.h>
3244#include <string.h>
3245#include <float.h>
3246
3247_ACEOF
3248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3250 ac_status=$?
paulccf35572003-03-01 11:42:20 +00003251 egrep -v '^ *\+' conftest.er1 >conftest.err
paul718e3742002-12-13 20:15:29 +00003252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } >/dev/null; then
3256 if test -s conftest.err; then
3257 ac_cpp_err=$ac_c_preproc_warn_flag
3258 else
3259 ac_cpp_err=
3260 fi
3261else
3262 ac_cpp_err=yes
3263fi
3264if test -z "$ac_cpp_err"; then
3265 ac_cv_header_stdc=yes
3266else
3267 echo "$as_me: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3269 ac_cv_header_stdc=no
3270fi
3271rm -f conftest.err conftest.$ac_ext
3272
3273if test $ac_cv_header_stdc = yes; then
3274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3275 cat >conftest.$ac_ext <<_ACEOF
3276#line $LINENO "configure"
3277#include "confdefs.h"
3278#include <string.h>
3279
3280_ACEOF
3281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00003282 egrep "memchr" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00003283 :
3284else
3285 ac_cv_header_stdc=no
3286fi
3287rm -f conftest*
3288
3289fi
3290
3291if test $ac_cv_header_stdc = yes; then
3292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3293 cat >conftest.$ac_ext <<_ACEOF
3294#line $LINENO "configure"
3295#include "confdefs.h"
3296#include <stdlib.h>
3297
3298_ACEOF
3299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00003300 egrep "free" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00003301 :
3302else
3303 ac_cv_header_stdc=no
3304fi
3305rm -f conftest*
3306
3307fi
3308
3309if test $ac_cv_header_stdc = yes; then
3310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3311 if test "$cross_compiling" = yes; then
3312 :
3313else
3314 cat >conftest.$ac_ext <<_ACEOF
3315#line $LINENO "configure"
3316#include "confdefs.h"
3317#include <ctype.h>
3318#if ((' ' & 0x0FF) == 0x020)
3319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3321#else
3322# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3323 || ('j' <= (c) && (c) <= 'r') \
3324 || ('s' <= (c) && (c) <= 'z'))
3325# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3326#endif
3327
3328#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3329int
3330main ()
3331{
3332 int i;
3333 for (i = 0; i < 256; i++)
3334 if (XOR (islower (i), ISLOWER (i))
3335 || toupper (i) != TOUPPER (i))
3336 exit(2);
3337 exit (0);
3338}
3339_ACEOF
3340rm -f conftest$ac_exeext
3341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 :
3352else
3353 echo "$as_me: program exited with status $ac_status" >&5
3354echo "$as_me: failed program was:" >&5
3355cat conftest.$ac_ext >&5
3356( exit $ac_status )
3357ac_cv_header_stdc=no
3358fi
paulccf35572003-03-01 11:42:20 +00003359rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00003360fi
3361fi
3362fi
3363echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3364echo "${ECHO_T}$ac_cv_header_stdc" >&6
3365if test $ac_cv_header_stdc = yes; then
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define STDC_HEADERS 1
3369_ACEOF
3370
3371fi
3372
3373# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3384 inttypes.h stdint.h unistd.h
3385do
3386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3387echo "$as_me:$LINENO: checking for $ac_header" >&5
3388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3389if eval "test \"\${$as_ac_Header+set}\" = set"; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392 cat >conftest.$ac_ext <<_ACEOF
3393#line $LINENO "configure"
3394#include "confdefs.h"
3395$ac_includes_default
3396
3397#include <$ac_header>
3398_ACEOF
3399rm -f conftest.$ac_objext
3400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 eval "$as_ac_Header=yes"
3412else
3413 echo "$as_me: failed program was:" >&5
3414cat conftest.$ac_ext >&5
3415eval "$as_ac_Header=no"
3416fi
3417rm -f conftest.$ac_objext conftest.$ac_ext
3418fi
3419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3421if test `eval echo '${'$as_ac_Header'}'` = yes; then
3422 cat >>confdefs.h <<_ACEOF
3423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3424_ACEOF
3425
3426fi
3427
3428done
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456for 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
3457do
3458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3459if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460 echo "$as_me:$LINENO: checking for $ac_header" >&5
3461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3462if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464fi
3465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3467else
3468 # Is the header compilable?
3469echo "$as_me:$LINENO: checking $ac_header usability" >&5
3470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3471cat >conftest.$ac_ext <<_ACEOF
3472#line $LINENO "configure"
3473#include "confdefs.h"
3474$ac_includes_default
3475#include <$ac_header>
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_header_compiler=yes
3490else
3491 echo "$as_me: failed program was:" >&5
3492cat conftest.$ac_ext >&5
3493ac_header_compiler=no
3494fi
3495rm -f conftest.$ac_objext conftest.$ac_ext
3496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3497echo "${ECHO_T}$ac_header_compiler" >&6
3498
3499# Is the header present?
3500echo "$as_me:$LINENO: checking $ac_header presence" >&5
3501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3502cat >conftest.$ac_ext <<_ACEOF
3503#line $LINENO "configure"
3504#include "confdefs.h"
3505#include <$ac_header>
3506_ACEOF
3507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509 ac_status=$?
paulccf35572003-03-01 11:42:20 +00003510 egrep -v '^ *\+' conftest.er1 >conftest.err
paul718e3742002-12-13 20:15:29 +00003511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 else
3518 ac_cpp_err=
3519 fi
3520else
3521 ac_cpp_err=yes
3522fi
3523if test -z "$ac_cpp_err"; then
3524 ac_header_preproc=yes
3525else
3526 echo "$as_me: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 ac_header_preproc=no
3529fi
3530rm -f conftest.err conftest.$ac_ext
3531echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3532echo "${ECHO_T}$ac_header_preproc" >&6
3533
3534# So? What about this header?
3535case $ac_header_compiler:$ac_header_preproc in
3536 yes:no )
3537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3541 no:yes )
3542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3548esac
3549echo "$as_me:$LINENO: checking for $ac_header" >&5
3550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3551if eval "test \"\${$as_ac_Header+set}\" = set"; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554 eval "$as_ac_Header=$ac_header_preproc"
3555fi
3556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3558
3559fi
3560if test `eval echo '${'$as_ac_Header'}'` = yes; then
3561 cat >>confdefs.h <<_ACEOF
3562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3563_ACEOF
3564
3565fi
3566
3567done
3568
3569
paulccf35572003-03-01 11:42:20 +00003570echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3571echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3572if test "${ac_cv_prog_cc_stdc+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575 ac_cv_prog_cc_stdc=no
3576ac_save_CC=$CC
3577cat >conftest.$ac_ext <<_ACEOF
3578#line $LINENO "configure"
3579#include "confdefs.h"
3580#include <stdarg.h>
3581#include <stdio.h>
3582#include <sys/types.h>
3583#include <sys/stat.h>
3584/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585struct buf { int x; };
3586FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587static char *e (p, i)
3588 char **p;
3589 int i;
3590{
3591 return p[i];
3592}
3593static char *f (char * (*g) (char **, int), char **p, ...)
3594{
3595 char *s;
3596 va_list v;
3597 va_start (v,p);
3598 s = g (p, va_arg (v,int));
3599 va_end (v);
3600 return s;
3601}
3602int test (int i, double x);
3603struct s1 {int (*f) (int a);};
3604struct s2 {int (*f) (double a);};
3605int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606int argc;
3607char **argv;
3608#ifdef F77_DUMMY_MAIN
3609# ifdef __cplusplus
3610 extern "C"
3611# endif
3612 int F77_DUMMY_MAIN() { return 1; }
3613#endif
3614int
3615main ()
3616{
3617return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622# Don't try gcc -ansi; that turns off useful extensions and
3623# breaks some systems' header files.
3624# AIX -qlanglvl=ansi
3625# Ultrix and OSF/1 -std1
3626# HP-UX 10.20 and later -Ae
3627# HP-UX older versions -Aa -D_HPUX_SOURCE
3628# SVR4 -Xc -D__EXTENSIONS__
3629for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3630do
3631 CC="$ac_save_CC $ac_arg"
3632 rm -f conftest.$ac_objext
3633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_cv_prog_cc_stdc=$ac_arg
3645break
3646else
3647 echo "$as_me: failed program was:" >&5
3648cat conftest.$ac_ext >&5
3649fi
3650rm -f conftest.$ac_objext
3651done
3652rm -f conftest.$ac_ext conftest.$ac_objext
3653CC=$ac_save_CC
3654
3655fi
3656
3657case "x$ac_cv_prog_cc_stdc" in
3658 x|xno)
3659 echo "$as_me:$LINENO: result: none needed" >&5
3660echo "${ECHO_T}none needed" >&6 ;;
3661 *)
3662 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3663echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3664 CC="$CC $ac_cv_prog_cc_stdc" ;;
3665esac
3666
paul718e3742002-12-13 20:15:29 +00003667echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3668echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3669if test "${ac_cv_c_const+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672 cat >conftest.$ac_ext <<_ACEOF
3673#line $LINENO "configure"
3674#include "confdefs.h"
3675
paulccf35572003-03-01 11:42:20 +00003676#ifdef F77_DUMMY_MAIN
3677# ifdef __cplusplus
3678 extern "C"
3679# endif
3680 int F77_DUMMY_MAIN() { return 1; }
3681#endif
paul718e3742002-12-13 20:15:29 +00003682int
3683main ()
3684{
3685/* FIXME: Include the comments suggested by Paul. */
3686#ifndef __cplusplus
3687 /* Ultrix mips cc rejects this. */
3688 typedef int charset[2];
3689 const charset x;
3690 /* SunOS 4.1.1 cc rejects this. */
3691 char const *const *ccp;
3692 char **p;
3693 /* NEC SVR4.0.2 mips cc rejects this. */
3694 struct point {int x, y;};
3695 static struct point const zero = {0,0};
3696 /* AIX XL C 1.02.0.0 rejects this.
3697 It does not let you subtract one const X* pointer from another in
3698 an arm of an if-expression whose if-part is not a constant
3699 expression */
3700 const char *g = "string";
3701 ccp = &g + (g ? g-g : 0);
3702 /* HPUX 7.0 cc rejects these. */
3703 ++ccp;
3704 p = (char**) ccp;
3705 ccp = (char const *const *) p;
3706 { /* SCO 3.2v4 cc rejects this. */
3707 char *t;
3708 char const *s = 0 ? (char *) 0 : (char const *) 0;
3709
3710 *t++ = 0;
3711 }
3712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3713 int x[] = {25, 17};
3714 const int *foo = &x[0];
3715 ++foo;
3716 }
3717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3718 typedef const int *iptr;
3719 iptr p = 0;
3720 ++p;
3721 }
3722 { /* AIX XL C 1.02.0.0 rejects this saying
3723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3724 struct s { int j; const int *ap[3]; };
3725 struct s *b; b->j = 5;
3726 }
3727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3728 const int foo = 10;
3729 }
3730#endif
3731
3732 ;
3733 return 0;
3734}
3735_ACEOF
3736rm -f conftest.$ac_objext
3737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_c_const=yes
3749else
3750 echo "$as_me: failed program was:" >&5
3751cat conftest.$ac_ext >&5
3752ac_cv_c_const=no
3753fi
3754rm -f conftest.$ac_objext conftest.$ac_ext
3755fi
3756echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3757echo "${ECHO_T}$ac_cv_c_const" >&6
3758if test $ac_cv_c_const = no; then
3759
3760cat >>confdefs.h <<\_ACEOF
3761#define const
3762_ACEOF
3763
3764fi
3765
3766echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3767echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3768if test "${ac_cv_type_signal+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 cat >conftest.$ac_ext <<_ACEOF
3772#line $LINENO "configure"
3773#include "confdefs.h"
3774#include <sys/types.h>
3775#include <signal.h>
3776#ifdef signal
3777# undef signal
3778#endif
3779#ifdef __cplusplus
3780extern "C" void (*signal (int, void (*)(int)))(int);
3781#else
3782void (*signal ()) ();
3783#endif
3784
paulccf35572003-03-01 11:42:20 +00003785#ifdef F77_DUMMY_MAIN
3786# ifdef __cplusplus
3787 extern "C"
3788# endif
3789 int F77_DUMMY_MAIN() { return 1; }
3790#endif
paul718e3742002-12-13 20:15:29 +00003791int
3792main ()
3793{
3794int i;
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext
3800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_cv_type_signal=void
3812else
3813 echo "$as_me: failed program was:" >&5
3814cat conftest.$ac_ext >&5
3815ac_cv_type_signal=int
3816fi
3817rm -f conftest.$ac_objext conftest.$ac_ext
3818fi
3819echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3820echo "${ECHO_T}$ac_cv_type_signal" >&6
3821
3822cat >>confdefs.h <<_ACEOF
3823#define RETSIGTYPE $ac_cv_type_signal
3824_ACEOF
3825
3826
3827
3828case "$host" in
3829 *-sunos5.6* | *-solaris2.6*)
3830 opsys=sol2-6
paulccf35572003-03-01 11:42:20 +00003831
3832cat >>confdefs.h <<\_ACEOF
3833#define SUNOS_5
paul718e3742002-12-13 20:15:29 +00003834_ACEOF
3835
3836
3837echo "$as_me:$LINENO: checking for main in -lxnet" >&5
3838echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
3839if test "${ac_cv_lib_xnet_main+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842 ac_check_lib_save_LIBS=$LIBS
3843LIBS="-lxnet $LIBS"
3844cat >conftest.$ac_ext <<_ACEOF
3845#line $LINENO "configure"
3846#include "confdefs.h"
3847
3848
paulccf35572003-03-01 11:42:20 +00003849#ifdef F77_DUMMY_MAIN
3850# ifdef __cplusplus
3851 extern "C"
3852# endif
3853 int F77_DUMMY_MAIN() { return 1; }
3854#endif
paul718e3742002-12-13 20:15:29 +00003855int
3856main ()
3857{
3858main ();
3859 ;
3860 return 0;
3861}
3862_ACEOF
3863rm -f conftest.$ac_objext conftest$ac_exeext
3864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865 (eval $ac_link) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -s conftest$ac_exeext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 ac_cv_lib_xnet_main=yes
3876else
3877 echo "$as_me: failed program was:" >&5
3878cat conftest.$ac_ext >&5
3879ac_cv_lib_xnet_main=no
3880fi
3881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3882LIBS=$ac_check_lib_save_LIBS
3883fi
3884echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
3885echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
3886if test $ac_cv_lib_xnet_main = yes; then
3887 cat >>confdefs.h <<_ACEOF
3888#define HAVE_LIBXNET 1
3889_ACEOF
3890
3891 LIBS="-lxnet $LIBS"
3892
3893fi
3894
3895 CURSES=-lcurses
3896 ;;
3897 *-sunos5* | *-solaris2*)
paulccf35572003-03-01 11:42:20 +00003898
3899cat >>confdefs.h <<\_ACEOF
3900#define SUNOS_5
paul718e3742002-12-13 20:15:29 +00003901_ACEOF
3902
3903
3904echo "$as_me:$LINENO: checking for main in -lsocket" >&5
3905echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
3906if test "${ac_cv_lib_socket_main+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 ac_check_lib_save_LIBS=$LIBS
3910LIBS="-lsocket $LIBS"
3911cat >conftest.$ac_ext <<_ACEOF
3912#line $LINENO "configure"
3913#include "confdefs.h"
3914
3915
paulccf35572003-03-01 11:42:20 +00003916#ifdef F77_DUMMY_MAIN
3917# ifdef __cplusplus
3918 extern "C"
3919# endif
3920 int F77_DUMMY_MAIN() { return 1; }
3921#endif
paul718e3742002-12-13 20:15:29 +00003922int
3923main ()
3924{
3925main ();
3926 ;
3927 return 0;
3928}
3929_ACEOF
3930rm -f conftest.$ac_objext conftest$ac_exeext
3931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -s conftest$ac_exeext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 ac_cv_lib_socket_main=yes
3943else
3944 echo "$as_me: failed program was:" >&5
3945cat conftest.$ac_ext >&5
3946ac_cv_lib_socket_main=no
3947fi
3948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3949LIBS=$ac_check_lib_save_LIBS
3950fi
3951echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
3952echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
3953if test $ac_cv_lib_socket_main = yes; then
3954 cat >>confdefs.h <<_ACEOF
3955#define HAVE_LIBSOCKET 1
3956_ACEOF
3957
3958 LIBS="-lsocket $LIBS"
3959
3960fi
3961
3962
3963echo "$as_me:$LINENO: checking for main in -lnsl" >&5
3964echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
3965if test "${ac_cv_lib_nsl_main+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 ac_check_lib_save_LIBS=$LIBS
3969LIBS="-lnsl $LIBS"
3970cat >conftest.$ac_ext <<_ACEOF
3971#line $LINENO "configure"
3972#include "confdefs.h"
3973
3974
paulccf35572003-03-01 11:42:20 +00003975#ifdef F77_DUMMY_MAIN
3976# ifdef __cplusplus
3977 extern "C"
3978# endif
3979 int F77_DUMMY_MAIN() { return 1; }
3980#endif
paul718e3742002-12-13 20:15:29 +00003981int
3982main ()
3983{
3984main ();
3985 ;
3986 return 0;
3987}
3988_ACEOF
3989rm -f conftest.$ac_objext conftest$ac_exeext
3990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991 (eval $ac_link) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -s conftest$ac_exeext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_cv_lib_nsl_main=yes
4002else
4003 echo "$as_me: failed program was:" >&5
4004cat conftest.$ac_ext >&5
4005ac_cv_lib_nsl_main=no
4006fi
4007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4008LIBS=$ac_check_lib_save_LIBS
4009fi
4010echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4011echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4012if test $ac_cv_lib_nsl_main = yes; then
4013 cat >>confdefs.h <<_ACEOF
4014#define HAVE_LIBNSL 1
4015_ACEOF
4016
4017 LIBS="-lnsl $LIBS"
4018
4019fi
4020
4021 CURSES=-lcurses
4022 ;;
4023 *-linux-*)
4024 opsys=gnu-linux
paulccf35572003-03-01 11:42:20 +00004025
4026cat >>confdefs.h <<\_ACEOF
4027#define GNU_LINUX
paul718e3742002-12-13 20:15:29 +00004028_ACEOF
4029
4030 ;;
4031 *-nec-sysv4*)
4032
4033echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4034echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4035if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038 ac_check_lib_save_LIBS=$LIBS
4039LIBS="-lnsl $LIBS"
4040cat >conftest.$ac_ext <<_ACEOF
4041#line $LINENO "configure"
4042#include "confdefs.h"
4043
4044/* Override any gcc2 internal prototype to avoid an error. */
4045#ifdef __cplusplus
4046extern "C"
4047#endif
4048/* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4050char gethostbyname ();
paulccf35572003-03-01 11:42:20 +00004051#ifdef F77_DUMMY_MAIN
4052# ifdef __cplusplus
4053 extern "C"
4054# endif
4055 int F77_DUMMY_MAIN() { return 1; }
4056#endif
paul718e3742002-12-13 20:15:29 +00004057int
4058main ()
4059{
4060gethostbyname ();
4061 ;
4062 return 0;
4063}
4064_ACEOF
4065rm -f conftest.$ac_objext conftest$ac_exeext
4066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -s conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 ac_cv_lib_nsl_gethostbyname=yes
4078else
4079 echo "$as_me: failed program was:" >&5
4080cat conftest.$ac_ext >&5
4081ac_cv_lib_nsl_gethostbyname=no
4082fi
4083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4084LIBS=$ac_check_lib_save_LIBS
4085fi
4086echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4087echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4088if test $ac_cv_lib_nsl_gethostbyname = yes; then
4089 cat >>confdefs.h <<_ACEOF
4090#define HAVE_LIBNSL 1
4091_ACEOF
4092
4093 LIBS="-lnsl $LIBS"
4094
4095fi
4096
4097
4098echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4099echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4100if test "${ac_cv_lib_socket_socket+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 ac_check_lib_save_LIBS=$LIBS
4104LIBS="-lsocket $LIBS"
4105cat >conftest.$ac_ext <<_ACEOF
4106#line $LINENO "configure"
4107#include "confdefs.h"
4108
4109/* Override any gcc2 internal prototype to avoid an error. */
4110#ifdef __cplusplus
4111extern "C"
4112#endif
4113/* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4115char socket ();
paulccf35572003-03-01 11:42:20 +00004116#ifdef F77_DUMMY_MAIN
4117# ifdef __cplusplus
4118 extern "C"
4119# endif
4120 int F77_DUMMY_MAIN() { return 1; }
4121#endif
paul718e3742002-12-13 20:15:29 +00004122int
4123main ()
4124{
4125socket ();
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext conftest$ac_exeext
4131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132 (eval $ac_link) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -s conftest$ac_exeext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 ac_cv_lib_socket_socket=yes
4143else
4144 echo "$as_me: failed program was:" >&5
4145cat conftest.$ac_ext >&5
4146ac_cv_lib_socket_socket=no
4147fi
4148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4149LIBS=$ac_check_lib_save_LIBS
4150fi
4151echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4152echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4153if test $ac_cv_lib_socket_socket = yes; then
4154 cat >>confdefs.h <<_ACEOF
4155#define HAVE_LIBSOCKET 1
4156_ACEOF
4157
4158 LIBS="-lsocket $LIBS"
4159
4160fi
4161
4162 ;;
4163 *-freebsd3.2)
paulccf35572003-03-01 11:42:20 +00004164
4165cat >>confdefs.h <<\_ACEOF
4166#define FREEBSD_32
paul718e3742002-12-13 20:15:29 +00004167_ACEOF
4168
4169 ;;
4170 *-openbsd*)
4171 opsys=openbsd
paulccf35572003-03-01 11:42:20 +00004172
4173cat >>confdefs.h <<\_ACEOF
4174#define OPEN_BSD
paul718e3742002-12-13 20:15:29 +00004175_ACEOF
4176
4177 ;;
4178 *-bsdi*)
4179 opsys=bsdi
4180 OTHER_METHOD="mtu_kvm.o"
4181
4182echo "$as_me:$LINENO: checking for main in -lkvm" >&5
4183echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
4184if test "${ac_cv_lib_kvm_main+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186else
4187 ac_check_lib_save_LIBS=$LIBS
4188LIBS="-lkvm $LIBS"
4189cat >conftest.$ac_ext <<_ACEOF
4190#line $LINENO "configure"
4191#include "confdefs.h"
4192
4193
paulccf35572003-03-01 11:42:20 +00004194#ifdef F77_DUMMY_MAIN
4195# ifdef __cplusplus
4196 extern "C"
4197# endif
4198 int F77_DUMMY_MAIN() { return 1; }
4199#endif
paul718e3742002-12-13 20:15:29 +00004200int
4201main ()
4202{
4203main ();
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208rm -f conftest.$ac_objext conftest$ac_exeext
4209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4210 (eval $ac_link) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -s conftest$ac_exeext'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 ac_cv_lib_kvm_main=yes
4221else
4222 echo "$as_me: failed program was:" >&5
4223cat conftest.$ac_ext >&5
4224ac_cv_lib_kvm_main=no
4225fi
4226rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4227LIBS=$ac_check_lib_save_LIBS
4228fi
4229echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
4230echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
4231if test $ac_cv_lib_kvm_main = yes; then
4232 cat >>confdefs.h <<_ACEOF
4233#define HAVE_LIBKVM 1
4234_ACEOF
4235
4236 LIBS="-lkvm $LIBS"
4237
4238fi
4239
4240 ;;
4241esac
4242
paul718e3742002-12-13 20:15:29 +00004243case "${enable_vtysh}" in
4244 "yes") VTYSH="vtysh";
paulccf35572003-03-01 11:42:20 +00004245
4246cat >>confdefs.h <<\_ACEOF
4247#define VTYSH
paul718e3742002-12-13 20:15:29 +00004248_ACEOF
4249
4250
4251echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
4252echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
4253if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256 ac_check_lib_save_LIBS=$LIBS
4257LIBS="-ltinfo $LIBS"
4258cat >conftest.$ac_ext <<_ACEOF
4259#line $LINENO "configure"
4260#include "confdefs.h"
4261
4262/* Override any gcc2 internal prototype to avoid an error. */
4263#ifdef __cplusplus
4264extern "C"
4265#endif
4266/* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4268char tputs ();
paulccf35572003-03-01 11:42:20 +00004269#ifdef F77_DUMMY_MAIN
4270# ifdef __cplusplus
4271 extern "C"
4272# endif
4273 int F77_DUMMY_MAIN() { return 1; }
4274#endif
paul718e3742002-12-13 20:15:29 +00004275int
4276main ()
4277{
4278tputs ();
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext conftest$ac_exeext
4284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -s conftest$ac_exeext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_lib_tinfo_tputs=yes
4296else
4297 echo "$as_me: failed program was:" >&5
4298cat conftest.$ac_ext >&5
4299ac_cv_lib_tinfo_tputs=no
4300fi
4301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4302LIBS=$ac_check_lib_save_LIBS
4303fi
4304echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
4305echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
4306if test $ac_cv_lib_tinfo_tputs = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308#define HAVE_LIBTINFO 1
4309_ACEOF
4310
4311 LIBS="-ltinfo $LIBS"
4312
4313else
4314
4315echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
4316echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
4317if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319else
4320 ac_check_lib_save_LIBS=$LIBS
4321LIBS="-lncurses $LIBS"
4322cat >conftest.$ac_ext <<_ACEOF
4323#line $LINENO "configure"
4324#include "confdefs.h"
4325
4326/* Override any gcc2 internal prototype to avoid an error. */
4327#ifdef __cplusplus
4328extern "C"
4329#endif
4330/* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4332char tputs ();
paulccf35572003-03-01 11:42:20 +00004333#ifdef F77_DUMMY_MAIN
4334# ifdef __cplusplus
4335 extern "C"
4336# endif
4337 int F77_DUMMY_MAIN() { return 1; }
4338#endif
paul718e3742002-12-13 20:15:29 +00004339int
4340main ()
4341{
4342tputs ();
4343 ;
4344 return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext conftest$ac_exeext
4348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4349 (eval $ac_link) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -s conftest$ac_exeext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_lib_ncurses_tputs=yes
4360else
4361 echo "$as_me: failed program was:" >&5
4362cat conftest.$ac_ext >&5
4363ac_cv_lib_ncurses_tputs=no
4364fi
4365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4366LIBS=$ac_check_lib_save_LIBS
4367fi
4368echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
4369echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
4370if test $ac_cv_lib_ncurses_tputs = yes; then
4371 cat >>confdefs.h <<_ACEOF
4372#define HAVE_LIBNCURSES 1
4373_ACEOF
4374
4375 LIBS="-lncurses $LIBS"
4376
4377fi
4378
4379fi
4380
4381
4382echo "$as_me:$LINENO: checking for main in -lreadline" >&5
4383echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
4384if test "${ac_cv_lib_readline_main+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387 ac_check_lib_save_LIBS=$LIBS
4388LIBS="-lreadline $LIBS"
4389cat >conftest.$ac_ext <<_ACEOF
4390#line $LINENO "configure"
4391#include "confdefs.h"
4392
4393
paulccf35572003-03-01 11:42:20 +00004394#ifdef F77_DUMMY_MAIN
4395# ifdef __cplusplus
4396 extern "C"
4397# endif
4398 int F77_DUMMY_MAIN() { return 1; }
4399#endif
paul718e3742002-12-13 20:15:29 +00004400int
4401main ()
4402{
4403main ();
4404 ;
4405 return 0;
4406}
4407_ACEOF
4408rm -f conftest.$ac_objext conftest$ac_exeext
4409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4410 (eval $ac_link) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -s conftest$ac_exeext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_lib_readline_main=yes
4421else
4422 echo "$as_me: failed program was:" >&5
4423cat conftest.$ac_ext >&5
4424ac_cv_lib_readline_main=no
4425fi
4426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4427LIBS=$ac_check_lib_save_LIBS
4428fi
4429echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
4430echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
4431if test $ac_cv_lib_readline_main = yes; then
4432 cat >>confdefs.h <<_ACEOF
4433#define HAVE_LIBREADLINE 1
4434_ACEOF
4435
4436 LIBS="-lreadline $LIBS"
4437
4438fi
4439
4440 if test $ac_cv_lib_readline_main = no; then
4441 { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5
4442echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;}
4443 { (exit 1); exit 1; }; }
4444 fi
4445 if test "${ac_cv_header_readline_history_h+set}" = set; then
4446 echo "$as_me:$LINENO: checking for readline/history.h" >&5
4447echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4448if test "${ac_cv_header_readline_history_h+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450fi
4451echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4452echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4453else
4454 # Is the header compilable?
4455echo "$as_me:$LINENO: checking readline/history.h usability" >&5
4456echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
4457cat >conftest.$ac_ext <<_ACEOF
4458#line $LINENO "configure"
4459#include "confdefs.h"
4460$ac_includes_default
4461#include <readline/history.h>
4462_ACEOF
4463rm -f conftest.$ac_objext
4464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_header_compiler=yes
4476else
4477 echo "$as_me: failed program was:" >&5
4478cat conftest.$ac_ext >&5
4479ac_header_compiler=no
4480fi
4481rm -f conftest.$ac_objext conftest.$ac_ext
4482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4483echo "${ECHO_T}$ac_header_compiler" >&6
4484
4485# Is the header present?
4486echo "$as_me:$LINENO: checking readline/history.h presence" >&5
4487echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
4488cat >conftest.$ac_ext <<_ACEOF
4489#line $LINENO "configure"
4490#include "confdefs.h"
4491#include <readline/history.h>
4492_ACEOF
4493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4495 ac_status=$?
paulccf35572003-03-01 11:42:20 +00004496 egrep -v '^ *\+' conftest.er1 >conftest.err
paul718e3742002-12-13 20:15:29 +00004497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } >/dev/null; then
4501 if test -s conftest.err; then
4502 ac_cpp_err=$ac_c_preproc_warn_flag
4503 else
4504 ac_cpp_err=
4505 fi
4506else
4507 ac_cpp_err=yes
4508fi
4509if test -z "$ac_cpp_err"; then
4510 ac_header_preproc=yes
4511else
4512 echo "$as_me: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 ac_header_preproc=no
4515fi
4516rm -f conftest.err conftest.$ac_ext
4517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4518echo "${ECHO_T}$ac_header_preproc" >&6
4519
4520# So? What about this header?
4521case $ac_header_compiler:$ac_header_preproc in
4522 yes:no )
4523 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
4524echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
4526echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4527 no:yes )
4528 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
4529echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
4531echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
4532 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
4533echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4534esac
4535echo "$as_me:$LINENO: checking for readline/history.h" >&5
4536echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4537if test "${ac_cv_header_readline_history_h+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 ac_cv_header_readline_history_h=$ac_header_preproc
4541fi
4542echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4543echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4544
4545fi
4546
4547
4548 if test $ac_cv_header_readline_history_h = no;then
4549 { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
4550echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
4551 { (exit 1); exit 1; }; }
4552 fi
4553 ;;
4554 "no" ) VTYSH="";;
4555 * ) ;;
4556esac
4557
4558if test "$with_libpam" = "yes"; then
4559echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
4560echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
4561if test "${ac_cv_lib_pam_pam_start+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563else
4564 ac_check_lib_save_LIBS=$LIBS
4565LIBS="-lpam $LIBS"
4566cat >conftest.$ac_ext <<_ACEOF
4567#line $LINENO "configure"
4568#include "confdefs.h"
4569
4570/* Override any gcc2 internal prototype to avoid an error. */
4571#ifdef __cplusplus
4572extern "C"
4573#endif
4574/* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4576char pam_start ();
paulccf35572003-03-01 11:42:20 +00004577#ifdef F77_DUMMY_MAIN
4578# ifdef __cplusplus
4579 extern "C"
4580# endif
4581 int F77_DUMMY_MAIN() { return 1; }
4582#endif
paul718e3742002-12-13 20:15:29 +00004583int
4584main ()
4585{
4586pam_start ();
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext conftest$ac_exeext
4592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593 (eval $ac_link) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -s conftest$ac_exeext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_lib_pam_pam_start=yes
4604else
4605 echo "$as_me: failed program was:" >&5
4606cat conftest.$ac_ext >&5
4607ac_cv_lib_pam_pam_start=no
4608fi
4609rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4610LIBS=$ac_check_lib_save_LIBS
4611fi
4612echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
4613echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
4614if test $ac_cv_lib_pam_pam_start = yes; then
4615 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
4616echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4617if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620 ac_check_lib_save_LIBS=$LIBS
4621LIBS="-lpam $LIBS"
4622cat >conftest.$ac_ext <<_ACEOF
4623#line $LINENO "configure"
4624#include "confdefs.h"
4625
4626/* Override any gcc2 internal prototype to avoid an error. */
4627#ifdef __cplusplus
4628extern "C"
4629#endif
4630/* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4632char misc_conv ();
paulccf35572003-03-01 11:42:20 +00004633#ifdef F77_DUMMY_MAIN
4634# ifdef __cplusplus
4635 extern "C"
4636# endif
4637 int F77_DUMMY_MAIN() { return 1; }
4638#endif
paul718e3742002-12-13 20:15:29 +00004639int
4640main ()
4641{
4642misc_conv ();
4643 ;
4644 return 0;
4645}
4646_ACEOF
4647rm -f conftest.$ac_objext conftest$ac_exeext
4648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649 (eval $ac_link) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -s conftest$ac_exeext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_lib_pam_misc_conv=yes
4660else
4661 echo "$as_me: failed program was:" >&5
4662cat conftest.$ac_ext >&5
4663ac_cv_lib_pam_misc_conv=no
4664fi
4665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4666LIBS=$ac_check_lib_save_LIBS
4667fi
4668echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
4669echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4670if test $ac_cv_lib_pam_misc_conv = yes; then
paulccf35572003-03-01 11:42:20 +00004671
4672cat >>confdefs.h <<\_ACEOF
4673#define USE_PAM
paul718e3742002-12-13 20:15:29 +00004674_ACEOF
4675
4676 LIBPAM="-lpam"
4677else
paulccf35572003-03-01 11:42:20 +00004678
4679cat >>confdefs.h <<\_ACEOF
4680#define USE_PAM
paul718e3742002-12-13 20:15:29 +00004681_ACEOF
4682
4683 LIBPAM="-lpam -lpam_misc"
4684
4685fi
4686
4687
4688else
4689 echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
4690echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
4691if test "${ac_cv_lib_pam_pam_end+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694 ac_check_lib_save_LIBS=$LIBS
4695LIBS="-lpam -ldl $LIBS"
4696cat >conftest.$ac_ext <<_ACEOF
4697#line $LINENO "configure"
4698#include "confdefs.h"
4699
4700/* Override any gcc2 internal prototype to avoid an error. */
4701#ifdef __cplusplus
4702extern "C"
4703#endif
4704/* We use char because int might match the return type of a gcc2
4705 builtin and then its argument prototype would still apply. */
4706char pam_end ();
paulccf35572003-03-01 11:42:20 +00004707#ifdef F77_DUMMY_MAIN
4708# ifdef __cplusplus
4709 extern "C"
4710# endif
4711 int F77_DUMMY_MAIN() { return 1; }
4712#endif
paul718e3742002-12-13 20:15:29 +00004713int
4714main ()
4715{
4716pam_end ();
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721rm -f conftest.$ac_objext conftest$ac_exeext
4722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -s conftest$ac_exeext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 ac_cv_lib_pam_pam_end=yes
4734else
4735 echo "$as_me: failed program was:" >&5
4736cat conftest.$ac_ext >&5
4737ac_cv_lib_pam_pam_end=no
4738fi
4739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4740LIBS=$ac_check_lib_save_LIBS
4741fi
4742echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
4743echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
4744if test $ac_cv_lib_pam_pam_end = yes; then
4745 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
4746echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4747if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750 ac_check_lib_save_LIBS=$LIBS
4751LIBS="-lpam $LIBS"
4752cat >conftest.$ac_ext <<_ACEOF
4753#line $LINENO "configure"
4754#include "confdefs.h"
4755
4756/* Override any gcc2 internal prototype to avoid an error. */
4757#ifdef __cplusplus
4758extern "C"
4759#endif
4760/* We use char because int might match the return type of a gcc2
4761 builtin and then its argument prototype would still apply. */
4762char misc_conv ();
paulccf35572003-03-01 11:42:20 +00004763#ifdef F77_DUMMY_MAIN
4764# ifdef __cplusplus
4765 extern "C"
4766# endif
4767 int F77_DUMMY_MAIN() { return 1; }
4768#endif
paul718e3742002-12-13 20:15:29 +00004769int
4770main ()
4771{
4772misc_conv ();
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777rm -f conftest.$ac_objext conftest$ac_exeext
4778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779 (eval $ac_link) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -s conftest$ac_exeext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ac_cv_lib_pam_misc_conv=yes
4790else
4791 echo "$as_me: failed program was:" >&5
4792cat conftest.$ac_ext >&5
4793ac_cv_lib_pam_misc_conv=no
4794fi
4795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4796LIBS=$ac_check_lib_save_LIBS
4797fi
4798echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
4799echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4800if test $ac_cv_lib_pam_misc_conv = yes; then
4801 cat >>confdefs.h <<\_ACEOF
4802#define USE_PAM 1
4803_ACEOF
4804
4805 LIBPAM="-lpam -ldl"
4806else
4807 cat >>confdefs.h <<\_ACEOF
4808#define USE_PAM 1
4809_ACEOF
4810
4811 LIBPAM="-lpam -ldl -lpam_misc"
4812
4813fi
4814
4815
4816else
4817 { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
4818echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
4819fi
4820
4821
4822
4823fi
4824
4825fi
4826
4827
paulccf35572003-03-01 11:42:20 +00004828echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4829echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4830if test "${ac_cv_c_bigendian+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833 # See if sys/param.h defines the BYTE_ORDER macro.
4834cat >conftest.$ac_ext <<_ACEOF
4835#line $LINENO "configure"
4836#include "confdefs.h"
4837#include <sys/types.h>
4838#include <sys/param.h>
4839
4840#ifdef F77_DUMMY_MAIN
4841# ifdef __cplusplus
4842 extern "C"
4843# endif
4844 int F77_DUMMY_MAIN() { return 1; }
4845#endif
4846int
4847main ()
4848{
4849#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4850 bogus endian macros
4851#endif
4852
4853 ;
4854 return 0;
4855}
4856_ACEOF
4857rm -f conftest.$ac_objext
4858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 # It does; now see whether it defined to BIG_ENDIAN or not.
4870cat >conftest.$ac_ext <<_ACEOF
4871#line $LINENO "configure"
4872#include "confdefs.h"
4873#include <sys/types.h>
4874#include <sys/param.h>
4875
4876#ifdef F77_DUMMY_MAIN
4877# ifdef __cplusplus
4878 extern "C"
4879# endif
4880 int F77_DUMMY_MAIN() { return 1; }
4881#endif
4882int
4883main ()
4884{
4885#if BYTE_ORDER != BIG_ENDIAN
4886 not big endian
4887#endif
4888
4889 ;
4890 return 0;
4891}
4892_ACEOF
4893rm -f conftest.$ac_objext
4894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_cv_c_bigendian=yes
4906else
4907 echo "$as_me: failed program was:" >&5
4908cat conftest.$ac_ext >&5
4909ac_cv_c_bigendian=no
4910fi
4911rm -f conftest.$ac_objext conftest.$ac_ext
4912else
4913 echo "$as_me: failed program was:" >&5
4914cat conftest.$ac_ext >&5
4915# It does not; compile a test program.
4916if test "$cross_compiling" = yes; then
4917 # try to guess the endianess by grep'ing values into an object file
4918 ac_cv_c_bigendian=unknown
4919 cat >conftest.$ac_ext <<_ACEOF
4920#line $LINENO "configure"
4921#include "confdefs.h"
4922short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4923short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4924void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4925short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4926short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4927void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4928#ifdef F77_DUMMY_MAIN
4929# ifdef __cplusplus
4930 extern "C"
4931# endif
4932 int F77_DUMMY_MAIN() { return 1; }
4933#endif
4934int
4935main ()
4936{
4937 _ascii (); _ebcdic ();
4938 ;
4939 return 0;
4940}
4941_ACEOF
4942rm -f conftest.$ac_objext
4943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944 (eval $ac_compile) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4955 ac_cv_c_bigendian=yes
4956fi
4957if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4958 if test "$ac_cv_c_bigendian" = unknown; then
4959 ac_cv_c_bigendian=no
4960 else
4961 # finding both strings is unlikely to happen, but who knows?
4962 ac_cv_c_bigendian=unknown
4963 fi
4964fi
4965else
4966 echo "$as_me: failed program was:" >&5
4967cat conftest.$ac_ext >&5
4968fi
4969rm -f conftest.$ac_objext conftest.$ac_ext
4970else
4971 cat >conftest.$ac_ext <<_ACEOF
4972#line $LINENO "configure"
4973#include "confdefs.h"
4974int
4975main ()
4976{
4977 /* Are we little or big endian? From Harbison&Steele. */
4978 union
4979 {
4980 long l;
4981 char c[sizeof (long)];
4982 } u;
4983 u.l = 1;
4984 exit (u.c[sizeof (long) - 1] == 1);
4985}
4986_ACEOF
4987rm -f conftest$ac_exeext
4988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4989 (eval $ac_link) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_c_bigendian=no
4999else
5000 echo "$as_me: program exited with status $ac_status" >&5
5001echo "$as_me: failed program was:" >&5
5002cat conftest.$ac_ext >&5
5003( exit $ac_status )
5004ac_cv_c_bigendian=yes
5005fi
5006rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5007fi
5008fi
5009rm -f conftest.$ac_objext conftest.$ac_ext
5010fi
5011echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5012echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5013case $ac_cv_c_bigendian in
5014 yes)
5015
5016cat >>confdefs.h <<\_ACEOF
5017#define WORDS_BIGENDIAN 1
5018_ACEOF
5019 ;;
5020 no)
5021 ;;
5022 *)
5023 { { echo "$as_me:$LINENO: error: unknown endianess
5024presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5025echo "$as_me: error: unknown endianess
5026presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5028esac
paul718e3742002-12-13 20:15:29 +00005029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs
5045do
5046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5047echo "$as_me:$LINENO: checking for $ac_func" >&5
5048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5049if eval "test \"\${$as_ac_var+set}\" = set"; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052 cat >conftest.$ac_ext <<_ACEOF
5053#line $LINENO "configure"
5054#include "confdefs.h"
5055/* System header to define __stub macros and hopefully few prototypes,
5056 which can conflict with char $ac_func (); below. */
5057#include <assert.h>
5058/* Override any gcc2 internal prototype to avoid an error. */
5059#ifdef __cplusplus
5060extern "C"
5061#endif
5062/* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5064char $ac_func ();
5065char (*f) ();
5066
paulccf35572003-03-01 11:42:20 +00005067#ifdef F77_DUMMY_MAIN
5068# ifdef __cplusplus
5069 extern "C"
5070# endif
5071 int F77_DUMMY_MAIN() { return 1; }
5072#endif
paul718e3742002-12-13 20:15:29 +00005073int
5074main ()
5075{
5076/* The GNU C library defines this for functions which it implements
5077 to always fail with ENOSYS. Some functions are actually named
5078 something starting with __ and the normal name is an alias. */
5079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5080choke me
5081#else
5082f = $ac_func;
5083#endif
5084
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.$ac_objext conftest$ac_exeext
5090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -s conftest$ac_exeext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 eval "$as_ac_var=yes"
5102else
5103 echo "$as_me: failed program was:" >&5
5104cat conftest.$ac_ext >&5
5105eval "$as_ac_var=no"
5106fi
5107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5108fi
5109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5111if test `eval echo '${'$as_ac_var'}'` = yes; then
5112 cat >>confdefs.h <<_ACEOF
5113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5114_ACEOF
5115
5116fi
5117done
5118
5119
5120for ac_func in setproctitle
5121do
5122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5123echo "$as_me:$LINENO: checking for $ac_func" >&5
5124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5125if eval "test \"\${$as_ac_var+set}\" = set"; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 cat >conftest.$ac_ext <<_ACEOF
5129#line $LINENO "configure"
5130#include "confdefs.h"
5131/* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char $ac_func (); below. */
5133#include <assert.h>
5134/* Override any gcc2 internal prototype to avoid an error. */
5135#ifdef __cplusplus
5136extern "C"
5137#endif
5138/* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5140char $ac_func ();
5141char (*f) ();
5142
paulccf35572003-03-01 11:42:20 +00005143#ifdef F77_DUMMY_MAIN
5144# ifdef __cplusplus
5145 extern "C"
5146# endif
5147 int F77_DUMMY_MAIN() { return 1; }
5148#endif
paul718e3742002-12-13 20:15:29 +00005149int
5150main ()
5151{
5152/* The GNU C library defines this for functions which it implements
5153 to always fail with ENOSYS. Some functions are actually named
5154 something starting with __ and the normal name is an alias. */
5155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5156choke me
5157#else
5158f = $ac_func;
5159#endif
5160
5161 ;
5162 return 0;
5163}
5164_ACEOF
5165rm -f conftest.$ac_objext conftest$ac_exeext
5166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167 (eval $ac_link) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -s conftest$ac_exeext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 (eval $ac_try) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 eval "$as_ac_var=yes"
5178else
5179 echo "$as_me: failed program was:" >&5
5180cat conftest.$ac_ext >&5
5181eval "$as_ac_var=no"
5182fi
5183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5184fi
5185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5187if test `eval echo '${'$as_ac_var'}'` = yes; then
5188 cat >>confdefs.h <<_ACEOF
5189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5190_ACEOF
5191
5192else
5193 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5194echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5195if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198 ac_check_lib_save_LIBS=$LIBS
5199LIBS="-lutil $LIBS"
5200cat >conftest.$ac_ext <<_ACEOF
5201#line $LINENO "configure"
5202#include "confdefs.h"
5203
5204/* Override any gcc2 internal prototype to avoid an error. */
5205#ifdef __cplusplus
5206extern "C"
5207#endif
5208/* We use char because int might match the return type of a gcc2
5209 builtin and then its argument prototype would still apply. */
5210char setproctitle ();
paulccf35572003-03-01 11:42:20 +00005211#ifdef F77_DUMMY_MAIN
5212# ifdef __cplusplus
5213 extern "C"
5214# endif
5215 int F77_DUMMY_MAIN() { return 1; }
5216#endif
paul718e3742002-12-13 20:15:29 +00005217int
5218main ()
5219{
5220setproctitle ();
5221 ;
5222 return 0;
5223}
5224_ACEOF
5225rm -f conftest.$ac_objext conftest$ac_exeext
5226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5227 (eval $ac_link) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -s conftest$ac_exeext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_lib_util_setproctitle=yes
5238else
5239 echo "$as_me: failed program was:" >&5
5240cat conftest.$ac_ext >&5
5241ac_cv_lib_util_setproctitle=no
5242fi
5243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5244LIBS=$ac_check_lib_save_LIBS
5245fi
5246echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5247echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5248if test $ac_cv_lib_util_setproctitle = yes; then
5249 LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF
5250#define HAVE_SETPROCTITLE 1
5251_ACEOF
5252
5253fi
5254
5255fi
5256done
5257
5258
5259echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
5260echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
5261if test x"$opsys" = x"gnu-linux"; then
5262 if test "${enable_netlink}" = "yes";then
5263 echo "$as_me:$LINENO: result: netlink" >&5
5264echo "${ECHO_T}netlink" >&6
5265 RT_METHOD=rt_netlink.o
paulccf35572003-03-01 11:42:20 +00005266
5267cat >>confdefs.h <<\_ACEOF
5268#define HAVE_NETLINK
paul718e3742002-12-13 20:15:29 +00005269_ACEOF
5270
5271 netlink=yes
5272 elif test "${enable_netlink}" = "no"; then
5273 echo "$as_me:$LINENO: result: ioctl" >&5
5274echo "${ECHO_T}ioctl" >&6
5275 RT_METHOD=rt_ioctl.o
5276 netlink=no
5277 else
paulccf35572003-03-01 11:42:20 +00005278 echo "$as_me:$LINENO: result: netlink" >&5
paul718e3742002-12-13 20:15:29 +00005279echo "${ECHO_T}netlink" >&6
5280 RT_METHOD=rt_netlink.o
paulccf35572003-03-01 11:42:20 +00005281
5282cat >>confdefs.h <<\_ACEOF
5283#define HAVE_NETLINK
paul718e3742002-12-13 20:15:29 +00005284_ACEOF
5285
5286 netlink=yes
paul718e3742002-12-13 20:15:29 +00005287 fi
5288else
5289 if test "$opsys" = "sol2-6";then
5290 echo "$as_me:$LINENO: result: solaris" >&5
5291echo "${ECHO_T}solaris" >&6
5292 KERNEL_METHOD="kernel_socket.o"
5293 RT_METHOD="rt_socket.o"
5294 else
5295 if test "$cross_compiling" = yes; then
5296 KERNEL_METHOD=kernel_socket.o
5297 RT_METHOD=rt_socket.o
5298 echo "$as_me:$LINENO: result: socket" >&5
5299echo "${ECHO_T}socket" >&6
5300else
5301 cat >conftest.$ac_ext <<_ACEOF
5302#line $LINENO "configure"
5303#include "confdefs.h"
5304#include <errno.h>
5305#include <sys/types.h>
5306#include <sys/socket.h>
5307
5308main ()
5309{
5310 int ac_sock;
5311
5312 ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
5313 if (ac_sock < 0 && errno == EINVAL)
5314 exit (1);
5315 exit (0);
5316}
5317_ACEOF
5318rm -f 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); } && { ac_try='./conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
paulccf35572003-03-01 11:42:20 +00005329 KERNEL_METHOD=kernel_socket.o
paul718e3742002-12-13 20:15:29 +00005330 RT_METHOD=rt_socket.o
5331 echo "$as_me:$LINENO: result: socket" >&5
5332echo "${ECHO_T}socket" >&6
5333else
5334 echo "$as_me: program exited with status $ac_status" >&5
5335echo "$as_me: failed program was:" >&5
5336cat conftest.$ac_ext >&5
5337( exit $ac_status )
5338RT_METHOD=rt_ioctl.o
5339 echo "$as_me:$LINENO: result: ioctl" >&5
5340echo "${ECHO_T}ioctl" >&6
5341fi
paulccf35572003-03-01 11:42:20 +00005342rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00005343fi
5344 fi
5345fi
5346
5347
5348
5349
5350echo "$as_me:$LINENO: checking route read method check" >&5
5351echo $ECHO_N "checking route read method check... $ECHO_C" >&6
5352if test "${zebra_rtread+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 if test "$netlink" = yes; then
5356 RTREAD_METHOD="rtread_netlink.o"
5357 zebra_rtread="netlink"
5358else
5359for zebra_rtread in /proc/net/route /dev/ip /dev/null;
5360do
5361 test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
5362done
5363case $zebra_rtread in
5364 "/proc/net/route") RTREAD_METHOD="rtread_proc.o"
5365 zebra_rtread="proc";;
5366 "/dev/ip") RTREAD_METHOD="rtread_getmsg.o"
5367 zebra_rtread="getmsg";;
5368 *) RTREAD_METHOD="rtread_sysctl.o"
5369 zebra_rtread="sysctl";;
5370esac
5371fi
5372fi
5373echo "$as_me:$LINENO: result: $zebra_rtread" >&5
5374echo "${ECHO_T}$zebra_rtread" >&6
5375
5376
5377echo "$as_me:$LINENO: checking interface looking up method" >&5
5378echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
5379if test "$netlink" = yes; then
5380 echo "$as_me:$LINENO: result: netlink" >&5
5381echo "${ECHO_T}netlink" >&6
5382 IF_METHOD=if_netlink.o
5383else
5384 if test "$opsys" = "sol2-6";then
5385 echo "$as_me:$LINENO: result: solaris" >&5
5386echo "${ECHO_T}solaris" >&6
5387 IF_METHOD=if_ioctl.o
5388 elif test "$opsys" = "openbsd";then
5389 echo "$as_me:$LINENO: result: openbsd" >&5
5390echo "${ECHO_T}openbsd" >&6
5391 IF_METHOD=if_ioctl.o
5392 elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
5393 echo "$as_me:$LINENO: result: sysctl" >&5
5394echo "${ECHO_T}sysctl" >&6
5395 IF_METHOD=if_sysctl.o
paulccf35572003-03-01 11:42:20 +00005396
5397cat >>confdefs.h <<\_ACEOF
5398#define HAVE_NET_RT_IFLIST
paul718e3742002-12-13 20:15:29 +00005399_ACEOF
5400
5401 else
5402 echo "$as_me:$LINENO: result: ioctl" >&5
5403echo "${ECHO_T}ioctl" >&6
5404 IF_METHOD=if_ioctl.o
5405 fi
5406fi
5407
5408
5409if test -r /proc/net/dev; then
paulccf35572003-03-01 11:42:20 +00005410
5411cat >>confdefs.h <<\_ACEOF
5412#define HAVE_PROC_NET_DEV
paul718e3742002-12-13 20:15:29 +00005413_ACEOF
5414
5415 IF_PROC=if_proc.o
5416fi
5417
5418if test -r /proc/net/if_inet6; then
paulccf35572003-03-01 11:42:20 +00005419
5420cat >>confdefs.h <<\_ACEOF
5421#define HAVE_PROC_NET_IF_INET6
paul718e3742002-12-13 20:15:29 +00005422_ACEOF
5423
5424 IF_PROC=if_proc.o
5425fi
5426
5427
5428echo "$as_me:$LINENO: checking ipforward method check" >&5
5429echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
5430if test "${zebra_ipforward_path+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433 for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
5434do
5435 test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
5436done
5437case $zebra_ipforward_path in
5438 "/proc/net/snmp") IPFORWARD=ipforward_proc.o
5439 zebra_ipforward_path="proc";;
5440 "/dev/ip")
5441 case "$host" in
5442 *-nec-sysv4*) IPFORWARD=ipforward_ews.o
5443 zebra_ipforward_path="ews";;
5444 *) IPFORWARD=ipforward_solaris.o
5445 zebra_ipforward_path="solaris";;
5446 esac;;
5447 *) IPFORWARD=ipforward_sysctl.o
5448 zebra_ipforward_path="sysctl";;
5449esac
5450fi
5451echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
5452echo "${ECHO_T}$zebra_ipforward_path" >&6
5453
5454
5455
5456for ac_func in getaddrinfo
5457do
5458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5459echo "$as_me:$LINENO: checking for $ac_func" >&5
5460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5461if eval "test \"\${$as_ac_var+set}\" = set"; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464 cat >conftest.$ac_ext <<_ACEOF
5465#line $LINENO "configure"
5466#include "confdefs.h"
5467/* System header to define __stub macros and hopefully few prototypes,
5468 which can conflict with char $ac_func (); below. */
5469#include <assert.h>
5470/* Override any gcc2 internal prototype to avoid an error. */
5471#ifdef __cplusplus
5472extern "C"
5473#endif
5474/* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5476char $ac_func ();
5477char (*f) ();
5478
paulccf35572003-03-01 11:42:20 +00005479#ifdef F77_DUMMY_MAIN
5480# ifdef __cplusplus
5481 extern "C"
5482# endif
5483 int F77_DUMMY_MAIN() { return 1; }
5484#endif
paul718e3742002-12-13 20:15:29 +00005485int
5486main ()
5487{
5488/* The GNU C library defines this for functions which it implements
5489 to always fail with ENOSYS. Some functions are actually named
5490 something starting with __ and the normal name is an alias. */
5491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5492choke me
5493#else
5494f = $ac_func;
5495#endif
5496
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501rm -f conftest.$ac_objext conftest$ac_exeext
5502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5503 (eval $ac_link) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } &&
5507 { ac_try='test -s conftest$ac_exeext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 eval "$as_ac_var=yes"
5514else
5515 echo "$as_me: failed program was:" >&5
5516cat conftest.$ac_ext >&5
5517eval "$as_ac_var=no"
5518fi
5519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5520fi
5521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5522echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5523if test `eval echo '${'$as_ac_var'}'` = yes; then
5524 cat >>confdefs.h <<_ACEOF
5525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5526_ACEOF
5527 have_getaddrinfo=yes
5528else
5529 have_getaddrinfo=no
5530fi
5531done
5532
5533
5534echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
5535echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
5536if test "${enable_ipv6}" = "no"; then
5537 echo "$as_me:$LINENO: result: disabled" >&5
5538echo "${ECHO_T}disabled" >&6
5539else
5540if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
5541 zebra_cv_ipv6=yes
paulccf35572003-03-01 11:42:20 +00005542
5543cat >>confdefs.h <<\_ACEOF
5544#define HAVE_IPV6
paul718e3742002-12-13 20:15:29 +00005545_ACEOF
5546
paulccf35572003-03-01 11:42:20 +00005547
5548cat >>confdefs.h <<\_ACEOF
5549#define INRIA_IPV6
paul718e3742002-12-13 20:15:29 +00005550_ACEOF
5551
5552 RIPNGD="ripngd"
5553 OSPF6D="ospf6d"
5554 LIB_IPV6=""
5555 echo "$as_me:$LINENO: result: INRIA IPv6" >&5
5556echo "${ECHO_T}INRIA IPv6" >&6
5557fi
5558if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
5559 zebra_cv_ipv6=yes
paulccf35572003-03-01 11:42:20 +00005560
5561cat >>confdefs.h <<\_ACEOF
5562#define HAVE_IPV6
paul718e3742002-12-13 20:15:29 +00005563_ACEOF
5564
paulccf35572003-03-01 11:42:20 +00005565
5566cat >>confdefs.h <<\_ACEOF
5567#define KAME
paul718e3742002-12-13 20:15:29 +00005568_ACEOF
5569
5570 RIPNGD="ripngd"
5571 OSPF6D="ospf6d"
5572 if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
5573 LIB_IPV6="-L/usr/local/v6/lib -linet6"
5574 fi
5575 echo "$as_me:$LINENO: result: KAME" >&5
5576echo "${ECHO_T}KAME" >&6
5577fi
5578if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
5579 zebra_cv_ipv6=yes
paulccf35572003-03-01 11:42:20 +00005580
5581cat >>confdefs.h <<\_ACEOF
5582#define HAVE_IPV6
paul718e3742002-12-13 20:15:29 +00005583_ACEOF
5584
paulccf35572003-03-01 11:42:20 +00005585
5586cat >>confdefs.h <<\_ACEOF
5587#define NRL
paul718e3742002-12-13 20:15:29 +00005588_ACEOF
5589
5590 RIPNGD="ripngd"
5591 OSPF6D="ospf6d"
5592 if test x"$opsys" = x"bsdi";then
paulccf35572003-03-01 11:42:20 +00005593
5594cat >>confdefs.h <<\_ACEOF
5595#define BSDI_NRL
paul718e3742002-12-13 20:15:29 +00005596_ACEOF
5597
5598 echo "$as_me:$LINENO: result: BSDI_NRL" >&5
5599echo "${ECHO_T}BSDI_NRL" >&6
5600 else
5601 echo "$as_me:$LINENO: result: NRL" >&5
5602echo "${ECHO_T}NRL" >&6
5603 fi
5604fi
5605
5606if test "${enable_ipv6}" = "yes"; then
5607 cat >conftest.$ac_ext <<_ACEOF
5608#line $LINENO "configure"
5609#include "confdefs.h"
5610
5611 #include <linux/version.h>
5612 /* 2.1.128 or later */
5613 #if LINUX_VERSION_CODE >= 0x020180
5614 yes
5615 #endif
5616_ACEOF
5617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00005618 egrep "yes" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00005619 zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$as_me:$LINENO: result: Linux IPv6" >&5
5620echo "${ECHO_T}Linux IPv6" >&6
5621fi
5622rm -f conftest*
5623
5624else
5625 if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
5626 then
5627 zebra_cv_ipv6=yes
5628 zebra_cv_linux_ipv6=yes
5629 echo "$as_me:$LINENO: result: Linux IPv6" >&5
5630echo "${ECHO_T}Linux IPv6" >&6
5631 fi
5632fi
5633
5634if test "$zebra_cv_linux_ipv6" = "yes";then
5635 cat >>confdefs.h <<\_ACEOF
5636#define HAVE_IPV6 1
5637_ACEOF
5638
5639 echo "$as_me:$LINENO: checking for GNU libc 2.1" >&5
5640echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5642#line $LINENO "configure"
5643#include "confdefs.h"
5644
5645#include <features.h>
5646#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5647 yes
5648#endif
5649_ACEOF
5650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00005651 egrep "yes" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00005652 glibc=yes; echo "$as_me:$LINENO: result: yes" >&5
5653echo "${ECHO_T}yes" >&6
5654else
5655 echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6
5657fi
5658rm -f conftest*
5659
paulccf35572003-03-01 11:42:20 +00005660
5661cat >>confdefs.h <<\_ACEOF
5662#define LINUX_IPV6
paul718e3742002-12-13 20:15:29 +00005663_ACEOF
5664
5665 RIPNGD="ripngd"
5666 OSPF6D="ospf6d"
5667 if test "$glibc" != "yes"; then
5668 INCLUDES="-I/usr/inet6/include"
5669 if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
5670 LIB_IPV6="-L/usr/inet6/lib -linet6"
5671 fi
5672 fi
5673fi
5674
5675LIBS="$LIB_IPV6 $LIBS"
5676
5677
5678if test x"$RIPNGD" = x""; then
5679 echo "$as_me:$LINENO: result: IPv4 only" >&5
5680echo "${ECHO_T}IPv4 only" >&6
5681fi
5682fi
5683
5684if test "${enable_zebra}" = "no";then
5685 ZEBRA=""
5686else
5687 ZEBRA="zebra"
5688fi
5689
5690if test "${enable_bgpd}" = "no";then
5691 BGPD=""
5692else
5693 BGPD="bgpd"
5694fi
5695
5696if test "${enable_ripd}" = "no";then
5697 RIPD=""
5698else
5699 RIPD="ripd"
5700fi
5701
5702if test "${enable_ospfd}" = "no";then
5703 OSPFD=""
5704else
5705 OSPFD="ospfd"
5706fi
5707
5708case "${enable_ripngd}" in
5709 "yes") RIPNGD="ripngd";;
5710 "no" ) RIPNGD="";;
5711 * ) ;;
5712esac
5713
5714case "${enable_ospf6d}" in
5715 "yes") OSPF6D="ospf6d";;
5716 "no" ) OSPF6D="";;
5717 * ) ;;
5718esac
5719
5720if test "${enable_bgp_announce}" = "no";then
paulccf35572003-03-01 11:42:20 +00005721
5722cat >>confdefs.h <<\_ACEOF
5723#define DISABLE_BGP_ANNOUNCE
paul718e3742002-12-13 20:15:29 +00005724_ACEOF
5725
5726fi
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
5738echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
5739if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742 ac_check_lib_save_LIBS=$LIBS
5743LIBS="-lc $LIBS"
5744cat >conftest.$ac_ext <<_ACEOF
5745#line $LINENO "configure"
5746#include "confdefs.h"
5747
5748/* Override any gcc2 internal prototype to avoid an error. */
5749#ifdef __cplusplus
5750extern "C"
5751#endif
5752/* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */
5754char inet_ntop ();
paulccf35572003-03-01 11:42:20 +00005755#ifdef F77_DUMMY_MAIN
5756# ifdef __cplusplus
5757 extern "C"
5758# endif
5759 int F77_DUMMY_MAIN() { return 1; }
5760#endif
paul718e3742002-12-13 20:15:29 +00005761int
5762main ()
5763{
5764inet_ntop ();
5765 ;
5766 return 0;
5767}
5768_ACEOF
5769rm -f conftest.$ac_objext conftest$ac_exeext
5770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771 (eval $ac_link) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest$ac_exeext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_lib_c_inet_ntop=yes
5782else
5783 echo "$as_me: failed program was:" >&5
5784cat conftest.$ac_ext >&5
5785ac_cv_lib_c_inet_ntop=no
5786fi
5787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5788LIBS=$ac_check_lib_save_LIBS
5789fi
5790echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
5791echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
5792if test $ac_cv_lib_c_inet_ntop = yes; then
paulccf35572003-03-01 11:42:20 +00005793
5794cat >>confdefs.h <<\_ACEOF
5795#define HAVE_INET_NTOP
paul718e3742002-12-13 20:15:29 +00005796_ACEOF
5797
5798fi
5799
5800echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
5801echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
5802if test "${ac_cv_lib_c_inet_pton+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805 ac_check_lib_save_LIBS=$LIBS
5806LIBS="-lc $LIBS"
5807cat >conftest.$ac_ext <<_ACEOF
5808#line $LINENO "configure"
5809#include "confdefs.h"
5810
5811/* Override any gcc2 internal prototype to avoid an error. */
5812#ifdef __cplusplus
5813extern "C"
5814#endif
5815/* We use char because int might match the return type of a gcc2
5816 builtin and then its argument prototype would still apply. */
5817char inet_pton ();
paulccf35572003-03-01 11:42:20 +00005818#ifdef F77_DUMMY_MAIN
5819# ifdef __cplusplus
5820 extern "C"
5821# endif
5822 int F77_DUMMY_MAIN() { return 1; }
5823#endif
paul718e3742002-12-13 20:15:29 +00005824int
5825main ()
5826{
5827inet_pton ();
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832rm -f conftest.$ac_objext conftest$ac_exeext
5833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -s conftest$ac_exeext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_lib_c_inet_pton=yes
5845else
5846 echo "$as_me: failed program was:" >&5
5847cat conftest.$ac_ext >&5
5848ac_cv_lib_c_inet_pton=no
5849fi
5850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5851LIBS=$ac_check_lib_save_LIBS
5852fi
5853echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
5854echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
5855if test $ac_cv_lib_c_inet_pton = yes; then
paulccf35572003-03-01 11:42:20 +00005856
5857cat >>confdefs.h <<\_ACEOF
5858#define HAVE_INET_PTON
paul718e3742002-12-13 20:15:29 +00005859_ACEOF
5860
5861fi
5862
5863
5864echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
5865echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
5866if test "${ac_cv_lib_crypt_crypt+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 ac_check_lib_save_LIBS=$LIBS
5870LIBS="-lcrypt $LIBS"
5871cat >conftest.$ac_ext <<_ACEOF
5872#line $LINENO "configure"
5873#include "confdefs.h"
5874
5875/* Override any gcc2 internal prototype to avoid an error. */
5876#ifdef __cplusplus
5877extern "C"
5878#endif
5879/* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5881char crypt ();
paulccf35572003-03-01 11:42:20 +00005882#ifdef F77_DUMMY_MAIN
5883# ifdef __cplusplus
5884 extern "C"
5885# endif
5886 int F77_DUMMY_MAIN() { return 1; }
5887#endif
paul718e3742002-12-13 20:15:29 +00005888int
5889main ()
5890{
5891crypt ();
5892 ;
5893 return 0;
5894}
5895_ACEOF
5896rm -f conftest.$ac_objext conftest$ac_exeext
5897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5898 (eval $ac_link) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -s conftest$ac_exeext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_cv_lib_crypt_crypt=yes
5909else
5910 echo "$as_me: failed program was:" >&5
5911cat conftest.$ac_ext >&5
5912ac_cv_lib_crypt_crypt=no
5913fi
5914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5915LIBS=$ac_check_lib_save_LIBS
5916fi
5917echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
5918echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
5919if test $ac_cv_lib_crypt_crypt = yes; then
5920 cat >>confdefs.h <<_ACEOF
5921#define HAVE_LIBCRYPT 1
5922_ACEOF
5923
5924 LIBS="-lcrypt $LIBS"
5925
5926fi
5927
5928
5929echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
5930echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
5931if test "${ac_cv_lib_resolv_res_init+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934 ac_check_lib_save_LIBS=$LIBS
5935LIBS="-lresolv $LIBS"
5936cat >conftest.$ac_ext <<_ACEOF
5937#line $LINENO "configure"
5938#include "confdefs.h"
5939
5940/* Override any gcc2 internal prototype to avoid an error. */
5941#ifdef __cplusplus
5942extern "C"
5943#endif
5944/* We use char because int might match the return type of a gcc2
5945 builtin and then its argument prototype would still apply. */
5946char res_init ();
paulccf35572003-03-01 11:42:20 +00005947#ifdef F77_DUMMY_MAIN
5948# ifdef __cplusplus
5949 extern "C"
5950# endif
5951 int F77_DUMMY_MAIN() { return 1; }
5952#endif
paul718e3742002-12-13 20:15:29 +00005953int
5954main ()
5955{
5956res_init ();
5957 ;
5958 return 0;
5959}
5960_ACEOF
5961rm -f conftest.$ac_objext conftest$ac_exeext
5962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -s conftest$ac_exeext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 (eval $ac_try) 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 ac_cv_lib_resolv_res_init=yes
5974else
5975 echo "$as_me: failed program was:" >&5
5976cat conftest.$ac_ext >&5
5977ac_cv_lib_resolv_res_init=no
5978fi
5979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5980LIBS=$ac_check_lib_save_LIBS
5981fi
5982echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
5983echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
5984if test $ac_cv_lib_resolv_res_init = yes; then
5985 cat >>confdefs.h <<_ACEOF
5986#define HAVE_LIBRESOLV 1
5987_ACEOF
5988
5989 LIBS="-lresolv $LIBS"
5990
5991fi
5992
5993
5994echo "$as_me:$LINENO: checking for main in -lm" >&5
5995echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5996if test "${ac_cv_lib_m_main+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999 ac_check_lib_save_LIBS=$LIBS
6000LIBS="-lm $LIBS"
6001cat >conftest.$ac_ext <<_ACEOF
6002#line $LINENO "configure"
6003#include "confdefs.h"
6004
6005
paulccf35572003-03-01 11:42:20 +00006006#ifdef F77_DUMMY_MAIN
6007# ifdef __cplusplus
6008 extern "C"
6009# endif
6010 int F77_DUMMY_MAIN() { return 1; }
6011#endif
paul718e3742002-12-13 20:15:29 +00006012int
6013main ()
6014{
6015main ();
6016 ;
6017 return 0;
6018}
6019_ACEOF
6020rm -f conftest.$ac_objext conftest$ac_exeext
6021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6022 (eval $ac_link) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_lib_m_main=yes
6033else
6034 echo "$as_me: failed program was:" >&5
6035cat conftest.$ac_ext >&5
6036ac_cv_lib_m_main=no
6037fi
6038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6039LIBS=$ac_check_lib_save_LIBS
6040fi
6041echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6042echo "${ECHO_T}$ac_cv_lib_m_main" >&6
6043if test $ac_cv_lib_m_main = yes; then
6044 cat >>confdefs.h <<_ACEOF
6045#define HAVE_LIBM 1
6046_ACEOF
6047
6048 LIBS="-lm $LIBS"
6049
6050fi
6051
6052
6053echo "$as_me:$LINENO: checking for __inet_ntop" >&5
6054echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
6055if test "${ac_cv_func___inet_ntop+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058 cat >conftest.$ac_ext <<_ACEOF
6059#line $LINENO "configure"
6060#include "confdefs.h"
6061/* System header to define __stub macros and hopefully few prototypes,
6062 which can conflict with char __inet_ntop (); below. */
6063#include <assert.h>
6064/* Override any gcc2 internal prototype to avoid an error. */
6065#ifdef __cplusplus
6066extern "C"
6067#endif
6068/* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6070char __inet_ntop ();
6071char (*f) ();
6072
paulccf35572003-03-01 11:42:20 +00006073#ifdef F77_DUMMY_MAIN
6074# ifdef __cplusplus
6075 extern "C"
6076# endif
6077 int F77_DUMMY_MAIN() { return 1; }
6078#endif
paul718e3742002-12-13 20:15:29 +00006079int
6080main ()
6081{
6082/* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
6086choke me
6087#else
6088f = __inet_ntop;
6089#endif
6090
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext conftest$ac_exeext
6096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097 (eval $ac_link) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -s conftest$ac_exeext'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 (eval $ac_try) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 ac_cv_func___inet_ntop=yes
6108else
6109 echo "$as_me: failed program was:" >&5
6110cat conftest.$ac_ext >&5
6111ac_cv_func___inet_ntop=no
6112fi
6113rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6114fi
6115echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
6116echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
6117if test $ac_cv_func___inet_ntop = yes; then
6118 cat >>confdefs.h <<\_ACEOF
6119#define HAVE_INET_NTOP 1
6120_ACEOF
6121
6122fi
6123
6124echo "$as_me:$LINENO: checking for __inet_pton" >&5
6125echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
6126if test "${ac_cv_func___inet_pton+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128else
6129 cat >conftest.$ac_ext <<_ACEOF
6130#line $LINENO "configure"
6131#include "confdefs.h"
6132/* System header to define __stub macros and hopefully few prototypes,
6133 which can conflict with char __inet_pton (); below. */
6134#include <assert.h>
6135/* Override any gcc2 internal prototype to avoid an error. */
6136#ifdef __cplusplus
6137extern "C"
6138#endif
6139/* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6141char __inet_pton ();
6142char (*f) ();
6143
paulccf35572003-03-01 11:42:20 +00006144#ifdef F77_DUMMY_MAIN
6145# ifdef __cplusplus
6146 extern "C"
6147# endif
6148 int F77_DUMMY_MAIN() { return 1; }
6149#endif
paul718e3742002-12-13 20:15:29 +00006150int
6151main ()
6152{
6153/* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
6157choke me
6158#else
6159f = __inet_pton;
6160#endif
6161
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext conftest$ac_exeext
6167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168 (eval $ac_link) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -s conftest$ac_exeext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 ac_cv_func___inet_pton=yes
6179else
6180 echo "$as_me: failed program was:" >&5
6181cat conftest.$ac_ext >&5
6182ac_cv_func___inet_pton=no
6183fi
6184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6185fi
6186echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
6187echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
6188if test $ac_cv_func___inet_pton = yes; then
6189 cat >>confdefs.h <<\_ACEOF
6190#define HAVE_INET_PTON 1
6191_ACEOF
6192
6193fi
6194
6195echo "$as_me:$LINENO: checking for __inet_aton" >&5
6196echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
6197if test "${ac_cv_func___inet_aton+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 cat >conftest.$ac_ext <<_ACEOF
6201#line $LINENO "configure"
6202#include "confdefs.h"
6203/* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char __inet_aton (); below. */
6205#include <assert.h>
6206/* Override any gcc2 internal prototype to avoid an error. */
6207#ifdef __cplusplus
6208extern "C"
6209#endif
6210/* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6212char __inet_aton ();
6213char (*f) ();
6214
paulccf35572003-03-01 11:42:20 +00006215#ifdef F77_DUMMY_MAIN
6216# ifdef __cplusplus
6217 extern "C"
6218# endif
6219 int F77_DUMMY_MAIN() { return 1; }
6220#endif
paul718e3742002-12-13 20:15:29 +00006221int
6222main ()
6223{
6224/* The GNU C library defines this for functions which it implements
6225 to always fail with ENOSYS. Some functions are actually named
6226 something starting with __ and the normal name is an alias. */
6227#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
6228choke me
6229#else
6230f = __inet_aton;
6231#endif
6232
6233 ;
6234 return 0;
6235}
6236_ACEOF
6237rm -f conftest.$ac_objext conftest$ac_exeext
6238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239 (eval $ac_link) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -s conftest$ac_exeext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_func___inet_aton=yes
6250else
6251 echo "$as_me: failed program was:" >&5
6252cat conftest.$ac_ext >&5
6253ac_cv_func___inet_aton=no
6254fi
6255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6256fi
6257echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
6258echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
6259if test $ac_cv_func___inet_aton = yes; then
6260 cat >>confdefs.h <<\_ACEOF
6261#define HAVE_INET_ATON 1
6262_ACEOF
6263
6264fi
6265
6266
6267echo "$as_me:$LINENO: checking for regexec in -lc" >&5
6268echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
6269if test "${ac_cv_lib_c_regexec+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272 ac_check_lib_save_LIBS=$LIBS
6273LIBS="-lc $LIBS"
6274cat >conftest.$ac_ext <<_ACEOF
6275#line $LINENO "configure"
6276#include "confdefs.h"
6277
6278/* Override any gcc2 internal prototype to avoid an error. */
6279#ifdef __cplusplus
6280extern "C"
6281#endif
6282/* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6284char regexec ();
paulccf35572003-03-01 11:42:20 +00006285#ifdef F77_DUMMY_MAIN
6286# ifdef __cplusplus
6287 extern "C"
6288# endif
6289 int F77_DUMMY_MAIN() { return 1; }
6290#endif
paul718e3742002-12-13 20:15:29 +00006291int
6292main ()
6293{
6294regexec ();
6295 ;
6296 return 0;
6297}
6298_ACEOF
6299rm -f conftest.$ac_objext conftest$ac_exeext
6300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6301 (eval $ac_link) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -s conftest$ac_exeext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_lib_c_regexec=yes
6312else
6313 echo "$as_me: failed program was:" >&5
6314cat conftest.$ac_ext >&5
6315ac_cv_lib_c_regexec=no
6316fi
6317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6318LIBS=$ac_check_lib_save_LIBS
6319fi
6320echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
6321echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
6322if test $ac_cv_lib_c_regexec = yes; then
paulccf35572003-03-01 11:42:20 +00006323
6324cat >>confdefs.h <<\_ACEOF
6325#define HAVE_GNU_REGEX
paul718e3742002-12-13 20:15:29 +00006326_ACEOF
6327
6328 LIB_REGEX=""
6329else
6330 LIB_REGEX="regex.o"
6331fi
6332
6333
6334
paul718e3742002-12-13 20:15:29 +00006335if test "${enable_snmp}" = "yes";then
6336 old_libs="${LIBS}"
6337 LIBS="-L/usr/local/lib"
6338 unset ac_cv_lib_snmp_asn_parse_int
6339 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6340echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6341if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344 ac_check_lib_save_LIBS=$LIBS
6345LIBS="-lsnmp $LIBS"
6346cat >conftest.$ac_ext <<_ACEOF
6347#line $LINENO "configure"
6348#include "confdefs.h"
6349
6350/* Override any gcc2 internal prototype to avoid an error. */
6351#ifdef __cplusplus
6352extern "C"
6353#endif
6354/* We use char because int might match the return type of a gcc2
6355 builtin and then its argument prototype would still apply. */
6356char asn_parse_int ();
paulccf35572003-03-01 11:42:20 +00006357#ifdef F77_DUMMY_MAIN
6358# ifdef __cplusplus
6359 extern "C"
6360# endif
6361 int F77_DUMMY_MAIN() { return 1; }
6362#endif
paul718e3742002-12-13 20:15:29 +00006363int
6364main ()
6365{
6366asn_parse_int ();
6367 ;
6368 return 0;
6369}
6370_ACEOF
6371rm -f conftest.$ac_objext conftest$ac_exeext
6372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_lib_snmp_asn_parse_int=yes
6384else
6385 echo "$as_me: failed program was:" >&5
6386cat conftest.$ac_ext >&5
6387ac_cv_lib_snmp_asn_parse_int=no
6388fi
6389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390LIBS=$ac_check_lib_save_LIBS
6391fi
6392echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6393echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6394if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6395 HAVE_SNMP=yes
6396fi
6397
6398 if test "${HAVE_SNMP}" = ""; then
6399 unset ac_cv_lib_snmp_asn_parse_int
6400 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6401echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
6402if test "${ac_cv_lib_crypto_main+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405 ac_check_lib_save_LIBS=$LIBS
6406LIBS="-lcrypto $LIBS"
6407cat >conftest.$ac_ext <<_ACEOF
6408#line $LINENO "configure"
6409#include "confdefs.h"
6410
6411
paulccf35572003-03-01 11:42:20 +00006412#ifdef F77_DUMMY_MAIN
6413# ifdef __cplusplus
6414 extern "C"
6415# endif
6416 int F77_DUMMY_MAIN() { return 1; }
6417#endif
paul718e3742002-12-13 20:15:29 +00006418int
6419main ()
6420{
6421main ();
6422 ;
6423 return 0;
6424}
6425_ACEOF
6426rm -f conftest.$ac_objext conftest$ac_exeext
6427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6428 (eval $ac_link) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_lib_crypto_main=yes
6439else
6440 echo "$as_me: failed program was:" >&5
6441cat conftest.$ac_ext >&5
6442ac_cv_lib_crypto_main=no
6443fi
6444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6445LIBS=$ac_check_lib_save_LIBS
6446fi
6447echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6448echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
6449if test $ac_cv_lib_crypto_main = yes; then
6450 NEED_CRYPTO=yes
6451fi
6452
6453 if test "${NEED_CRYPTO}" = ""; then
6454 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6455echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6456if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
6459 ac_check_lib_save_LIBS=$LIBS
6460LIBS="-lsnmp $LIBS"
6461cat >conftest.$ac_ext <<_ACEOF
6462#line $LINENO "configure"
6463#include "confdefs.h"
6464
6465/* Override any gcc2 internal prototype to avoid an error. */
6466#ifdef __cplusplus
6467extern "C"
6468#endif
6469/* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6471char asn_parse_int ();
paulccf35572003-03-01 11:42:20 +00006472#ifdef F77_DUMMY_MAIN
6473# ifdef __cplusplus
6474 extern "C"
6475# endif
6476 int F77_DUMMY_MAIN() { return 1; }
6477#endif
paul718e3742002-12-13 20:15:29 +00006478int
6479main ()
6480{
6481asn_parse_int ();
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486rm -f conftest.$ac_objext conftest$ac_exeext
6487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -s conftest$ac_exeext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6498 ac_cv_lib_snmp_asn_parse_int=yes
6499else
6500 echo "$as_me: failed program was:" >&5
6501cat conftest.$ac_ext >&5
6502ac_cv_lib_snmp_asn_parse_int=no
6503fi
6504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6505LIBS=$ac_check_lib_save_LIBS
6506fi
6507echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6508echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6509if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6510 HAVE_SNMP=yes; NEED_CRYPTO=yes
6511fi
6512
6513 else
6514 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6515echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6516if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519 ac_check_lib_save_LIBS=$LIBS
6520LIBS="-lsnmp "-lcrypto" $LIBS"
6521cat >conftest.$ac_ext <<_ACEOF
6522#line $LINENO "configure"
6523#include "confdefs.h"
6524
6525/* Override any gcc2 internal prototype to avoid an error. */
6526#ifdef __cplusplus
6527extern "C"
6528#endif
6529/* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6531char asn_parse_int ();
paulccf35572003-03-01 11:42:20 +00006532#ifdef F77_DUMMY_MAIN
6533# ifdef __cplusplus
6534 extern "C"
6535# endif
6536 int F77_DUMMY_MAIN() { return 1; }
6537#endif
paul718e3742002-12-13 20:15:29 +00006538int
6539main ()
6540{
6541asn_parse_int ();
6542 ;
6543 return 0;
6544}
6545_ACEOF
6546rm -f conftest.$ac_objext conftest$ac_exeext
6547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6548 (eval $ac_link) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } &&
6552 { ac_try='test -s conftest$ac_exeext'
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 ac_cv_lib_snmp_asn_parse_int=yes
6559else
6560 echo "$as_me: failed program was:" >&5
6561cat conftest.$ac_ext >&5
6562ac_cv_lib_snmp_asn_parse_int=no
6563fi
6564rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6565LIBS=$ac_check_lib_save_LIBS
6566fi
6567echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6568echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6569if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6570 HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
6571fi
6572
6573 fi
6574 fi
6575 LIBS="${old_libs}"
6576
6577 if test "${HAVE_SNMP}" = ""; then
6578 old_libs="${LIBS}"
6579 LIBS="-L/usr/local/lib"
6580 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6581echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6582if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585 ac_check_lib_save_LIBS=$LIBS
6586LIBS="-lsnmp $LIBS"
6587cat >conftest.$ac_ext <<_ACEOF
6588#line $LINENO "configure"
6589#include "confdefs.h"
6590
6591/* Override any gcc2 internal prototype to avoid an error. */
6592#ifdef __cplusplus
6593extern "C"
6594#endif
6595/* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6597char asn_parse_int ();
paulccf35572003-03-01 11:42:20 +00006598#ifdef F77_DUMMY_MAIN
6599# ifdef __cplusplus
6600 extern "C"
6601# endif
6602 int F77_DUMMY_MAIN() { return 1; }
6603#endif
paul718e3742002-12-13 20:15:29 +00006604int
6605main ()
6606{
6607asn_parse_int ();
6608 ;
6609 return 0;
6610}
6611_ACEOF
6612rm -f conftest.$ac_objext conftest$ac_exeext
6613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_cv_lib_snmp_asn_parse_int=yes
6625else
6626 echo "$as_me: failed program was:" >&5
6627cat conftest.$ac_ext >&5
6628ac_cv_lib_snmp_asn_parse_int=no
6629fi
6630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6631LIBS=$ac_check_lib_save_LIBS
6632fi
6633echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6634echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6635if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6636 HAVE_SNMP=yes
6637fi
6638
6639 LIBS="${old_libs}"
6640 fi
6641 if test "${HAVE_SNMP}" = "yes"; then
paul569c0f02003-03-02 21:19:26 +00006642 for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
paul718e3742002-12-13 20:15:29 +00006643 do
6644 test -f "${ac_snmp}" && break
6645 done
6646 case ${ac_snmp} in
paul569c0f02003-03-02 21:19:26 +00006647 /usr/include/net-snmp/*)
6648
6649cat >>confdefs.h <<\_ACEOF
6650#define HAVE_SNMP
6651_ACEOF
6652
6653
6654cat >>confdefs.h <<\_ACEOF
6655#define UCD_COMPATIBLE
6656_ACEOF
6657
6658 CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
6659 LIBS="${LIBS} -lsnmp"
6660 ;;
paul718e3742002-12-13 20:15:29 +00006661 /usr/include/ucd-snmp/*)
paulccf35572003-03-01 11:42:20 +00006662
6663cat >>confdefs.h <<\_ACEOF
6664#define HAVE_SNMP
paul718e3742002-12-13 20:15:29 +00006665_ACEOF
6666
6667 CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
6668 LIBS="${LIBS} -lsnmp"
6669 ;;
6670 /usr/local/include/ucd-snmp/*)
paulccf35572003-03-01 11:42:20 +00006671
6672cat >>confdefs.h <<\_ACEOF
6673#define HAVE_SNMP
paul718e3742002-12-13 20:15:29 +00006674_ACEOF
6675
6676 CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp"
6677 LIBS="${LIBS} -L/usr/local/lib -lsnmp"
6678 ;;
6679 esac
6680 if test "${NEED_CRYPTO}" = "yes"; then
6681 LIBS="${LIBS} -lcrypto"
6682 fi
6683 fi
6684fi
6685
6686echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
6687echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
6688cat >conftest.$ac_ext <<_ACEOF
6689#line $LINENO "configure"
6690#include "confdefs.h"
6691#include <sys/types.h>
6692#include <sys/socket.h>
6693
paulccf35572003-03-01 11:42:20 +00006694#ifdef F77_DUMMY_MAIN
6695# ifdef __cplusplus
6696 extern "C"
6697# endif
6698 int F77_DUMMY_MAIN() { return 1; }
6699#endif
paul718e3742002-12-13 20:15:29 +00006700int
6701main ()
6702{
6703static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
6704 ;
6705 return 0;
6706}
6707_ACEOF
6708rm -f conftest.$ac_objext
6709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } &&
6714 { ac_try='test -s conftest.$ac_objext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 (eval $ac_try) 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
6720 echo "$as_me:$LINENO: result: yes" >&5
6721echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00006722
6723cat >>confdefs.h <<\_ACEOF
6724#define HAVE_SA_LEN
paul718e3742002-12-13 20:15:29 +00006725_ACEOF
6726
6727else
6728 echo "$as_me: failed program was:" >&5
6729cat conftest.$ac_ext >&5
6730echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732fi
6733rm -f conftest.$ac_objext conftest.$ac_ext
6734
6735echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
6736echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
6737cat >conftest.$ac_ext <<_ACEOF
6738#line $LINENO "configure"
6739#include "confdefs.h"
6740#include <sys/types.h>
6741#include <netinet/in.h>
6742
paulccf35572003-03-01 11:42:20 +00006743#ifdef F77_DUMMY_MAIN
6744# ifdef __cplusplus
6745 extern "C"
6746# endif
6747 int F77_DUMMY_MAIN() { return 1; }
6748#endif
paul718e3742002-12-13 20:15:29 +00006749int
6750main ()
6751{
6752static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
6753 ;
6754 return 0;
6755}
6756_ACEOF
6757rm -f conftest.$ac_objext
6758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 echo "$as_me:$LINENO: result: yes" >&5
6770echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00006771
6772cat >>confdefs.h <<\_ACEOF
6773#define HAVE_SIN_LEN
paul718e3742002-12-13 20:15:29 +00006774_ACEOF
6775
6776else
6777 echo "$as_me: failed program was:" >&5
6778cat conftest.$ac_ext >&5
6779echo "$as_me:$LINENO: result: no" >&5
6780echo "${ECHO_T}no" >&6
6781fi
6782rm -f conftest.$ac_objext conftest.$ac_ext
6783
6784echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
6785echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
6786cat >conftest.$ac_ext <<_ACEOF
6787#line $LINENO "configure"
6788#include "confdefs.h"
6789#include <sys/types.h>
6790#include <sys/un.h>
6791
paulccf35572003-03-01 11:42:20 +00006792#ifdef F77_DUMMY_MAIN
6793# ifdef __cplusplus
6794 extern "C"
6795# endif
6796 int F77_DUMMY_MAIN() { return 1; }
6797#endif
paul718e3742002-12-13 20:15:29 +00006798int
6799main ()
6800{
6801static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
6802 ;
6803 return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext
6807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } &&
6812 { ac_try='test -s conftest.$ac_objext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 echo "$as_me:$LINENO: result: yes" >&5
6819echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00006820
6821cat >>confdefs.h <<\_ACEOF
6822#define HAVE_SUN_LEN
paul718e3742002-12-13 20:15:29 +00006823_ACEOF
6824
6825else
6826 echo "$as_me: failed program was:" >&5
6827cat conftest.$ac_ext >&5
6828echo "$as_me:$LINENO: result: no" >&5
6829echo "${ECHO_T}no" >&6
6830fi
6831rm -f conftest.$ac_objext conftest.$ac_ext
6832
6833if test "$zebra_cv_ipv6" = yes; then
6834 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
6835echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
6836 cat >conftest.$ac_ext <<_ACEOF
6837#line $LINENO "configure"
6838#include "confdefs.h"
6839#include <sys/types.h>
6840#include <netinet/in.h>
6841
paulccf35572003-03-01 11:42:20 +00006842#ifdef F77_DUMMY_MAIN
6843# ifdef __cplusplus
6844 extern "C"
6845# endif
6846 int F77_DUMMY_MAIN() { return 1; }
6847#endif
paul718e3742002-12-13 20:15:29 +00006848int
6849main ()
6850{
6851static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
6852 ;
6853 return 0;
6854}
6855_ACEOF
6856rm -f conftest.$ac_objext
6857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858 (eval $ac_compile) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00006870
6871cat >>confdefs.h <<\_ACEOF
6872#define HAVE_SIN6_SCOPE_ID
paul718e3742002-12-13 20:15:29 +00006873_ACEOF
6874
6875else
6876 echo "$as_me: failed program was:" >&5
6877cat conftest.$ac_ext >&5
6878echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
6880fi
6881rm -f conftest.$ac_objext conftest.$ac_ext
6882fi
6883
6884echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
6885echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
6886cat >conftest.$ac_ext <<_ACEOF
6887#line $LINENO "configure"
6888#include "confdefs.h"
6889#include <sys/types.h>
6890#include <sys/socket.h>
6891#include <netinet/in.h>
6892
paulccf35572003-03-01 11:42:20 +00006893#ifdef F77_DUMMY_MAIN
6894# ifdef __cplusplus
6895 extern "C"
6896# endif
6897 int F77_DUMMY_MAIN() { return 1; }
6898#endif
paul718e3742002-12-13 20:15:29 +00006899int
6900main ()
6901{
6902socklen_t ac_x;
6903 ;
6904 return 0;
6905}
6906_ACEOF
6907rm -f conftest.$ac_objext
6908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 echo "$as_me:$LINENO: result: yes" >&5
6920echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00006921
6922cat >>confdefs.h <<\_ACEOF
6923#define HAVE_SOCKLEN_T
paul718e3742002-12-13 20:15:29 +00006924_ACEOF
6925
6926else
6927 echo "$as_me: failed program was:" >&5
6928cat conftest.$ac_ext >&5
6929echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6
6931fi
6932rm -f conftest.$ac_objext conftest.$ac_ext
6933
6934echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
6935echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
6936cat >conftest.$ac_ext <<_ACEOF
6937#line $LINENO "configure"
6938#include "confdefs.h"
6939#include <net/if_dl.h>
6940
6941_ACEOF
6942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00006943 egrep "sockaddr_dl" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00006944 echo "$as_me:$LINENO: result: yes" >&5
6945echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00006946
6947cat >>confdefs.h <<\_ACEOF
6948#define HAVE_SOCKADDR_DL
paul718e3742002-12-13 20:15:29 +00006949_ACEOF
6950
6951else
6952 echo "$as_me:$LINENO: result: no" >&5
6953echo "${ECHO_T}no" >&6
6954fi
6955rm -f conftest*
6956
6957
6958echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
6959echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
6960cat >conftest.$ac_ext <<_ACEOF
6961#line $LINENO "configure"
6962#include "confdefs.h"
6963#include <net/if.h>
6964
6965_ACEOF
6966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00006967 egrep "ifaliasreq" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00006968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00006970
6971cat >>confdefs.h <<\_ACEOF
6972#define HAVE_IFALIASREQ
paul718e3742002-12-13 20:15:29 +00006973_ACEOF
6974
6975else
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
6978fi
6979rm -f conftest*
6980
6981
6982echo "$as_me:$LINENO: checking whether struct if6_aliasreq exist" >&5
6983echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6
6984cat >conftest.$ac_ext <<_ACEOF
6985#line $LINENO "configure"
6986#include "confdefs.h"
6987#include <netinet6/in6_var.h>
6988
6989_ACEOF
6990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00006991 egrep "in6_aliasreq" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00006992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00006994
6995cat >>confdefs.h <<\_ACEOF
6996#define HAVE_IN6_ALIASREQ
paul718e3742002-12-13 20:15:29 +00006997_ACEOF
6998
6999else
7000 echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6
7002fi
7003rm -f conftest*
7004
7005
7006echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
7007echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
7008cat >conftest.$ac_ext <<_ACEOF
7009#line $LINENO "configure"
7010#include "confdefs.h"
7011#include <net/route.h>
7012
7013_ACEOF
7014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00007015 egrep "rt_addrinfo" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00007016 echo "$as_me:$LINENO: result: yes" >&5
7017echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00007018
7019cat >>confdefs.h <<\_ACEOF
7020#define HAVE_RT_ADDRINFO
paul718e3742002-12-13 20:15:29 +00007021_ACEOF
7022
7023else
7024 echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6
7026fi
7027rm -f conftest*
7028
7029
7030echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
7031echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
7032cat >conftest.$ac_ext <<_ACEOF
7033#line $LINENO "configure"
7034#include "confdefs.h"
7035#include <netinet/in.h>
7036
paulccf35572003-03-01 11:42:20 +00007037#ifdef F77_DUMMY_MAIN
7038# ifdef __cplusplus
7039 extern "C"
7040# endif
7041 int F77_DUMMY_MAIN() { return 1; }
7042#endif
paul718e3742002-12-13 20:15:29 +00007043int
7044main ()
7045{
7046struct in_pktinfo ac_x;
7047 ;
7048 return 0;
7049}
7050_ACEOF
7051rm -f conftest.$ac_objext
7052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053 (eval $ac_compile) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 echo "$as_me:$LINENO: result: yes" >&5
7064echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00007065
7066cat >>confdefs.h <<\_ACEOF
7067#define HAVE_INPKTINFO
paul718e3742002-12-13 20:15:29 +00007068_ACEOF
7069
7070else
7071 echo "$as_me: failed program was:" >&5
7072cat conftest.$ac_ext >&5
7073echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6
7075fi
7076rm -f conftest.$ac_objext conftest.$ac_ext
7077
7078echo "$as_me:$LINENO: checking whether getrusage is available" >&5
7079echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
7080cat >conftest.$ac_ext <<_ACEOF
7081#line $LINENO "configure"
7082#include "confdefs.h"
7083#include <sys/resource.h>
7084
paulccf35572003-03-01 11:42:20 +00007085#ifdef F77_DUMMY_MAIN
7086# ifdef __cplusplus
7087 extern "C"
7088# endif
7089 int F77_DUMMY_MAIN() { return 1; }
7090#endif
paul718e3742002-12-13 20:15:29 +00007091int
7092main ()
7093{
7094struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
7095 ;
7096 return 0;
7097}
7098_ACEOF
7099rm -f conftest.$ac_objext
7100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -s conftest.$ac_objext'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 echo "$as_me:$LINENO: result: yes" >&5
7112echo "${ECHO_T}yes" >&6
paulccf35572003-03-01 11:42:20 +00007113
7114cat >>confdefs.h <<\_ACEOF
7115#define HAVE_RUSAGE
paul718e3742002-12-13 20:15:29 +00007116_ACEOF
7117
7118else
7119 echo "$as_me: failed program was:" >&5
7120cat conftest.$ac_ext >&5
7121echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6
7123fi
7124rm -f conftest.$ac_objext conftest.$ac_ext
7125
7126file="${srcdir}/lib/version.h"
7127VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
7128
7129
7130echo "$as_me:$LINENO: checking pid file directory" >&5
7131echo $ECHO_N "checking pid file directory... $ECHO_C" >&6
7132if test "${ac_piddir+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135 for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null;
7136do
7137 test -d $ZEBRA_PID_DIR && break
7138done
7139ac_piddir=$ZEBRA_PID_DIR
7140if test $ZEBRA_PID_DIR = "/dev/null"; then
7141 echo "PID DIRECTORY NOT FOUND!"
7142fi
7143fi
7144echo "$as_me:$LINENO: result: $ac_piddir" >&5
7145echo "${ECHO_T}$ac_piddir" >&6
paulccf35572003-03-01 11:42:20 +00007146
paul718e3742002-12-13 20:15:29 +00007147cat >>confdefs.h <<_ACEOF
7148#define PATH_ZEBRA_PID "$ac_piddir/zebra.pid"
7149_ACEOF
7150
paulccf35572003-03-01 11:42:20 +00007151
paul718e3742002-12-13 20:15:29 +00007152cat >>confdefs.h <<_ACEOF
7153#define PATH_RIPD_PID "$ac_piddir/ripd.pid"
7154_ACEOF
7155
paulccf35572003-03-01 11:42:20 +00007156
paul718e3742002-12-13 20:15:29 +00007157cat >>confdefs.h <<_ACEOF
7158#define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid"
7159_ACEOF
7160
paulccf35572003-03-01 11:42:20 +00007161
paul718e3742002-12-13 20:15:29 +00007162cat >>confdefs.h <<_ACEOF
7163#define PATH_BGPD_PID "$ac_piddir/bgpd.pid"
7164_ACEOF
7165
paulccf35572003-03-01 11:42:20 +00007166
paul718e3742002-12-13 20:15:29 +00007167cat >>confdefs.h <<_ACEOF
7168#define PATH_OSPFD_PID "$ac_piddir/ospfd.pid"
7169_ACEOF
7170
paulccf35572003-03-01 11:42:20 +00007171
paul718e3742002-12-13 20:15:29 +00007172cat >>confdefs.h <<_ACEOF
7173#define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid"
7174_ACEOF
7175
7176
7177
7178echo "$as_me:$LINENO: checking for working htonl" >&5
7179echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
7180if test "${ac_cv_htonl_works+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183
7184cat >conftest.$ac_ext <<_ACEOF
7185#line $LINENO "configure"
7186#include "confdefs.h"
7187#ifdef HAVE_SYS_TYPES_H
7188#include <sys/types.h>
7189#endif
7190#ifdef HAVE_NETDB_H
7191#include <netdb.h>
7192#endif
7193#ifdef HAVE_NETINET_IN_H
7194#include <netinet/in.h>
7195#endif
paulccf35572003-03-01 11:42:20 +00007196#ifdef F77_DUMMY_MAIN
7197# ifdef __cplusplus
7198 extern "C"
7199# endif
7200 int F77_DUMMY_MAIN() { return 1; }
7201#endif
paul718e3742002-12-13 20:15:29 +00007202int
7203main ()
7204{
7205htonl (0);
7206 ;
7207 return 0;
7208}
7209_ACEOF
7210rm -f conftest.$ac_objext conftest$ac_exeext
7211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -s conftest$ac_exeext'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 ac_cv_htonl_works=yes
7223else
7224 echo "$as_me: failed program was:" >&5
7225cat conftest.$ac_ext >&5
7226ac_cv_htonl_works=no
7227fi
7228rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7229fi
7230
7231echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
7232echo "${ECHO_T}$ac_cv_htonl_works" >&6
7233
paulccf35572003-03-01 11:42:20 +00007234ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile"
paul718e3742002-12-13 20:15:29 +00007235cat >confcache <<\_ACEOF
7236# This file is a shell script that caches the results of configure
7237# tests run on this system so they can be shared between configure
7238# scripts and configure runs, see configure's option --config-cache.
7239# It is not useful on other systems. If it contains results you don't
7240# want to keep, you may remove or edit it.
7241#
7242# config.status only pays attention to the cache file if you give it
7243# the --recheck option to rerun configure.
7244#
paulccf35572003-03-01 11:42:20 +00007245# `ac_cv_env_foo' variables (set or unset) will be overriden when
paul718e3742002-12-13 20:15:29 +00007246# loading this file, other *unset* `ac_cv_foo' will be assigned the
7247# following values.
7248
7249_ACEOF
7250
7251# The following way of writing the cache mishandles newlines in values,
7252# but we know of no workaround that is simple, portable, and efficient.
7253# So, don't put newlines in cache variables' values.
7254# Ultrix sh set writes to stderr and can't be redirected directly,
7255# and sets the high bit in the cache file unless we assign to the vars.
7256{
7257 (set) 2>&1 |
7258 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7259 *ac_space=\ *)
7260 # `set' does not quote correctly, so add quotes (double-quote
7261 # substitution turns \\\\ into \\, and sed turns \\ into \).
7262 sed -n \
7263 "s/'/'\\\\''/g;
7264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7265 ;;
7266 *)
7267 # `set' quotes correctly as required by POSIX, so do not add quotes.
7268 sed -n \
7269 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7270 ;;
7271 esac;
7272} |
7273 sed '
7274 t clear
7275 : clear
7276 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7277 t end
7278 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7279 : end' >>confcache
7280if cmp -s $cache_file confcache; then :; else
7281 if test -w $cache_file; then
7282 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7283 cat confcache >$cache_file
7284 else
7285 echo "not updating unwritable cache $cache_file"
7286 fi
7287fi
7288rm -f confcache
7289
7290test "x$prefix" = xNONE && prefix=$ac_default_prefix
7291# Let make expand exec_prefix.
7292test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7293
7294# VPATH may cause trouble with some makes, so we remove $(srcdir),
7295# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7296# trailing colons and then remove the whole line if VPATH becomes empty
7297# (actually we leave an empty line to preserve line numbers).
7298if test "x$srcdir" = x.; then
7299 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7300s/:*\$(srcdir):*/:/;
7301s/:*\${srcdir}:*/:/;
7302s/:*@srcdir@:*/:/;
7303s/^\([^=]*=[ ]*\):*/\1/;
7304s/:*$//;
7305s/^[^=]*=[ ]*$//;
7306}'
7307fi
7308
7309DEFS=-DHAVE_CONFIG_H
7310
paul718e3742002-12-13 20:15:29 +00007311if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7312 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7313Usually this means the macro was only invoked conditionally." >&5
7314echo "$as_me: error: conditional \"AMDEP\" was never defined.
7315Usually this means the macro was only invoked conditionally." >&2;}
7316 { (exit 1); exit 1; }; }
7317fi
paul718e3742002-12-13 20:15:29 +00007318
7319: ${CONFIG_STATUS=./config.status}
7320ac_clean_files_save=$ac_clean_files
7321ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7322{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7323echo "$as_me: creating $CONFIG_STATUS" >&6;}
7324cat >$CONFIG_STATUS <<_ACEOF
7325#! $SHELL
7326# Generated by $as_me.
7327# Run this file to recreate the current configuration.
7328# Compiler output produced by configure, useful for debugging
7329# configure, is in config.log if it exists.
7330
7331debug=false
7332SHELL=\${CONFIG_SHELL-$SHELL}
7333_ACEOF
7334
7335cat >>$CONFIG_STATUS <<\_ACEOF
paulccf35572003-03-01 11:42:20 +00007336
paul718e3742002-12-13 20:15:29 +00007337## --------------------- ##
7338## M4sh Initialization. ##
7339## --------------------- ##
7340
7341# Be Bourne compatible
7342if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7343 emulate sh
7344 NULLCMD=:
paul718e3742002-12-13 20:15:29 +00007345elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7346 set -o posix
7347fi
7348
paulccf35572003-03-01 11:42:20 +00007349# NLS nuisances.
paul718e3742002-12-13 20:15:29 +00007350# Support unset when possible.
7351if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7352 as_unset=unset
7353else
7354 as_unset=false
7355fi
7356
paulccf35572003-03-01 11:42:20 +00007357(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
7358 { $as_unset LANG || test "${LANG+set}" != set; } ||
7359 { LANG=C; export LANG; }
7360(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
7361 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
7362 { LC_ALL=C; export LC_ALL; }
7363(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
7364 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
7365 { LC_TIME=C; export LC_TIME; }
7366(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
7367 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
7368 { LC_CTYPE=C; export LC_CTYPE; }
7369(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
7370 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
7371 { LANGUAGE=C; export LANGUAGE; }
7372(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
7373 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
7374 { LC_COLLATE=C; export LC_COLLATE; }
7375(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
7376 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
7377 { LC_NUMERIC=C; export LC_NUMERIC; }
7378(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
7379 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
7380 { LC_MESSAGES=C; export LC_MESSAGES; }
paul718e3742002-12-13 20:15:29 +00007381
7382
7383# Name of the executable.
paulccf35572003-03-01 11:42:20 +00007384as_me=`(basename "$0") 2>/dev/null ||
paul718e3742002-12-13 20:15:29 +00007385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7386 X"$0" : 'X\(//\)$' \| \
7387 X"$0" : 'X\(/\)$' \| \
7388 . : '\(.\)' 2>/dev/null ||
7389echo X/"$0" |
7390 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7391 /^X\/\(\/\/\)$/{ s//\1/; q; }
7392 /^X\/\(\/\).*/{ s//\1/; q; }
7393 s/.*/./; q'`
7394
paul718e3742002-12-13 20:15:29 +00007395# PATH needs CR, and LINENO needs CR and PATH.
7396# Avoid depending upon Character Ranges.
7397as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7398as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7399as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7400as_cr_digits='0123456789'
7401as_cr_alnum=$as_cr_Letters$as_cr_digits
7402
7403# The user is always right.
7404if test "${PATH_SEPARATOR+set}" != set; then
7405 echo "#! /bin/sh" >conftest.sh
7406 echo "exit 0" >>conftest.sh
7407 chmod +x conftest.sh
paulccf35572003-03-01 11:42:20 +00007408 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00007409 PATH_SEPARATOR=';'
7410 else
7411 PATH_SEPARATOR=:
7412 fi
7413 rm -f conftest.sh
7414fi
7415
7416
7417 as_lineno_1=$LINENO
7418 as_lineno_2=$LINENO
7419 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7420 test "x$as_lineno_1" != "x$as_lineno_2" &&
7421 test "x$as_lineno_3" = "x$as_lineno_2" || {
7422 # Find who we are. Look in the path if we contain no path at all
7423 # relative or not.
7424 case $0 in
7425 *[\\/]* ) as_myself=$0 ;;
7426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427for as_dir in $PATH
7428do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7432done
7433
7434 ;;
7435 esac
7436 # We did not find ourselves, most probably we were run as `sh COMMAND'
7437 # in which case we are not to be found in the path.
7438 if test "x$as_myself" = x; then
7439 as_myself=$0
7440 fi
7441 if test ! -f "$as_myself"; then
7442 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7443echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7444 { (exit 1); exit 1; }; }
7445 fi
7446 case $CONFIG_SHELL in
7447 '')
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for as_base in sh bash ksh sh5; do
7454 case $as_dir in
7455 /*)
7456 if ("$as_dir/$as_base" -c '
7457 as_lineno_1=$LINENO
7458 as_lineno_2=$LINENO
7459 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7460 test "x$as_lineno_1" != "x$as_lineno_2" &&
7461 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
paul718e3742002-12-13 20:15:29 +00007462 CONFIG_SHELL=$as_dir/$as_base
7463 export CONFIG_SHELL
7464 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7465 fi;;
7466 esac
7467 done
7468done
7469;;
7470 esac
7471
7472 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7473 # uniformly replaced by the line number. The first 'sed' inserts a
7474 # line-number line before each line; the second 'sed' does the real
7475 # work. The second script uses 'N' to pair each line-number line
7476 # with the numbered line, and appends trailing '-' during
7477 # substitution so that $LINENO is not a special case at line end.
7478 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7479 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7480 sed '=' <$as_myself |
7481 sed '
7482 N
7483 s,$,-,
7484 : loop
7485 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7486 t loop
7487 s,-$,,
7488 s,^['$as_cr_digits']*\n,,
7489 ' >$as_me.lineno &&
7490 chmod +x $as_me.lineno ||
7491 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7492echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7493 { (exit 1); exit 1; }; }
7494
7495 # Don't try to exec as it changes $[0], causing all sort of problems
7496 # (the dirname of $[0] is not the place where we might find the
7497 # original and so on. Autoconf is especially sensible to this).
7498 . ./$as_me.lineno
7499 # Exit status is that of the last command.
7500 exit
7501}
7502
7503
7504case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7505 *c*,-n*) ECHO_N= ECHO_C='
7506' ECHO_T=' ' ;;
7507 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7508 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7509esac
7510
7511if expr a : '\(a\)' >/dev/null 2>&1; then
7512 as_expr=expr
7513else
7514 as_expr=false
7515fi
7516
7517rm -f conf$$ conf$$.exe conf$$.file
7518echo >conf$$.file
7519if ln -s conf$$.file conf$$ 2>/dev/null; then
7520 # We could just check for DJGPP; but this test a) works b) is more generic
7521 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7522 if test -f conf$$.exe; then
7523 # Don't use ln at all; we don't have any links
7524 as_ln_s='cp -p'
7525 else
7526 as_ln_s='ln -s'
7527 fi
7528elif ln conf$$.file conf$$ 2>/dev/null; then
7529 as_ln_s=ln
7530else
7531 as_ln_s='cp -p'
7532fi
7533rm -f conf$$ conf$$.exe conf$$.file
7534
paul718e3742002-12-13 20:15:29 +00007535as_executable_p="test -f"
7536
7537# Sed expression to map a string onto a valid CPP name.
7538as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7539
7540# Sed expression to map a string onto a valid variable name.
7541as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7542
7543
7544# IFS
7545# We need space, tab and new line, in precisely that order.
7546as_nl='
7547'
7548IFS=" $as_nl"
7549
7550# CDPATH.
paulccf35572003-03-01 11:42:20 +00007551$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
paul718e3742002-12-13 20:15:29 +00007552
7553exec 6>&1
7554
7555# Open the log real soon, to keep \$[0] and so on meaningful, and to
7556# report actual input values of CONFIG_FILES etc. instead of their
7557# values after options handling. Logging --version etc. is OK.
7558exec 5>>config.log
7559{
7560 echo
7561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7562## Running $as_me. ##
7563_ASBOX
7564} >&5
7565cat >&5 <<_CSEOF
7566
7567This file was extended by $as_me, which was
paulccf35572003-03-01 11:42:20 +00007568generated by GNU Autoconf 2.53. Invocation command line was
paul718e3742002-12-13 20:15:29 +00007569
7570 CONFIG_FILES = $CONFIG_FILES
7571 CONFIG_HEADERS = $CONFIG_HEADERS
7572 CONFIG_LINKS = $CONFIG_LINKS
7573 CONFIG_COMMANDS = $CONFIG_COMMANDS
7574 $ $0 $@
7575
7576_CSEOF
7577echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7578echo >&5
7579_ACEOF
7580
7581# Files that config.status was made for.
7582if test -n "$ac_config_files"; then
7583 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7584fi
7585
7586if test -n "$ac_config_headers"; then
7587 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7588fi
7589
7590if test -n "$ac_config_links"; then
7591 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7592fi
7593
7594if test -n "$ac_config_commands"; then
7595 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7596fi
7597
7598cat >>$CONFIG_STATUS <<\_ACEOF
7599
7600ac_cs_usage="\
7601\`$as_me' instantiates files from templates according to the
7602current configuration.
7603
7604Usage: $0 [OPTIONS] [FILE]...
7605
7606 -h, --help print this help, then exit
7607 -V, --version print version number, then exit
7608 -d, --debug don't remove temporary files
7609 --recheck update $as_me by reconfiguring in the same conditions
7610 --file=FILE[:TEMPLATE]
7611 instantiate the configuration file FILE
7612 --header=FILE[:TEMPLATE]
7613 instantiate the configuration header FILE
7614
7615Configuration files:
7616$config_files
7617
7618Configuration headers:
7619$config_headers
7620
7621Configuration commands:
7622$config_commands
7623
7624Report bugs to <bug-autoconf@gnu.org>."
7625_ACEOF
7626
7627cat >>$CONFIG_STATUS <<_ACEOF
7628ac_cs_version="\\
7629config.status
paulccf35572003-03-01 11:42:20 +00007630configured by $0, generated by GNU Autoconf 2.53,
paul718e3742002-12-13 20:15:29 +00007631 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7632
7633Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7634Free Software Foundation, Inc.
7635This config.status script is free software; the Free Software Foundation
7636gives unlimited permission to copy, distribute and modify it."
7637srcdir=$srcdir
7638INSTALL="$INSTALL"
7639_ACEOF
7640
7641cat >>$CONFIG_STATUS <<\_ACEOF
7642# If no file are specified by the user, then we need to provide default
7643# value. By we need to know if files were specified by the user.
7644ac_need_defaults=:
7645while test $# != 0
7646do
7647 case $1 in
7648 --*=*)
7649 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7650 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
paulccf35572003-03-01 11:42:20 +00007651 shift
7652 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7653 shift
paul718e3742002-12-13 20:15:29 +00007654 ;;
paulccf35572003-03-01 11:42:20 +00007655 -*);;
paul718e3742002-12-13 20:15:29 +00007656 *) # This is not an option, so the user has probably given explicit
7657 # arguments.
paul718e3742002-12-13 20:15:29 +00007658 ac_need_defaults=false;;
7659 esac
7660
paulccf35572003-03-01 11:42:20 +00007661 case $1 in
paul718e3742002-12-13 20:15:29 +00007662 # Handling of the options.
7663_ACEOF
7664cat >>$CONFIG_STATUS <<_ACEOF
7665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7666 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7667 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7668_ACEOF
7669cat >>$CONFIG_STATUS <<\_ACEOF
7670 --version | --vers* | -V )
7671 echo "$ac_cs_version"; exit 0 ;;
7672 --he | --h)
7673 # Conflict between --help and --header
7674 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7675Try \`$0 --help' for more information." >&5
7676echo "$as_me: error: ambiguous option: $1
7677Try \`$0 --help' for more information." >&2;}
7678 { (exit 1); exit 1; }; };;
7679 --help | --hel | -h )
7680 echo "$ac_cs_usage"; exit 0 ;;
7681 --debug | --d* | -d )
7682 debug=: ;;
7683 --file | --fil | --fi | --f )
paulccf35572003-03-01 11:42:20 +00007684 shift
7685 CONFIG_FILES="$CONFIG_FILES $1"
paul718e3742002-12-13 20:15:29 +00007686 ac_need_defaults=false;;
7687 --header | --heade | --head | --hea )
paulccf35572003-03-01 11:42:20 +00007688 shift
7689 CONFIG_HEADERS="$CONFIG_HEADERS $1"
paul718e3742002-12-13 20:15:29 +00007690 ac_need_defaults=false;;
7691
7692 # This is an error.
7693 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7694Try \`$0 --help' for more information." >&5
7695echo "$as_me: error: unrecognized option: $1
7696Try \`$0 --help' for more information." >&2;}
7697 { (exit 1); exit 1; }; } ;;
7698
7699 *) ac_config_targets="$ac_config_targets $1" ;;
7700
7701 esac
7702 shift
7703done
7704
7705_ACEOF
7706
7707cat >>$CONFIG_STATUS <<_ACEOF
7708#
7709# INIT-COMMANDS section.
7710#
7711
7712AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7713
7714_ACEOF
7715
7716
7717
7718cat >>$CONFIG_STATUS <<\_ACEOF
7719for ac_config_target in $ac_config_targets
7720do
7721 case "$ac_config_target" in
7722 # Handling of arguments.
7723 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7724 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7725 "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
7726 "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
7727 "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
7728 "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
7729 "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
7730 "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
7731 "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
7732 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7733 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7734 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7735 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7736echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7737 { (exit 1); exit 1; }; };;
7738 esac
7739done
7740
7741# If the user did not use the arguments to specify the items to instantiate,
7742# then the envvar interface is used. Set only those that are not.
7743# We use the long form for the default assignment because of an extremely
7744# bizarre bug on SunOS 4.1.3.
7745if $ac_need_defaults; then
7746 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7747 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7749fi
7750
7751# Create a temporary directory, and hook for its removal unless debugging.
7752$debug ||
7753{
7754 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7755 trap '{ (exit 1); exit 1; }' 1 2 13 15
7756}
7757
7758# Create a (secure) tmp directory for tmp files.
7759: ${TMPDIR=/tmp}
7760{
7761 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7762 test -n "$tmp" && test -d "$tmp"
7763} ||
7764{
7765 tmp=$TMPDIR/cs$$-$RANDOM
7766 (umask 077 && mkdir $tmp)
7767} ||
7768{
7769 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7770 { (exit 1); exit 1; }
7771}
7772
7773_ACEOF
7774
7775cat >>$CONFIG_STATUS <<_ACEOF
7776
7777#
7778# CONFIG_FILES section.
7779#
7780
7781# No need to generate the scripts if there are no CONFIG_FILES.
7782# This happens for instance when ./config.status config.h
7783if test -n "\$CONFIG_FILES"; then
7784 # Protect against being on the right side of a sed subst in config.status.
7785 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7786 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7787s,@SHELL@,$SHELL,;t t
7788s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7789s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7790s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7791s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7792s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7793s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7794s,@exec_prefix@,$exec_prefix,;t t
7795s,@prefix@,$prefix,;t t
7796s,@program_transform_name@,$program_transform_name,;t t
7797s,@bindir@,$bindir,;t t
7798s,@sbindir@,$sbindir,;t t
7799s,@libexecdir@,$libexecdir,;t t
7800s,@datadir@,$datadir,;t t
7801s,@sysconfdir@,$sysconfdir,;t t
7802s,@sharedstatedir@,$sharedstatedir,;t t
7803s,@localstatedir@,$localstatedir,;t t
7804s,@libdir@,$libdir,;t t
7805s,@includedir@,$includedir,;t t
7806s,@oldincludedir@,$oldincludedir,;t t
7807s,@infodir@,$infodir,;t t
7808s,@mandir@,$mandir,;t t
7809s,@build_alias@,$build_alias,;t t
7810s,@host_alias@,$host_alias,;t t
7811s,@target_alias@,$target_alias,;t t
7812s,@DEFS@,$DEFS,;t t
7813s,@ECHO_C@,$ECHO_C,;t t
7814s,@ECHO_N@,$ECHO_N,;t t
7815s,@ECHO_T@,$ECHO_T,;t t
7816s,@LIBS@,$LIBS,;t t
7817s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7818s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7819s,@INSTALL_DATA@,$INSTALL_DATA,;t t
paul718e3742002-12-13 20:15:29 +00007820s,@PACKAGE@,$PACKAGE,;t t
7821s,@VERSION@,$VERSION,;t t
7822s,@ACLOCAL@,$ACLOCAL,;t t
7823s,@AUTOCONF@,$AUTOCONF,;t t
7824s,@AUTOMAKE@,$AUTOMAKE,;t t
7825s,@AUTOHEADER@,$AUTOHEADER,;t t
7826s,@MAKEINFO@,$MAKEINFO,;t t
7827s,@AMTAR@,$AMTAR,;t t
7828s,@install_sh@,$install_sh,;t t
7829s,@STRIP@,$STRIP,;t t
7830s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7831s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7832s,@AWK@,$AWK,;t t
7833s,@SET_MAKE@,$SET_MAKE,;t t
7834s,@build@,$build,;t t
7835s,@build_cpu@,$build_cpu,;t t
7836s,@build_vendor@,$build_vendor,;t t
7837s,@build_os@,$build_os,;t t
7838s,@host@,$host,;t t
7839s,@host_cpu@,$host_cpu,;t t
7840s,@host_vendor@,$host_vendor,;t t
7841s,@host_os@,$host_os,;t t
7842s,@CC@,$CC,;t t
7843s,@CFLAGS@,$CFLAGS,;t t
7844s,@LDFLAGS@,$LDFLAGS,;t t
7845s,@CPPFLAGS@,$CPPFLAGS,;t t
7846s,@ac_ct_CC@,$ac_ct_CC,;t t
7847s,@EXEEXT@,$EXEEXT,;t t
7848s,@OBJEXT@,$OBJEXT,;t t
7849s,@DEPDIR@,$DEPDIR,;t t
7850s,@am__include@,$am__include,;t t
7851s,@am__quote@,$am__quote,;t t
7852s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7853s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7854s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7855s,@CCDEPMODE@,$CCDEPMODE,;t t
paul718e3742002-12-13 20:15:29 +00007856s,@CPP@,$CPP,;t t
7857s,@AR@,$AR,;t t
7858s,@ac_ct_AR@,$ac_ct_AR,;t t
7859s,@RANLIB@,$RANLIB,;t t
7860s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
paul718e3742002-12-13 20:15:29 +00007861s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
7862s,@LIBPAM@,$LIBPAM,;t t
7863s,@RT_METHOD@,$RT_METHOD,;t t
7864s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
7865s,@OTHER_METHOD@,$OTHER_METHOD,;t t
7866s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
7867s,@IF_METHOD@,$IF_METHOD,;t t
7868s,@IF_PROC@,$IF_PROC,;t t
7869s,@IPFORWARD@,$IPFORWARD,;t t
7870s,@LIB_IPV6@,$LIB_IPV6,;t t
7871s,@ZEBRA@,$ZEBRA,;t t
7872s,@BGPD@,$BGPD,;t t
7873s,@RIPD@,$RIPD,;t t
7874s,@RIPNGD@,$RIPNGD,;t t
7875s,@OSPFD@,$OSPFD,;t t
7876s,@OSPF6D@,$OSPF6D,;t t
7877s,@VTYSH@,$VTYSH,;t t
7878s,@INCLUDES@,$INCLUDES,;t t
7879s,@CURSES@,$CURSES,;t t
7880s,@LIB_REGEX@,$LIB_REGEX,;t t
paul718e3742002-12-13 20:15:29 +00007881CEOF
7882
7883_ACEOF
7884
7885 cat >>$CONFIG_STATUS <<\_ACEOF
7886 # Split the substitutions into bite-sized pieces for seds with
7887 # small command number limits, like on Digital OSF/1 and HP-UX.
7888 ac_max_sed_lines=48
7889 ac_sed_frag=1 # Number of current file.
7890 ac_beg=1 # First line for current file.
7891 ac_end=$ac_max_sed_lines # Line after last line for current file.
7892 ac_more_lines=:
7893 ac_sed_cmds=
7894 while $ac_more_lines; do
7895 if test $ac_beg -gt 1; then
7896 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7897 else
7898 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7899 fi
7900 if test ! -s $tmp/subs.frag; then
7901 ac_more_lines=false
7902 else
7903 # The purpose of the label and of the branching condition is to
7904 # speed up the sed processing (if there are no `@' at all, there
7905 # is no need to browse any of the substitutions).
7906 # These are the two extra sed commands mentioned above.
7907 (echo ':t
7908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7909 if test -z "$ac_sed_cmds"; then
7910 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7911 else
7912 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7913 fi
7914 ac_sed_frag=`expr $ac_sed_frag + 1`
7915 ac_beg=$ac_end
7916 ac_end=`expr $ac_end + $ac_max_sed_lines`
7917 fi
7918 done
7919 if test -z "$ac_sed_cmds"; then
7920 ac_sed_cmds=cat
7921 fi
7922fi # test -n "$CONFIG_FILES"
7923
7924_ACEOF
7925cat >>$CONFIG_STATUS <<\_ACEOF
7926for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7927 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7928 case $ac_file in
7929 - | *:- | *:-:* ) # input from stdin
7930 cat >$tmp/stdin
7931 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7933 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7935 * ) ac_file_in=$ac_file.in ;;
7936 esac
7937
7938 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7939 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7941 X"$ac_file" : 'X\(//\)[^/]' \| \
7942 X"$ac_file" : 'X\(//\)$' \| \
7943 X"$ac_file" : 'X\(/\)' \| \
7944 . : '\(.\)' 2>/dev/null ||
7945echo X"$ac_file" |
7946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7948 /^X\(\/\/\)$/{ s//\1/; q; }
7949 /^X\(\/\).*/{ s//\1/; q; }
7950 s/.*/./; q'`
paulccf35572003-03-01 11:42:20 +00007951 { case "$ac_dir" in
7952 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7953 *) as_incr_dir=.;;
7954esac
7955as_dummy="$ac_dir"
7956for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7957 case $as_mkdir_dir in
7958 # Skip DOS drivespec
7959 ?:) as_incr_dir=$as_mkdir_dir ;;
7960 *)
7961 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7962 test -d "$as_incr_dir" ||
7963 mkdir "$as_incr_dir" ||
7964 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7965echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7966 { (exit 1); exit 1; }; }
7967 ;;
7968 esac
7969done; }
paul718e3742002-12-13 20:15:29 +00007970
7971 ac_builddir=.
7972
7973if test "$ac_dir" != .; then
7974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7975 # A "../" for each directory in $ac_dir_suffix.
7976 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7977else
7978 ac_dir_suffix= ac_top_builddir=
7979fi
7980
7981case $srcdir in
7982 .) # No --srcdir option. We are building in place.
7983 ac_srcdir=.
7984 if test -z "$ac_top_builddir"; then
7985 ac_top_srcdir=.
7986 else
7987 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7988 fi ;;
7989 [\\/]* | ?:[\\/]* ) # Absolute path.
7990 ac_srcdir=$srcdir$ac_dir_suffix;
7991 ac_top_srcdir=$srcdir ;;
7992 *) # Relative path.
7993 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7994 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7995esac
7996# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7997# absolute.
7998ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
paulccf35572003-03-01 11:42:20 +00007999ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
paul718e3742002-12-13 20:15:29 +00008000ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8001ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8002
8003
8004 case $INSTALL in
8005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8006 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8007 esac
8008
8009 if test x"$ac_file" != x-; then
8010 { echo "$as_me:$LINENO: creating $ac_file" >&5
8011echo "$as_me: creating $ac_file" >&6;}
8012 rm -f "$ac_file"
8013 fi
8014 # Let's still pretend it is `configure' which instantiates (i.e., don't
8015 # use $as_me), people would be surprised to read:
8016 # /* config.h. Generated by config.status. */
8017 if test x"$ac_file" = x-; then
8018 configure_input=
8019 else
8020 configure_input="$ac_file. "
8021 fi
8022 configure_input=$configure_input"Generated from `echo $ac_file_in |
8023 sed 's,.*/,,'` by configure."
8024
8025 # First look for the input files in the build tree, otherwise in the
8026 # src tree.
8027 ac_file_inputs=`IFS=:
8028 for f in $ac_file_in; do
8029 case $f in
8030 -) echo $tmp/stdin ;;
8031 [\\/$]*)
8032 # Absolute (can't be DOS-style, as IFS=:)
8033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8034echo "$as_me: error: cannot find input file: $f" >&2;}
8035 { (exit 1); exit 1; }; }
8036 echo $f;;
8037 *) # Relative
8038 if test -f "$f"; then
8039 # Build tree
8040 echo $f
8041 elif test -f "$srcdir/$f"; then
8042 # Source tree
8043 echo $srcdir/$f
8044 else
8045 # /dev/null tree
8046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8047echo "$as_me: error: cannot find input file: $f" >&2;}
8048 { (exit 1); exit 1; }; }
8049 fi;;
8050 esac
8051 done` || { (exit 1); exit 1; }
8052_ACEOF
8053cat >>$CONFIG_STATUS <<_ACEOF
8054 sed "$ac_vpsub
8055$extrasub
8056_ACEOF
8057cat >>$CONFIG_STATUS <<\_ACEOF
8058:t
8059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8060s,@configure_input@,$configure_input,;t t
8061s,@srcdir@,$ac_srcdir,;t t
8062s,@abs_srcdir@,$ac_abs_srcdir,;t t
8063s,@top_srcdir@,$ac_top_srcdir,;t t
8064s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8065s,@builddir@,$ac_builddir,;t t
8066s,@abs_builddir@,$ac_abs_builddir,;t t
8067s,@top_builddir@,$ac_top_builddir,;t t
8068s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8069s,@INSTALL@,$ac_INSTALL,;t t
8070" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8071 rm -f $tmp/stdin
8072 if test x"$ac_file" != x-; then
8073 mv $tmp/out $ac_file
8074 else
8075 cat $tmp/out
8076 rm -f $tmp/out
8077 fi
8078
8079done
8080_ACEOF
8081cat >>$CONFIG_STATUS <<\_ACEOF
8082
8083#
8084# CONFIG_HEADER section.
8085#
8086
8087# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8088# NAME is the cpp macro being defined and VALUE is the value it is being given.
8089#
8090# ac_d sets the value in "#define NAME VALUE" lines.
8091ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8092ac_dB='[ ].*$,\1#\2'
8093ac_dC=' '
8094ac_dD=',;t'
8095# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8096ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8097ac_uB='$,\1#\2define\3'
8098ac_uC=' '
8099ac_uD=',;t'
8100
8101for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8102 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8103 case $ac_file in
8104 - | *:- | *:-:* ) # input from stdin
8105 cat >$tmp/stdin
8106 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8108 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8109 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8110 * ) ac_file_in=$ac_file.in ;;
8111 esac
8112
8113 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8114echo "$as_me: creating $ac_file" >&6;}
8115
8116 # First look for the input files in the build tree, otherwise in the
8117 # src tree.
8118 ac_file_inputs=`IFS=:
8119 for f in $ac_file_in; do
8120 case $f in
8121 -) echo $tmp/stdin ;;
8122 [\\/$]*)
8123 # Absolute (can't be DOS-style, as IFS=:)
8124 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8125echo "$as_me: error: cannot find input file: $f" >&2;}
8126 { (exit 1); exit 1; }; }
8127 echo $f;;
8128 *) # Relative
8129 if test -f "$f"; then
8130 # Build tree
8131 echo $f
8132 elif test -f "$srcdir/$f"; then
8133 # Source tree
8134 echo $srcdir/$f
8135 else
8136 # /dev/null tree
8137 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8138echo "$as_me: error: cannot find input file: $f" >&2;}
8139 { (exit 1); exit 1; }; }
8140 fi;;
8141 esac
8142 done` || { (exit 1); exit 1; }
8143 # Remove the trailing spaces.
8144 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8145
8146_ACEOF
8147
8148# Transform confdefs.h into two sed scripts, `conftest.defines' and
8149# `conftest.undefs', that substitutes the proper values into
8150# config.h.in to produce config.h. The first handles `#define'
8151# templates, and the second `#undef' templates.
8152# And first: Protect against being on the right side of a sed subst in
8153# config.status. Protect against being in an unquoted here document
8154# in config.status.
8155rm -f conftest.defines conftest.undefs
8156# Using a here document instead of a string reduces the quoting nightmare.
8157# Putting comments in sed scripts is not portable.
8158#
8159# `end' is used to avoid that the second main sed command (meant for
8160# 0-ary CPP macros) applies to n-ary macro definitions.
8161# See the Autoconf documentation for `clear'.
8162cat >confdef2sed.sed <<\_ACEOF
8163s/[\\&,]/\\&/g
8164s,[\\$`],\\&,g
8165t clear
8166: clear
8167s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8168t end
8169s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8170: end
8171_ACEOF
8172# If some macros were called several times there might be several times
8173# the same #defines, which is useless. Nevertheless, we may not want to
8174# sort them, since we want the *last* AC-DEFINE to be honored.
8175uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8176sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8177rm -f confdef2sed.sed
8178
8179# This sed command replaces #undef with comments. This is necessary, for
8180# example, in the case of _POSIX_SOURCE, which is predefined and required
8181# on some systems where configure will not decide to define it.
8182cat >>conftest.undefs <<\_ACEOF
8183s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8184_ACEOF
8185
8186# Break up conftest.defines because some shells have a limit on the size
8187# of here documents, and old seds have small limits too (100 cmds).
8188echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
paulccf35572003-03-01 11:42:20 +00008189echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
paul718e3742002-12-13 20:15:29 +00008190echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8191echo ' :' >>$CONFIG_STATUS
8192rm -f conftest.tail
8193while grep . conftest.defines >/dev/null
8194do
8195 # Write a limited-size here document to $tmp/defines.sed.
8196 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8197 # Speed up: don't consider the non `#define' lines.
8198 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8199 # Work around the forget-to-reset-the-flag bug.
8200 echo 't clr' >>$CONFIG_STATUS
8201 echo ': clr' >>$CONFIG_STATUS
8202 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8203 echo 'CEOF
8204 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8205 rm -f $tmp/in
8206 mv $tmp/out $tmp/in
8207' >>$CONFIG_STATUS
8208 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8209 rm -f conftest.defines
8210 mv conftest.tail conftest.defines
8211done
8212rm -f conftest.defines
paulccf35572003-03-01 11:42:20 +00008213echo ' fi # egrep' >>$CONFIG_STATUS
paul718e3742002-12-13 20:15:29 +00008214echo >>$CONFIG_STATUS
8215
8216# Break up conftest.undefs because some shells have a limit on the size
8217# of here documents, and old seds have small limits too (100 cmds).
8218echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8219rm -f conftest.tail
8220while grep . conftest.undefs >/dev/null
8221do
8222 # Write a limited-size here document to $tmp/undefs.sed.
8223 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8224 # Speed up: don't consider the non `#undef'
8225 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8226 # Work around the forget-to-reset-the-flag bug.
8227 echo 't clr' >>$CONFIG_STATUS
8228 echo ': clr' >>$CONFIG_STATUS
8229 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8230 echo 'CEOF
8231 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8232 rm -f $tmp/in
8233 mv $tmp/out $tmp/in
8234' >>$CONFIG_STATUS
8235 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8236 rm -f conftest.undefs
8237 mv conftest.tail conftest.undefs
8238done
8239rm -f conftest.undefs
8240
8241cat >>$CONFIG_STATUS <<\_ACEOF
8242 # Let's still pretend it is `configure' which instantiates (i.e., don't
8243 # use $as_me), people would be surprised to read:
8244 # /* config.h. Generated by config.status. */
8245 if test x"$ac_file" = x-; then
8246 echo "/* Generated by configure. */" >$tmp/config.h
8247 else
8248 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8249 fi
8250 cat $tmp/in >>$tmp/config.h
8251 rm -f $tmp/in
8252 if test x"$ac_file" != x-; then
8253 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8254 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8255echo "$as_me: $ac_file is unchanged" >&6;}
8256 else
8257 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8259 X"$ac_file" : 'X\(//\)[^/]' \| \
8260 X"$ac_file" : 'X\(//\)$' \| \
8261 X"$ac_file" : 'X\(/\)' \| \
8262 . : '\(.\)' 2>/dev/null ||
8263echo X"$ac_file" |
8264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8266 /^X\(\/\/\)$/{ s//\1/; q; }
8267 /^X\(\/\).*/{ s//\1/; q; }
8268 s/.*/./; q'`
paulccf35572003-03-01 11:42:20 +00008269 { case "$ac_dir" in
8270 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8271 *) as_incr_dir=.;;
8272esac
8273as_dummy="$ac_dir"
8274for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8275 case $as_mkdir_dir in
8276 # Skip DOS drivespec
8277 ?:) as_incr_dir=$as_mkdir_dir ;;
8278 *)
8279 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8280 test -d "$as_incr_dir" ||
8281 mkdir "$as_incr_dir" ||
8282 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8283echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8284 { (exit 1); exit 1; }; }
8285 ;;
8286 esac
8287done; }
paul718e3742002-12-13 20:15:29 +00008288
8289 rm -f $ac_file
8290 mv $tmp/config.h $ac_file
8291 fi
8292 else
8293 cat $tmp/config.h
8294 rm -f $tmp/config.h
8295 fi
paulccf35572003-03-01 11:42:20 +00008296 # Run the commands associated with the file.
8297 case $ac_file in
8298 config.h ) # update the timestamp
8299echo 'timestamp for config.h' >"./stamp-h1"
8300 ;;
8301 esac
paul718e3742002-12-13 20:15:29 +00008302done
8303_ACEOF
8304cat >>$CONFIG_STATUS <<\_ACEOF
8305
8306#
8307# CONFIG_COMMANDS section.
8308#
8309for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8310 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8311 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8312 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8313$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8314 X"$ac_dest" : 'X\(//\)[^/]' \| \
8315 X"$ac_dest" : 'X\(//\)$' \| \
8316 X"$ac_dest" : 'X\(/\)' \| \
8317 . : '\(.\)' 2>/dev/null ||
8318echo X"$ac_dest" |
8319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8321 /^X\(\/\/\)$/{ s//\1/; q; }
8322 /^X\(\/\).*/{ s//\1/; q; }
8323 s/.*/./; q'`
8324 ac_builddir=.
8325
8326if test "$ac_dir" != .; then
8327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8328 # A "../" for each directory in $ac_dir_suffix.
8329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8330else
8331 ac_dir_suffix= ac_top_builddir=
8332fi
8333
8334case $srcdir in
8335 .) # No --srcdir option. We are building in place.
8336 ac_srcdir=.
8337 if test -z "$ac_top_builddir"; then
8338 ac_top_srcdir=.
8339 else
8340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8341 fi ;;
8342 [\\/]* | ?:[\\/]* ) # Absolute path.
8343 ac_srcdir=$srcdir$ac_dir_suffix;
8344 ac_top_srcdir=$srcdir ;;
8345 *) # Relative path.
8346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8348esac
8349# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8350# absolute.
8351ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
paulccf35572003-03-01 11:42:20 +00008352ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
paul718e3742002-12-13 20:15:29 +00008353ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8354ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8355
8356
8357 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8358echo "$as_me: executing $ac_dest commands" >&6;}
8359 case $ac_dest in
8360 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8361 # Strip MF so we end up with the name of the file.
8362 mf=`echo "$mf" | sed -e 's/:.*$//'`
8363 # Check whether this is an Automake generated Makefile or not.
8364 # We used to match only the files named `Makefile.in', but
8365 # some people rename them; so instead we look at the file content.
8366 # Grep'ing the first line is not enough: some people post-process
8367 # each Makefile.in and add a new line on top of each file to say so.
8368 # So let's grep whole file.
8369 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8370 dirpart=`(dirname "$mf") 2>/dev/null ||
8371$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8372 X"$mf" : 'X\(//\)[^/]' \| \
8373 X"$mf" : 'X\(//\)$' \| \
8374 X"$mf" : 'X\(/\)' \| \
8375 . : '\(.\)' 2>/dev/null ||
8376echo X"$mf" |
8377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8379 /^X\(\/\/\)$/{ s//\1/; q; }
8380 /^X\(\/\).*/{ s//\1/; q; }
8381 s/.*/./; q'`
8382 else
8383 continue
8384 fi
8385 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8386 # Extract the definition of DEP_FILES from the Makefile without
8387 # running `make'.
8388 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8389 test -z "$DEPDIR" && continue
8390 # When using ansi2knr, U may be empty or an underscore; expand it
8391 U=`sed -n -e '/^U = / s///p' < "$mf"`
8392 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8393 # We invoke sed twice because it is the simplest approach to
8394 # changing $(DEPDIR) to its actual value in the expansion.
8395 for file in `sed -n -e '
8396 /^DEP_FILES = .*\\\\$/ {
8397 s/^DEP_FILES = //
8398 :loop
8399 s/\\\\$//
8400 p
8401 n
8402 /\\\\$/ b loop
8403 p
8404 }
8405 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8406 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8407 # Make sure the directory exists.
8408 test -f "$dirpart/$file" && continue
8409 fdir=`(dirname "$file") 2>/dev/null ||
8410$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8411 X"$file" : 'X\(//\)[^/]' \| \
8412 X"$file" : 'X\(//\)$' \| \
8413 X"$file" : 'X\(/\)' \| \
8414 . : '\(.\)' 2>/dev/null ||
8415echo X"$file" |
8416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8418 /^X\(\/\/\)$/{ s//\1/; q; }
8419 /^X\(\/\).*/{ s//\1/; q; }
8420 s/.*/./; q'`
paulccf35572003-03-01 11:42:20 +00008421 { case $dirpart/$fdir in
8422 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8423 *) as_incr_dir=.;;
8424esac
8425as_dummy=$dirpart/$fdir
8426for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8427 case $as_mkdir_dir in
8428 # Skip DOS drivespec
8429 ?:) as_incr_dir=$as_mkdir_dir ;;
8430 *)
8431 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8432 test -d "$as_incr_dir" ||
8433 mkdir "$as_incr_dir" ||
8434 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
8435echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
8436 { (exit 1); exit 1; }; }
8437 ;;
8438 esac
8439done; }
paul718e3742002-12-13 20:15:29 +00008440
8441 # echo "creating $dirpart/$file"
8442 echo '# dummy' > "$dirpart/$file"
8443 done
8444done
8445 ;;
8446 esac
8447done
8448_ACEOF
8449
8450cat >>$CONFIG_STATUS <<\_ACEOF
8451
8452{ (exit 0); exit 0; }
8453_ACEOF
8454chmod +x $CONFIG_STATUS
8455ac_clean_files=$ac_clean_files_save
8456
8457
8458# configure is writing to config.log, and then calls config.status.
8459# config.status does its own redirection, appending to config.log.
8460# Unfortunately, on DOS this fails, as config.log is still kept open
8461# by configure, so config.status won't be able to write to it; its
8462# output is simply discarded. So we exec the FD to /dev/null,
8463# effectively closing config.log, so it can be properly (re)opened and
8464# appended to by config.status. When coming back to configure, we
8465# need to make the FD available again.
8466if test "$no_create" != yes; then
8467 ac_cs_success=:
8468 exec 5>/dev/null
8469 $SHELL $CONFIG_STATUS || ac_cs_success=false
8470 exec 5>>config.log
8471 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8472 # would make configure fail if this is the last instruction.
8473 $ac_cs_success || { (exit 1); exit 1; }
8474fi
8475
8476
8477echo "
8478zebra configuration
8479-------------------
8480zebra version : ${VERSION}
8481host operationg system : ${host_os}
8482source code location : ${srcdir}
8483compiler : ${CC}
8484compiler flags : ${CFLAGS}
8485directory for pid files : ${ac_piddir}
8486"