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