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