~ubuntu-branches/ubuntu/warty/quagga/warty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2004-06-29 09:50:59 UTC
  • Revision ID: james.westby@ubuntu.com-20040629095059-px1m2m108z4qw1mr
Tags: upstream-0.96.5
ImportĀ upstreamĀ versionĀ 0.96.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.57 for quagga 0.96.5.
 
4
#
 
5
# Report bugs to <http://bugzilla.quagga.net>.
 
6
#
 
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
8
# Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be Bourne compatible
 
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
17
  emulate sh
 
18
  NULLCMD=:
 
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20
  # is contrary to our usage.  Disable this feature.
 
21
  alias -g '${1+"$@"}'='"$@"'
 
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
23
  set -o posix
 
24
fi
 
25
 
 
26
# Support unset when possible.
 
27
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  as_mkdir_p=false
 
224
fi
 
225
 
 
226
as_executable_p="test -f"
 
227
 
 
228
# Sed expression to map a string onto a valid CPP name.
 
229
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
230
 
 
231
# Sed expression to map a string onto a valid variable name.
 
232
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
233
 
 
234
 
 
235
# IFS
 
236
# We need space, tab and new line, in precisely that order.
 
237
as_nl='
 
238
'
 
239
IFS="   $as_nl"
 
240
 
 
241
# CDPATH.
 
242
$as_unset CDPATH
 
243
 
 
244
 
 
245
# Name of the host.
 
246
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
247
# so uname gets run too.
 
248
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
249
 
 
250
exec 6>&1
 
251
 
 
252
#
 
253
# Initializations.
 
254
#
 
255
ac_default_prefix=/usr/local
 
256
ac_config_libobj_dir=.
 
257
cross_compiling=no
 
258
subdirs=
 
259
MFLAGS=
 
260
MAKEFLAGS=
 
261
SHELL=${CONFIG_SHELL-/bin/sh}
 
262
 
 
263
# Maximum number of lines to put in a shell here document.
 
264
# This variable seems obsolete.  It should probably be removed, and
 
265
# only ac_max_sed_lines should be used.
 
266
: ${ac_max_here_lines=38}
 
267
 
 
268
# Identity of this package.
 
269
PACKAGE_NAME='quagga'
 
270
PACKAGE_TARNAME='quagga'
 
271
PACKAGE_VERSION='0.96.5'
 
272
PACKAGE_STRING='quagga 0.96.5'
 
273
PACKAGE_BUGREPORT='http://bugzilla.quagga.net'
 
274
 
 
275
ac_unique_file="lib/zebra.h"
 
276
# Factoring default headers for most tests.
 
277
ac_includes_default="\
 
278
#include <stdio.h>
 
279
#if HAVE_SYS_TYPES_H
 
280
# include <sys/types.h>
 
281
#endif
 
282
#if HAVE_SYS_STAT_H
 
283
# include <sys/stat.h>
 
284
#endif
 
285
#if STDC_HEADERS
 
286
# include <stdlib.h>
 
287
# include <stddef.h>
 
288
#else
 
289
# if HAVE_STDLIB_H
 
290
#  include <stdlib.h>
 
291
# endif
 
292
#endif
 
293
#if HAVE_STRING_H
 
294
# if !STDC_HEADERS && HAVE_MEMORY_H
 
295
#  include <memory.h>
 
296
# endif
 
297
# include <string.h>
 
298
#endif
 
299
#if HAVE_STRINGS_H
 
300
# include <strings.h>
 
301
#endif
 
302
#if HAVE_INTTYPES_H
 
303
# include <inttypes.h>
 
304
#else
 
305
# if HAVE_STDINT_H
 
306
#  include <stdint.h>
 
307
# endif
 
308
#endif
 
309
#if HAVE_UNISTD_H
 
310
# include <unistd.h>
 
311
#endif"
 
312
 
 
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot exampledir build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP AR ac_ct_AR RANLIB ac_ct_RANLIB EGREP MULTIPATH_NUM LIBPAM RT_METHOD KERNEL_METHOD OTHER_METHOD RTREAD_METHOD IF_METHOD IF_PROC IPFORWARD LIB_IPV6 ZEBRA BGPD RIPD RIPNGD OSPFD OSPF6D ISISD VTYSH INCLUDES CURSES OSPFCLIENT OSPFAPI LIB_REGEX LIBCAP CONFDATE LIBOBJS LTLIBOBJS'
 
314
ac_subst_files=''
 
315
 
 
316
# Initialize some variables set by options.
 
317
ac_init_help=
 
318
ac_init_version=false
 
319
# The variables have the same names as the options, with
 
320
# dashes changed to underlines.
 
321
cache_file=/dev/null
 
322
exec_prefix=NONE
 
323
no_create=
 
324
no_recursion=
 
325
prefix=NONE
 
326
program_prefix=NONE
 
327
program_suffix=NONE
 
328
program_transform_name=s,x,x,
 
329
silent=
 
330
site=
 
331
srcdir=
 
332
verbose=
 
333
x_includes=NONE
 
334
x_libraries=NONE
 
335
 
 
336
# Installation directory options.
 
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
338
# and all the variables that are supposed to be based on exec_prefix
 
339
# by default will actually change.
 
340
# Use braces instead of parens because sh, perl, etc. also accept them.
 
341
bindir='${exec_prefix}/bin'
 
342
sbindir='${exec_prefix}/sbin'
 
343
libexecdir='${exec_prefix}/libexec'
 
344
datadir='${prefix}/share'
 
345
sysconfdir='${prefix}/etc'
 
346
sharedstatedir='${prefix}/com'
 
347
localstatedir='${prefix}/var'
 
348
libdir='${exec_prefix}/lib'
 
349
includedir='${prefix}/include'
 
350
oldincludedir='/usr/include'
 
351
infodir='${prefix}/info'
 
352
mandir='${prefix}/man'
 
353
 
 
354
ac_prev=
 
355
for ac_option
 
356
do
 
357
  # If the previous option needs an argument, assign it.
 
358
  if test -n "$ac_prev"; then
 
359
    eval "$ac_prev=\$ac_option"
 
360
    ac_prev=
 
361
    continue
 
362
  fi
 
363
 
 
364
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
365
 
 
366
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
367
 
 
368
  case $ac_option in
 
369
 
 
370
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
371
    ac_prev=bindir ;;
 
372
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
373
    bindir=$ac_optarg ;;
 
374
 
 
375
  -build | --build | --buil | --bui | --bu)
 
376
    ac_prev=build_alias ;;
 
377
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
378
    build_alias=$ac_optarg ;;
 
379
 
 
380
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
381
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
382
    ac_prev=cache_file ;;
 
383
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
384
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
385
    cache_file=$ac_optarg ;;
 
386
 
 
387
  --config-cache | -C)
 
388
    cache_file=config.cache ;;
 
389
 
 
390
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
391
    ac_prev=datadir ;;
 
392
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
393
  | --da=*)
 
394
    datadir=$ac_optarg ;;
 
395
 
 
396
  -disable-* | --disable-*)
 
397
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
398
    # Reject names that are not valid shell variable names.
 
399
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
400
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
401
   { (exit 1); exit 1; }; }
 
402
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
403
    eval "enable_$ac_feature=no" ;;
 
404
 
 
405
  -enable-* | --enable-*)
 
406
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
407
    # Reject names that are not valid shell variable names.
 
408
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
409
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
410
   { (exit 1); exit 1; }; }
 
411
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
412
    case $ac_option in
 
413
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
414
      *) ac_optarg=yes ;;
 
415
    esac
 
416
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
417
 
 
418
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
419
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
420
  | --exec | --exe | --ex)
 
421
    ac_prev=exec_prefix ;;
 
422
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
423
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
424
  | --exec=* | --exe=* | --ex=*)
 
425
    exec_prefix=$ac_optarg ;;
 
426
 
 
427
  -gas | --gas | --ga | --g)
 
428
    # Obsolete; use --with-gas.
 
429
    with_gas=yes ;;
 
430
 
 
431
  -help | --help | --hel | --he | -h)
 
432
    ac_init_help=long ;;
 
433
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
434
    ac_init_help=recursive ;;
 
435
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
436
    ac_init_help=short ;;
 
437
 
 
438
  -host | --host | --hos | --ho)
 
439
    ac_prev=host_alias ;;
 
440
  -host=* | --host=* | --hos=* | --ho=*)
 
441
    host_alias=$ac_optarg ;;
 
442
 
 
443
  -includedir | --includedir | --includedi | --included | --include \
 
444
  | --includ | --inclu | --incl | --inc)
 
445
    ac_prev=includedir ;;
 
446
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
447
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
448
    includedir=$ac_optarg ;;
 
449
 
 
450
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
451
    ac_prev=infodir ;;
 
452
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
453
    infodir=$ac_optarg ;;
 
454
 
 
455
  -libdir | --libdir | --libdi | --libd)
 
456
    ac_prev=libdir ;;
 
457
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
458
    libdir=$ac_optarg ;;
 
459
 
 
460
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
461
  | --libexe | --libex | --libe)
 
462
    ac_prev=libexecdir ;;
 
463
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
464
  | --libexe=* | --libex=* | --libe=*)
 
465
    libexecdir=$ac_optarg ;;
 
466
 
 
467
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
468
  | --localstate | --localstat | --localsta | --localst \
 
469
  | --locals | --local | --loca | --loc | --lo)
 
470
    ac_prev=localstatedir ;;
 
471
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
472
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
473
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
474
    localstatedir=$ac_optarg ;;
 
475
 
 
476
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
477
    ac_prev=mandir ;;
 
478
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
479
    mandir=$ac_optarg ;;
 
480
 
 
481
  -nfp | --nfp | --nf)
 
482
    # Obsolete; use --without-fp.
 
483
    with_fp=no ;;
 
484
 
 
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
486
  | --no-cr | --no-c | -n)
 
487
    no_create=yes ;;
 
488
 
 
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
490
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
491
    no_recursion=yes ;;
 
492
 
 
493
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
494
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
495
  | --oldin | --oldi | --old | --ol | --o)
 
496
    ac_prev=oldincludedir ;;
 
497
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
498
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
499
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
500
    oldincludedir=$ac_optarg ;;
 
501
 
 
502
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
503
    ac_prev=prefix ;;
 
504
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
505
    prefix=$ac_optarg ;;
 
506
 
 
507
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
508
  | --program-pre | --program-pr | --program-p)
 
509
    ac_prev=program_prefix ;;
 
510
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
511
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
512
    program_prefix=$ac_optarg ;;
 
513
 
 
514
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
515
  | --program-suf | --program-su | --program-s)
 
516
    ac_prev=program_suffix ;;
 
517
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
518
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
519
    program_suffix=$ac_optarg ;;
 
520
 
 
521
  -program-transform-name | --program-transform-name \
 
522
  | --program-transform-nam | --program-transform-na \
 
523
  | --program-transform-n | --program-transform- \
 
524
  | --program-transform | --program-transfor \
 
525
  | --program-transfo | --program-transf \
 
526
  | --program-trans | --program-tran \
 
527
  | --progr-tra | --program-tr | --program-t)
 
528
    ac_prev=program_transform_name ;;
 
529
  -program-transform-name=* | --program-transform-name=* \
 
530
  | --program-transform-nam=* | --program-transform-na=* \
 
531
  | --program-transform-n=* | --program-transform-=* \
 
532
  | --program-transform=* | --program-transfor=* \
 
533
  | --program-transfo=* | --program-transf=* \
 
534
  | --program-trans=* | --program-tran=* \
 
535
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
536
    program_transform_name=$ac_optarg ;;
 
537
 
 
538
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
539
  | -silent | --silent | --silen | --sile | --sil)
 
540
    silent=yes ;;
 
541
 
 
542
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
543
    ac_prev=sbindir ;;
 
544
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
545
  | --sbi=* | --sb=*)
 
546
    sbindir=$ac_optarg ;;
 
547
 
 
548
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
549
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
550
  | --sharedst | --shareds | --shared | --share | --shar \
 
551
  | --sha | --sh)
 
552
    ac_prev=sharedstatedir ;;
 
553
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
554
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
555
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
556
  | --sha=* | --sh=*)
 
557
    sharedstatedir=$ac_optarg ;;
 
558
 
 
559
  -site | --site | --sit)
 
560
    ac_prev=site ;;
 
561
  -site=* | --site=* | --sit=*)
 
562
    site=$ac_optarg ;;
 
563
 
 
564
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
565
    ac_prev=srcdir ;;
 
566
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
567
    srcdir=$ac_optarg ;;
 
568
 
 
569
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
570
  | --syscon | --sysco | --sysc | --sys | --sy)
 
571
    ac_prev=sysconfdir ;;
 
572
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
573
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
574
    sysconfdir=$ac_optarg ;;
 
575
 
 
576
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
577
    ac_prev=target_alias ;;
 
578
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
579
    target_alias=$ac_optarg ;;
 
580
 
 
581
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
582
    verbose=yes ;;
 
583
 
 
584
  -version | --version | --versio | --versi | --vers | -V)
 
585
    ac_init_version=: ;;
 
586
 
 
587
  -with-* | --with-*)
 
588
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
589
    # Reject names that are not valid shell variable names.
 
590
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
591
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
592
   { (exit 1); exit 1; }; }
 
593
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
594
    case $ac_option in
 
595
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
596
      *) ac_optarg=yes ;;
 
597
    esac
 
598
    eval "with_$ac_package='$ac_optarg'" ;;
 
599
 
 
600
  -without-* | --without-*)
 
601
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
602
    # Reject names that are not valid shell variable names.
 
603
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
604
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
605
   { (exit 1); exit 1; }; }
 
606
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
607
    eval "with_$ac_package=no" ;;
 
608
 
 
609
  --x)
 
610
    # Obsolete; use --with-x.
 
611
    with_x=yes ;;
 
612
 
 
613
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
614
  | --x-incl | --x-inc | --x-in | --x-i)
 
615
    ac_prev=x_includes ;;
 
616
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
617
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
618
    x_includes=$ac_optarg ;;
 
619
 
 
620
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
621
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
622
    ac_prev=x_libraries ;;
 
623
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
624
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
625
    x_libraries=$ac_optarg ;;
 
626
 
 
627
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
628
Try \`$0 --help' for more information." >&2
 
629
   { (exit 1); exit 1; }; }
 
630
    ;;
 
631
 
 
632
  *=*)
 
633
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
634
    # Reject names that are not valid shell variable names.
 
635
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
636
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
637
   { (exit 1); exit 1; }; }
 
638
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
639
    eval "$ac_envvar='$ac_optarg'"
 
640
    export $ac_envvar ;;
 
641
 
 
642
  *)
 
643
    # FIXME: should be removed in autoconf 3.0.
 
644
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
645
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
646
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
647
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
648
    ;;
 
649
 
 
650
  esac
 
651
done
 
652
 
 
653
if test -n "$ac_prev"; then
 
654
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
655
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
656
   { (exit 1); exit 1; }; }
 
657
fi
 
658
 
 
659
# Be sure to have absolute paths.
 
660
for ac_var in exec_prefix prefix
 
661
do
 
662
  eval ac_val=$`echo $ac_var`
 
663
  case $ac_val in
 
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
666
   { (exit 1); exit 1; }; };;
 
667
  esac
 
668
done
 
669
 
 
670
# Be sure to have absolute paths.
 
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
672
              localstatedir libdir includedir oldincludedir infodir mandir
 
673
do
 
674
  eval ac_val=$`echo $ac_var`
 
675
  case $ac_val in
 
676
    [\\/$]* | ?:[\\/]* ) ;;
 
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
678
   { (exit 1); exit 1; }; };;
 
679
  esac
 
680
done
 
681
 
 
682
# There might be people who depend on the old broken behavior: `$host'
 
683
# used to hold the argument of --host etc.
 
684
# FIXME: To remove some day.
 
685
build=$build_alias
 
686
host=$host_alias
 
687
target=$target_alias
 
688
 
 
689
# FIXME: To remove some day.
 
690
if test "x$host_alias" != x; then
 
691
  if test "x$build_alias" = x; then
 
692
    cross_compiling=maybe
 
693
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
694
    If a cross compiler is detected then cross compile mode will be used." >&2
 
695
  elif test "x$build_alias" != "x$host_alias"; then
 
696
    cross_compiling=yes
 
697
  fi
 
698
fi
 
699
 
 
700
ac_tool_prefix=
 
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
702
 
 
703
test "$silent" = yes && exec 6>/dev/null
 
704
 
 
705
 
 
706
# Find the source files, if location was not specified.
 
707
if test -z "$srcdir"; then
 
708
  ac_srcdir_defaulted=yes
 
709
  # Try the directory containing this script, then its parent.
 
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
712
         X"$0" : 'X\(//\)[^/]' \| \
 
713
         X"$0" : 'X\(//\)$' \| \
 
714
         X"$0" : 'X\(/\)' \| \
 
715
         .     : '\(.\)' 2>/dev/null ||
 
716
echo X"$0" |
 
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
720
          /^X\(\/\).*/{ s//\1/; q; }
 
721
          s/.*/./; q'`
 
722
  srcdir=$ac_confdir
 
723
  if test ! -r $srcdir/$ac_unique_file; then
 
724
    srcdir=..
 
725
  fi
 
726
else
 
727
  ac_srcdir_defaulted=no
 
728
fi
 
729
if test ! -r $srcdir/$ac_unique_file; then
 
730
  if test "$ac_srcdir_defaulted" = yes; then
 
731
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
732
   { (exit 1); exit 1; }; }
 
733
  else
 
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
735
   { (exit 1); exit 1; }; }
 
736
  fi
 
737
fi
 
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
740
   { (exit 1); exit 1; }; }
 
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
742
ac_env_build_alias_set=${build_alias+set}
 
743
ac_env_build_alias_value=$build_alias
 
744
ac_cv_env_build_alias_set=${build_alias+set}
 
745
ac_cv_env_build_alias_value=$build_alias
 
746
ac_env_host_alias_set=${host_alias+set}
 
747
ac_env_host_alias_value=$host_alias
 
748
ac_cv_env_host_alias_set=${host_alias+set}
 
749
ac_cv_env_host_alias_value=$host_alias
 
750
ac_env_target_alias_set=${target_alias+set}
 
751
ac_env_target_alias_value=$target_alias
 
752
ac_cv_env_target_alias_set=${target_alias+set}
 
753
ac_cv_env_target_alias_value=$target_alias
 
754
ac_env_CC_set=${CC+set}
 
755
ac_env_CC_value=$CC
 
756
ac_cv_env_CC_set=${CC+set}
 
757
ac_cv_env_CC_value=$CC
 
758
ac_env_CFLAGS_set=${CFLAGS+set}
 
759
ac_env_CFLAGS_value=$CFLAGS
 
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
761
ac_cv_env_CFLAGS_value=$CFLAGS
 
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
763
ac_env_LDFLAGS_value=$LDFLAGS
 
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
767
ac_env_CPPFLAGS_value=$CPPFLAGS
 
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
770
ac_env_CPP_set=${CPP+set}
 
771
ac_env_CPP_value=$CPP
 
772
ac_cv_env_CPP_set=${CPP+set}
 
773
ac_cv_env_CPP_value=$CPP
 
774
 
 
775
#
 
776
# Report the --help message.
 
777
#
 
778
if test "$ac_init_help" = "long"; then
 
779
  # Omit some internal or obsolete options to make the list less imposing.
 
780
  # This message is too long to be a string in the A/UX 3.1 sh.
 
781
  cat <<_ACEOF
 
782
\`configure' configures quagga 0.96.5 to adapt to many kinds of systems.
 
783
 
 
784
Usage: $0 [OPTION]... [VAR=VALUE]...
 
785
 
 
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
787
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
788
 
 
789
Defaults for the options are specified in brackets.
 
790
 
 
791
Configuration:
 
792
  -h, --help              display this help and exit
 
793
      --help=short        display options specific to this package
 
794
      --help=recursive    display the short help of all the included packages
 
795
  -V, --version           display version information and exit
 
796
  -q, --quiet, --silent   do not print \`checking...' messages
 
797
      --cache-file=FILE   cache test results in FILE [disabled]
 
798
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
799
  -n, --no-create         do not create output files
 
800
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
801
 
 
802
_ACEOF
 
803
 
 
804
  cat <<_ACEOF
 
805
Installation directories:
 
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
807
                          [$ac_default_prefix]
 
808
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
809
                          [PREFIX]
 
810
 
 
811
By default, \`make install' will install all the files in
 
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
814
for instance \`--prefix=\$HOME'.
 
815
 
 
816
For better control, use the options below.
 
817
 
 
818
Fine tuning of the installation directories:
 
819
  --bindir=DIR           user executables [EPREFIX/bin]
 
820
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
821
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
822
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
823
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
824
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
825
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
826
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
827
  --includedir=DIR       C header files [PREFIX/include]
 
828
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
829
  --infodir=DIR          info documentation [PREFIX/info]
 
830
  --mandir=DIR           man documentation [PREFIX/man]
 
831
_ACEOF
 
832
 
 
833
  cat <<\_ACEOF
 
834
 
 
835
Program names:
 
836
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
837
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
838
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
839
 
 
840
System types:
 
841
  --build=BUILD     configure for building on BUILD [guessed]
 
842
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
843
_ACEOF
 
844
fi
 
845
 
 
846
if test -n "$ac_init_help"; then
 
847
  case $ac_init_help in
 
848
     short | recursive ) echo "Configuration of quagga 0.96.5:";;
 
849
   esac
 
850
  cat <<\_ACEOF
 
851
 
 
852
Optional Features:
 
853
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
854
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
855
  --enable-exampledir     specify alternate directory for examples
 
856
  --disable-dependency-tracking Speeds up one-time builds
 
857
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
858
  --enable-vtysh,       Make integrated vty shell for Quagga
 
859
  --disable-ipv6          turn off IPv6 related features and daemons
 
860
  --disable-zebra         do not build zebra daemon
 
861
  --disable-bgpd          do not build bgpd
 
862
  --disable-ripd          do not build ripd
 
863
  --disable-ripngd        do not build ripngd
 
864
  --disable-ospfd         do not build ospfd
 
865
  --disable-ospf6d        do not build ospf6d
 
866
  --disable-isisd         do not build isisd
 
867
  --disable-bgp-announce, turn off BGP route announcement
 
868
  --enable-netlink        force to use Linux netlink interface
 
869
  --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
 
870
  --enable-snmp           enable SNMP support
 
871
  --enable-tcp-zebra      enable TCP/IP socket connection between zebra and protocol daemon
 
872
  --enable-nssa           enable OSPF NSSA option
 
873
  --enable-opaque-lsa     enable OSPF Opaque-LSA with OSPFAPI support (RFC2370)
 
874
  --disable-ospfapi       do not build OSPFAPI to access the OSPF LSA Database,
 
875
                          (this is the default if --enable-opaque-lsa is not set)
 
876
  --disable-ospfclient    do not build OSPFAPI client for OSPFAPI,
 
877
                          (this is the default if --disable-ospfapi is set)
 
878
  --enable-ospf-te        enable Traffic Engineering Extension to OSPF
 
879
  --enable-multipath=ARG  enable multipath function, ARG must be digit
 
880
  --enable-user=ARG       user to run Quagga suite as (default quagga)
 
881
  --enable-group=ARG      group to run Quagga suite as (default quagga)
 
882
  --enable-vty-group=ARG      set vty sockets to have specified group as owner
 
883
  --enable-configfile-mask=ARG  set mask for config files
 
884
  --enable-logfile-mask=ARG     set mask for log files
 
885
  --disable-rtadv         disable IPV6 router advertisement feature
 
886
  --disable-capabilities        disable using POSIX capabilities
 
887
 
 
888
Optional Packages:
 
889
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
890
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
891
  --with-cflags           Set CFLAGS for use in compilation.
 
892
  --with-libpam           use libpam for PAM support in vtysh
 
893
 
 
894
Some influential environment variables:
 
895
  CC          C compiler command
 
896
  CFLAGS      C compiler flags
 
897
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
898
              nonstandard directory <lib dir>
 
899
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
900
              headers in a nonstandard directory <include dir>
 
901
  CPP         C preprocessor
 
902
 
 
903
Use these variables to override the choices made by `configure' or to help
 
904
it to find libraries and programs with nonstandard names/locations.
 
905
 
 
906
Report bugs to <http://bugzilla.quagga.net>.
 
907
_ACEOF
 
908
fi
 
909
 
 
910
if test "$ac_init_help" = "recursive"; then
 
911
  # If there are subdirs, report their specific --help.
 
912
  ac_popdir=`pwd`
 
913
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
914
    test -d $ac_dir || continue
 
915
    ac_builddir=.
 
916
 
 
917
if test "$ac_dir" != .; then
 
918
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
919
  # A "../" for each directory in $ac_dir_suffix.
 
920
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
921
else
 
922
  ac_dir_suffix= ac_top_builddir=
 
923
fi
 
924
 
 
925
case $srcdir in
 
926
  .)  # No --srcdir option.  We are building in place.
 
927
    ac_srcdir=.
 
928
    if test -z "$ac_top_builddir"; then
 
929
       ac_top_srcdir=.
 
930
    else
 
931
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
932
    fi ;;
 
933
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
934
    ac_srcdir=$srcdir$ac_dir_suffix;
 
935
    ac_top_srcdir=$srcdir ;;
 
936
  *) # Relative path.
 
937
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
938
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
939
esac
 
940
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
941
# absolute.
 
942
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
943
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
944
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
945
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
946
 
 
947
    cd $ac_dir
 
948
    # Check for guested configure; otherwise get Cygnus style configure.
 
949
    if test -f $ac_srcdir/configure.gnu; then
 
950
      echo
 
951
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
952
    elif test -f $ac_srcdir/configure; then
 
953
      echo
 
954
      $SHELL $ac_srcdir/configure  --help=recursive
 
955
    elif test -f $ac_srcdir/configure.ac ||
 
956
           test -f $ac_srcdir/configure.in; then
 
957
      echo
 
958
      $ac_configure --help
 
959
    else
 
960
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
961
    fi
 
962
    cd $ac_popdir
 
963
  done
 
964
fi
 
965
 
 
966
test -n "$ac_init_help" && exit 0
 
967
if $ac_init_version; then
 
968
  cat <<\_ACEOF
 
969
quagga configure 0.96.5
 
970
generated by GNU Autoconf 2.57
 
971
 
 
972
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
973
Free Software Foundation, Inc.
 
974
This configure script is free software; the Free Software Foundation
 
975
gives unlimited permission to copy, distribute and modify it.
 
976
_ACEOF
 
977
  exit 0
 
978
fi
 
979
exec 5>config.log
 
980
cat >&5 <<_ACEOF
 
981
This file contains any messages produced by compilers while
 
982
running configure, to aid debugging if configure makes a mistake.
 
983
 
 
984
It was created by quagga $as_me 0.96.5, which was
 
985
generated by GNU Autoconf 2.57.  Invocation command line was
 
986
 
 
987
  $ $0 $@
 
988
 
 
989
_ACEOF
 
990
{
 
991
cat <<_ASUNAME
 
992
## --------- ##
 
993
## Platform. ##
 
994
## --------- ##
 
995
 
 
996
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
997
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
998
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
999
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1000
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1001
 
 
1002
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1003
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1004
 
 
1005
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1006
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1007
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1008
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1009
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1010
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1011
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1012
 
 
1013
_ASUNAME
 
1014
 
 
1015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1016
for as_dir in $PATH
 
1017
do
 
1018
  IFS=$as_save_IFS
 
1019
  test -z "$as_dir" && as_dir=.
 
1020
  echo "PATH: $as_dir"
 
1021
done
 
1022
 
 
1023
} >&5
 
1024
 
 
1025
cat >&5 <<_ACEOF
 
1026
 
 
1027
 
 
1028
## ----------- ##
 
1029
## Core tests. ##
 
1030
## ----------- ##
 
1031
 
 
1032
_ACEOF
 
1033
 
 
1034
 
 
1035
# Keep a trace of the command line.
 
1036
# Strip out --no-create and --no-recursion so they do not pile up.
 
1037
# Strip out --silent because we don't want to record it for future runs.
 
1038
# Also quote any args containing shell meta-characters.
 
1039
# Make two passes to allow for proper duplicate-argument suppression.
 
1040
ac_configure_args=
 
1041
ac_configure_args0=
 
1042
ac_configure_args1=
 
1043
ac_sep=
 
1044
ac_must_keep_next=false
 
1045
for ac_pass in 1 2
 
1046
do
 
1047
  for ac_arg
 
1048
  do
 
1049
    case $ac_arg in
 
1050
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1051
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1052
    | -silent | --silent | --silen | --sile | --sil)
 
1053
      continue ;;
 
1054
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1055
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1056
    esac
 
1057
    case $ac_pass in
 
1058
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1059
    2)
 
1060
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1061
      if test $ac_must_keep_next = true; then
 
1062
        ac_must_keep_next=false # Got value, back to normal.
 
1063
      else
 
1064
        case $ac_arg in
 
1065
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1066
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1067
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1068
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1069
            case "$ac_configure_args0 " in
 
1070
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1071
            esac
 
1072
            ;;
 
1073
          -* ) ac_must_keep_next=true ;;
 
1074
        esac
 
1075
      fi
 
1076
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1077
      # Get rid of the leading space.
 
1078
      ac_sep=" "
 
1079
      ;;
 
1080
    esac
 
1081
  done
 
1082
done
 
1083
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1084
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1085
 
 
1086
# When interrupted or exit'd, cleanup temporary files, and complete
 
1087
# config.log.  We remove comments because anyway the quotes in there
 
1088
# would cause problems or look ugly.
 
1089
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1090
# such as our DU 5.0 friend, will then `close' the trap.
 
1091
trap 'exit_status=$?
 
1092
  # Save into config.log some information that might help in debugging.
 
1093
  {
 
1094
    echo
 
1095
 
 
1096
    cat <<\_ASBOX
 
1097
## ---------------- ##
 
1098
## Cache variables. ##
 
1099
## ---------------- ##
 
1100
_ASBOX
 
1101
    echo
 
1102
    # The following way of writing the cache mishandles newlines in values,
 
1103
{
 
1104
  (set) 2>&1 |
 
1105
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1106
    *ac_space=\ *)
 
1107
      sed -n \
 
1108
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1109
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1110
      ;;
 
1111
    *)
 
1112
      sed -n \
 
1113
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1114
      ;;
 
1115
    esac;
 
1116
}
 
1117
    echo
 
1118
 
 
1119
    cat <<\_ASBOX
 
1120
## ----------------- ##
 
1121
## Output variables. ##
 
1122
## ----------------- ##
 
1123
_ASBOX
 
1124
    echo
 
1125
    for ac_var in $ac_subst_vars
 
1126
    do
 
1127
      eval ac_val=$`echo $ac_var`
 
1128
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1129
    done | sort
 
1130
    echo
 
1131
 
 
1132
    if test -n "$ac_subst_files"; then
 
1133
      cat <<\_ASBOX
 
1134
## ------------- ##
 
1135
## Output files. ##
 
1136
## ------------- ##
 
1137
_ASBOX
 
1138
      echo
 
1139
      for ac_var in $ac_subst_files
 
1140
      do
 
1141
        eval ac_val=$`echo $ac_var`
 
1142
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1143
      done | sort
 
1144
      echo
 
1145
    fi
 
1146
 
 
1147
    if test -s confdefs.h; then
 
1148
      cat <<\_ASBOX
 
1149
## ----------- ##
 
1150
## confdefs.h. ##
 
1151
## ----------- ##
 
1152
_ASBOX
 
1153
      echo
 
1154
      sed "/^$/d" confdefs.h | sort
 
1155
      echo
 
1156
    fi
 
1157
    test "$ac_signal" != 0 &&
 
1158
      echo "$as_me: caught signal $ac_signal"
 
1159
    echo "$as_me: exit $exit_status"
 
1160
  } >&5
 
1161
  rm -f core core.* *.core &&
 
1162
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1163
    exit $exit_status
 
1164
     ' 0
 
1165
for ac_signal in 1 2 13 15; do
 
1166
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1167
done
 
1168
ac_signal=0
 
1169
 
 
1170
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1171
rm -rf conftest* confdefs.h
 
1172
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1173
echo >confdefs.h
 
1174
 
 
1175
# Predefined preprocessor variables.
 
1176
 
 
1177
cat >>confdefs.h <<_ACEOF
 
1178
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1179
_ACEOF
 
1180
 
 
1181
 
 
1182
cat >>confdefs.h <<_ACEOF
 
1183
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1184
_ACEOF
 
1185
 
 
1186
 
 
1187
cat >>confdefs.h <<_ACEOF
 
1188
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1189
_ACEOF
 
1190
 
 
1191
 
 
1192
cat >>confdefs.h <<_ACEOF
 
1193
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1194
_ACEOF
 
1195
 
 
1196
 
 
1197
cat >>confdefs.h <<_ACEOF
 
1198
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1199
_ACEOF
 
1200
 
 
1201
 
 
1202
# Let the site file select an alternate cache file if it wants to.
 
1203
# Prefer explicitly selected file to automatically selected ones.
 
1204
if test -z "$CONFIG_SITE"; then
 
1205
  if test "x$prefix" != xNONE; then
 
1206
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1207
  else
 
1208
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1209
  fi
 
1210
fi
 
1211
for ac_site_file in $CONFIG_SITE; do
 
1212
  if test -r "$ac_site_file"; then
 
1213
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1214
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1215
    sed 's/^/| /' "$ac_site_file" >&5
 
1216
    . "$ac_site_file"
 
1217
  fi
 
1218
done
 
1219
 
 
1220
if test -r "$cache_file"; then
 
1221
  # Some versions of bash will fail to source /dev/null (special
 
1222
  # files actually), so we avoid doing that.
 
1223
  if test -f "$cache_file"; then
 
1224
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1225
echo "$as_me: loading cache $cache_file" >&6;}
 
1226
    case $cache_file in
 
1227
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1228
      *)                      . ./$cache_file;;
 
1229
    esac
 
1230
  fi
 
1231
else
 
1232
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1233
echo "$as_me: creating cache $cache_file" >&6;}
 
1234
  >$cache_file
 
1235
fi
 
1236
 
 
1237
# Check that the precious variables saved in the cache have kept the same
 
1238
# value.
 
1239
ac_cache_corrupted=false
 
1240
for ac_var in `(set) 2>&1 |
 
1241
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1242
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1243
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1244
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1245
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1246
  case $ac_old_set,$ac_new_set in
 
1247
    set,)
 
1248
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1249
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1250
      ac_cache_corrupted=: ;;
 
1251
    ,set)
 
1252
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1253
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1254
      ac_cache_corrupted=: ;;
 
1255
    ,);;
 
1256
    *)
 
1257
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1258
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1259
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1260
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1261
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1262
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1263
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1264
        ac_cache_corrupted=:
 
1265
      fi;;
 
1266
  esac
 
1267
  # Pass precious variables to config.status.
 
1268
  if test "$ac_new_set" = set; then
 
1269
    case $ac_new_val in
 
1270
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1271
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1272
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1273
    esac
 
1274
    case " $ac_configure_args " in
 
1275
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1276
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1277
    esac
 
1278
  fi
 
1279
done
 
1280
if $ac_cache_corrupted; then
 
1281
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1282
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1283
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1284
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1285
   { (exit 1); exit 1; }; }
 
1286
fi
 
1287
 
 
1288
ac_ext=c
 
1289
ac_cpp='$CPP $CPPFLAGS'
 
1290
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1291
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1292
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
 
1298
 
 
1299
 
 
1300
 
 
1301
 
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
 
 
1308
 
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
 
1319
 
 
1320
 
 
1321
am__api_version="1.7"
 
1322
ac_aux_dir=
 
1323
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1324
  if test -f $ac_dir/install-sh; then
 
1325
    ac_aux_dir=$ac_dir
 
1326
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1327
    break
 
1328
  elif test -f $ac_dir/install.sh; then
 
1329
    ac_aux_dir=$ac_dir
 
1330
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1331
    break
 
1332
  elif test -f $ac_dir/shtool; then
 
1333
    ac_aux_dir=$ac_dir
 
1334
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1335
    break
 
1336
  fi
 
1337
done
 
1338
if test -z "$ac_aux_dir"; then
 
1339
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1340
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1341
   { (exit 1); exit 1; }; }
 
1342
fi
 
1343
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1344
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1345
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1346
 
 
1347
# Find a good install program.  We prefer a C program (faster),
 
1348
# so one script is as good as another.  But avoid the broken or
 
1349
# incompatible versions:
 
1350
# SysV /etc/install, /usr/sbin/install
 
1351
# SunOS /usr/etc/install
 
1352
# IRIX /sbin/install
 
1353
# AIX /bin/install
 
1354
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1355
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1356
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1357
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1358
# ./install, which can be erroneously created by make from ./install.sh.
 
1359
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1360
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1361
if test -z "$INSTALL"; then
 
1362
if test "${ac_cv_path_install+set}" = set; then
 
1363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1364
else
 
1365
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1366
for as_dir in $PATH
 
1367
do
 
1368
  IFS=$as_save_IFS
 
1369
  test -z "$as_dir" && as_dir=.
 
1370
  # Account for people who put trailing slashes in PATH elements.
 
1371
case $as_dir/ in
 
1372
  ./ | .// | /cC/* | \
 
1373
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1374
  /usr/ucb/* ) ;;
 
1375
  *)
 
1376
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1377
    # Don't use installbsd from OSF since it installs stuff as root
 
1378
    # by default.
 
1379
    for ac_prog in ginstall scoinst install; do
 
1380
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1381
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1382
          if test $ac_prog = install &&
 
1383
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1384
            # AIX install.  It has an incompatible calling convention.
 
1385
            :
 
1386
          elif test $ac_prog = install &&
 
1387
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1388
            # program-specific install script used by HP pwplus--don't use.
 
1389
            :
 
1390
          else
 
1391
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1392
            break 3
 
1393
          fi
 
1394
        fi
 
1395
      done
 
1396
    done
 
1397
    ;;
 
1398
esac
 
1399
done
 
1400
 
 
1401
 
 
1402
fi
 
1403
  if test "${ac_cv_path_install+set}" = set; then
 
1404
    INSTALL=$ac_cv_path_install
 
1405
  else
 
1406
    # As a last resort, use the slow shell script.  We don't cache a
 
1407
    # path for INSTALL within a source directory, because that will
 
1408
    # break other packages using the cache if that directory is
 
1409
    # removed, or if the path is relative.
 
1410
    INSTALL=$ac_install_sh
 
1411
  fi
 
1412
fi
 
1413
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1414
echo "${ECHO_T}$INSTALL" >&6
 
1415
 
 
1416
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1417
# It thinks the first close brace ends the variable substitution.
 
1418
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1419
 
 
1420
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1421
 
 
1422
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1423
 
 
1424
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1425
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1426
# Just in case
 
1427
sleep 1
 
1428
echo timestamp > conftest.file
 
1429
# Do `set' in a subshell so we don't clobber the current shell's
 
1430
# arguments.  Must try -L first in case configure is actually a
 
1431
# symlink; some systems play weird games with the mod time of symlinks
 
1432
# (eg FreeBSD returns the mod time of the symlink's containing
 
1433
# directory).
 
1434
if (
 
1435
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1436
   if test "$*" = "X"; then
 
1437
      # -L didn't work.
 
1438
      set X `ls -t $srcdir/configure conftest.file`
 
1439
   fi
 
1440
   rm -f conftest.file
 
1441
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1442
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1443
 
 
1444
      # If neither matched, then we have a broken ls.  This can happen
 
1445
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1446
      # broken ls alias from the environment.  This has actually
 
1447
      # happened.  Such a system could not be considered "sane".
 
1448
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1449
alias in your environment" >&5
 
1450
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1451
alias in your environment" >&2;}
 
1452
   { (exit 1); exit 1; }; }
 
1453
   fi
 
1454
 
 
1455
   test "$2" = conftest.file
 
1456
   )
 
1457
then
 
1458
   # Ok.
 
1459
   :
 
1460
else
 
1461
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1462
Check your system clock" >&5
 
1463
echo "$as_me: error: newly created file is older than distributed files!
 
1464
Check your system clock" >&2;}
 
1465
   { (exit 1); exit 1; }; }
 
1466
fi
 
1467
echo "$as_me:$LINENO: result: yes" >&5
 
1468
echo "${ECHO_T}yes" >&6
 
1469
test "$program_prefix" != NONE &&
 
1470
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1471
# Use a double $ so make ignores it.
 
1472
test "$program_suffix" != NONE &&
 
1473
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1474
# Double any \ or $.  echo might interpret backslashes.
 
1475
# By default was `s,x,x', remove it if useless.
 
1476
cat <<\_ACEOF >conftest.sed
 
1477
s/[\\$]/&&/g;s/;s,x,x,$//
 
1478
_ACEOF
 
1479
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1480
rm conftest.sed
 
1481
 
 
1482
 
 
1483
# expand $ac_aux_dir to an absolute path
 
1484
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1485
 
 
1486
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1487
# Use eval to expand $SHELL
 
1488
if eval "$MISSING --run true"; then
 
1489
  am_missing_run="$MISSING --run "
 
1490
else
 
1491
  am_missing_run=
 
1492
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1493
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1494
fi
 
1495
 
 
1496
for ac_prog in gawk mawk nawk awk
 
1497
do
 
1498
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1499
set dummy $ac_prog; ac_word=$2
 
1500
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1502
if test "${ac_cv_prog_AWK+set}" = set; then
 
1503
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1504
else
 
1505
  if test -n "$AWK"; then
 
1506
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1507
else
 
1508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1509
for as_dir in $PATH
 
1510
do
 
1511
  IFS=$as_save_IFS
 
1512
  test -z "$as_dir" && as_dir=.
 
1513
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1514
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1515
    ac_cv_prog_AWK="$ac_prog"
 
1516
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1517
    break 2
 
1518
  fi
 
1519
done
 
1520
done
 
1521
 
 
1522
fi
 
1523
fi
 
1524
AWK=$ac_cv_prog_AWK
 
1525
if test -n "$AWK"; then
 
1526
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1527
echo "${ECHO_T}$AWK" >&6
 
1528
else
 
1529
  echo "$as_me:$LINENO: result: no" >&5
 
1530
echo "${ECHO_T}no" >&6
 
1531
fi
 
1532
 
 
1533
  test -n "$AWK" && break
 
1534
done
 
1535
 
 
1536
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1537
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1538
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1539
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1541
else
 
1542
  cat >conftest.make <<\_ACEOF
 
1543
all:
 
1544
        @echo 'ac_maketemp="$(MAKE)"'
 
1545
_ACEOF
 
1546
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1547
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1548
if test -n "$ac_maketemp"; then
 
1549
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1550
else
 
1551
  eval ac_cv_prog_make_${ac_make}_set=no
 
1552
fi
 
1553
rm -f conftest.make
 
1554
fi
 
1555
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1556
  echo "$as_me:$LINENO: result: yes" >&5
 
1557
echo "${ECHO_T}yes" >&6
 
1558
  SET_MAKE=
 
1559
else
 
1560
  echo "$as_me:$LINENO: result: no" >&5
 
1561
echo "${ECHO_T}no" >&6
 
1562
  SET_MAKE="MAKE=${MAKE-make}"
 
1563
fi
 
1564
 
 
1565
rm -rf .tst 2>/dev/null
 
1566
mkdir .tst 2>/dev/null
 
1567
if test -d .tst; then
 
1568
  am__leading_dot=.
 
1569
else
 
1570
  am__leading_dot=_
 
1571
fi
 
1572
rmdir .tst 2>/dev/null
 
1573
 
 
1574
 # test to see if srcdir already configured
 
1575
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1576
   test -f $srcdir/config.status; then
 
1577
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1578
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1579
   { (exit 1); exit 1; }; }
 
1580
fi
 
1581
 
 
1582
# test whether we have cygpath
 
1583
if test -z "$CYGPATH_W"; then
 
1584
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1585
    CYGPATH_W='cygpath -w'
 
1586
  else
 
1587
    CYGPATH_W=echo
 
1588
  fi
 
1589
fi
 
1590
 
 
1591
 
 
1592
# Define the identity of the package.
 
1593
 PACKAGE='quagga'
 
1594
 VERSION='0.96.5'
 
1595
 
 
1596
 
 
1597
cat >>confdefs.h <<_ACEOF
 
1598
#define PACKAGE "$PACKAGE"
 
1599
_ACEOF
 
1600
 
 
1601
 
 
1602
cat >>confdefs.h <<_ACEOF
 
1603
#define VERSION "$VERSION"
 
1604
_ACEOF
 
1605
 
 
1606
# Some tools Automake needs.
 
1607
 
 
1608
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1609
 
 
1610
 
 
1611
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1612
 
 
1613
 
 
1614
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1615
 
 
1616
 
 
1617
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1618
 
 
1619
 
 
1620
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1621
 
 
1622
 
 
1623
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1624
 
 
1625
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1626
 
 
1627
# Installed binaries are usually stripped using `strip' when the user
 
1628
# run `make install-strip'.  However `strip' might not be the right
 
1629
# tool to use in cross-compilation environments, therefore Automake
 
1630
# will honor the `STRIP' environment variable to overrule this program.
 
1631
if test "$cross_compiling" != no; then
 
1632
  if test -n "$ac_tool_prefix"; then
 
1633
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1634
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1635
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1637
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1639
else
 
1640
  if test -n "$STRIP"; then
 
1641
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1642
else
 
1643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1644
for as_dir in $PATH
 
1645
do
 
1646
  IFS=$as_save_IFS
 
1647
  test -z "$as_dir" && as_dir=.
 
1648
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1649
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1650
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1651
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1652
    break 2
 
1653
  fi
 
1654
done
 
1655
done
 
1656
 
 
1657
fi
 
1658
fi
 
1659
STRIP=$ac_cv_prog_STRIP
 
1660
if test -n "$STRIP"; then
 
1661
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1662
echo "${ECHO_T}$STRIP" >&6
 
1663
else
 
1664
  echo "$as_me:$LINENO: result: no" >&5
 
1665
echo "${ECHO_T}no" >&6
 
1666
fi
 
1667
 
 
1668
fi
 
1669
if test -z "$ac_cv_prog_STRIP"; then
 
1670
  ac_ct_STRIP=$STRIP
 
1671
  # Extract the first word of "strip", so it can be a program name with args.
 
1672
set dummy strip; ac_word=$2
 
1673
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1675
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1677
else
 
1678
  if test -n "$ac_ct_STRIP"; then
 
1679
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1680
else
 
1681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1682
for as_dir in $PATH
 
1683
do
 
1684
  IFS=$as_save_IFS
 
1685
  test -z "$as_dir" && as_dir=.
 
1686
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1687
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1688
    ac_cv_prog_ac_ct_STRIP="strip"
 
1689
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1690
    break 2
 
1691
  fi
 
1692
done
 
1693
done
 
1694
 
 
1695
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1696
fi
 
1697
fi
 
1698
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1699
if test -n "$ac_ct_STRIP"; then
 
1700
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1701
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1702
else
 
1703
  echo "$as_me:$LINENO: result: no" >&5
 
1704
echo "${ECHO_T}no" >&6
 
1705
fi
 
1706
 
 
1707
  STRIP=$ac_ct_STRIP
 
1708
else
 
1709
  STRIP="$ac_cv_prog_STRIP"
 
1710
fi
 
1711
 
 
1712
fi
 
1713
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1714
 
 
1715
# We need awk for the "check" target.  The system "awk" is bad on
 
1716
# some platforms.
 
1717
 
 
1718
 
 
1719
 
 
1720
          ac_config_headers="$ac_config_headers config.h"
 
1721
 
 
1722
 
 
1723
exampledir=${sysconfdir}
 
1724
# Check whether --enable-exampledir or --disable-exampledir was given.
 
1725
if test "${enable_exampledir+set}" = set; then
 
1726
  enableval="$enable_exampledir"
 
1727
  exampledir="$enableval"
 
1728
fi;
 
1729
 
 
1730
 
 
1731
# Make sure we can run config.sub.
 
1732
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1733
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1734
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1735
   { (exit 1); exit 1; }; }
 
1736
 
 
1737
echo "$as_me:$LINENO: checking build system type" >&5
 
1738
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1739
if test "${ac_cv_build+set}" = set; then
 
1740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1741
else
 
1742
  ac_cv_build_alias=$build_alias
 
1743
test -z "$ac_cv_build_alias" &&
 
1744
  ac_cv_build_alias=`$ac_config_guess`
 
1745
test -z "$ac_cv_build_alias" &&
 
1746
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1747
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1748
   { (exit 1); exit 1; }; }
 
1749
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1750
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1751
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1752
   { (exit 1); exit 1; }; }
 
1753
 
 
1754
fi
 
1755
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1756
echo "${ECHO_T}$ac_cv_build" >&6
 
1757
build=$ac_cv_build
 
1758
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1759
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1760
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1761
 
 
1762
 
 
1763
echo "$as_me:$LINENO: checking host system type" >&5
 
1764
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1765
if test "${ac_cv_host+set}" = set; then
 
1766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1767
else
 
1768
  ac_cv_host_alias=$host_alias
 
1769
test -z "$ac_cv_host_alias" &&
 
1770
  ac_cv_host_alias=$ac_cv_build_alias
 
1771
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1772
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1773
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1774
   { (exit 1); exit 1; }; }
 
1775
 
 
1776
fi
 
1777
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1778
echo "${ECHO_T}$ac_cv_host" >&6
 
1779
host=$ac_cv_host
 
1780
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1781
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1782
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1783
 
 
1784
 
 
1785
 
 
1786
 
 
1787
# Check whether --with-cflags or --without-cflags was given.
 
1788
if test "${with_cflags+set}" = set; then
 
1789
  withval="$with_cflags"
 
1790
 
 
1791
fi;
 
1792
if test "x$with_cflags" != "x" ; then
 
1793
  CFLAGS="$with_cflags" ; cflags_specified=yes ;
 
1794
elif test -n "$CFLAGS" ; then
 
1795
  cflags_specified=yes ;
 
1796
fi
 
1797
 
 
1798
ac_ext=c
 
1799
ac_cpp='$CPP $CPPFLAGS'
 
1800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1803
if test -n "$ac_tool_prefix"; then
 
1804
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1805
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1806
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1807
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1808
if test "${ac_cv_prog_CC+set}" = set; then
 
1809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1810
else
 
1811
  if test -n "$CC"; then
 
1812
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1813
else
 
1814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1815
for as_dir in $PATH
 
1816
do
 
1817
  IFS=$as_save_IFS
 
1818
  test -z "$as_dir" && as_dir=.
 
1819
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1820
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1821
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1822
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1823
    break 2
 
1824
  fi
 
1825
done
 
1826
done
 
1827
 
 
1828
fi
 
1829
fi
 
1830
CC=$ac_cv_prog_CC
 
1831
if test -n "$CC"; then
 
1832
  echo "$as_me:$LINENO: result: $CC" >&5
 
1833
echo "${ECHO_T}$CC" >&6
 
1834
else
 
1835
  echo "$as_me:$LINENO: result: no" >&5
 
1836
echo "${ECHO_T}no" >&6
 
1837
fi
 
1838
 
 
1839
fi
 
1840
if test -z "$ac_cv_prog_CC"; then
 
1841
  ac_ct_CC=$CC
 
1842
  # Extract the first word of "gcc", so it can be a program name with args.
 
1843
set dummy gcc; ac_word=$2
 
1844
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1846
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1848
else
 
1849
  if test -n "$ac_ct_CC"; then
 
1850
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1851
else
 
1852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1853
for as_dir in $PATH
 
1854
do
 
1855
  IFS=$as_save_IFS
 
1856
  test -z "$as_dir" && as_dir=.
 
1857
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1858
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1859
    ac_cv_prog_ac_ct_CC="gcc"
 
1860
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1861
    break 2
 
1862
  fi
 
1863
done
 
1864
done
 
1865
 
 
1866
fi
 
1867
fi
 
1868
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1869
if test -n "$ac_ct_CC"; then
 
1870
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1871
echo "${ECHO_T}$ac_ct_CC" >&6
 
1872
else
 
1873
  echo "$as_me:$LINENO: result: no" >&5
 
1874
echo "${ECHO_T}no" >&6
 
1875
fi
 
1876
 
 
1877
  CC=$ac_ct_CC
 
1878
else
 
1879
  CC="$ac_cv_prog_CC"
 
1880
fi
 
1881
 
 
1882
if test -z "$CC"; then
 
1883
  if test -n "$ac_tool_prefix"; then
 
1884
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1885
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1886
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1887
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1888
if test "${ac_cv_prog_CC+set}" = set; then
 
1889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1890
else
 
1891
  if test -n "$CC"; then
 
1892
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1893
else
 
1894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1895
for as_dir in $PATH
 
1896
do
 
1897
  IFS=$as_save_IFS
 
1898
  test -z "$as_dir" && as_dir=.
 
1899
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1900
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1901
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1902
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1903
    break 2
 
1904
  fi
 
1905
done
 
1906
done
 
1907
 
 
1908
fi
 
1909
fi
 
1910
CC=$ac_cv_prog_CC
 
1911
if test -n "$CC"; then
 
1912
  echo "$as_me:$LINENO: result: $CC" >&5
 
1913
echo "${ECHO_T}$CC" >&6
 
1914
else
 
1915
  echo "$as_me:$LINENO: result: no" >&5
 
1916
echo "${ECHO_T}no" >&6
 
1917
fi
 
1918
 
 
1919
fi
 
1920
if test -z "$ac_cv_prog_CC"; then
 
1921
  ac_ct_CC=$CC
 
1922
  # Extract the first word of "cc", so it can be a program name with args.
 
1923
set dummy cc; ac_word=$2
 
1924
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1926
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1928
else
 
1929
  if test -n "$ac_ct_CC"; then
 
1930
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1931
else
 
1932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1933
for as_dir in $PATH
 
1934
do
 
1935
  IFS=$as_save_IFS
 
1936
  test -z "$as_dir" && as_dir=.
 
1937
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1938
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1939
    ac_cv_prog_ac_ct_CC="cc"
 
1940
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1941
    break 2
 
1942
  fi
 
1943
done
 
1944
done
 
1945
 
 
1946
fi
 
1947
fi
 
1948
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1949
if test -n "$ac_ct_CC"; then
 
1950
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1951
echo "${ECHO_T}$ac_ct_CC" >&6
 
1952
else
 
1953
  echo "$as_me:$LINENO: result: no" >&5
 
1954
echo "${ECHO_T}no" >&6
 
1955
fi
 
1956
 
 
1957
  CC=$ac_ct_CC
 
1958
else
 
1959
  CC="$ac_cv_prog_CC"
 
1960
fi
 
1961
 
 
1962
fi
 
1963
if test -z "$CC"; then
 
1964
  # Extract the first word of "cc", so it can be a program name with args.
 
1965
set dummy cc; ac_word=$2
 
1966
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1967
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1968
if test "${ac_cv_prog_CC+set}" = set; then
 
1969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1970
else
 
1971
  if test -n "$CC"; then
 
1972
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1973
else
 
1974
  ac_prog_rejected=no
 
1975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1976
for as_dir in $PATH
 
1977
do
 
1978
  IFS=$as_save_IFS
 
1979
  test -z "$as_dir" && as_dir=.
 
1980
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1981
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1982
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1983
       ac_prog_rejected=yes
 
1984
       continue
 
1985
     fi
 
1986
    ac_cv_prog_CC="cc"
 
1987
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1988
    break 2
 
1989
  fi
 
1990
done
 
1991
done
 
1992
 
 
1993
if test $ac_prog_rejected = yes; then
 
1994
  # We found a bogon in the path, so make sure we never use it.
 
1995
  set dummy $ac_cv_prog_CC
 
1996
  shift
 
1997
  if test $# != 0; then
 
1998
    # We chose a different compiler from the bogus one.
 
1999
    # However, it has the same basename, so the bogon will be chosen
 
2000
    # first if we set CC to just the basename; use the full file name.
 
2001
    shift
 
2002
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2003
  fi
 
2004
fi
 
2005
fi
 
2006
fi
 
2007
CC=$ac_cv_prog_CC
 
2008
if test -n "$CC"; then
 
2009
  echo "$as_me:$LINENO: result: $CC" >&5
 
2010
echo "${ECHO_T}$CC" >&6
 
2011
else
 
2012
  echo "$as_me:$LINENO: result: no" >&5
 
2013
echo "${ECHO_T}no" >&6
 
2014
fi
 
2015
 
 
2016
fi
 
2017
if test -z "$CC"; then
 
2018
  if test -n "$ac_tool_prefix"; then
 
2019
  for ac_prog in cl
 
2020
  do
 
2021
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2022
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2023
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2025
if test "${ac_cv_prog_CC+set}" = set; then
 
2026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2027
else
 
2028
  if test -n "$CC"; then
 
2029
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2030
else
 
2031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2032
for as_dir in $PATH
 
2033
do
 
2034
  IFS=$as_save_IFS
 
2035
  test -z "$as_dir" && as_dir=.
 
2036
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2037
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2038
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2039
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2040
    break 2
 
2041
  fi
 
2042
done
 
2043
done
 
2044
 
 
2045
fi
 
2046
fi
 
2047
CC=$ac_cv_prog_CC
 
2048
if test -n "$CC"; then
 
2049
  echo "$as_me:$LINENO: result: $CC" >&5
 
2050
echo "${ECHO_T}$CC" >&6
 
2051
else
 
2052
  echo "$as_me:$LINENO: result: no" >&5
 
2053
echo "${ECHO_T}no" >&6
 
2054
fi
 
2055
 
 
2056
    test -n "$CC" && break
 
2057
  done
 
2058
fi
 
2059
if test -z "$CC"; then
 
2060
  ac_ct_CC=$CC
 
2061
  for ac_prog in cl
 
2062
do
 
2063
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2064
set dummy $ac_prog; ac_word=$2
 
2065
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2067
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2069
else
 
2070
  if test -n "$ac_ct_CC"; then
 
2071
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2072
else
 
2073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2074
for as_dir in $PATH
 
2075
do
 
2076
  IFS=$as_save_IFS
 
2077
  test -z "$as_dir" && as_dir=.
 
2078
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2079
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2080
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2081
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2082
    break 2
 
2083
  fi
 
2084
done
 
2085
done
 
2086
 
 
2087
fi
 
2088
fi
 
2089
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2090
if test -n "$ac_ct_CC"; then
 
2091
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2092
echo "${ECHO_T}$ac_ct_CC" >&6
 
2093
else
 
2094
  echo "$as_me:$LINENO: result: no" >&5
 
2095
echo "${ECHO_T}no" >&6
 
2096
fi
 
2097
 
 
2098
  test -n "$ac_ct_CC" && break
 
2099
done
 
2100
 
 
2101
  CC=$ac_ct_CC
 
2102
fi
 
2103
 
 
2104
fi
 
2105
 
 
2106
 
 
2107
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2108
See \`config.log' for more details." >&5
 
2109
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2110
See \`config.log' for more details." >&2;}
 
2111
   { (exit 1); exit 1; }; }
 
2112
 
 
2113
# Provide some information about the compiler.
 
2114
echo "$as_me:$LINENO:" \
 
2115
     "checking for C compiler version" >&5
 
2116
ac_compiler=`set X $ac_compile; echo $2`
 
2117
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2118
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2119
  ac_status=$?
 
2120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2121
  (exit $ac_status); }
 
2122
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2123
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2124
  ac_status=$?
 
2125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2126
  (exit $ac_status); }
 
2127
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2128
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2129
  ac_status=$?
 
2130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2131
  (exit $ac_status); }
 
2132
 
 
2133
cat >conftest.$ac_ext <<_ACEOF
 
2134
#line $LINENO "configure"
 
2135
/* confdefs.h.  */
 
2136
_ACEOF
 
2137
cat confdefs.h >>conftest.$ac_ext
 
2138
cat >>conftest.$ac_ext <<_ACEOF
 
2139
/* end confdefs.h.  */
 
2140
 
 
2141
int
 
2142
main ()
 
2143
{
 
2144
 
 
2145
  ;
 
2146
  return 0;
 
2147
}
 
2148
_ACEOF
 
2149
ac_clean_files_save=$ac_clean_files
 
2150
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2151
# Try to create an executable without -o first, disregard a.out.
 
2152
# It will help us diagnose broken compilers, and finding out an intuition
 
2153
# of exeext.
 
2154
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
2155
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2156
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2157
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2158
  (eval $ac_link_default) 2>&5
 
2159
  ac_status=$?
 
2160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2161
  (exit $ac_status); }; then
 
2162
  # Find the output, starting from the most likely.  This scheme is
 
2163
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2164
# resort.
 
2165
 
 
2166
# Be careful to initialize this variable, since it used to be cached.
 
2167
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2168
ac_cv_exeext=
 
2169
# b.out is created by i960 compilers.
 
2170
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2171
do
 
2172
  test -f "$ac_file" || continue
 
2173
  case $ac_file in
 
2174
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2175
        ;;
 
2176
    conftest.$ac_ext )
 
2177
        # This is the source file.
 
2178
        ;;
 
2179
    [ab].out )
 
2180
        # We found the default executable, but exeext='' is most
 
2181
        # certainly right.
 
2182
        break;;
 
2183
    *.* )
 
2184
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2185
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2186
        # but it would be cool to find out if it's true.  Does anybody
 
2187
        # maintain Libtool? --akim.
 
2188
        export ac_cv_exeext
 
2189
        break;;
 
2190
    * )
 
2191
        break;;
 
2192
  esac
 
2193
done
 
2194
else
 
2195
  echo "$as_me: failed program was:" >&5
 
2196
sed 's/^/| /' conftest.$ac_ext >&5
 
2197
 
 
2198
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2199
See \`config.log' for more details." >&5
 
2200
echo "$as_me: error: C compiler cannot create executables
 
2201
See \`config.log' for more details." >&2;}
 
2202
   { (exit 77); exit 77; }; }
 
2203
fi
 
2204
 
 
2205
ac_exeext=$ac_cv_exeext
 
2206
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2207
echo "${ECHO_T}$ac_file" >&6
 
2208
 
 
2209
# Check the compiler produces executables we can run.  If not, either
 
2210
# the compiler is broken, or we cross compile.
 
2211
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2212
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2213
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2214
# If not cross compiling, check that we can run a simple program.
 
2215
if test "$cross_compiling" != yes; then
 
2216
  if { ac_try='./$ac_file'
 
2217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2218
  (eval $ac_try) 2>&5
 
2219
  ac_status=$?
 
2220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2221
  (exit $ac_status); }; }; then
 
2222
    cross_compiling=no
 
2223
  else
 
2224
    if test "$cross_compiling" = maybe; then
 
2225
        cross_compiling=yes
 
2226
    else
 
2227
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2228
If you meant to cross compile, use \`--host'.
 
2229
See \`config.log' for more details." >&5
 
2230
echo "$as_me: error: cannot run C compiled programs.
 
2231
If you meant to cross compile, use \`--host'.
 
2232
See \`config.log' for more details." >&2;}
 
2233
   { (exit 1); exit 1; }; }
 
2234
    fi
 
2235
  fi
 
2236
fi
 
2237
echo "$as_me:$LINENO: result: yes" >&5
 
2238
echo "${ECHO_T}yes" >&6
 
2239
 
 
2240
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2241
ac_clean_files=$ac_clean_files_save
 
2242
# Check the compiler produces executables we can run.  If not, either
 
2243
# the compiler is broken, or we cross compile.
 
2244
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2245
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2246
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2247
echo "${ECHO_T}$cross_compiling" >&6
 
2248
 
 
2249
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2250
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2251
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2252
  (eval $ac_link) 2>&5
 
2253
  ac_status=$?
 
2254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2255
  (exit $ac_status); }; then
 
2256
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2257
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2258
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2259
# `rm'.
 
2260
for ac_file in conftest.exe conftest conftest.*; do
 
2261
  test -f "$ac_file" || continue
 
2262
  case $ac_file in
 
2263
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2264
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2265
          export ac_cv_exeext
 
2266
          break;;
 
2267
    * ) break;;
 
2268
  esac
 
2269
done
 
2270
else
 
2271
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2272
See \`config.log' for more details." >&5
 
2273
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2274
See \`config.log' for more details." >&2;}
 
2275
   { (exit 1); exit 1; }; }
 
2276
fi
 
2277
 
 
2278
rm -f conftest$ac_cv_exeext
 
2279
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2280
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2281
 
 
2282
rm -f conftest.$ac_ext
 
2283
EXEEXT=$ac_cv_exeext
 
2284
ac_exeext=$EXEEXT
 
2285
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2286
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2287
if test "${ac_cv_objext+set}" = set; then
 
2288
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2289
else
 
2290
  cat >conftest.$ac_ext <<_ACEOF
 
2291
#line $LINENO "configure"
 
2292
/* confdefs.h.  */
 
2293
_ACEOF
 
2294
cat confdefs.h >>conftest.$ac_ext
 
2295
cat >>conftest.$ac_ext <<_ACEOF
 
2296
/* end confdefs.h.  */
 
2297
 
 
2298
int
 
2299
main ()
 
2300
{
 
2301
 
 
2302
  ;
 
2303
  return 0;
 
2304
}
 
2305
_ACEOF
 
2306
rm -f conftest.o conftest.obj
 
2307
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2308
  (eval $ac_compile) 2>&5
 
2309
  ac_status=$?
 
2310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2311
  (exit $ac_status); }; then
 
2312
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2313
  case $ac_file in
 
2314
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2315
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2316
       break;;
 
2317
  esac
 
2318
done
 
2319
else
 
2320
  echo "$as_me: failed program was:" >&5
 
2321
sed 's/^/| /' conftest.$ac_ext >&5
 
2322
 
 
2323
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2324
See \`config.log' for more details." >&5
 
2325
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2326
See \`config.log' for more details." >&2;}
 
2327
   { (exit 1); exit 1; }; }
 
2328
fi
 
2329
 
 
2330
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2331
fi
 
2332
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2333
echo "${ECHO_T}$ac_cv_objext" >&6
 
2334
OBJEXT=$ac_cv_objext
 
2335
ac_objext=$OBJEXT
 
2336
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2337
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2338
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2340
else
 
2341
  cat >conftest.$ac_ext <<_ACEOF
 
2342
#line $LINENO "configure"
 
2343
/* confdefs.h.  */
 
2344
_ACEOF
 
2345
cat confdefs.h >>conftest.$ac_ext
 
2346
cat >>conftest.$ac_ext <<_ACEOF
 
2347
/* end confdefs.h.  */
 
2348
 
 
2349
int
 
2350
main ()
 
2351
{
 
2352
#ifndef __GNUC__
 
2353
       choke me
 
2354
#endif
 
2355
 
 
2356
  ;
 
2357
  return 0;
 
2358
}
 
2359
_ACEOF
 
2360
rm -f conftest.$ac_objext
 
2361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2362
  (eval $ac_compile) 2>&5
 
2363
  ac_status=$?
 
2364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2365
  (exit $ac_status); } &&
 
2366
         { ac_try='test -s conftest.$ac_objext'
 
2367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2368
  (eval $ac_try) 2>&5
 
2369
  ac_status=$?
 
2370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2371
  (exit $ac_status); }; }; then
 
2372
  ac_compiler_gnu=yes
 
2373
else
 
2374
  echo "$as_me: failed program was:" >&5
 
2375
sed 's/^/| /' conftest.$ac_ext >&5
 
2376
 
 
2377
ac_compiler_gnu=no
 
2378
fi
 
2379
rm -f conftest.$ac_objext conftest.$ac_ext
 
2380
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2381
 
 
2382
fi
 
2383
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2384
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2385
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2386
ac_test_CFLAGS=${CFLAGS+set}
 
2387
ac_save_CFLAGS=$CFLAGS
 
2388
CFLAGS="-g"
 
2389
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2390
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2391
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2393
else
 
2394
  cat >conftest.$ac_ext <<_ACEOF
 
2395
#line $LINENO "configure"
 
2396
/* confdefs.h.  */
 
2397
_ACEOF
 
2398
cat confdefs.h >>conftest.$ac_ext
 
2399
cat >>conftest.$ac_ext <<_ACEOF
 
2400
/* end confdefs.h.  */
 
2401
 
 
2402
int
 
2403
main ()
 
2404
{
 
2405
 
 
2406
  ;
 
2407
  return 0;
 
2408
}
 
2409
_ACEOF
 
2410
rm -f conftest.$ac_objext
 
2411
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2412
  (eval $ac_compile) 2>&5
 
2413
  ac_status=$?
 
2414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2415
  (exit $ac_status); } &&
 
2416
         { ac_try='test -s conftest.$ac_objext'
 
2417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2418
  (eval $ac_try) 2>&5
 
2419
  ac_status=$?
 
2420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2421
  (exit $ac_status); }; }; then
 
2422
  ac_cv_prog_cc_g=yes
 
2423
else
 
2424
  echo "$as_me: failed program was:" >&5
 
2425
sed 's/^/| /' conftest.$ac_ext >&5
 
2426
 
 
2427
ac_cv_prog_cc_g=no
 
2428
fi
 
2429
rm -f conftest.$ac_objext conftest.$ac_ext
 
2430
fi
 
2431
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2432
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2433
if test "$ac_test_CFLAGS" = set; then
 
2434
  CFLAGS=$ac_save_CFLAGS
 
2435
elif test $ac_cv_prog_cc_g = yes; then
 
2436
  if test "$GCC" = yes; then
 
2437
    CFLAGS="-g -O2"
 
2438
  else
 
2439
    CFLAGS="-g"
 
2440
  fi
 
2441
else
 
2442
  if test "$GCC" = yes; then
 
2443
    CFLAGS="-O2"
 
2444
  else
 
2445
    CFLAGS=
 
2446
  fi
 
2447
fi
 
2448
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2449
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2450
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2452
else
 
2453
  ac_cv_prog_cc_stdc=no
 
2454
ac_save_CC=$CC
 
2455
cat >conftest.$ac_ext <<_ACEOF
 
2456
#line $LINENO "configure"
 
2457
/* confdefs.h.  */
 
2458
_ACEOF
 
2459
cat confdefs.h >>conftest.$ac_ext
 
2460
cat >>conftest.$ac_ext <<_ACEOF
 
2461
/* end confdefs.h.  */
 
2462
#include <stdarg.h>
 
2463
#include <stdio.h>
 
2464
#include <sys/types.h>
 
2465
#include <sys/stat.h>
 
2466
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2467
struct buf { int x; };
 
2468
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2469
static char *e (p, i)
 
2470
     char **p;
 
2471
     int i;
 
2472
{
 
2473
  return p[i];
 
2474
}
 
2475
static char *f (char * (*g) (char **, int), char **p, ...)
 
2476
{
 
2477
  char *s;
 
2478
  va_list v;
 
2479
  va_start (v,p);
 
2480
  s = g (p, va_arg (v,int));
 
2481
  va_end (v);
 
2482
  return s;
 
2483
}
 
2484
int test (int i, double x);
 
2485
struct s1 {int (*f) (int a);};
 
2486
struct s2 {int (*f) (double a);};
 
2487
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2488
int argc;
 
2489
char **argv;
 
2490
int
 
2491
main ()
 
2492
{
 
2493
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2494
  ;
 
2495
  return 0;
 
2496
}
 
2497
_ACEOF
 
2498
# Don't try gcc -ansi; that turns off useful extensions and
 
2499
# breaks some systems' header files.
 
2500
# AIX                   -qlanglvl=ansi
 
2501
# Ultrix and OSF/1      -std1
 
2502
# HP-UX 10.20 and later -Ae
 
2503
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2504
# SVR4                  -Xc -D__EXTENSIONS__
 
2505
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2506
do
 
2507
  CC="$ac_save_CC $ac_arg"
 
2508
  rm -f conftest.$ac_objext
 
2509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2510
  (eval $ac_compile) 2>&5
 
2511
  ac_status=$?
 
2512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2513
  (exit $ac_status); } &&
 
2514
         { ac_try='test -s conftest.$ac_objext'
 
2515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2516
  (eval $ac_try) 2>&5
 
2517
  ac_status=$?
 
2518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2519
  (exit $ac_status); }; }; then
 
2520
  ac_cv_prog_cc_stdc=$ac_arg
 
2521
break
 
2522
else
 
2523
  echo "$as_me: failed program was:" >&5
 
2524
sed 's/^/| /' conftest.$ac_ext >&5
 
2525
 
 
2526
fi
 
2527
rm -f conftest.$ac_objext
 
2528
done
 
2529
rm -f conftest.$ac_ext conftest.$ac_objext
 
2530
CC=$ac_save_CC
 
2531
 
 
2532
fi
 
2533
 
 
2534
case "x$ac_cv_prog_cc_stdc" in
 
2535
  x|xno)
 
2536
    echo "$as_me:$LINENO: result: none needed" >&5
 
2537
echo "${ECHO_T}none needed" >&6 ;;
 
2538
  *)
 
2539
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2540
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2541
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2542
esac
 
2543
 
 
2544
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2545
# in C++ we need to declare it.  In case someone uses the same compiler
 
2546
# for both compiling C and C++ we need to have the C++ compiler decide
 
2547
# the declaration of exit, since it's the most demanding environment.
 
2548
cat >conftest.$ac_ext <<_ACEOF
 
2549
#ifndef __cplusplus
 
2550
  choke me
 
2551
#endif
 
2552
_ACEOF
 
2553
rm -f conftest.$ac_objext
 
2554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2555
  (eval $ac_compile) 2>&5
 
2556
  ac_status=$?
 
2557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2558
  (exit $ac_status); } &&
 
2559
         { ac_try='test -s conftest.$ac_objext'
 
2560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2561
  (eval $ac_try) 2>&5
 
2562
  ac_status=$?
 
2563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2564
  (exit $ac_status); }; }; then
 
2565
  for ac_declaration in \
 
2566
   ''\
 
2567
   '#include <stdlib.h>' \
 
2568
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2569
   'extern "C" void std::exit (int); using std::exit;' \
 
2570
   'extern "C" void exit (int) throw ();' \
 
2571
   'extern "C" void exit (int);' \
 
2572
   'void exit (int);'
 
2573
do
 
2574
  cat >conftest.$ac_ext <<_ACEOF
 
2575
#line $LINENO "configure"
 
2576
/* confdefs.h.  */
 
2577
_ACEOF
 
2578
cat confdefs.h >>conftest.$ac_ext
 
2579
cat >>conftest.$ac_ext <<_ACEOF
 
2580
/* end confdefs.h.  */
 
2581
#include <stdlib.h>
 
2582
$ac_declaration
 
2583
int
 
2584
main ()
 
2585
{
 
2586
exit (42);
 
2587
  ;
 
2588
  return 0;
 
2589
}
 
2590
_ACEOF
 
2591
rm -f conftest.$ac_objext
 
2592
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2593
  (eval $ac_compile) 2>&5
 
2594
  ac_status=$?
 
2595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2596
  (exit $ac_status); } &&
 
2597
         { ac_try='test -s conftest.$ac_objext'
 
2598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2599
  (eval $ac_try) 2>&5
 
2600
  ac_status=$?
 
2601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2602
  (exit $ac_status); }; }; then
 
2603
  :
 
2604
else
 
2605
  echo "$as_me: failed program was:" >&5
 
2606
sed 's/^/| /' conftest.$ac_ext >&5
 
2607
 
 
2608
continue
 
2609
fi
 
2610
rm -f conftest.$ac_objext conftest.$ac_ext
 
2611
  cat >conftest.$ac_ext <<_ACEOF
 
2612
#line $LINENO "configure"
 
2613
/* confdefs.h.  */
 
2614
_ACEOF
 
2615
cat confdefs.h >>conftest.$ac_ext
 
2616
cat >>conftest.$ac_ext <<_ACEOF
 
2617
/* end confdefs.h.  */
 
2618
$ac_declaration
 
2619
int
 
2620
main ()
 
2621
{
 
2622
exit (42);
 
2623
  ;
 
2624
  return 0;
 
2625
}
 
2626
_ACEOF
 
2627
rm -f conftest.$ac_objext
 
2628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2629
  (eval $ac_compile) 2>&5
 
2630
  ac_status=$?
 
2631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2632
  (exit $ac_status); } &&
 
2633
         { ac_try='test -s conftest.$ac_objext'
 
2634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2635
  (eval $ac_try) 2>&5
 
2636
  ac_status=$?
 
2637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2638
  (exit $ac_status); }; }; then
 
2639
  break
 
2640
else
 
2641
  echo "$as_me: failed program was:" >&5
 
2642
sed 's/^/| /' conftest.$ac_ext >&5
 
2643
 
 
2644
fi
 
2645
rm -f conftest.$ac_objext conftest.$ac_ext
 
2646
done
 
2647
rm -f conftest*
 
2648
if test -n "$ac_declaration"; then
 
2649
  echo '#ifdef __cplusplus' >>confdefs.h
 
2650
  echo $ac_declaration      >>confdefs.h
 
2651
  echo '#endif'             >>confdefs.h
 
2652
fi
 
2653
 
 
2654
else
 
2655
  echo "$as_me: failed program was:" >&5
 
2656
sed 's/^/| /' conftest.$ac_ext >&5
 
2657
 
 
2658
fi
 
2659
rm -f conftest.$ac_objext conftest.$ac_ext
 
2660
ac_ext=c
 
2661
ac_cpp='$CPP $CPPFLAGS'
 
2662
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2663
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2664
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2665
DEPDIR="${am__leading_dot}deps"
 
2666
 
 
2667
          ac_config_commands="$ac_config_commands depfiles"
 
2668
 
 
2669
 
 
2670
am_make=${MAKE-make}
 
2671
cat > confinc << 'END'
 
2672
am__doit:
 
2673
        @echo done
 
2674
.PHONY: am__doit
 
2675
END
 
2676
# If we don't find an include directive, just comment out the code.
 
2677
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2678
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2679
am__include="#"
 
2680
am__quote=
 
2681
_am_result=none
 
2682
# First try GNU make style include.
 
2683
echo "include confinc" > confmf
 
2684
# We grep out `Entering directory' and `Leaving directory'
 
2685
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2686
# In particular we don't look at `^make:' because GNU make might
 
2687
# be invoked under some other name (usually "gmake"), in which
 
2688
# case it prints its new name instead of `make'.
 
2689
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2690
   am__include=include
 
2691
   am__quote=
 
2692
   _am_result=GNU
 
2693
fi
 
2694
# Now try BSD make style include.
 
2695
if test "$am__include" = "#"; then
 
2696
   echo '.include "confinc"' > confmf
 
2697
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2698
      am__include=.include
 
2699
      am__quote="\""
 
2700
      _am_result=BSD
 
2701
   fi
 
2702
fi
 
2703
 
 
2704
 
 
2705
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2706
echo "${ECHO_T}$_am_result" >&6
 
2707
rm -f confinc confmf
 
2708
 
 
2709
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2710
if test "${enable_dependency_tracking+set}" = set; then
 
2711
  enableval="$enable_dependency_tracking"
 
2712
 
 
2713
fi;
 
2714
if test "x$enable_dependency_tracking" != xno; then
 
2715
  am_depcomp="$ac_aux_dir/depcomp"
 
2716
  AMDEPBACKSLASH='\'
 
2717
fi
 
2718
 
 
2719
 
 
2720
if test "x$enable_dependency_tracking" != xno; then
 
2721
  AMDEP_TRUE=
 
2722
  AMDEP_FALSE='#'
 
2723
else
 
2724
  AMDEP_TRUE='#'
 
2725
  AMDEP_FALSE=
 
2726
fi
 
2727
 
 
2728
 
 
2729
 
 
2730
 
 
2731
depcc="$CC"   am_compiler_list=
 
2732
 
 
2733
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2734
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2735
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2737
else
 
2738
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2739
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2740
  # making bogus files that we don't know about and never remove.  For
 
2741
  # instance it was reported that on HP-UX the gcc test will end up
 
2742
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2743
  # in D'.
 
2744
  mkdir conftest.dir
 
2745
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2746
  # using a relative directory.
 
2747
  cp "$am_depcomp" conftest.dir
 
2748
  cd conftest.dir
 
2749
  # We will build objects and dependencies in a subdirectory because
 
2750
  # it helps to detect inapplicable dependency modes.  For instance
 
2751
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2752
  # side effect of compilation, but ICC will put the dependencies in
 
2753
  # the current directory while Tru64 will put them in the object
 
2754
  # directory.
 
2755
  mkdir sub
 
2756
 
 
2757
  am_cv_CC_dependencies_compiler_type=none
 
2758
  if test "$am_compiler_list" = ""; then
 
2759
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2760
  fi
 
2761
  for depmode in $am_compiler_list; do
 
2762
    # Setup a source with many dependencies, because some compilers
 
2763
    # like to wrap large dependency lists on column 80 (with \), and
 
2764
    # we should not choose a depcomp mode which is confused by this.
 
2765
    #
 
2766
    # We need to recreate these files for each test, as the compiler may
 
2767
    # overwrite some of them when testing with obscure command lines.
 
2768
    # This happens at least with the AIX C compiler.
 
2769
    : > sub/conftest.c
 
2770
    for i in 1 2 3 4 5 6; do
 
2771
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2772
      : > sub/conftst$i.h
 
2773
    done
 
2774
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2775
 
 
2776
    case $depmode in
 
2777
    nosideeffect)
 
2778
      # after this tag, mechanisms are not by side-effect, so they'll
 
2779
      # only be used when explicitly requested
 
2780
      if test "x$enable_dependency_tracking" = xyes; then
 
2781
        continue
 
2782
      else
 
2783
        break
 
2784
      fi
 
2785
      ;;
 
2786
    none) break ;;
 
2787
    esac
 
2788
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2789
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2790
    # handle `-M -o', and we need to detect this.
 
2791
    if depmode=$depmode \
 
2792
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2793
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2794
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2795
         >/dev/null 2>conftest.err &&
 
2796
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2797
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2798
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2799
      # icc doesn't choke on unknown options, it will just issue warnings
 
2800
      # (even with -Werror).  So we grep stderr for any message
 
2801
      # that says an option was ignored.
 
2802
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2803
        am_cv_CC_dependencies_compiler_type=$depmode
 
2804
        break
 
2805
      fi
 
2806
    fi
 
2807
  done
 
2808
 
 
2809
  cd ..
 
2810
  rm -rf conftest.dir
 
2811
else
 
2812
  am_cv_CC_dependencies_compiler_type=none
 
2813
fi
 
2814
 
 
2815
fi
 
2816
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2817
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2818
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2819
 
 
2820
 
 
2821
 
 
2822
if
 
2823
  test "x$enable_dependency_tracking" != xno \
 
2824
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
2825
  am__fastdepCC_TRUE=
 
2826
  am__fastdepCC_FALSE='#'
 
2827
else
 
2828
  am__fastdepCC_TRUE='#'
 
2829
  am__fastdepCC_FALSE=
 
2830
fi
 
2831
 
 
2832
 
 
2833
 
 
2834
if test "x$cflags_specified" = "x" ; then
 
2835
  CFLAGS="$CFLAGS -Wall"
 
2836
fi
 
2837
 
 
2838
ac_ext=c
 
2839
ac_cpp='$CPP $CPPFLAGS'
 
2840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2841
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2842
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2843
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2844
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2845
# On Suns, sometimes $CPP names a directory.
 
2846
if test -n "$CPP" && test -d "$CPP"; then
 
2847
  CPP=
 
2848
fi
 
2849
if test -z "$CPP"; then
 
2850
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2852
else
 
2853
      # Double quotes because CPP needs to be expanded
 
2854
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2855
    do
 
2856
      ac_preproc_ok=false
 
2857
for ac_c_preproc_warn_flag in '' yes
 
2858
do
 
2859
  # Use a header file that comes with gcc, so configuring glibc
 
2860
  # with a fresh cross-compiler works.
 
2861
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2862
  # <limits.h> exists even on freestanding compilers.
 
2863
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2864
  # not just through cpp. "Syntax error" is here to catch this case.
 
2865
  cat >conftest.$ac_ext <<_ACEOF
 
2866
#line $LINENO "configure"
 
2867
/* confdefs.h.  */
 
2868
_ACEOF
 
2869
cat confdefs.h >>conftest.$ac_ext
 
2870
cat >>conftest.$ac_ext <<_ACEOF
 
2871
/* end confdefs.h.  */
 
2872
#ifdef __STDC__
 
2873
# include <limits.h>
 
2874
#else
 
2875
# include <assert.h>
 
2876
#endif
 
2877
                     Syntax error
 
2878
_ACEOF
 
2879
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2880
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2881
  ac_status=$?
 
2882
  grep -v '^ *+' conftest.er1 >conftest.err
 
2883
  rm -f conftest.er1
 
2884
  cat conftest.err >&5
 
2885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2886
  (exit $ac_status); } >/dev/null; then
 
2887
  if test -s conftest.err; then
 
2888
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2889
  else
 
2890
    ac_cpp_err=
 
2891
  fi
 
2892
else
 
2893
  ac_cpp_err=yes
 
2894
fi
 
2895
if test -z "$ac_cpp_err"; then
 
2896
  :
 
2897
else
 
2898
  echo "$as_me: failed program was:" >&5
 
2899
sed 's/^/| /' conftest.$ac_ext >&5
 
2900
 
 
2901
  # Broken: fails on valid input.
 
2902
continue
 
2903
fi
 
2904
rm -f conftest.err conftest.$ac_ext
 
2905
 
 
2906
  # OK, works on sane cases.  Now check whether non-existent headers
 
2907
  # can be detected and how.
 
2908
  cat >conftest.$ac_ext <<_ACEOF
 
2909
#line $LINENO "configure"
 
2910
/* confdefs.h.  */
 
2911
_ACEOF
 
2912
cat confdefs.h >>conftest.$ac_ext
 
2913
cat >>conftest.$ac_ext <<_ACEOF
 
2914
/* end confdefs.h.  */
 
2915
#include <ac_nonexistent.h>
 
2916
_ACEOF
 
2917
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2918
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2919
  ac_status=$?
 
2920
  grep -v '^ *+' conftest.er1 >conftest.err
 
2921
  rm -f conftest.er1
 
2922
  cat conftest.err >&5
 
2923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2924
  (exit $ac_status); } >/dev/null; then
 
2925
  if test -s conftest.err; then
 
2926
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2927
  else
 
2928
    ac_cpp_err=
 
2929
  fi
 
2930
else
 
2931
  ac_cpp_err=yes
 
2932
fi
 
2933
if test -z "$ac_cpp_err"; then
 
2934
  # Broken: success on invalid input.
 
2935
continue
 
2936
else
 
2937
  echo "$as_me: failed program was:" >&5
 
2938
sed 's/^/| /' conftest.$ac_ext >&5
 
2939
 
 
2940
  # Passes both tests.
 
2941
ac_preproc_ok=:
 
2942
break
 
2943
fi
 
2944
rm -f conftest.err conftest.$ac_ext
 
2945
 
 
2946
done
 
2947
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2948
rm -f conftest.err conftest.$ac_ext
 
2949
if $ac_preproc_ok; then
 
2950
  break
 
2951
fi
 
2952
 
 
2953
    done
 
2954
    ac_cv_prog_CPP=$CPP
 
2955
 
 
2956
fi
 
2957
  CPP=$ac_cv_prog_CPP
 
2958
else
 
2959
  ac_cv_prog_CPP=$CPP
 
2960
fi
 
2961
echo "$as_me:$LINENO: result: $CPP" >&5
 
2962
echo "${ECHO_T}$CPP" >&6
 
2963
ac_preproc_ok=false
 
2964
for ac_c_preproc_warn_flag in '' yes
 
2965
do
 
2966
  # Use a header file that comes with gcc, so configuring glibc
 
2967
  # with a fresh cross-compiler works.
 
2968
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2969
  # <limits.h> exists even on freestanding compilers.
 
2970
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2971
  # not just through cpp. "Syntax error" is here to catch this case.
 
2972
  cat >conftest.$ac_ext <<_ACEOF
 
2973
#line $LINENO "configure"
 
2974
/* confdefs.h.  */
 
2975
_ACEOF
 
2976
cat confdefs.h >>conftest.$ac_ext
 
2977
cat >>conftest.$ac_ext <<_ACEOF
 
2978
/* end confdefs.h.  */
 
2979
#ifdef __STDC__
 
2980
# include <limits.h>
 
2981
#else
 
2982
# include <assert.h>
 
2983
#endif
 
2984
                     Syntax error
 
2985
_ACEOF
 
2986
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2987
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2988
  ac_status=$?
 
2989
  grep -v '^ *+' conftest.er1 >conftest.err
 
2990
  rm -f conftest.er1
 
2991
  cat conftest.err >&5
 
2992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2993
  (exit $ac_status); } >/dev/null; then
 
2994
  if test -s conftest.err; then
 
2995
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2996
  else
 
2997
    ac_cpp_err=
 
2998
  fi
 
2999
else
 
3000
  ac_cpp_err=yes
 
3001
fi
 
3002
if test -z "$ac_cpp_err"; then
 
3003
  :
 
3004
else
 
3005
  echo "$as_me: failed program was:" >&5
 
3006
sed 's/^/| /' conftest.$ac_ext >&5
 
3007
 
 
3008
  # Broken: fails on valid input.
 
3009
continue
 
3010
fi
 
3011
rm -f conftest.err conftest.$ac_ext
 
3012
 
 
3013
  # OK, works on sane cases.  Now check whether non-existent headers
 
3014
  # can be detected and how.
 
3015
  cat >conftest.$ac_ext <<_ACEOF
 
3016
#line $LINENO "configure"
 
3017
/* confdefs.h.  */
 
3018
_ACEOF
 
3019
cat confdefs.h >>conftest.$ac_ext
 
3020
cat >>conftest.$ac_ext <<_ACEOF
 
3021
/* end confdefs.h.  */
 
3022
#include <ac_nonexistent.h>
 
3023
_ACEOF
 
3024
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3025
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3026
  ac_status=$?
 
3027
  grep -v '^ *+' conftest.er1 >conftest.err
 
3028
  rm -f conftest.er1
 
3029
  cat conftest.err >&5
 
3030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3031
  (exit $ac_status); } >/dev/null; then
 
3032
  if test -s conftest.err; then
 
3033
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3034
  else
 
3035
    ac_cpp_err=
 
3036
  fi
 
3037
else
 
3038
  ac_cpp_err=yes
 
3039
fi
 
3040
if test -z "$ac_cpp_err"; then
 
3041
  # Broken: success on invalid input.
 
3042
continue
 
3043
else
 
3044
  echo "$as_me: failed program was:" >&5
 
3045
sed 's/^/| /' conftest.$ac_ext >&5
 
3046
 
 
3047
  # Passes both tests.
 
3048
ac_preproc_ok=:
 
3049
break
 
3050
fi
 
3051
rm -f conftest.err conftest.$ac_ext
 
3052
 
 
3053
done
 
3054
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3055
rm -f conftest.err conftest.$ac_ext
 
3056
if $ac_preproc_ok; then
 
3057
  :
 
3058
else
 
3059
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3060
See \`config.log' for more details." >&5
 
3061
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3062
See \`config.log' for more details." >&2;}
 
3063
   { (exit 1); exit 1; }; }
 
3064
fi
 
3065
 
 
3066
ac_ext=c
 
3067
ac_cpp='$CPP $CPPFLAGS'
 
3068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3071
 
 
3072
# Find a good install program.  We prefer a C program (faster),
 
3073
# so one script is as good as another.  But avoid the broken or
 
3074
# incompatible versions:
 
3075
# SysV /etc/install, /usr/sbin/install
 
3076
# SunOS /usr/etc/install
 
3077
# IRIX /sbin/install
 
3078
# AIX /bin/install
 
3079
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3080
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3081
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3082
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3083
# ./install, which can be erroneously created by make from ./install.sh.
 
3084
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3085
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3086
if test -z "$INSTALL"; then
 
3087
if test "${ac_cv_path_install+set}" = set; then
 
3088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3089
else
 
3090
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3091
for as_dir in $PATH
 
3092
do
 
3093
  IFS=$as_save_IFS
 
3094
  test -z "$as_dir" && as_dir=.
 
3095
  # Account for people who put trailing slashes in PATH elements.
 
3096
case $as_dir/ in
 
3097
  ./ | .// | /cC/* | \
 
3098
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3099
  /usr/ucb/* ) ;;
 
3100
  *)
 
3101
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3102
    # Don't use installbsd from OSF since it installs stuff as root
 
3103
    # by default.
 
3104
    for ac_prog in ginstall scoinst install; do
 
3105
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3106
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3107
          if test $ac_prog = install &&
 
3108
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3109
            # AIX install.  It has an incompatible calling convention.
 
3110
            :
 
3111
          elif test $ac_prog = install &&
 
3112
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3113
            # program-specific install script used by HP pwplus--don't use.
 
3114
            :
 
3115
          else
 
3116
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3117
            break 3
 
3118
          fi
 
3119
        fi
 
3120
      done
 
3121
    done
 
3122
    ;;
 
3123
esac
 
3124
done
 
3125
 
 
3126
 
 
3127
fi
 
3128
  if test "${ac_cv_path_install+set}" = set; then
 
3129
    INSTALL=$ac_cv_path_install
 
3130
  else
 
3131
    # As a last resort, use the slow shell script.  We don't cache a
 
3132
    # path for INSTALL within a source directory, because that will
 
3133
    # break other packages using the cache if that directory is
 
3134
    # removed, or if the path is relative.
 
3135
    INSTALL=$ac_install_sh
 
3136
  fi
 
3137
fi
 
3138
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3139
echo "${ECHO_T}$INSTALL" >&6
 
3140
 
 
3141
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3142
# It thinks the first close brace ends the variable substitution.
 
3143
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3144
 
 
3145
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3146
 
 
3147
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3148
 
 
3149
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3150
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3151
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
3152
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3154
else
 
3155
  cat >conftest.make <<\_ACEOF
 
3156
all:
 
3157
        @echo 'ac_maketemp="$(MAKE)"'
 
3158
_ACEOF
 
3159
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3160
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3161
if test -n "$ac_maketemp"; then
 
3162
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3163
else
 
3164
  eval ac_cv_prog_make_${ac_make}_set=no
 
3165
fi
 
3166
rm -f conftest.make
 
3167
fi
 
3168
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3169
  echo "$as_me:$LINENO: result: yes" >&5
 
3170
echo "${ECHO_T}yes" >&6
 
3171
  SET_MAKE=
 
3172
else
 
3173
  echo "$as_me:$LINENO: result: no" >&5
 
3174
echo "${ECHO_T}no" >&6
 
3175
  SET_MAKE="MAKE=${MAKE-make}"
 
3176
fi
 
3177
 
 
3178
if test -n "$ac_tool_prefix"; then
 
3179
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
3180
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
3181
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3182
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3183
if test "${ac_cv_prog_AR+set}" = set; then
 
3184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3185
else
 
3186
  if test -n "$AR"; then
 
3187
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
3188
else
 
3189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3190
for as_dir in $PATH
 
3191
do
 
3192
  IFS=$as_save_IFS
 
3193
  test -z "$as_dir" && as_dir=.
 
3194
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3195
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3196
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
3197
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3198
    break 2
 
3199
  fi
 
3200
done
 
3201
done
 
3202
 
 
3203
fi
 
3204
fi
 
3205
AR=$ac_cv_prog_AR
 
3206
if test -n "$AR"; then
 
3207
  echo "$as_me:$LINENO: result: $AR" >&5
 
3208
echo "${ECHO_T}$AR" >&6
 
3209
else
 
3210
  echo "$as_me:$LINENO: result: no" >&5
 
3211
echo "${ECHO_T}no" >&6
 
3212
fi
 
3213
 
 
3214
fi
 
3215
if test -z "$ac_cv_prog_AR"; then
 
3216
  ac_ct_AR=$AR
 
3217
  # Extract the first word of "ar", so it can be a program name with args.
 
3218
set dummy ar; ac_word=$2
 
3219
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3221
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
3222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3223
else
 
3224
  if test -n "$ac_ct_AR"; then
 
3225
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
3226
else
 
3227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3228
for as_dir in $PATH
 
3229
do
 
3230
  IFS=$as_save_IFS
 
3231
  test -z "$as_dir" && as_dir=.
 
3232
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3233
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3234
    ac_cv_prog_ac_ct_AR="ar"
 
3235
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3236
    break 2
 
3237
  fi
 
3238
done
 
3239
done
 
3240
 
 
3241
fi
 
3242
fi
 
3243
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
3244
if test -n "$ac_ct_AR"; then
 
3245
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
3246
echo "${ECHO_T}$ac_ct_AR" >&6
 
3247
else
 
3248
  echo "$as_me:$LINENO: result: no" >&5
 
3249
echo "${ECHO_T}no" >&6
 
3250
fi
 
3251
 
 
3252
  AR=$ac_ct_AR
 
3253
else
 
3254
  AR="$ac_cv_prog_AR"
 
3255
fi
 
3256
 
 
3257
if test -n "$ac_tool_prefix"; then
 
3258
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3259
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3260
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3261
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3262
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3263
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3264
else
 
3265
  if test -n "$RANLIB"; then
 
3266
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3267
else
 
3268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3269
for as_dir in $PATH
 
3270
do
 
3271
  IFS=$as_save_IFS
 
3272
  test -z "$as_dir" && as_dir=.
 
3273
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3274
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3275
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3276
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3277
    break 2
 
3278
  fi
 
3279
done
 
3280
done
 
3281
 
 
3282
fi
 
3283
fi
 
3284
RANLIB=$ac_cv_prog_RANLIB
 
3285
if test -n "$RANLIB"; then
 
3286
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3287
echo "${ECHO_T}$RANLIB" >&6
 
3288
else
 
3289
  echo "$as_me:$LINENO: result: no" >&5
 
3290
echo "${ECHO_T}no" >&6
 
3291
fi
 
3292
 
 
3293
fi
 
3294
if test -z "$ac_cv_prog_RANLIB"; then
 
3295
  ac_ct_RANLIB=$RANLIB
 
3296
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3297
set dummy ranlib; ac_word=$2
 
3298
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3299
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3300
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3302
else
 
3303
  if test -n "$ac_ct_RANLIB"; then
 
3304
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3305
else
 
3306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3307
for as_dir in $PATH
 
3308
do
 
3309
  IFS=$as_save_IFS
 
3310
  test -z "$as_dir" && as_dir=.
 
3311
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3312
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3313
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3314
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3315
    break 2
 
3316
  fi
 
3317
done
 
3318
done
 
3319
 
 
3320
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3321
fi
 
3322
fi
 
3323
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3324
if test -n "$ac_ct_RANLIB"; then
 
3325
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3326
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3327
else
 
3328
  echo "$as_me:$LINENO: result: no" >&5
 
3329
echo "${ECHO_T}no" >&6
 
3330
fi
 
3331
 
 
3332
  RANLIB=$ac_ct_RANLIB
 
3333
else
 
3334
  RANLIB="$ac_cv_prog_RANLIB"
 
3335
fi
 
3336
 
 
3337
 
 
3338
 
 
3339
 
 
3340
echo "$as_me:$LINENO: checking for egrep" >&5
 
3341
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3342
if test "${ac_cv_prog_egrep+set}" = set; then
 
3343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3344
else
 
3345
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3346
    then ac_cv_prog_egrep='grep -E'
 
3347
    else ac_cv_prog_egrep='egrep'
 
3348
    fi
 
3349
fi
 
3350
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3351
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3352
 EGREP=$ac_cv_prog_egrep
 
3353
 
 
3354
 
 
3355
 
 
3356
echo "$as_me:$LINENO: checking for AIX" >&5
 
3357
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
3358
cat >conftest.$ac_ext <<_ACEOF
 
3359
#line $LINENO "configure"
 
3360
/* confdefs.h.  */
 
3361
_ACEOF
 
3362
cat confdefs.h >>conftest.$ac_ext
 
3363
cat >>conftest.$ac_ext <<_ACEOF
 
3364
/* end confdefs.h.  */
 
3365
#ifdef _AIX
 
3366
  yes
 
3367
#endif
 
3368
 
 
3369
_ACEOF
 
3370
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3371
  $EGREP "yes" >/dev/null 2>&1; then
 
3372
  echo "$as_me:$LINENO: result: yes" >&5
 
3373
echo "${ECHO_T}yes" >&6
 
3374
cat >>confdefs.h <<\_ACEOF
 
3375
#define _ALL_SOURCE 1
 
3376
_ACEOF
 
3377
 
 
3378
else
 
3379
  echo "$as_me:$LINENO: result: no" >&5
 
3380
echo "${ECHO_T}no" >&6
 
3381
fi
 
3382
rm -f conftest*
 
3383
 
 
3384
 
 
3385
 
 
3386
# Check whether --enable-vtysh or --disable-vtysh was given.
 
3387
if test "${enable_vtysh+set}" = set; then
 
3388
  enableval="$enable_vtysh"
 
3389
 
 
3390
fi;
 
3391
# Check whether --enable-ipv6 or --disable-ipv6 was given.
 
3392
if test "${enable_ipv6+set}" = set; then
 
3393
  enableval="$enable_ipv6"
 
3394
 
 
3395
fi;
 
3396
# Check whether --enable-zebra or --disable-zebra was given.
 
3397
if test "${enable_zebra+set}" = set; then
 
3398
  enableval="$enable_zebra"
 
3399
 
 
3400
fi;
 
3401
# Check whether --enable-bgpd or --disable-bgpd was given.
 
3402
if test "${enable_bgpd+set}" = set; then
 
3403
  enableval="$enable_bgpd"
 
3404
 
 
3405
fi;
 
3406
# Check whether --enable-ripd or --disable-ripd was given.
 
3407
if test "${enable_ripd+set}" = set; then
 
3408
  enableval="$enable_ripd"
 
3409
 
 
3410
fi;
 
3411
# Check whether --enable-ripngd or --disable-ripngd was given.
 
3412
if test "${enable_ripngd+set}" = set; then
 
3413
  enableval="$enable_ripngd"
 
3414
 
 
3415
fi;
 
3416
# Check whether --enable-ospfd or --disable-ospfd was given.
 
3417
if test "${enable_ospfd+set}" = set; then
 
3418
  enableval="$enable_ospfd"
 
3419
 
 
3420
fi;
 
3421
# Check whether --enable-ospf6d or --disable-ospf6d was given.
 
3422
if test "${enable_ospf6d+set}" = set; then
 
3423
  enableval="$enable_ospf6d"
 
3424
 
 
3425
fi;
 
3426
# Check whether --enable-isisd or --disable-isisd was given.
 
3427
if test "${enable_isisd+set}" = set; then
 
3428
  enableval="$enable_isisd"
 
3429
 
 
3430
fi;
 
3431
# Check whether --enable-bgp-announce or --disable-bgp-announce was given.
 
3432
if test "${enable_bgp_announce+set}" = set; then
 
3433
  enableval="$enable_bgp_announce"
 
3434
 
 
3435
fi;
 
3436
# Check whether --enable-netlink or --disable-netlink was given.
 
3437
if test "${enable_netlink+set}" = set; then
 
3438
  enableval="$enable_netlink"
 
3439
 
 
3440
fi;
 
3441
# Check whether --enable-broken-aliases or --disable-broken-aliases was given.
 
3442
if test "${enable_broken_aliases+set}" = set; then
 
3443
  enableval="$enable_broken_aliases"
 
3444
 
 
3445
fi;
 
3446
# Check whether --enable-snmp or --disable-snmp was given.
 
3447
if test "${enable_snmp+set}" = set; then
 
3448
  enableval="$enable_snmp"
 
3449
 
 
3450
fi;
 
3451
 
 
3452
# Check whether --with-libpam or --without-libpam was given.
 
3453
if test "${with_libpam+set}" = set; then
 
3454
  withval="$with_libpam"
 
3455
 
 
3456
fi;
 
3457
# Check whether --enable-tcp-zebra or --disable-tcp-zebra was given.
 
3458
if test "${enable_tcp_zebra+set}" = set; then
 
3459
  enableval="$enable_tcp_zebra"
 
3460
 
 
3461
fi;
 
3462
# Check whether --enable-nssa or --disable-nssa was given.
 
3463
if test "${enable_nssa+set}" = set; then
 
3464
  enableval="$enable_nssa"
 
3465
 
 
3466
fi;
 
3467
# Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
 
3468
if test "${enable_opaque_lsa+set}" = set; then
 
3469
  enableval="$enable_opaque_lsa"
 
3470
 
 
3471
fi;
 
3472
# Check whether --enable-ospfapi or --disable-ospfapi was given.
 
3473
if test "${enable_ospfapi+set}" = set; then
 
3474
  enableval="$enable_ospfapi"
 
3475
 
 
3476
fi;
 
3477
# Check whether --enable-ospfclient or --disable-ospfclient was given.
 
3478
if test "${enable_ospfclient+set}" = set; then
 
3479
  enableval="$enable_ospfclient"
 
3480
 
 
3481
fi;
 
3482
# Check whether --enable-ospf-te or --disable-ospf-te was given.
 
3483
if test "${enable_ospf_te+set}" = set; then
 
3484
  enableval="$enable_ospf_te"
 
3485
 
 
3486
fi;
 
3487
# Check whether --enable-multipath or --disable-multipath was given.
 
3488
if test "${enable_multipath+set}" = set; then
 
3489
  enableval="$enable_multipath"
 
3490
 
 
3491
fi;
 
3492
# Check whether --enable-quagga_user or --disable-quagga_user was given.
 
3493
if test "${enable_quagga_user+set}" = set; then
 
3494
  enableval="$enable_quagga_user"
 
3495
 
 
3496
fi;
 
3497
# Check whether --enable-quagga_group or --disable-quagga_group was given.
 
3498
if test "${enable_quagga_group+set}" = set; then
 
3499
  enableval="$enable_quagga_group"
 
3500
 
 
3501
fi;
 
3502
# Check whether --enable-vty_group or --disable-vty_group was given.
 
3503
if test "${enable_vty_group+set}" = set; then
 
3504
  enableval="$enable_vty_group"
 
3505
 
 
3506
fi;
 
3507
# Check whether --enable-configfile_mask or --disable-configfile_mask was given.
 
3508
if test "${enable_configfile_mask+set}" = set; then
 
3509
  enableval="$enable_configfile_mask"
 
3510
 
 
3511
fi;
 
3512
# Check whether --enable-logfile_mask or --disable-logfile_mask was given.
 
3513
if test "${enable_logfile_mask+set}" = set; then
 
3514
  enableval="$enable_logfile_mask"
 
3515
 
 
3516
fi;
 
3517
 
 
3518
# Check whether --enable-rtadv or --disable-rtadv was given.
 
3519
if test "${enable_rtadv+set}" = set; then
 
3520
  enableval="$enable_rtadv"
 
3521
 
 
3522
fi;
 
3523
# Check whether --enable-capabilities or --disable-capabilities was given.
 
3524
if test "${enable_capabilities+set}" = set; then
 
3525
  enableval="$enable_capabilities"
 
3526
 
 
3527
fi;
 
3528
 
 
3529
if test "${enable_broken_aliases}" = "yes"; then
 
3530
  if test "${enable_netlink}" = "yes"
 
3531
  then
 
3532
    echo "Sorry, you can't use netlink with broken aliases"
 
3533
    exit 1
 
3534
  fi
 
3535
 
 
3536
cat >>confdefs.h <<\_ACEOF
 
3537
#define HAVE_BROKEN_ALIASES
 
3538
_ACEOF
 
3539
 
 
3540
  enable_netlink=no
 
3541
fi
 
3542
 
 
3543
if test "${enable_tcp_zebra}" = "yes"; then
 
3544
 
 
3545
cat >>confdefs.h <<\_ACEOF
 
3546
#define HAVE_TCP_ZEBRA
 
3547
_ACEOF
 
3548
 
 
3549
fi
 
3550
 
 
3551
if test "${enable_nssa}" = "yes"; then
 
3552
 
 
3553
cat >>confdefs.h <<\_ACEOF
 
3554
#define HAVE_NSSA
 
3555
_ACEOF
 
3556
 
 
3557
fi
 
3558
 
 
3559
if test "${enable_opaque_lsa}" = "yes"; then
 
3560
 
 
3561
cat >>confdefs.h <<\_ACEOF
 
3562
#define HAVE_OPAQUE_LSA
 
3563
_ACEOF
 
3564
 
 
3565
fi
 
3566
 
 
3567
if test "${enable_ospf_te}" = "yes"; then
 
3568
 
 
3569
cat >>confdefs.h <<\_ACEOF
 
3570
#define HAVE_OPAQUE_LSA
 
3571
_ACEOF
 
3572
 
 
3573
 
 
3574
cat >>confdefs.h <<\_ACEOF
 
3575
#define HAVE_OSPF_TE
 
3576
_ACEOF
 
3577
 
 
3578
fi
 
3579
 
 
3580
echo "$as_me:$LINENO: checking if zebra should be configurable to send Route Advertisements" >&5
 
3581
echo $ECHO_N "checking if zebra should be configurable to send Route Advertisements... $ECHO_C" >&6
 
3582
if test "${enable_rtadv}" != "no"; then
 
3583
  echo "$as_me:$LINENO: result: yes" >&5
 
3584
echo "${ECHO_T}yes" >&6
 
3585
 
 
3586
cat >>confdefs.h <<\_ACEOF
 
3587
#define HAVE_RTADV
 
3588
_ACEOF
 
3589
 
 
3590
else
 
3591
  echo "$as_me:$LINENO: result: no" >&5
 
3592
echo "${ECHO_T}no" >&6
 
3593
fi
 
3594
 
 
3595
if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then
 
3596
  enable_user="quagga"
 
3597
elif test "${enable_user}" = "no"; then
 
3598
  enable_user="root"
 
3599
fi
 
3600
 
 
3601
cat >>confdefs.h <<_ACEOF
 
3602
#define QUAGGA_USER "${enable_user}"
 
3603
_ACEOF
 
3604
 
 
3605
 
 
3606
if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then
 
3607
  enable_group="quagga"
 
3608
elif test "${enable_group}" = "no"; then
 
3609
  enable_group="root"
 
3610
fi
 
3611
 
 
3612
cat >>confdefs.h <<_ACEOF
 
3613
#define QUAGGA_GROUP "${enable_group}"
 
3614
_ACEOF
 
3615
 
 
3616
 
 
3617
if test x"${enable_vty_group}" = x"yes" ; then
 
3618
  { { echo "$as_me:$LINENO: error: --enable-vty-group requires a group as argument, not yes" >&5
 
3619
echo "$as_me: error: --enable-vty-group requires a group as argument, not yes" >&2;}
 
3620
   { (exit 1); exit 1; }; }
 
3621
elif test x"${enable_vty_group}" != x""; then
 
3622
  if test x"${enable_vty_group}" != x"no"; then
 
3623
 
 
3624
cat >>confdefs.h <<_ACEOF
 
3625
#define VTY_GROUP "${enable_vty_group}"
 
3626
_ACEOF
 
3627
 
 
3628
  fi
 
3629
fi
 
3630
 
 
3631
enable_configfile_mask=${enable_configfile_mask:-0600}
 
3632
 
 
3633
cat >>confdefs.h <<_ACEOF
 
3634
#define CONFIGFILE_MASK ${enable_configfile_mask}
 
3635
_ACEOF
 
3636
 
 
3637
 
 
3638
enable_logfile_mask=${enable_logfile_mask:-0600}
 
3639
 
 
3640
cat >>confdefs.h <<_ACEOF
 
3641
#define LOGFILE_MASK ${enable_logfile_mask}
 
3642
_ACEOF
 
3643
 
 
3644
 
 
3645
 
 
3646
MULTIPATH_NUM=1
 
3647
 
 
3648
case "${enable_multipath}" in
 
3649
  [0-9]|[1-9][0-9])
 
3650
    MULTIPATH_NUM="${enable_multipath}"
 
3651
    ;;
 
3652
  "")
 
3653
    ;;
 
3654
  *)
 
3655
    echo "Please specify digit to --enable-multipath ARG."
 
3656
    exit 1
 
3657
    ;;
 
3658
esac
 
3659
 
 
3660
 
 
3661
 
 
3662
 
 
3663
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3664
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3665
if test "${ac_cv_header_stdc+set}" = set; then
 
3666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3667
else
 
3668
  cat >conftest.$ac_ext <<_ACEOF
 
3669
#line $LINENO "configure"
 
3670
/* confdefs.h.  */
 
3671
_ACEOF
 
3672
cat confdefs.h >>conftest.$ac_ext
 
3673
cat >>conftest.$ac_ext <<_ACEOF
 
3674
/* end confdefs.h.  */
 
3675
#include <stdlib.h>
 
3676
#include <stdarg.h>
 
3677
#include <string.h>
 
3678
#include <float.h>
 
3679
 
 
3680
int
 
3681
main ()
 
3682
{
 
3683
 
 
3684
  ;
 
3685
  return 0;
 
3686
}
 
3687
_ACEOF
 
3688
rm -f conftest.$ac_objext
 
3689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3690
  (eval $ac_compile) 2>&5
 
3691
  ac_status=$?
 
3692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3693
  (exit $ac_status); } &&
 
3694
         { ac_try='test -s conftest.$ac_objext'
 
3695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3696
  (eval $ac_try) 2>&5
 
3697
  ac_status=$?
 
3698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3699
  (exit $ac_status); }; }; then
 
3700
  ac_cv_header_stdc=yes
 
3701
else
 
3702
  echo "$as_me: failed program was:" >&5
 
3703
sed 's/^/| /' conftest.$ac_ext >&5
 
3704
 
 
3705
ac_cv_header_stdc=no
 
3706
fi
 
3707
rm -f conftest.$ac_objext conftest.$ac_ext
 
3708
 
 
3709
if test $ac_cv_header_stdc = yes; then
 
3710
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3711
  cat >conftest.$ac_ext <<_ACEOF
 
3712
#line $LINENO "configure"
 
3713
/* confdefs.h.  */
 
3714
_ACEOF
 
3715
cat confdefs.h >>conftest.$ac_ext
 
3716
cat >>conftest.$ac_ext <<_ACEOF
 
3717
/* end confdefs.h.  */
 
3718
#include <string.h>
 
3719
 
 
3720
_ACEOF
 
3721
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3722
  $EGREP "memchr" >/dev/null 2>&1; then
 
3723
  :
 
3724
else
 
3725
  ac_cv_header_stdc=no
 
3726
fi
 
3727
rm -f conftest*
 
3728
 
 
3729
fi
 
3730
 
 
3731
if test $ac_cv_header_stdc = yes; then
 
3732
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3733
  cat >conftest.$ac_ext <<_ACEOF
 
3734
#line $LINENO "configure"
 
3735
/* confdefs.h.  */
 
3736
_ACEOF
 
3737
cat confdefs.h >>conftest.$ac_ext
 
3738
cat >>conftest.$ac_ext <<_ACEOF
 
3739
/* end confdefs.h.  */
 
3740
#include <stdlib.h>
 
3741
 
 
3742
_ACEOF
 
3743
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3744
  $EGREP "free" >/dev/null 2>&1; then
 
3745
  :
 
3746
else
 
3747
  ac_cv_header_stdc=no
 
3748
fi
 
3749
rm -f conftest*
 
3750
 
 
3751
fi
 
3752
 
 
3753
if test $ac_cv_header_stdc = yes; then
 
3754
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3755
  if test "$cross_compiling" = yes; then
 
3756
  :
 
3757
else
 
3758
  cat >conftest.$ac_ext <<_ACEOF
 
3759
#line $LINENO "configure"
 
3760
/* confdefs.h.  */
 
3761
_ACEOF
 
3762
cat confdefs.h >>conftest.$ac_ext
 
3763
cat >>conftest.$ac_ext <<_ACEOF
 
3764
/* end confdefs.h.  */
 
3765
#include <ctype.h>
 
3766
#if ((' ' & 0x0FF) == 0x020)
 
3767
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3768
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3769
#else
 
3770
# define ISLOWER(c) \
 
3771
                   (('a' <= (c) && (c) <= 'i') \
 
3772
                     || ('j' <= (c) && (c) <= 'r') \
 
3773
                     || ('s' <= (c) && (c) <= 'z'))
 
3774
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3775
#endif
 
3776
 
 
3777
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3778
int
 
3779
main ()
 
3780
{
 
3781
  int i;
 
3782
  for (i = 0; i < 256; i++)
 
3783
    if (XOR (islower (i), ISLOWER (i))
 
3784
        || toupper (i) != TOUPPER (i))
 
3785
      exit(2);
 
3786
  exit (0);
 
3787
}
 
3788
_ACEOF
 
3789
rm -f conftest$ac_exeext
 
3790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3791
  (eval $ac_link) 2>&5
 
3792
  ac_status=$?
 
3793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3794
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3796
  (eval $ac_try) 2>&5
 
3797
  ac_status=$?
 
3798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3799
  (exit $ac_status); }; }; then
 
3800
  :
 
3801
else
 
3802
  echo "$as_me: program exited with status $ac_status" >&5
 
3803
echo "$as_me: failed program was:" >&5
 
3804
sed 's/^/| /' conftest.$ac_ext >&5
 
3805
 
 
3806
( exit $ac_status )
 
3807
ac_cv_header_stdc=no
 
3808
fi
 
3809
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3810
fi
 
3811
fi
 
3812
fi
 
3813
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3814
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3815
if test $ac_cv_header_stdc = yes; then
 
3816
 
 
3817
cat >>confdefs.h <<\_ACEOF
 
3818
#define STDC_HEADERS 1
 
3819
_ACEOF
 
3820
 
 
3821
fi
 
3822
 
 
3823
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3824
 
 
3825
 
 
3826
 
 
3827
 
 
3828
 
 
3829
 
 
3830
 
 
3831
 
 
3832
 
 
3833
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3834
                  inttypes.h stdint.h unistd.h
 
3835
do
 
3836
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3837
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3838
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3839
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3841
else
 
3842
  cat >conftest.$ac_ext <<_ACEOF
 
3843
#line $LINENO "configure"
 
3844
/* confdefs.h.  */
 
3845
_ACEOF
 
3846
cat confdefs.h >>conftest.$ac_ext
 
3847
cat >>conftest.$ac_ext <<_ACEOF
 
3848
/* end confdefs.h.  */
 
3849
$ac_includes_default
 
3850
 
 
3851
#include <$ac_header>
 
3852
_ACEOF
 
3853
rm -f conftest.$ac_objext
 
3854
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3855
  (eval $ac_compile) 2>&5
 
3856
  ac_status=$?
 
3857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3858
  (exit $ac_status); } &&
 
3859
         { ac_try='test -s conftest.$ac_objext'
 
3860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3861
  (eval $ac_try) 2>&5
 
3862
  ac_status=$?
 
3863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3864
  (exit $ac_status); }; }; then
 
3865
  eval "$as_ac_Header=yes"
 
3866
else
 
3867
  echo "$as_me: failed program was:" >&5
 
3868
sed 's/^/| /' conftest.$ac_ext >&5
 
3869
 
 
3870
eval "$as_ac_Header=no"
 
3871
fi
 
3872
rm -f conftest.$ac_objext conftest.$ac_ext
 
3873
fi
 
3874
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3875
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3876
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3877
  cat >>confdefs.h <<_ACEOF
 
3878
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3879
_ACEOF
 
3880
 
 
3881
fi
 
3882
 
 
3883
done
 
3884
 
 
3885
 
 
3886
 
 
3887
 
 
3888
 
 
3889
 
 
3890
 
 
3891
 
 
3892
 
 
3893
 
 
3894
 
 
3895
 
 
3896
 
 
3897
 
 
3898
 
 
3899
 
 
3900
 
 
3901
 
 
3902
for ac_header in string.h stropts.h sys/conf.h sys/ksym.h sys/time.h \
 
3903
                 sys/times.h sys/select.h sys/sysctl.h sys/sockio.h \
 
3904
                 sys/types.h linux/version.h kvm.h netdb.h asm/types.h \
 
3905
                 libutil.h limits.h
 
3906
do
 
3907
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3909
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3910
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3911
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3913
fi
 
3914
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3915
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3916
else
 
3917
  # Is the header compilable?
 
3918
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3919
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3920
cat >conftest.$ac_ext <<_ACEOF
 
3921
#line $LINENO "configure"
 
3922
/* confdefs.h.  */
 
3923
_ACEOF
 
3924
cat confdefs.h >>conftest.$ac_ext
 
3925
cat >>conftest.$ac_ext <<_ACEOF
 
3926
/* end confdefs.h.  */
 
3927
$ac_includes_default
 
3928
#include <$ac_header>
 
3929
_ACEOF
 
3930
rm -f conftest.$ac_objext
 
3931
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3932
  (eval $ac_compile) 2>&5
 
3933
  ac_status=$?
 
3934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3935
  (exit $ac_status); } &&
 
3936
         { ac_try='test -s conftest.$ac_objext'
 
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_header_compiler=yes
 
3943
else
 
3944
  echo "$as_me: failed program was:" >&5
 
3945
sed 's/^/| /' conftest.$ac_ext >&5
 
3946
 
 
3947
ac_header_compiler=no
 
3948
fi
 
3949
rm -f conftest.$ac_objext conftest.$ac_ext
 
3950
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3951
echo "${ECHO_T}$ac_header_compiler" >&6
 
3952
 
 
3953
# Is the header present?
 
3954
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3955
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3956
cat >conftest.$ac_ext <<_ACEOF
 
3957
#line $LINENO "configure"
 
3958
/* confdefs.h.  */
 
3959
_ACEOF
 
3960
cat confdefs.h >>conftest.$ac_ext
 
3961
cat >>conftest.$ac_ext <<_ACEOF
 
3962
/* end confdefs.h.  */
 
3963
#include <$ac_header>
 
3964
_ACEOF
 
3965
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3966
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3967
  ac_status=$?
 
3968
  grep -v '^ *+' conftest.er1 >conftest.err
 
3969
  rm -f conftest.er1
 
3970
  cat conftest.err >&5
 
3971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3972
  (exit $ac_status); } >/dev/null; then
 
3973
  if test -s conftest.err; then
 
3974
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3975
  else
 
3976
    ac_cpp_err=
 
3977
  fi
 
3978
else
 
3979
  ac_cpp_err=yes
 
3980
fi
 
3981
if test -z "$ac_cpp_err"; then
 
3982
  ac_header_preproc=yes
 
3983
else
 
3984
  echo "$as_me: failed program was:" >&5
 
3985
sed 's/^/| /' conftest.$ac_ext >&5
 
3986
 
 
3987
  ac_header_preproc=no
 
3988
fi
 
3989
rm -f conftest.err conftest.$ac_ext
 
3990
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3991
echo "${ECHO_T}$ac_header_preproc" >&6
 
3992
 
 
3993
# So?  What about this header?
 
3994
case $ac_header_compiler:$ac_header_preproc in
 
3995
  yes:no )
 
3996
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3997
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3998
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3999
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4000
    (
 
4001
      cat <<\_ASBOX
 
4002
## ------------------------------------ ##
 
4003
## Report this to bug-autoconf@gnu.org. ##
 
4004
## ------------------------------------ ##
 
4005
_ASBOX
 
4006
    ) |
 
4007
      sed "s/^/$as_me: WARNING:     /" >&2
 
4008
    ;;
 
4009
  no:yes )
 
4010
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4011
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4012
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4013
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4014
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4015
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4016
    (
 
4017
      cat <<\_ASBOX
 
4018
## ------------------------------------ ##
 
4019
## Report this to bug-autoconf@gnu.org. ##
 
4020
## ------------------------------------ ##
 
4021
_ASBOX
 
4022
    ) |
 
4023
      sed "s/^/$as_me: WARNING:     /" >&2
 
4024
    ;;
 
4025
esac
 
4026
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4027
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4028
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4030
else
 
4031
  eval "$as_ac_Header=$ac_header_preproc"
 
4032
fi
 
4033
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4034
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4035
 
 
4036
fi
 
4037
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4038
  cat >>confdefs.h <<_ACEOF
 
4039
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4040
_ACEOF
 
4041
 
 
4042
fi
 
4043
 
 
4044
done
 
4045
 
 
4046
 
 
4047
 
 
4048
 
 
4049
 
 
4050
 
 
4051
 
 
4052
 
 
4053
 
 
4054
 
 
4055
 
 
4056
 
 
4057
for ac_header in sys/socket.h netinet/in_systm.h netinet/in.h \
 
4058
                 net/if_dl.h net/netopt.h inet/nd.h net/route.h \
 
4059
                 net/if.h net/if_var.h netinet/in_var.h
 
4060
do
 
4061
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4062
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4063
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4064
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4065
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4067
fi
 
4068
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4069
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4070
else
 
4071
  # Is the header compilable?
 
4072
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4073
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4074
cat >conftest.$ac_ext <<_ACEOF
 
4075
#line $LINENO "configure"
 
4076
/* confdefs.h.  */
 
4077
_ACEOF
 
4078
cat confdefs.h >>conftest.$ac_ext
 
4079
cat >>conftest.$ac_ext <<_ACEOF
 
4080
/* end confdefs.h.  */
 
4081
$ac_includes_default
 
4082
#include <$ac_header>
 
4083
_ACEOF
 
4084
rm -f conftest.$ac_objext
 
4085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4086
  (eval $ac_compile) 2>&5
 
4087
  ac_status=$?
 
4088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4089
  (exit $ac_status); } &&
 
4090
         { ac_try='test -s conftest.$ac_objext'
 
4091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4092
  (eval $ac_try) 2>&5
 
4093
  ac_status=$?
 
4094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4095
  (exit $ac_status); }; }; then
 
4096
  ac_header_compiler=yes
 
4097
else
 
4098
  echo "$as_me: failed program was:" >&5
 
4099
sed 's/^/| /' conftest.$ac_ext >&5
 
4100
 
 
4101
ac_header_compiler=no
 
4102
fi
 
4103
rm -f conftest.$ac_objext conftest.$ac_ext
 
4104
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4105
echo "${ECHO_T}$ac_header_compiler" >&6
 
4106
 
 
4107
# Is the header present?
 
4108
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4109
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4110
cat >conftest.$ac_ext <<_ACEOF
 
4111
#line $LINENO "configure"
 
4112
/* confdefs.h.  */
 
4113
_ACEOF
 
4114
cat confdefs.h >>conftest.$ac_ext
 
4115
cat >>conftest.$ac_ext <<_ACEOF
 
4116
/* end confdefs.h.  */
 
4117
#include <$ac_header>
 
4118
_ACEOF
 
4119
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4120
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4121
  ac_status=$?
 
4122
  grep -v '^ *+' conftest.er1 >conftest.err
 
4123
  rm -f conftest.er1
 
4124
  cat conftest.err >&5
 
4125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4126
  (exit $ac_status); } >/dev/null; then
 
4127
  if test -s conftest.err; then
 
4128
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4129
  else
 
4130
    ac_cpp_err=
 
4131
  fi
 
4132
else
 
4133
  ac_cpp_err=yes
 
4134
fi
 
4135
if test -z "$ac_cpp_err"; then
 
4136
  ac_header_preproc=yes
 
4137
else
 
4138
  echo "$as_me: failed program was:" >&5
 
4139
sed 's/^/| /' conftest.$ac_ext >&5
 
4140
 
 
4141
  ac_header_preproc=no
 
4142
fi
 
4143
rm -f conftest.err conftest.$ac_ext
 
4144
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4145
echo "${ECHO_T}$ac_header_preproc" >&6
 
4146
 
 
4147
# So?  What about this header?
 
4148
case $ac_header_compiler:$ac_header_preproc in
 
4149
  yes:no )
 
4150
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4151
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4152
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4153
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4154
    (
 
4155
      cat <<\_ASBOX
 
4156
## ------------------------------------ ##
 
4157
## Report this to bug-autoconf@gnu.org. ##
 
4158
## ------------------------------------ ##
 
4159
_ASBOX
 
4160
    ) |
 
4161
      sed "s/^/$as_me: WARNING:     /" >&2
 
4162
    ;;
 
4163
  no:yes )
 
4164
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4165
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4166
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4167
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4168
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4169
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4170
    (
 
4171
      cat <<\_ASBOX
 
4172
## ------------------------------------ ##
 
4173
## Report this to bug-autoconf@gnu.org. ##
 
4174
## ------------------------------------ ##
 
4175
_ASBOX
 
4176
    ) |
 
4177
      sed "s/^/$as_me: WARNING:     /" >&2
 
4178
    ;;
 
4179
esac
 
4180
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4181
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4182
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4184
else
 
4185
  eval "$as_ac_Header=$ac_header_preproc"
 
4186
fi
 
4187
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4188
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4189
 
 
4190
fi
 
4191
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4192
  cat >>confdefs.h <<_ACEOF
 
4193
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4194
_ACEOF
 
4195
 
 
4196
fi
 
4197
 
 
4198
done
 
4199
 
 
4200
 
 
4201
 
 
4202
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4203
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4204
if test "${ac_cv_c_const+set}" = set; then
 
4205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4206
else
 
4207
  cat >conftest.$ac_ext <<_ACEOF
 
4208
#line $LINENO "configure"
 
4209
/* confdefs.h.  */
 
4210
_ACEOF
 
4211
cat confdefs.h >>conftest.$ac_ext
 
4212
cat >>conftest.$ac_ext <<_ACEOF
 
4213
/* end confdefs.h.  */
 
4214
 
 
4215
int
 
4216
main ()
 
4217
{
 
4218
/* FIXME: Include the comments suggested by Paul. */
 
4219
#ifndef __cplusplus
 
4220
  /* Ultrix mips cc rejects this.  */
 
4221
  typedef int charset[2];
 
4222
  const charset x;
 
4223
  /* SunOS 4.1.1 cc rejects this.  */
 
4224
  char const *const *ccp;
 
4225
  char **p;
 
4226
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4227
  struct point {int x, y;};
 
4228
  static struct point const zero = {0,0};
 
4229
  /* AIX XL C 1.02.0.0 rejects this.
 
4230
     It does not let you subtract one const X* pointer from another in
 
4231
     an arm of an if-expression whose if-part is not a constant
 
4232
     expression */
 
4233
  const char *g = "string";
 
4234
  ccp = &g + (g ? g-g : 0);
 
4235
  /* HPUX 7.0 cc rejects these. */
 
4236
  ++ccp;
 
4237
  p = (char**) ccp;
 
4238
  ccp = (char const *const *) p;
 
4239
  { /* SCO 3.2v4 cc rejects this.  */
 
4240
    char *t;
 
4241
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4242
 
 
4243
    *t++ = 0;
 
4244
  }
 
4245
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4246
    int x[] = {25, 17};
 
4247
    const int *foo = &x[0];
 
4248
    ++foo;
 
4249
  }
 
4250
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4251
    typedef const int *iptr;
 
4252
    iptr p = 0;
 
4253
    ++p;
 
4254
  }
 
4255
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4256
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4257
    struct s { int j; const int *ap[3]; };
 
4258
    struct s *b; b->j = 5;
 
4259
  }
 
4260
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4261
    const int foo = 10;
 
4262
  }
 
4263
#endif
 
4264
 
 
4265
  ;
 
4266
  return 0;
 
4267
}
 
4268
_ACEOF
 
4269
rm -f conftest.$ac_objext
 
4270
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4271
  (eval $ac_compile) 2>&5
 
4272
  ac_status=$?
 
4273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4274
  (exit $ac_status); } &&
 
4275
         { ac_try='test -s conftest.$ac_objext'
 
4276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4277
  (eval $ac_try) 2>&5
 
4278
  ac_status=$?
 
4279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4280
  (exit $ac_status); }; }; then
 
4281
  ac_cv_c_const=yes
 
4282
else
 
4283
  echo "$as_me: failed program was:" >&5
 
4284
sed 's/^/| /' conftest.$ac_ext >&5
 
4285
 
 
4286
ac_cv_c_const=no
 
4287
fi
 
4288
rm -f conftest.$ac_objext conftest.$ac_ext
 
4289
fi
 
4290
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4291
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4292
if test $ac_cv_c_const = no; then
 
4293
 
 
4294
cat >>confdefs.h <<\_ACEOF
 
4295
#define const
 
4296
_ACEOF
 
4297
 
 
4298
fi
 
4299
 
 
4300
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
4301
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
4302
if test "${ac_cv_type_signal+set}" = set; then
 
4303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4304
else
 
4305
  cat >conftest.$ac_ext <<_ACEOF
 
4306
#line $LINENO "configure"
 
4307
/* confdefs.h.  */
 
4308
_ACEOF
 
4309
cat confdefs.h >>conftest.$ac_ext
 
4310
cat >>conftest.$ac_ext <<_ACEOF
 
4311
/* end confdefs.h.  */
 
4312
#include <sys/types.h>
 
4313
#include <signal.h>
 
4314
#ifdef signal
 
4315
# undef signal
 
4316
#endif
 
4317
#ifdef __cplusplus
 
4318
extern "C" void (*signal (int, void (*)(int)))(int);
 
4319
#else
 
4320
void (*signal ()) ();
 
4321
#endif
 
4322
 
 
4323
int
 
4324
main ()
 
4325
{
 
4326
int i;
 
4327
  ;
 
4328
  return 0;
 
4329
}
 
4330
_ACEOF
 
4331
rm -f conftest.$ac_objext
 
4332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4333
  (eval $ac_compile) 2>&5
 
4334
  ac_status=$?
 
4335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4336
  (exit $ac_status); } &&
 
4337
         { ac_try='test -s conftest.$ac_objext'
 
4338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4339
  (eval $ac_try) 2>&5
 
4340
  ac_status=$?
 
4341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4342
  (exit $ac_status); }; }; then
 
4343
  ac_cv_type_signal=void
 
4344
else
 
4345
  echo "$as_me: failed program was:" >&5
 
4346
sed 's/^/| /' conftest.$ac_ext >&5
 
4347
 
 
4348
ac_cv_type_signal=int
 
4349
fi
 
4350
rm -f conftest.$ac_objext conftest.$ac_ext
 
4351
fi
 
4352
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
4353
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
4354
 
 
4355
cat >>confdefs.h <<_ACEOF
 
4356
#define RETSIGTYPE $ac_cv_type_signal
 
4357
_ACEOF
 
4358
 
 
4359
 
 
4360
 
 
4361
case "$host" in
 
4362
  *-sunos5.6* | *-solaris2.6*)
 
4363
      opsys=sol2-6
 
4364
 
 
4365
cat >>confdefs.h <<\_ACEOF
 
4366
#define SUNOS_5
 
4367
_ACEOF
 
4368
 
 
4369
 
 
4370
echo "$as_me:$LINENO: checking for main in -lxnet" >&5
 
4371
echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
 
4372
if test "${ac_cv_lib_xnet_main+set}" = set; then
 
4373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4374
else
 
4375
  ac_check_lib_save_LIBS=$LIBS
 
4376
LIBS="-lxnet  $LIBS"
 
4377
cat >conftest.$ac_ext <<_ACEOF
 
4378
#line $LINENO "configure"
 
4379
/* confdefs.h.  */
 
4380
_ACEOF
 
4381
cat confdefs.h >>conftest.$ac_ext
 
4382
cat >>conftest.$ac_ext <<_ACEOF
 
4383
/* end confdefs.h.  */
 
4384
 
 
4385
 
 
4386
int
 
4387
main ()
 
4388
{
 
4389
main ();
 
4390
  ;
 
4391
  return 0;
 
4392
}
 
4393
_ACEOF
 
4394
rm -f conftest.$ac_objext conftest$ac_exeext
 
4395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4396
  (eval $ac_link) 2>&5
 
4397
  ac_status=$?
 
4398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4399
  (exit $ac_status); } &&
 
4400
         { ac_try='test -s conftest$ac_exeext'
 
4401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4402
  (eval $ac_try) 2>&5
 
4403
  ac_status=$?
 
4404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4405
  (exit $ac_status); }; }; then
 
4406
  ac_cv_lib_xnet_main=yes
 
4407
else
 
4408
  echo "$as_me: failed program was:" >&5
 
4409
sed 's/^/| /' conftest.$ac_ext >&5
 
4410
 
 
4411
ac_cv_lib_xnet_main=no
 
4412
fi
 
4413
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4414
LIBS=$ac_check_lib_save_LIBS
 
4415
fi
 
4416
echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
 
4417
echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
 
4418
if test $ac_cv_lib_xnet_main = yes; then
 
4419
  cat >>confdefs.h <<_ACEOF
 
4420
#define HAVE_LIBXNET 1
 
4421
_ACEOF
 
4422
 
 
4423
  LIBS="-lxnet $LIBS"
 
4424
 
 
4425
fi
 
4426
 
 
4427
      CURSES=-lcurses
 
4428
  ;;
 
4429
  *-sunos5* | *-solaris2*)
 
4430
 
 
4431
cat >>confdefs.h <<\_ACEOF
 
4432
#define SUNOS_5
 
4433
_ACEOF
 
4434
 
 
4435
 
 
4436
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
 
4437
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
 
4438
if test "${ac_cv_lib_socket_main+set}" = set; then
 
4439
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4440
else
 
4441
  ac_check_lib_save_LIBS=$LIBS
 
4442
LIBS="-lsocket  $LIBS"
 
4443
cat >conftest.$ac_ext <<_ACEOF
 
4444
#line $LINENO "configure"
 
4445
/* confdefs.h.  */
 
4446
_ACEOF
 
4447
cat confdefs.h >>conftest.$ac_ext
 
4448
cat >>conftest.$ac_ext <<_ACEOF
 
4449
/* end confdefs.h.  */
 
4450
 
 
4451
 
 
4452
int
 
4453
main ()
 
4454
{
 
4455
main ();
 
4456
  ;
 
4457
  return 0;
 
4458
}
 
4459
_ACEOF
 
4460
rm -f conftest.$ac_objext conftest$ac_exeext
 
4461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4462
  (eval $ac_link) 2>&5
 
4463
  ac_status=$?
 
4464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4465
  (exit $ac_status); } &&
 
4466
         { ac_try='test -s conftest$ac_exeext'
 
4467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4468
  (eval $ac_try) 2>&5
 
4469
  ac_status=$?
 
4470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4471
  (exit $ac_status); }; }; then
 
4472
  ac_cv_lib_socket_main=yes
 
4473
else
 
4474
  echo "$as_me: failed program was:" >&5
 
4475
sed 's/^/| /' conftest.$ac_ext >&5
 
4476
 
 
4477
ac_cv_lib_socket_main=no
 
4478
fi
 
4479
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4480
LIBS=$ac_check_lib_save_LIBS
 
4481
fi
 
4482
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
 
4483
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
 
4484
if test $ac_cv_lib_socket_main = yes; then
 
4485
  cat >>confdefs.h <<_ACEOF
 
4486
#define HAVE_LIBSOCKET 1
 
4487
_ACEOF
 
4488
 
 
4489
  LIBS="-lsocket $LIBS"
 
4490
 
 
4491
fi
 
4492
 
 
4493
 
 
4494
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
 
4495
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
 
4496
if test "${ac_cv_lib_nsl_main+set}" = set; then
 
4497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4498
else
 
4499
  ac_check_lib_save_LIBS=$LIBS
 
4500
LIBS="-lnsl  $LIBS"
 
4501
cat >conftest.$ac_ext <<_ACEOF
 
4502
#line $LINENO "configure"
 
4503
/* confdefs.h.  */
 
4504
_ACEOF
 
4505
cat confdefs.h >>conftest.$ac_ext
 
4506
cat >>conftest.$ac_ext <<_ACEOF
 
4507
/* end confdefs.h.  */
 
4508
 
 
4509
 
 
4510
int
 
4511
main ()
 
4512
{
 
4513
main ();
 
4514
  ;
 
4515
  return 0;
 
4516
}
 
4517
_ACEOF
 
4518
rm -f conftest.$ac_objext conftest$ac_exeext
 
4519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4520
  (eval $ac_link) 2>&5
 
4521
  ac_status=$?
 
4522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4523
  (exit $ac_status); } &&
 
4524
         { ac_try='test -s conftest$ac_exeext'
 
4525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4526
  (eval $ac_try) 2>&5
 
4527
  ac_status=$?
 
4528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4529
  (exit $ac_status); }; }; then
 
4530
  ac_cv_lib_nsl_main=yes
 
4531
else
 
4532
  echo "$as_me: failed program was:" >&5
 
4533
sed 's/^/| /' conftest.$ac_ext >&5
 
4534
 
 
4535
ac_cv_lib_nsl_main=no
 
4536
fi
 
4537
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4538
LIBS=$ac_check_lib_save_LIBS
 
4539
fi
 
4540
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
 
4541
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
 
4542
if test $ac_cv_lib_nsl_main = yes; then
 
4543
  cat >>confdefs.h <<_ACEOF
 
4544
#define HAVE_LIBNSL 1
 
4545
_ACEOF
 
4546
 
 
4547
  LIBS="-lnsl $LIBS"
 
4548
 
 
4549
fi
 
4550
 
 
4551
      CURSES=-lcurses
 
4552
  ;;
 
4553
  *-linux-*)
 
4554
      opsys=gnu-linux
 
4555
 
 
4556
cat >>confdefs.h <<\_ACEOF
 
4557
#define GNU_LINUX
 
4558
_ACEOF
 
4559
 
 
4560
  ;;
 
4561
  *-nec-sysv4*)
 
4562
 
 
4563
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
4564
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
4565
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
4566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4567
else
 
4568
  ac_check_lib_save_LIBS=$LIBS
 
4569
LIBS="-lnsl  $LIBS"
 
4570
cat >conftest.$ac_ext <<_ACEOF
 
4571
#line $LINENO "configure"
 
4572
/* confdefs.h.  */
 
4573
_ACEOF
 
4574
cat confdefs.h >>conftest.$ac_ext
 
4575
cat >>conftest.$ac_ext <<_ACEOF
 
4576
/* end confdefs.h.  */
 
4577
 
 
4578
/* Override any gcc2 internal prototype to avoid an error.  */
 
4579
#ifdef __cplusplus
 
4580
extern "C"
 
4581
#endif
 
4582
/* We use char because int might match the return type of a gcc2
 
4583
   builtin and then its argument prototype would still apply.  */
 
4584
char gethostbyname ();
 
4585
int
 
4586
main ()
 
4587
{
 
4588
gethostbyname ();
 
4589
  ;
 
4590
  return 0;
 
4591
}
 
4592
_ACEOF
 
4593
rm -f conftest.$ac_objext conftest$ac_exeext
 
4594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4595
  (eval $ac_link) 2>&5
 
4596
  ac_status=$?
 
4597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4598
  (exit $ac_status); } &&
 
4599
         { ac_try='test -s conftest$ac_exeext'
 
4600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4601
  (eval $ac_try) 2>&5
 
4602
  ac_status=$?
 
4603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4604
  (exit $ac_status); }; }; then
 
4605
  ac_cv_lib_nsl_gethostbyname=yes
 
4606
else
 
4607
  echo "$as_me: failed program was:" >&5
 
4608
sed 's/^/| /' conftest.$ac_ext >&5
 
4609
 
 
4610
ac_cv_lib_nsl_gethostbyname=no
 
4611
fi
 
4612
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4613
LIBS=$ac_check_lib_save_LIBS
 
4614
fi
 
4615
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
4616
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
4617
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
4618
  cat >>confdefs.h <<_ACEOF
 
4619
#define HAVE_LIBNSL 1
 
4620
_ACEOF
 
4621
 
 
4622
  LIBS="-lnsl $LIBS"
 
4623
 
 
4624
fi
 
4625
 
 
4626
 
 
4627
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
 
4628
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
 
4629
if test "${ac_cv_lib_socket_socket+set}" = set; then
 
4630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4631
else
 
4632
  ac_check_lib_save_LIBS=$LIBS
 
4633
LIBS="-lsocket  $LIBS"
 
4634
cat >conftest.$ac_ext <<_ACEOF
 
4635
#line $LINENO "configure"
 
4636
/* confdefs.h.  */
 
4637
_ACEOF
 
4638
cat confdefs.h >>conftest.$ac_ext
 
4639
cat >>conftest.$ac_ext <<_ACEOF
 
4640
/* end confdefs.h.  */
 
4641
 
 
4642
/* Override any gcc2 internal prototype to avoid an error.  */
 
4643
#ifdef __cplusplus
 
4644
extern "C"
 
4645
#endif
 
4646
/* We use char because int might match the return type of a gcc2
 
4647
   builtin and then its argument prototype would still apply.  */
 
4648
char socket ();
 
4649
int
 
4650
main ()
 
4651
{
 
4652
socket ();
 
4653
  ;
 
4654
  return 0;
 
4655
}
 
4656
_ACEOF
 
4657
rm -f conftest.$ac_objext conftest$ac_exeext
 
4658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4659
  (eval $ac_link) 2>&5
 
4660
  ac_status=$?
 
4661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4662
  (exit $ac_status); } &&
 
4663
         { ac_try='test -s conftest$ac_exeext'
 
4664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4665
  (eval $ac_try) 2>&5
 
4666
  ac_status=$?
 
4667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4668
  (exit $ac_status); }; }; then
 
4669
  ac_cv_lib_socket_socket=yes
 
4670
else
 
4671
  echo "$as_me: failed program was:" >&5
 
4672
sed 's/^/| /' conftest.$ac_ext >&5
 
4673
 
 
4674
ac_cv_lib_socket_socket=no
 
4675
fi
 
4676
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4677
LIBS=$ac_check_lib_save_LIBS
 
4678
fi
 
4679
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
 
4680
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
 
4681
if test $ac_cv_lib_socket_socket = yes; then
 
4682
  cat >>confdefs.h <<_ACEOF
 
4683
#define HAVE_LIBSOCKET 1
 
4684
_ACEOF
 
4685
 
 
4686
  LIBS="-lsocket $LIBS"
 
4687
 
 
4688
fi
 
4689
 
 
4690
  ;;
 
4691
  *-freebsd3.2)
 
4692
 
 
4693
cat >>confdefs.h <<\_ACEOF
 
4694
#define FREEBSD_32
 
4695
_ACEOF
 
4696
 
 
4697
  ;;
 
4698
  *-openbsd*)
 
4699
      opsys=openbsd
 
4700
 
 
4701
cat >>confdefs.h <<\_ACEOF
 
4702
#define OPEN_BSD
 
4703
_ACEOF
 
4704
 
 
4705
  ;;
 
4706
  *-bsdi*)
 
4707
      opsys=bsdi
 
4708
      OTHER_METHOD="mtu_kvm.o"
 
4709
 
 
4710
echo "$as_me:$LINENO: checking for main in -lkvm" >&5
 
4711
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
 
4712
if test "${ac_cv_lib_kvm_main+set}" = set; then
 
4713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4714
else
 
4715
  ac_check_lib_save_LIBS=$LIBS
 
4716
LIBS="-lkvm  $LIBS"
 
4717
cat >conftest.$ac_ext <<_ACEOF
 
4718
#line $LINENO "configure"
 
4719
/* confdefs.h.  */
 
4720
_ACEOF
 
4721
cat confdefs.h >>conftest.$ac_ext
 
4722
cat >>conftest.$ac_ext <<_ACEOF
 
4723
/* end confdefs.h.  */
 
4724
 
 
4725
 
 
4726
int
 
4727
main ()
 
4728
{
 
4729
main ();
 
4730
  ;
 
4731
  return 0;
 
4732
}
 
4733
_ACEOF
 
4734
rm -f conftest.$ac_objext conftest$ac_exeext
 
4735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4736
  (eval $ac_link) 2>&5
 
4737
  ac_status=$?
 
4738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4739
  (exit $ac_status); } &&
 
4740
         { ac_try='test -s conftest$ac_exeext'
 
4741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4742
  (eval $ac_try) 2>&5
 
4743
  ac_status=$?
 
4744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4745
  (exit $ac_status); }; }; then
 
4746
  ac_cv_lib_kvm_main=yes
 
4747
else
 
4748
  echo "$as_me: failed program was:" >&5
 
4749
sed 's/^/| /' conftest.$ac_ext >&5
 
4750
 
 
4751
ac_cv_lib_kvm_main=no
 
4752
fi
 
4753
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4754
LIBS=$ac_check_lib_save_LIBS
 
4755
fi
 
4756
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
 
4757
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
 
4758
if test $ac_cv_lib_kvm_main = yes; then
 
4759
  cat >>confdefs.h <<_ACEOF
 
4760
#define HAVE_LIBKVM 1
 
4761
_ACEOF
 
4762
 
 
4763
  LIBS="-lkvm $LIBS"
 
4764
 
 
4765
fi
 
4766
 
 
4767
  ;;
 
4768
  *-irix6.5)
 
4769
      opsys=irix
 
4770
 
 
4771
cat >>confdefs.h <<\_ACEOF
 
4772
#define IRIX_65
 
4773
_ACEOF
 
4774
 
 
4775
  ;;
 
4776
esac
 
4777
 
 
4778
case "${enable_vtysh}" in
 
4779
  "yes") VTYSH="vtysh";
 
4780
 
 
4781
cat >>confdefs.h <<\_ACEOF
 
4782
#define VTYSH
 
4783
_ACEOF
 
4784
 
 
4785
 
 
4786
echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
 
4787
echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
 
4788
if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
 
4789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4790
else
 
4791
  ac_check_lib_save_LIBS=$LIBS
 
4792
LIBS="-ltinfo  $LIBS"
 
4793
cat >conftest.$ac_ext <<_ACEOF
 
4794
#line $LINENO "configure"
 
4795
/* confdefs.h.  */
 
4796
_ACEOF
 
4797
cat confdefs.h >>conftest.$ac_ext
 
4798
cat >>conftest.$ac_ext <<_ACEOF
 
4799
/* end confdefs.h.  */
 
4800
 
 
4801
/* Override any gcc2 internal prototype to avoid an error.  */
 
4802
#ifdef __cplusplus
 
4803
extern "C"
 
4804
#endif
 
4805
/* We use char because int might match the return type of a gcc2
 
4806
   builtin and then its argument prototype would still apply.  */
 
4807
char tputs ();
 
4808
int
 
4809
main ()
 
4810
{
 
4811
tputs ();
 
4812
  ;
 
4813
  return 0;
 
4814
}
 
4815
_ACEOF
 
4816
rm -f conftest.$ac_objext conftest$ac_exeext
 
4817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4818
  (eval $ac_link) 2>&5
 
4819
  ac_status=$?
 
4820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4821
  (exit $ac_status); } &&
 
4822
         { ac_try='test -s conftest$ac_exeext'
 
4823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4824
  (eval $ac_try) 2>&5
 
4825
  ac_status=$?
 
4826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4827
  (exit $ac_status); }; }; then
 
4828
  ac_cv_lib_tinfo_tputs=yes
 
4829
else
 
4830
  echo "$as_me: failed program was:" >&5
 
4831
sed 's/^/| /' conftest.$ac_ext >&5
 
4832
 
 
4833
ac_cv_lib_tinfo_tputs=no
 
4834
fi
 
4835
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4836
LIBS=$ac_check_lib_save_LIBS
 
4837
fi
 
4838
echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
 
4839
echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
 
4840
if test $ac_cv_lib_tinfo_tputs = yes; then
 
4841
  cat >>confdefs.h <<_ACEOF
 
4842
#define HAVE_LIBTINFO 1
 
4843
_ACEOF
 
4844
 
 
4845
  LIBS="-ltinfo $LIBS"
 
4846
 
 
4847
else
 
4848
 
 
4849
echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
 
4850
echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
 
4851
if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
 
4852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4853
else
 
4854
  ac_check_lib_save_LIBS=$LIBS
 
4855
LIBS="-lncurses  $LIBS"
 
4856
cat >conftest.$ac_ext <<_ACEOF
 
4857
#line $LINENO "configure"
 
4858
/* confdefs.h.  */
 
4859
_ACEOF
 
4860
cat confdefs.h >>conftest.$ac_ext
 
4861
cat >>conftest.$ac_ext <<_ACEOF
 
4862
/* end confdefs.h.  */
 
4863
 
 
4864
/* Override any gcc2 internal prototype to avoid an error.  */
 
4865
#ifdef __cplusplus
 
4866
extern "C"
 
4867
#endif
 
4868
/* We use char because int might match the return type of a gcc2
 
4869
   builtin and then its argument prototype would still apply.  */
 
4870
char tputs ();
 
4871
int
 
4872
main ()
 
4873
{
 
4874
tputs ();
 
4875
  ;
 
4876
  return 0;
 
4877
}
 
4878
_ACEOF
 
4879
rm -f conftest.$ac_objext conftest$ac_exeext
 
4880
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4881
  (eval $ac_link) 2>&5
 
4882
  ac_status=$?
 
4883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4884
  (exit $ac_status); } &&
 
4885
         { ac_try='test -s conftest$ac_exeext'
 
4886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4887
  (eval $ac_try) 2>&5
 
4888
  ac_status=$?
 
4889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4890
  (exit $ac_status); }; }; then
 
4891
  ac_cv_lib_ncurses_tputs=yes
 
4892
else
 
4893
  echo "$as_me: failed program was:" >&5
 
4894
sed 's/^/| /' conftest.$ac_ext >&5
 
4895
 
 
4896
ac_cv_lib_ncurses_tputs=no
 
4897
fi
 
4898
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4899
LIBS=$ac_check_lib_save_LIBS
 
4900
fi
 
4901
echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
 
4902
echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
 
4903
if test $ac_cv_lib_ncurses_tputs = yes; then
 
4904
  cat >>confdefs.h <<_ACEOF
 
4905
#define HAVE_LIBNCURSES 1
 
4906
_ACEOF
 
4907
 
 
4908
  LIBS="-lncurses $LIBS"
 
4909
 
 
4910
fi
 
4911
 
 
4912
fi
 
4913
 
 
4914
 
 
4915
echo "$as_me:$LINENO: checking for main in -lreadline" >&5
 
4916
echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
 
4917
if test "${ac_cv_lib_readline_main+set}" = set; then
 
4918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4919
else
 
4920
  ac_check_lib_save_LIBS=$LIBS
 
4921
LIBS="-lreadline  $LIBS"
 
4922
cat >conftest.$ac_ext <<_ACEOF
 
4923
#line $LINENO "configure"
 
4924
/* confdefs.h.  */
 
4925
_ACEOF
 
4926
cat confdefs.h >>conftest.$ac_ext
 
4927
cat >>conftest.$ac_ext <<_ACEOF
 
4928
/* end confdefs.h.  */
 
4929
 
 
4930
 
 
4931
int
 
4932
main ()
 
4933
{
 
4934
main ();
 
4935
  ;
 
4936
  return 0;
 
4937
}
 
4938
_ACEOF
 
4939
rm -f conftest.$ac_objext conftest$ac_exeext
 
4940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4941
  (eval $ac_link) 2>&5
 
4942
  ac_status=$?
 
4943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4944
  (exit $ac_status); } &&
 
4945
         { ac_try='test -s conftest$ac_exeext'
 
4946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4947
  (eval $ac_try) 2>&5
 
4948
  ac_status=$?
 
4949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4950
  (exit $ac_status); }; }; then
 
4951
  ac_cv_lib_readline_main=yes
 
4952
else
 
4953
  echo "$as_me: failed program was:" >&5
 
4954
sed 's/^/| /' conftest.$ac_ext >&5
 
4955
 
 
4956
ac_cv_lib_readline_main=no
 
4957
fi
 
4958
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4959
LIBS=$ac_check_lib_save_LIBS
 
4960
fi
 
4961
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
 
4962
echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
 
4963
if test $ac_cv_lib_readline_main = yes; then
 
4964
  cat >>confdefs.h <<_ACEOF
 
4965
#define HAVE_LIBREADLINE 1
 
4966
_ACEOF
 
4967
 
 
4968
  LIBS="-lreadline $LIBS"
 
4969
 
 
4970
fi
 
4971
 
 
4972
         if test $ac_cv_lib_readline_main = no; then
 
4973
           { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5
 
4974
echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;}
 
4975
   { (exit 1); exit 1; }; }
 
4976
         fi
 
4977
         if test "${ac_cv_header_readline_history_h+set}" = set; then
 
4978
  echo "$as_me:$LINENO: checking for readline/history.h" >&5
 
4979
echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
 
4980
if test "${ac_cv_header_readline_history_h+set}" = set; then
 
4981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4982
fi
 
4983
echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
 
4984
echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
 
4985
else
 
4986
  # Is the header compilable?
 
4987
echo "$as_me:$LINENO: checking readline/history.h usability" >&5
 
4988
echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
 
4989
cat >conftest.$ac_ext <<_ACEOF
 
4990
#line $LINENO "configure"
 
4991
/* confdefs.h.  */
 
4992
_ACEOF
 
4993
cat confdefs.h >>conftest.$ac_ext
 
4994
cat >>conftest.$ac_ext <<_ACEOF
 
4995
/* end confdefs.h.  */
 
4996
$ac_includes_default
 
4997
#include <readline/history.h>
 
4998
_ACEOF
 
4999
rm -f conftest.$ac_objext
 
5000
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5001
  (eval $ac_compile) 2>&5
 
5002
  ac_status=$?
 
5003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5004
  (exit $ac_status); } &&
 
5005
         { ac_try='test -s conftest.$ac_objext'
 
5006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5007
  (eval $ac_try) 2>&5
 
5008
  ac_status=$?
 
5009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5010
  (exit $ac_status); }; }; then
 
5011
  ac_header_compiler=yes
 
5012
else
 
5013
  echo "$as_me: failed program was:" >&5
 
5014
sed 's/^/| /' conftest.$ac_ext >&5
 
5015
 
 
5016
ac_header_compiler=no
 
5017
fi
 
5018
rm -f conftest.$ac_objext conftest.$ac_ext
 
5019
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5020
echo "${ECHO_T}$ac_header_compiler" >&6
 
5021
 
 
5022
# Is the header present?
 
5023
echo "$as_me:$LINENO: checking readline/history.h presence" >&5
 
5024
echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
 
5025
cat >conftest.$ac_ext <<_ACEOF
 
5026
#line $LINENO "configure"
 
5027
/* confdefs.h.  */
 
5028
_ACEOF
 
5029
cat confdefs.h >>conftest.$ac_ext
 
5030
cat >>conftest.$ac_ext <<_ACEOF
 
5031
/* end confdefs.h.  */
 
5032
#include <readline/history.h>
 
5033
_ACEOF
 
5034
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5035
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5036
  ac_status=$?
 
5037
  grep -v '^ *+' conftest.er1 >conftest.err
 
5038
  rm -f conftest.er1
 
5039
  cat conftest.err >&5
 
5040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5041
  (exit $ac_status); } >/dev/null; then
 
5042
  if test -s conftest.err; then
 
5043
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5044
  else
 
5045
    ac_cpp_err=
 
5046
  fi
 
5047
else
 
5048
  ac_cpp_err=yes
 
5049
fi
 
5050
if test -z "$ac_cpp_err"; then
 
5051
  ac_header_preproc=yes
 
5052
else
 
5053
  echo "$as_me: failed program was:" >&5
 
5054
sed 's/^/| /' conftest.$ac_ext >&5
 
5055
 
 
5056
  ac_header_preproc=no
 
5057
fi
 
5058
rm -f conftest.err conftest.$ac_ext
 
5059
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5060
echo "${ECHO_T}$ac_header_preproc" >&6
 
5061
 
 
5062
# So?  What about this header?
 
5063
case $ac_header_compiler:$ac_header_preproc in
 
5064
  yes:no )
 
5065
    { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
5066
echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5067
    { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
 
5068
echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
 
5069
    (
 
5070
      cat <<\_ASBOX
 
5071
## ------------------------------------ ##
 
5072
## Report this to bug-autoconf@gnu.org. ##
 
5073
## ------------------------------------ ##
 
5074
_ASBOX
 
5075
    ) |
 
5076
      sed "s/^/$as_me: WARNING:     /" >&2
 
5077
    ;;
 
5078
  no:yes )
 
5079
    { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
 
5080
echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
 
5081
    { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
 
5082
echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
 
5083
    { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
 
5084
echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
 
5085
    (
 
5086
      cat <<\_ASBOX
 
5087
## ------------------------------------ ##
 
5088
## Report this to bug-autoconf@gnu.org. ##
 
5089
## ------------------------------------ ##
 
5090
_ASBOX
 
5091
    ) |
 
5092
      sed "s/^/$as_me: WARNING:     /" >&2
 
5093
    ;;
 
5094
esac
 
5095
echo "$as_me:$LINENO: checking for readline/history.h" >&5
 
5096
echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
 
5097
if test "${ac_cv_header_readline_history_h+set}" = set; then
 
5098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5099
else
 
5100
  ac_cv_header_readline_history_h=$ac_header_preproc
 
5101
fi
 
5102
echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
 
5103
echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
 
5104
 
 
5105
fi
 
5106
 
 
5107
 
 
5108
         if test $ac_cv_header_readline_history_h = no;then
 
5109
           { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
 
5110
echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
 
5111
   { (exit 1); exit 1; }; }
 
5112
         fi
 
5113
 
 
5114
echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
 
5115
echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
 
5116
if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
 
5117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5118
else
 
5119
  ac_check_lib_save_LIBS=$LIBS
 
5120
LIBS="-lreadline  $LIBS"
 
5121
cat >conftest.$ac_ext <<_ACEOF
 
5122
#line $LINENO "configure"
 
5123
/* confdefs.h.  */
 
5124
_ACEOF
 
5125
cat confdefs.h >>conftest.$ac_ext
 
5126
cat >>conftest.$ac_ext <<_ACEOF
 
5127
/* end confdefs.h.  */
 
5128
 
 
5129
/* Override any gcc2 internal prototype to avoid an error.  */
 
5130
#ifdef __cplusplus
 
5131
extern "C"
 
5132
#endif
 
5133
/* We use char because int might match the return type of a gcc2
 
5134
   builtin and then its argument prototype would still apply.  */
 
5135
char rl_completion_matches ();
 
5136
int
 
5137
main ()
 
5138
{
 
5139
rl_completion_matches ();
 
5140
  ;
 
5141
  return 0;
 
5142
}
 
5143
_ACEOF
 
5144
rm -f conftest.$ac_objext conftest$ac_exeext
 
5145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5146
  (eval $ac_link) 2>&5
 
5147
  ac_status=$?
 
5148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5149
  (exit $ac_status); } &&
 
5150
         { ac_try='test -s conftest$ac_exeext'
 
5151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5152
  (eval $ac_try) 2>&5
 
5153
  ac_status=$?
 
5154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5155
  (exit $ac_status); }; }; then
 
5156
  ac_cv_lib_readline_rl_completion_matches=yes
 
5157
else
 
5158
  echo "$as_me: failed program was:" >&5
 
5159
sed 's/^/| /' conftest.$ac_ext >&5
 
5160
 
 
5161
ac_cv_lib_readline_rl_completion_matches=no
 
5162
fi
 
5163
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5164
LIBS=$ac_check_lib_save_LIBS
 
5165
fi
 
5166
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
 
5167
echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
 
5168
if test $ac_cv_lib_readline_rl_completion_matches = yes; then
 
5169
  cat >>confdefs.h <<_ACEOF
 
5170
#define HAVE_LIBREADLINE 1
 
5171
_ACEOF
 
5172
 
 
5173
  LIBS="-lreadline $LIBS"
 
5174
 
 
5175
fi
 
5176
 
 
5177
         if test $ac_cv_lib_readline_rl_completion_matches = no; then
 
5178
 
 
5179
cat >>confdefs.h <<\_ACEOF
 
5180
#define rl_completion_matches completion_matches
 
5181
_ACEOF
 
5182
 
 
5183
         fi
 
5184
         ;;
 
5185
  "no" ) VTYSH="";;
 
5186
  *    ) ;;
 
5187
esac
 
5188
 
 
5189
if test "$with_libpam" = "yes"; then
 
5190
  if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
 
5191
  echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
 
5192
echo $ECHO_N "checking for security/pam_misc.h... $ECHO_C" >&6
 
5193
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
 
5194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5195
fi
 
5196
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
 
5197
echo "${ECHO_T}$ac_cv_header_security_pam_misc_h" >&6
 
5198
else
 
5199
  # Is the header compilable?
 
5200
echo "$as_me:$LINENO: checking security/pam_misc.h usability" >&5
 
5201
echo $ECHO_N "checking security/pam_misc.h usability... $ECHO_C" >&6
 
5202
cat >conftest.$ac_ext <<_ACEOF
 
5203
#line $LINENO "configure"
 
5204
/* confdefs.h.  */
 
5205
_ACEOF
 
5206
cat confdefs.h >>conftest.$ac_ext
 
5207
cat >>conftest.$ac_ext <<_ACEOF
 
5208
/* end confdefs.h.  */
 
5209
$ac_includes_default
 
5210
#include <security/pam_misc.h>
 
5211
_ACEOF
 
5212
rm -f conftest.$ac_objext
 
5213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5214
  (eval $ac_compile) 2>&5
 
5215
  ac_status=$?
 
5216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5217
  (exit $ac_status); } &&
 
5218
         { ac_try='test -s conftest.$ac_objext'
 
5219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5220
  (eval $ac_try) 2>&5
 
5221
  ac_status=$?
 
5222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5223
  (exit $ac_status); }; }; then
 
5224
  ac_header_compiler=yes
 
5225
else
 
5226
  echo "$as_me: failed program was:" >&5
 
5227
sed 's/^/| /' conftest.$ac_ext >&5
 
5228
 
 
5229
ac_header_compiler=no
 
5230
fi
 
5231
rm -f conftest.$ac_objext conftest.$ac_ext
 
5232
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5233
echo "${ECHO_T}$ac_header_compiler" >&6
 
5234
 
 
5235
# Is the header present?
 
5236
echo "$as_me:$LINENO: checking security/pam_misc.h presence" >&5
 
5237
echo $ECHO_N "checking security/pam_misc.h presence... $ECHO_C" >&6
 
5238
cat >conftest.$ac_ext <<_ACEOF
 
5239
#line $LINENO "configure"
 
5240
/* confdefs.h.  */
 
5241
_ACEOF
 
5242
cat confdefs.h >>conftest.$ac_ext
 
5243
cat >>conftest.$ac_ext <<_ACEOF
 
5244
/* end confdefs.h.  */
 
5245
#include <security/pam_misc.h>
 
5246
_ACEOF
 
5247
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5248
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5249
  ac_status=$?
 
5250
  grep -v '^ *+' conftest.er1 >conftest.err
 
5251
  rm -f conftest.er1
 
5252
  cat conftest.err >&5
 
5253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5254
  (exit $ac_status); } >/dev/null; then
 
5255
  if test -s conftest.err; then
 
5256
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5257
  else
 
5258
    ac_cpp_err=
 
5259
  fi
 
5260
else
 
5261
  ac_cpp_err=yes
 
5262
fi
 
5263
if test -z "$ac_cpp_err"; then
 
5264
  ac_header_preproc=yes
 
5265
else
 
5266
  echo "$as_me: failed program was:" >&5
 
5267
sed 's/^/| /' conftest.$ac_ext >&5
 
5268
 
 
5269
  ac_header_preproc=no
 
5270
fi
 
5271
rm -f conftest.err conftest.$ac_ext
 
5272
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5273
echo "${ECHO_T}$ac_header_preproc" >&6
 
5274
 
 
5275
# So?  What about this header?
 
5276
case $ac_header_compiler:$ac_header_preproc in
 
5277
  yes:no )
 
5278
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
5279
echo "$as_me: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5280
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
 
5281
echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
 
5282
    (
 
5283
      cat <<\_ASBOX
 
5284
## ------------------------------------ ##
 
5285
## Report this to bug-autoconf@gnu.org. ##
 
5286
## ------------------------------------ ##
 
5287
_ASBOX
 
5288
    ) |
 
5289
      sed "s/^/$as_me: WARNING:     /" >&2
 
5290
    ;;
 
5291
  no:yes )
 
5292
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: present but cannot be compiled" >&5
 
5293
echo "$as_me: WARNING: security/pam_misc.h: present but cannot be compiled" >&2;}
 
5294
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: check for missing prerequisite headers?" >&5
 
5295
echo "$as_me: WARNING: security/pam_misc.h: check for missing prerequisite headers?" >&2;}
 
5296
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
 
5297
echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
 
5298
    (
 
5299
      cat <<\_ASBOX
 
5300
## ------------------------------------ ##
 
5301
## Report this to bug-autoconf@gnu.org. ##
 
5302
## ------------------------------------ ##
 
5303
_ASBOX
 
5304
    ) |
 
5305
      sed "s/^/$as_me: WARNING:     /" >&2
 
5306
    ;;
 
5307
esac
 
5308
echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
 
5309
echo $ECHO_N "checking for security/pam_misc.h... $ECHO_C" >&6
 
5310
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
 
5311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5312
else
 
5313
  ac_cv_header_security_pam_misc_h=$ac_header_preproc
 
5314
fi
 
5315
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
 
5316
echo "${ECHO_T}$ac_cv_header_security_pam_misc_h" >&6
 
5317
 
 
5318
fi
 
5319
 
 
5320
 
 
5321
  if test "$ac_cv_header_security_pam_misc_h" = yes; then
 
5322
 
 
5323
cat >>confdefs.h <<\_ACEOF
 
5324
#define HAVE_PAM_MISC_H
 
5325
_ACEOF
 
5326
 
 
5327
 
 
5328
cat >>confdefs.h <<\_ACEOF
 
5329
#define PAM_CONV_FUNC misc_conv
 
5330
_ACEOF
 
5331
 
 
5332
    pam_conv_func="misc_conv"
 
5333
  fi
 
5334
  if test "${ac_cv_header_security_openpam_h+set}" = set; then
 
5335
  echo "$as_me:$LINENO: checking for security/openpam.h" >&5
 
5336
echo $ECHO_N "checking for security/openpam.h... $ECHO_C" >&6
 
5337
if test "${ac_cv_header_security_openpam_h+set}" = set; then
 
5338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5339
fi
 
5340
echo "$as_me:$LINENO: result: $ac_cv_header_security_openpam_h" >&5
 
5341
echo "${ECHO_T}$ac_cv_header_security_openpam_h" >&6
 
5342
else
 
5343
  # Is the header compilable?
 
5344
echo "$as_me:$LINENO: checking security/openpam.h usability" >&5
 
5345
echo $ECHO_N "checking security/openpam.h usability... $ECHO_C" >&6
 
5346
cat >conftest.$ac_ext <<_ACEOF
 
5347
#line $LINENO "configure"
 
5348
/* confdefs.h.  */
 
5349
_ACEOF
 
5350
cat confdefs.h >>conftest.$ac_ext
 
5351
cat >>conftest.$ac_ext <<_ACEOF
 
5352
/* end confdefs.h.  */
 
5353
$ac_includes_default
 
5354
#include <security/openpam.h>
 
5355
_ACEOF
 
5356
rm -f conftest.$ac_objext
 
5357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5358
  (eval $ac_compile) 2>&5
 
5359
  ac_status=$?
 
5360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5361
  (exit $ac_status); } &&
 
5362
         { ac_try='test -s conftest.$ac_objext'
 
5363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5364
  (eval $ac_try) 2>&5
 
5365
  ac_status=$?
 
5366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5367
  (exit $ac_status); }; }; then
 
5368
  ac_header_compiler=yes
 
5369
else
 
5370
  echo "$as_me: failed program was:" >&5
 
5371
sed 's/^/| /' conftest.$ac_ext >&5
 
5372
 
 
5373
ac_header_compiler=no
 
5374
fi
 
5375
rm -f conftest.$ac_objext conftest.$ac_ext
 
5376
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5377
echo "${ECHO_T}$ac_header_compiler" >&6
 
5378
 
 
5379
# Is the header present?
 
5380
echo "$as_me:$LINENO: checking security/openpam.h presence" >&5
 
5381
echo $ECHO_N "checking security/openpam.h presence... $ECHO_C" >&6
 
5382
cat >conftest.$ac_ext <<_ACEOF
 
5383
#line $LINENO "configure"
 
5384
/* confdefs.h.  */
 
5385
_ACEOF
 
5386
cat confdefs.h >>conftest.$ac_ext
 
5387
cat >>conftest.$ac_ext <<_ACEOF
 
5388
/* end confdefs.h.  */
 
5389
#include <security/openpam.h>
 
5390
_ACEOF
 
5391
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5392
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5393
  ac_status=$?
 
5394
  grep -v '^ *+' conftest.er1 >conftest.err
 
5395
  rm -f conftest.er1
 
5396
  cat conftest.err >&5
 
5397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5398
  (exit $ac_status); } >/dev/null; then
 
5399
  if test -s conftest.err; then
 
5400
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5401
  else
 
5402
    ac_cpp_err=
 
5403
  fi
 
5404
else
 
5405
  ac_cpp_err=yes
 
5406
fi
 
5407
if test -z "$ac_cpp_err"; then
 
5408
  ac_header_preproc=yes
 
5409
else
 
5410
  echo "$as_me: failed program was:" >&5
 
5411
sed 's/^/| /' conftest.$ac_ext >&5
 
5412
 
 
5413
  ac_header_preproc=no
 
5414
fi
 
5415
rm -f conftest.err conftest.$ac_ext
 
5416
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5417
echo "${ECHO_T}$ac_header_preproc" >&6
 
5418
 
 
5419
# So?  What about this header?
 
5420
case $ac_header_compiler:$ac_header_preproc in
 
5421
  yes:no )
 
5422
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
5423
echo "$as_me: WARNING: security/openpam.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5424
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&5
 
5425
echo "$as_me: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&2;}
 
5426
    (
 
5427
      cat <<\_ASBOX
 
5428
## ------------------------------------ ##
 
5429
## Report this to bug-autoconf@gnu.org. ##
 
5430
## ------------------------------------ ##
 
5431
_ASBOX
 
5432
    ) |
 
5433
      sed "s/^/$as_me: WARNING:     /" >&2
 
5434
    ;;
 
5435
  no:yes )
 
5436
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: present but cannot be compiled" >&5
 
5437
echo "$as_me: WARNING: security/openpam.h: present but cannot be compiled" >&2;}
 
5438
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: check for missing prerequisite headers?" >&5
 
5439
echo "$as_me: WARNING: security/openpam.h: check for missing prerequisite headers?" >&2;}
 
5440
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&5
 
5441
echo "$as_me: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&2;}
 
5442
    (
 
5443
      cat <<\_ASBOX
 
5444
## ------------------------------------ ##
 
5445
## Report this to bug-autoconf@gnu.org. ##
 
5446
## ------------------------------------ ##
 
5447
_ASBOX
 
5448
    ) |
 
5449
      sed "s/^/$as_me: WARNING:     /" >&2
 
5450
    ;;
 
5451
esac
 
5452
echo "$as_me:$LINENO: checking for security/openpam.h" >&5
 
5453
echo $ECHO_N "checking for security/openpam.h... $ECHO_C" >&6
 
5454
if test "${ac_cv_header_security_openpam_h+set}" = set; then
 
5455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5456
else
 
5457
  ac_cv_header_security_openpam_h=$ac_header_preproc
 
5458
fi
 
5459
echo "$as_me:$LINENO: result: $ac_cv_header_security_openpam_h" >&5
 
5460
echo "${ECHO_T}$ac_cv_header_security_openpam_h" >&6
 
5461
 
 
5462
fi
 
5463
 
 
5464
 
 
5465
  if test "$ac_cv_header_security_openpam_h" = yes; then
 
5466
 
 
5467
cat >>confdefs.h <<\_ACEOF
 
5468
#define HAVE_OPENPAM_H
 
5469
_ACEOF
 
5470
 
 
5471
 
 
5472
cat >>confdefs.h <<\_ACEOF
 
5473
#define PAM_CONV_FUNC openpam_ttyconv
 
5474
_ACEOF
 
5475
 
 
5476
    pam_conv_func="openpam_ttyconv"
 
5477
  fi
 
5478
  if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
 
5479
    { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
 
5480
echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
 
5481
    with_libpam="no"
 
5482
  fi
 
5483
fi
 
5484
 
 
5485
if test "$with_libpam" = "yes"; then
 
5486
echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
 
5487
echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
 
5488
if test "${ac_cv_lib_pam_pam_start+set}" = set; then
 
5489
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5490
else
 
5491
  ac_check_lib_save_LIBS=$LIBS
 
5492
LIBS="-lpam  $LIBS"
 
5493
cat >conftest.$ac_ext <<_ACEOF
 
5494
#line $LINENO "configure"
 
5495
/* confdefs.h.  */
 
5496
_ACEOF
 
5497
cat confdefs.h >>conftest.$ac_ext
 
5498
cat >>conftest.$ac_ext <<_ACEOF
 
5499
/* end confdefs.h.  */
 
5500
 
 
5501
/* Override any gcc2 internal prototype to avoid an error.  */
 
5502
#ifdef __cplusplus
 
5503
extern "C"
 
5504
#endif
 
5505
/* We use char because int might match the return type of a gcc2
 
5506
   builtin and then its argument prototype would still apply.  */
 
5507
char pam_start ();
 
5508
int
 
5509
main ()
 
5510
{
 
5511
pam_start ();
 
5512
  ;
 
5513
  return 0;
 
5514
}
 
5515
_ACEOF
 
5516
rm -f conftest.$ac_objext conftest$ac_exeext
 
5517
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5518
  (eval $ac_link) 2>&5
 
5519
  ac_status=$?
 
5520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5521
  (exit $ac_status); } &&
 
5522
         { ac_try='test -s conftest$ac_exeext'
 
5523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5524
  (eval $ac_try) 2>&5
 
5525
  ac_status=$?
 
5526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5527
  (exit $ac_status); }; }; then
 
5528
  ac_cv_lib_pam_pam_start=yes
 
5529
else
 
5530
  echo "$as_me: failed program was:" >&5
 
5531
sed 's/^/| /' conftest.$ac_ext >&5
 
5532
 
 
5533
ac_cv_lib_pam_pam_start=no
 
5534
fi
 
5535
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5536
LIBS=$ac_check_lib_save_LIBS
 
5537
fi
 
5538
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
 
5539
echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
 
5540
if test $ac_cv_lib_pam_pam_start = yes; then
 
5541
  as_ac_Lib=`echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
 
5542
echo "$as_me:$LINENO: checking for $pam_conv_func in -lpam" >&5
 
5543
echo $ECHO_N "checking for $pam_conv_func in -lpam... $ECHO_C" >&6
 
5544
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
5545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5546
else
 
5547
  ac_check_lib_save_LIBS=$LIBS
 
5548
LIBS="-lpam  $LIBS"
 
5549
cat >conftest.$ac_ext <<_ACEOF
 
5550
#line $LINENO "configure"
 
5551
/* confdefs.h.  */
 
5552
_ACEOF
 
5553
cat confdefs.h >>conftest.$ac_ext
 
5554
cat >>conftest.$ac_ext <<_ACEOF
 
5555
/* end confdefs.h.  */
 
5556
 
 
5557
/* Override any gcc2 internal prototype to avoid an error.  */
 
5558
#ifdef __cplusplus
 
5559
extern "C"
 
5560
#endif
 
5561
/* We use char because int might match the return type of a gcc2
 
5562
   builtin and then its argument prototype would still apply.  */
 
5563
char $pam_conv_func ();
 
5564
int
 
5565
main ()
 
5566
{
 
5567
$pam_conv_func ();
 
5568
  ;
 
5569
  return 0;
 
5570
}
 
5571
_ACEOF
 
5572
rm -f conftest.$ac_objext conftest$ac_exeext
 
5573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5574
  (eval $ac_link) 2>&5
 
5575
  ac_status=$?
 
5576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5577
  (exit $ac_status); } &&
 
5578
         { ac_try='test -s conftest$ac_exeext'
 
5579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5580
  (eval $ac_try) 2>&5
 
5581
  ac_status=$?
 
5582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5583
  (exit $ac_status); }; }; then
 
5584
  eval "$as_ac_Lib=yes"
 
5585
else
 
5586
  echo "$as_me: failed program was:" >&5
 
5587
sed 's/^/| /' conftest.$ac_ext >&5
 
5588
 
 
5589
eval "$as_ac_Lib=no"
 
5590
fi
 
5591
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5592
LIBS=$ac_check_lib_save_LIBS
 
5593
fi
 
5594
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
5595
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
5596
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
5597
 
 
5598
cat >>confdefs.h <<\_ACEOF
 
5599
#define USE_PAM
 
5600
_ACEOF
 
5601
 
 
5602
     LIBPAM="-lpam"
 
5603
else
 
5604
 
 
5605
cat >>confdefs.h <<\_ACEOF
 
5606
#define USE_PAM
 
5607
_ACEOF
 
5608
 
 
5609
     LIBPAM="-lpam -lpam_misc"
 
5610
 
 
5611
fi
 
5612
 
 
5613
 
 
5614
else
 
5615
  echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
 
5616
echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
 
5617
if test "${ac_cv_lib_pam_pam_end+set}" = set; then
 
5618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5619
else
 
5620
  ac_check_lib_save_LIBS=$LIBS
 
5621
LIBS="-lpam -ldl $LIBS"
 
5622
cat >conftest.$ac_ext <<_ACEOF
 
5623
#line $LINENO "configure"
 
5624
/* confdefs.h.  */
 
5625
_ACEOF
 
5626
cat confdefs.h >>conftest.$ac_ext
 
5627
cat >>conftest.$ac_ext <<_ACEOF
 
5628
/* end confdefs.h.  */
 
5629
 
 
5630
/* Override any gcc2 internal prototype to avoid an error.  */
 
5631
#ifdef __cplusplus
 
5632
extern "C"
 
5633
#endif
 
5634
/* We use char because int might match the return type of a gcc2
 
5635
   builtin and then its argument prototype would still apply.  */
 
5636
char pam_end ();
 
5637
int
 
5638
main ()
 
5639
{
 
5640
pam_end ();
 
5641
  ;
 
5642
  return 0;
 
5643
}
 
5644
_ACEOF
 
5645
rm -f conftest.$ac_objext conftest$ac_exeext
 
5646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5647
  (eval $ac_link) 2>&5
 
5648
  ac_status=$?
 
5649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5650
  (exit $ac_status); } &&
 
5651
         { ac_try='test -s conftest$ac_exeext'
 
5652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5653
  (eval $ac_try) 2>&5
 
5654
  ac_status=$?
 
5655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5656
  (exit $ac_status); }; }; then
 
5657
  ac_cv_lib_pam_pam_end=yes
 
5658
else
 
5659
  echo "$as_me: failed program was:" >&5
 
5660
sed 's/^/| /' conftest.$ac_ext >&5
 
5661
 
 
5662
ac_cv_lib_pam_pam_end=no
 
5663
fi
 
5664
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5665
LIBS=$ac_check_lib_save_LIBS
 
5666
fi
 
5667
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
 
5668
echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
 
5669
if test $ac_cv_lib_pam_pam_end = yes; then
 
5670
  as_ac_Lib=`echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
 
5671
echo "$as_me:$LINENO: checking for $pam_conv_func in -lpam" >&5
 
5672
echo $ECHO_N "checking for $pam_conv_func in -lpam... $ECHO_C" >&6
 
5673
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
5674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5675
else
 
5676
  ac_check_lib_save_LIBS=$LIBS
 
5677
LIBS="-lpam  $LIBS"
 
5678
cat >conftest.$ac_ext <<_ACEOF
 
5679
#line $LINENO "configure"
 
5680
/* confdefs.h.  */
 
5681
_ACEOF
 
5682
cat confdefs.h >>conftest.$ac_ext
 
5683
cat >>conftest.$ac_ext <<_ACEOF
 
5684
/* end confdefs.h.  */
 
5685
 
 
5686
/* Override any gcc2 internal prototype to avoid an error.  */
 
5687
#ifdef __cplusplus
 
5688
extern "C"
 
5689
#endif
 
5690
/* We use char because int might match the return type of a gcc2
 
5691
   builtin and then its argument prototype would still apply.  */
 
5692
char $pam_conv_func ();
 
5693
int
 
5694
main ()
 
5695
{
 
5696
$pam_conv_func ();
 
5697
  ;
 
5698
  return 0;
 
5699
}
 
5700
_ACEOF
 
5701
rm -f conftest.$ac_objext conftest$ac_exeext
 
5702
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5703
  (eval $ac_link) 2>&5
 
5704
  ac_status=$?
 
5705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5706
  (exit $ac_status); } &&
 
5707
         { ac_try='test -s conftest$ac_exeext'
 
5708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5709
  (eval $ac_try) 2>&5
 
5710
  ac_status=$?
 
5711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5712
  (exit $ac_status); }; }; then
 
5713
  eval "$as_ac_Lib=yes"
 
5714
else
 
5715
  echo "$as_me: failed program was:" >&5
 
5716
sed 's/^/| /' conftest.$ac_ext >&5
 
5717
 
 
5718
eval "$as_ac_Lib=no"
 
5719
fi
 
5720
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5721
LIBS=$ac_check_lib_save_LIBS
 
5722
fi
 
5723
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
5724
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
5725
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
5726
 
 
5727
cat >>confdefs.h <<\_ACEOF
 
5728
#define USE_PAM
 
5729
_ACEOF
 
5730
 
 
5731
       LIBPAM="-lpam -ldl"
 
5732
else
 
5733
 
 
5734
cat >>confdefs.h <<\_ACEOF
 
5735
#define USE_PAM
 
5736
_ACEOF
 
5737
 
 
5738
       LIBPAM="-lpam -ldl -lpam_misc"
 
5739
 
 
5740
fi
 
5741
 
 
5742
 
 
5743
else
 
5744
  { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
 
5745
echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
 
5746
fi
 
5747
 
 
5748
 
 
5749
 
 
5750
fi
 
5751
 
 
5752
fi
 
5753
 
 
5754
 
 
5755
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
5756
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
5757
if test "${ac_cv_c_bigendian+set}" = set; then
 
5758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5759
else
 
5760
  # See if sys/param.h defines the BYTE_ORDER macro.
 
5761
cat >conftest.$ac_ext <<_ACEOF
 
5762
#line $LINENO "configure"
 
5763
/* confdefs.h.  */
 
5764
_ACEOF
 
5765
cat confdefs.h >>conftest.$ac_ext
 
5766
cat >>conftest.$ac_ext <<_ACEOF
 
5767
/* end confdefs.h.  */
 
5768
#include <sys/types.h>
 
5769
#include <sys/param.h>
 
5770
 
 
5771
int
 
5772
main ()
 
5773
{
 
5774
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
5775
 bogus endian macros
 
5776
#endif
 
5777
 
 
5778
  ;
 
5779
  return 0;
 
5780
}
 
5781
_ACEOF
 
5782
rm -f conftest.$ac_objext
 
5783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5784
  (eval $ac_compile) 2>&5
 
5785
  ac_status=$?
 
5786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5787
  (exit $ac_status); } &&
 
5788
         { ac_try='test -s conftest.$ac_objext'
 
5789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5790
  (eval $ac_try) 2>&5
 
5791
  ac_status=$?
 
5792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5793
  (exit $ac_status); }; }; then
 
5794
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
5795
cat >conftest.$ac_ext <<_ACEOF
 
5796
#line $LINENO "configure"
 
5797
/* confdefs.h.  */
 
5798
_ACEOF
 
5799
cat confdefs.h >>conftest.$ac_ext
 
5800
cat >>conftest.$ac_ext <<_ACEOF
 
5801
/* end confdefs.h.  */
 
5802
#include <sys/types.h>
 
5803
#include <sys/param.h>
 
5804
 
 
5805
int
 
5806
main ()
 
5807
{
 
5808
#if BYTE_ORDER != BIG_ENDIAN
 
5809
 not big endian
 
5810
#endif
 
5811
 
 
5812
  ;
 
5813
  return 0;
 
5814
}
 
5815
_ACEOF
 
5816
rm -f conftest.$ac_objext
 
5817
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5818
  (eval $ac_compile) 2>&5
 
5819
  ac_status=$?
 
5820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5821
  (exit $ac_status); } &&
 
5822
         { ac_try='test -s conftest.$ac_objext'
 
5823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5824
  (eval $ac_try) 2>&5
 
5825
  ac_status=$?
 
5826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5827
  (exit $ac_status); }; }; then
 
5828
  ac_cv_c_bigendian=yes
 
5829
else
 
5830
  echo "$as_me: failed program was:" >&5
 
5831
sed 's/^/| /' conftest.$ac_ext >&5
 
5832
 
 
5833
ac_cv_c_bigendian=no
 
5834
fi
 
5835
rm -f conftest.$ac_objext conftest.$ac_ext
 
5836
else
 
5837
  echo "$as_me: failed program was:" >&5
 
5838
sed 's/^/| /' conftest.$ac_ext >&5
 
5839
 
 
5840
# It does not; compile a test program.
 
5841
if test "$cross_compiling" = yes; then
 
5842
  # try to guess the endianness by grepping values into an object file
 
5843
  ac_cv_c_bigendian=unknown
 
5844
  cat >conftest.$ac_ext <<_ACEOF
 
5845
#line $LINENO "configure"
 
5846
/* confdefs.h.  */
 
5847
_ACEOF
 
5848
cat confdefs.h >>conftest.$ac_ext
 
5849
cat >>conftest.$ac_ext <<_ACEOF
 
5850
/* end confdefs.h.  */
 
5851
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
5852
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
5853
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
5854
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
5855
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
5856
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
5857
int
 
5858
main ()
 
5859
{
 
5860
 _ascii (); _ebcdic ();
 
5861
  ;
 
5862
  return 0;
 
5863
}
 
5864
_ACEOF
 
5865
rm -f conftest.$ac_objext
 
5866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5867
  (eval $ac_compile) 2>&5
 
5868
  ac_status=$?
 
5869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5870
  (exit $ac_status); } &&
 
5871
         { ac_try='test -s conftest.$ac_objext'
 
5872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5873
  (eval $ac_try) 2>&5
 
5874
  ac_status=$?
 
5875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5876
  (exit $ac_status); }; }; then
 
5877
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
5878
  ac_cv_c_bigendian=yes
 
5879
fi
 
5880
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
5881
  if test "$ac_cv_c_bigendian" = unknown; then
 
5882
    ac_cv_c_bigendian=no
 
5883
  else
 
5884
    # finding both strings is unlikely to happen, but who knows?
 
5885
    ac_cv_c_bigendian=unknown
 
5886
  fi
 
5887
fi
 
5888
else
 
5889
  echo "$as_me: failed program was:" >&5
 
5890
sed 's/^/| /' conftest.$ac_ext >&5
 
5891
 
 
5892
fi
 
5893
rm -f conftest.$ac_objext conftest.$ac_ext
 
5894
else
 
5895
  cat >conftest.$ac_ext <<_ACEOF
 
5896
#line $LINENO "configure"
 
5897
/* confdefs.h.  */
 
5898
_ACEOF
 
5899
cat confdefs.h >>conftest.$ac_ext
 
5900
cat >>conftest.$ac_ext <<_ACEOF
 
5901
/* end confdefs.h.  */
 
5902
int
 
5903
main ()
 
5904
{
 
5905
  /* Are we little or big endian?  From Harbison&Steele.  */
 
5906
  union
 
5907
  {
 
5908
    long l;
 
5909
    char c[sizeof (long)];
 
5910
  } u;
 
5911
  u.l = 1;
 
5912
  exit (u.c[sizeof (long) - 1] == 1);
 
5913
}
 
5914
_ACEOF
 
5915
rm -f conftest$ac_exeext
 
5916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5917
  (eval $ac_link) 2>&5
 
5918
  ac_status=$?
 
5919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5920
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5922
  (eval $ac_try) 2>&5
 
5923
  ac_status=$?
 
5924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5925
  (exit $ac_status); }; }; then
 
5926
  ac_cv_c_bigendian=no
 
5927
else
 
5928
  echo "$as_me: program exited with status $ac_status" >&5
 
5929
echo "$as_me: failed program was:" >&5
 
5930
sed 's/^/| /' conftest.$ac_ext >&5
 
5931
 
 
5932
( exit $ac_status )
 
5933
ac_cv_c_bigendian=yes
 
5934
fi
 
5935
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5936
fi
 
5937
fi
 
5938
rm -f conftest.$ac_objext conftest.$ac_ext
 
5939
fi
 
5940
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
5941
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
5942
case $ac_cv_c_bigendian in
 
5943
  yes)
 
5944
 
 
5945
cat >>confdefs.h <<\_ACEOF
 
5946
#define WORDS_BIGENDIAN 1
 
5947
_ACEOF
 
5948
 ;;
 
5949
  no)
 
5950
     ;;
 
5951
  *)
 
5952
    { { echo "$as_me:$LINENO: error: unknown endianness
 
5953
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
5954
echo "$as_me: error: unknown endianness
 
5955
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
5956
   { (exit 1); exit 1; }; } ;;
 
5957
esac
 
5958
 
 
5959
 
 
5960
 
 
5961
 
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
 
 
5967
 
 
5968
 
 
5969
 
 
5970
 
 
5971
 
 
5972
 
 
5973
 
 
5974
for ac_func in memset memcpy strerror inet_aton daemon snprintf vsnprintf \
 
5975
               strlcat strlcpy if_nametoindex if_indextoname getifaddrs \
 
5976
               fcntl
 
5977
do
 
5978
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5979
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5980
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5981
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5983
else
 
5984
  cat >conftest.$ac_ext <<_ACEOF
 
5985
#line $LINENO "configure"
 
5986
/* confdefs.h.  */
 
5987
_ACEOF
 
5988
cat confdefs.h >>conftest.$ac_ext
 
5989
cat >>conftest.$ac_ext <<_ACEOF
 
5990
/* end confdefs.h.  */
 
5991
/* System header to define __stub macros and hopefully few prototypes,
 
5992
    which can conflict with char $ac_func (); below.
 
5993
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5994
    <limits.h> exists even on freestanding compilers.  */
 
5995
#ifdef __STDC__
 
5996
# include <limits.h>
 
5997
#else
 
5998
# include <assert.h>
 
5999
#endif
 
6000
/* Override any gcc2 internal prototype to avoid an error.  */
 
6001
#ifdef __cplusplus
 
6002
extern "C"
 
6003
{
 
6004
#endif
 
6005
/* We use char because int might match the return type of a gcc2
 
6006
   builtin and then its argument prototype would still apply.  */
 
6007
char $ac_func ();
 
6008
/* The GNU C library defines this for functions which it implements
 
6009
    to always fail with ENOSYS.  Some functions are actually named
 
6010
    something starting with __ and the normal name is an alias.  */
 
6011
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6012
choke me
 
6013
#else
 
6014
char (*f) () = $ac_func;
 
6015
#endif
 
6016
#ifdef __cplusplus
 
6017
}
 
6018
#endif
 
6019
 
 
6020
int
 
6021
main ()
 
6022
{
 
6023
return f != $ac_func;
 
6024
  ;
 
6025
  return 0;
 
6026
}
 
6027
_ACEOF
 
6028
rm -f conftest.$ac_objext conftest$ac_exeext
 
6029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6030
  (eval $ac_link) 2>&5
 
6031
  ac_status=$?
 
6032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6033
  (exit $ac_status); } &&
 
6034
         { ac_try='test -s conftest$ac_exeext'
 
6035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6036
  (eval $ac_try) 2>&5
 
6037
  ac_status=$?
 
6038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6039
  (exit $ac_status); }; }; then
 
6040
  eval "$as_ac_var=yes"
 
6041
else
 
6042
  echo "$as_me: failed program was:" >&5
 
6043
sed 's/^/| /' conftest.$ac_ext >&5
 
6044
 
 
6045
eval "$as_ac_var=no"
 
6046
fi
 
6047
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6048
fi
 
6049
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6050
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6051
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6052
  cat >>confdefs.h <<_ACEOF
 
6053
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6054
_ACEOF
 
6055
 
 
6056
fi
 
6057
done
 
6058
 
 
6059
 
 
6060
for ac_func in setproctitle
 
6061
do
 
6062
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6063
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6064
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6065
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6067
else
 
6068
  cat >conftest.$ac_ext <<_ACEOF
 
6069
#line $LINENO "configure"
 
6070
/* confdefs.h.  */
 
6071
_ACEOF
 
6072
cat confdefs.h >>conftest.$ac_ext
 
6073
cat >>conftest.$ac_ext <<_ACEOF
 
6074
/* end confdefs.h.  */
 
6075
/* System header to define __stub macros and hopefully few prototypes,
 
6076
    which can conflict with char $ac_func (); below.
 
6077
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6078
    <limits.h> exists even on freestanding compilers.  */
 
6079
#ifdef __STDC__
 
6080
# include <limits.h>
 
6081
#else
 
6082
# include <assert.h>
 
6083
#endif
 
6084
/* Override any gcc2 internal prototype to avoid an error.  */
 
6085
#ifdef __cplusplus
 
6086
extern "C"
 
6087
{
 
6088
#endif
 
6089
/* We use char because int might match the return type of a gcc2
 
6090
   builtin and then its argument prototype would still apply.  */
 
6091
char $ac_func ();
 
6092
/* The GNU C library defines this for functions which it implements
 
6093
    to always fail with ENOSYS.  Some functions are actually named
 
6094
    something starting with __ and the normal name is an alias.  */
 
6095
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6096
choke me
 
6097
#else
 
6098
char (*f) () = $ac_func;
 
6099
#endif
 
6100
#ifdef __cplusplus
 
6101
}
 
6102
#endif
 
6103
 
 
6104
int
 
6105
main ()
 
6106
{
 
6107
return f != $ac_func;
 
6108
  ;
 
6109
  return 0;
 
6110
}
 
6111
_ACEOF
 
6112
rm -f conftest.$ac_objext conftest$ac_exeext
 
6113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6114
  (eval $ac_link) 2>&5
 
6115
  ac_status=$?
 
6116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6117
  (exit $ac_status); } &&
 
6118
         { ac_try='test -s conftest$ac_exeext'
 
6119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6120
  (eval $ac_try) 2>&5
 
6121
  ac_status=$?
 
6122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6123
  (exit $ac_status); }; }; then
 
6124
  eval "$as_ac_var=yes"
 
6125
else
 
6126
  echo "$as_me: failed program was:" >&5
 
6127
sed 's/^/| /' conftest.$ac_ext >&5
 
6128
 
 
6129
eval "$as_ac_var=no"
 
6130
fi
 
6131
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6132
fi
 
6133
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6134
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6135
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6136
  cat >>confdefs.h <<_ACEOF
 
6137
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6138
_ACEOF
 
6139
 
 
6140
else
 
6141
  echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
 
6142
echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
 
6143
if test "${ac_cv_lib_util_setproctitle+set}" = set; then
 
6144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6145
else
 
6146
  ac_check_lib_save_LIBS=$LIBS
 
6147
LIBS="-lutil  $LIBS"
 
6148
cat >conftest.$ac_ext <<_ACEOF
 
6149
#line $LINENO "configure"
 
6150
/* confdefs.h.  */
 
6151
_ACEOF
 
6152
cat confdefs.h >>conftest.$ac_ext
 
6153
cat >>conftest.$ac_ext <<_ACEOF
 
6154
/* end confdefs.h.  */
 
6155
 
 
6156
/* Override any gcc2 internal prototype to avoid an error.  */
 
6157
#ifdef __cplusplus
 
6158
extern "C"
 
6159
#endif
 
6160
/* We use char because int might match the return type of a gcc2
 
6161
   builtin and then its argument prototype would still apply.  */
 
6162
char setproctitle ();
 
6163
int
 
6164
main ()
 
6165
{
 
6166
setproctitle ();
 
6167
  ;
 
6168
  return 0;
 
6169
}
 
6170
_ACEOF
 
6171
rm -f conftest.$ac_objext conftest$ac_exeext
 
6172
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6173
  (eval $ac_link) 2>&5
 
6174
  ac_status=$?
 
6175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6176
  (exit $ac_status); } &&
 
6177
         { ac_try='test -s conftest$ac_exeext'
 
6178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6179
  (eval $ac_try) 2>&5
 
6180
  ac_status=$?
 
6181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6182
  (exit $ac_status); }; }; then
 
6183
  ac_cv_lib_util_setproctitle=yes
 
6184
else
 
6185
  echo "$as_me: failed program was:" >&5
 
6186
sed 's/^/| /' conftest.$ac_ext >&5
 
6187
 
 
6188
ac_cv_lib_util_setproctitle=no
 
6189
fi
 
6190
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6191
LIBS=$ac_check_lib_save_LIBS
 
6192
fi
 
6193
echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
 
6194
echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
 
6195
if test $ac_cv_lib_util_setproctitle = yes; then
 
6196
  LIBS="$LIBS -lutil"
 
6197
 
 
6198
cat >>confdefs.h <<\_ACEOF
 
6199
#define HAVE_SETPROCTITLE
 
6200
_ACEOF
 
6201
 
 
6202
 
 
6203
 
 
6204
fi
 
6205
 
 
6206
 
 
6207
 
 
6208
fi
 
6209
done
 
6210
 
 
6211
 
 
6212
echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
 
6213
echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
 
6214
if test x"$opsys" = x"gnu-linux"; then
 
6215
  if test "${enable_netlink}" = "yes";then
 
6216
    echo "$as_me:$LINENO: result: netlink" >&5
 
6217
echo "${ECHO_T}netlink" >&6
 
6218
    RT_METHOD=rt_netlink.o
 
6219
 
 
6220
cat >>confdefs.h <<\_ACEOF
 
6221
#define HAVE_NETLINK
 
6222
_ACEOF
 
6223
 
 
6224
    netlink=yes
 
6225
  elif test "${enable_netlink}" = "no"; then
 
6226
    echo "$as_me:$LINENO: result: ioctl" >&5
 
6227
echo "${ECHO_T}ioctl" >&6
 
6228
    RT_METHOD=rt_ioctl.o
 
6229
    netlink=no
 
6230
  else
 
6231
    echo "$as_me:$LINENO: result: netlink" >&5
 
6232
echo "${ECHO_T}netlink" >&6
 
6233
    RT_METHOD=rt_netlink.o
 
6234
 
 
6235
cat >>confdefs.h <<\_ACEOF
 
6236
#define HAVE_NETLINK
 
6237
_ACEOF
 
6238
 
 
6239
    netlink=yes
 
6240
  fi
 
6241
else
 
6242
  if test "$opsys" = "sol2-6";then
 
6243
    echo "$as_me:$LINENO: result: solaris" >&5
 
6244
echo "${ECHO_T}solaris" >&6
 
6245
    KERNEL_METHOD="kernel_socket.o"
 
6246
    RT_METHOD="rt_socket.o"
 
6247
  elif test "$opsys" = "irix" ; then
 
6248
    echo "$as_me:$LINENO: result: irix" >&5
 
6249
echo "${ECHO_T}irix" >&6
 
6250
    KERNEL_METHOD="kernel_socket.o"
 
6251
    RT_METHOD="rt_socket.o"
 
6252
  else
 
6253
    if test "$cross_compiling" = yes; then
 
6254
  KERNEL_METHOD=kernel_socket.o
 
6255
   RT_METHOD=rt_socket.o
 
6256
   echo "$as_me:$LINENO: result: socket" >&5
 
6257
echo "${ECHO_T}socket" >&6
 
6258
else
 
6259
  cat >conftest.$ac_ext <<_ACEOF
 
6260
#line $LINENO "configure"
 
6261
/* confdefs.h.  */
 
6262
_ACEOF
 
6263
cat confdefs.h >>conftest.$ac_ext
 
6264
cat >>conftest.$ac_ext <<_ACEOF
 
6265
/* end confdefs.h.  */
 
6266
#include <errno.h>
 
6267
#include <sys/types.h>
 
6268
#include <sys/socket.h>
 
6269
 
 
6270
main ()
 
6271
{
 
6272
  int ac_sock;
 
6273
 
 
6274
  ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
 
6275
  if (ac_sock < 0 && errno == EINVAL)
 
6276
    exit (1);
 
6277
  exit (0);
 
6278
}
 
6279
_ACEOF
 
6280
rm -f conftest$ac_exeext
 
6281
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6282
  (eval $ac_link) 2>&5
 
6283
  ac_status=$?
 
6284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6285
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6287
  (eval $ac_try) 2>&5
 
6288
  ac_status=$?
 
6289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6290
  (exit $ac_status); }; }; then
 
6291
  KERNEL_METHOD=kernel_socket.o
 
6292
   RT_METHOD=rt_socket.o
 
6293
   echo "$as_me:$LINENO: result: socket" >&5
 
6294
echo "${ECHO_T}socket" >&6
 
6295
else
 
6296
  echo "$as_me: program exited with status $ac_status" >&5
 
6297
echo "$as_me: failed program was:" >&5
 
6298
sed 's/^/| /' conftest.$ac_ext >&5
 
6299
 
 
6300
( exit $ac_status )
 
6301
RT_METHOD=rt_ioctl.o
 
6302
   echo "$as_me:$LINENO: result: ioctl" >&5
 
6303
echo "${ECHO_T}ioctl" >&6
 
6304
fi
 
6305
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6306
fi
 
6307
  fi
 
6308
fi
 
6309
 
 
6310
 
 
6311
 
 
6312
 
 
6313
echo "$as_me:$LINENO: checking route read method check" >&5
 
6314
echo $ECHO_N "checking route read method check... $ECHO_C" >&6
 
6315
if test "${zebra_rtread+set}" = set; then
 
6316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6317
else
 
6318
  if test "$netlink" = yes; then
 
6319
  RTREAD_METHOD="rtread_netlink.o"
 
6320
  zebra_rtread="netlink"
 
6321
else
 
6322
for zebra_rtread in /proc/net/route /dev/ip /dev/null;
 
6323
do
 
6324
  test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
 
6325
done
 
6326
case $zebra_rtread in
 
6327
  "/proc/net/route") RTREAD_METHOD="rtread_proc.o"
 
6328
                     zebra_rtread="proc";;
 
6329
  "/dev/ip")
 
6330
                     case "$host" in
 
6331
                       *-freebsd*)    RTREAD_METHOD=rtread_sysctl.o
 
6332
                                      zebra_rtread="sysctl";;
 
6333
                       *)             RTREAD_METHOD="rtread_getmsg.o"
 
6334
                                      zebra_rtread="getmsg";;
 
6335
                     esac;;
 
6336
  *)                 RTREAD_METHOD="rtread_sysctl.o"
 
6337
                     zebra_rtread="sysctl";;
 
6338
esac
 
6339
fi
 
6340
fi
 
6341
echo "$as_me:$LINENO: result: $zebra_rtread" >&5
 
6342
echo "${ECHO_T}$zebra_rtread" >&6
 
6343
 
 
6344
 
 
6345
echo "$as_me:$LINENO: checking interface looking up method" >&5
 
6346
echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
 
6347
if test "$netlink" = yes; then
 
6348
  echo "$as_me:$LINENO: result: netlink" >&5
 
6349
echo "${ECHO_T}netlink" >&6
 
6350
  IF_METHOD=if_netlink.o
 
6351
else
 
6352
  if test "$opsys" = "sol2-6";then
 
6353
    echo "$as_me:$LINENO: result: solaris" >&5
 
6354
echo "${ECHO_T}solaris" >&6
 
6355
    IF_METHOD=if_ioctl.o
 
6356
  elif test "$opsys" = "irix" ; then
 
6357
    echo "$as_me:$LINENO: result: irix" >&5
 
6358
echo "${ECHO_T}irix" >&6
 
6359
     IF_METHOD=if_ioctl.o
 
6360
  elif test "$opsys" = "openbsd";then
 
6361
    echo "$as_me:$LINENO: result: openbsd" >&5
 
6362
echo "${ECHO_T}openbsd" >&6
 
6363
    IF_METHOD=if_ioctl.o
 
6364
  elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
 
6365
    echo "$as_me:$LINENO: result: sysctl" >&5
 
6366
echo "${ECHO_T}sysctl" >&6
 
6367
    IF_METHOD=if_sysctl.o
 
6368
 
 
6369
cat >>confdefs.h <<\_ACEOF
 
6370
#define HAVE_NET_RT_IFLIST
 
6371
_ACEOF
 
6372
 
 
6373
  else
 
6374
    echo "$as_me:$LINENO: result: ioctl" >&5
 
6375
echo "${ECHO_T}ioctl" >&6
 
6376
    IF_METHOD=if_ioctl.o
 
6377
  fi
 
6378
fi
 
6379
 
 
6380
 
 
6381
if test -r /proc/net/dev; then
 
6382
 
 
6383
cat >>confdefs.h <<\_ACEOF
 
6384
#define HAVE_PROC_NET_DEV
 
6385
_ACEOF
 
6386
 
 
6387
  IF_PROC=if_proc.o
 
6388
fi
 
6389
 
 
6390
if test -r /proc/net/if_inet6; then
 
6391
 
 
6392
cat >>confdefs.h <<\_ACEOF
 
6393
#define HAVE_PROC_NET_IF_INET6
 
6394
_ACEOF
 
6395
 
 
6396
  IF_PROC=if_proc.o
 
6397
fi
 
6398
 
 
6399
 
 
6400
echo "$as_me:$LINENO: checking ipforward method check" >&5
 
6401
echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
 
6402
if test "${zebra_ipforward_path+set}" = set; then
 
6403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6404
else
 
6405
  for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
 
6406
do
 
6407
  test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
 
6408
done
 
6409
case $zebra_ipforward_path in
 
6410
  "/proc/net/snmp")  IPFORWARD=ipforward_proc.o
 
6411
                     zebra_ipforward_path="proc";;
 
6412
  "/dev/ip")
 
6413
                     case "$host" in
 
6414
                       *-nec-sysv4*)  IPFORWARD=ipforward_ews.o
 
6415
                                      zebra_ipforward_path="ews";;
 
6416
                       *-freebsd*)    IPFORWARD=ipforward_sysctl.o
 
6417
                                      zebra_ipforward_path="sysctl";;
 
6418
                       *)             IPFORWARD=ipforward_solaris.o
 
6419
                                      zebra_ipforward_path="solaris";;
 
6420
                     esac;;
 
6421
  *)                 IPFORWARD=ipforward_sysctl.o
 
6422
                     zebra_ipforward_path="sysctl";;
 
6423
esac
 
6424
fi
 
6425
echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
 
6426
echo "${ECHO_T}$zebra_ipforward_path" >&6
 
6427
 
 
6428
 
 
6429
 
 
6430
for ac_func in getaddrinfo
 
6431
do
 
6432
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6433
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6434
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6435
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6437
else
 
6438
  cat >conftest.$ac_ext <<_ACEOF
 
6439
#line $LINENO "configure"
 
6440
/* confdefs.h.  */
 
6441
_ACEOF
 
6442
cat confdefs.h >>conftest.$ac_ext
 
6443
cat >>conftest.$ac_ext <<_ACEOF
 
6444
/* end confdefs.h.  */
 
6445
/* System header to define __stub macros and hopefully few prototypes,
 
6446
    which can conflict with char $ac_func (); below.
 
6447
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6448
    <limits.h> exists even on freestanding compilers.  */
 
6449
#ifdef __STDC__
 
6450
# include <limits.h>
 
6451
#else
 
6452
# include <assert.h>
 
6453
#endif
 
6454
/* Override any gcc2 internal prototype to avoid an error.  */
 
6455
#ifdef __cplusplus
 
6456
extern "C"
 
6457
{
 
6458
#endif
 
6459
/* We use char because int might match the return type of a gcc2
 
6460
   builtin and then its argument prototype would still apply.  */
 
6461
char $ac_func ();
 
6462
/* The GNU C library defines this for functions which it implements
 
6463
    to always fail with ENOSYS.  Some functions are actually named
 
6464
    something starting with __ and the normal name is an alias.  */
 
6465
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6466
choke me
 
6467
#else
 
6468
char (*f) () = $ac_func;
 
6469
#endif
 
6470
#ifdef __cplusplus
 
6471
}
 
6472
#endif
 
6473
 
 
6474
int
 
6475
main ()
 
6476
{
 
6477
return f != $ac_func;
 
6478
  ;
 
6479
  return 0;
 
6480
}
 
6481
_ACEOF
 
6482
rm -f conftest.$ac_objext conftest$ac_exeext
 
6483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6484
  (eval $ac_link) 2>&5
 
6485
  ac_status=$?
 
6486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6487
  (exit $ac_status); } &&
 
6488
         { ac_try='test -s conftest$ac_exeext'
 
6489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6490
  (eval $ac_try) 2>&5
 
6491
  ac_status=$?
 
6492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6493
  (exit $ac_status); }; }; then
 
6494
  eval "$as_ac_var=yes"
 
6495
else
 
6496
  echo "$as_me: failed program was:" >&5
 
6497
sed 's/^/| /' conftest.$ac_ext >&5
 
6498
 
 
6499
eval "$as_ac_var=no"
 
6500
fi
 
6501
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6502
fi
 
6503
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6504
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6505
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6506
  cat >>confdefs.h <<_ACEOF
 
6507
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6508
_ACEOF
 
6509
 have_getaddrinfo=yes
 
6510
else
 
6511
  have_getaddrinfo=no
 
6512
fi
 
6513
done
 
6514
 
 
6515
 
 
6516
echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
 
6517
echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
 
6518
if test "${enable_ipv6}" = "no"; then
 
6519
  echo "$as_me:$LINENO: result: disabled" >&5
 
6520
echo "${ECHO_T}disabled" >&6
 
6521
else
 
6522
  if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
 
6523
    zebra_cv_ipv6=yes
 
6524
 
 
6525
cat >>confdefs.h <<\_ACEOF
 
6526
#define HAVE_IPV6 1
 
6527
_ACEOF
 
6528
 
 
6529
 
 
6530
cat >>confdefs.h <<\_ACEOF
 
6531
#define INRIA_IPV6 1
 
6532
_ACEOF
 
6533
 
 
6534
    RIPNGD="ripngd"
 
6535
    OSPF6D="ospf6d"
 
6536
    LIB_IPV6=""
 
6537
    echo "$as_me:$LINENO: result: INRIA IPv6" >&5
 
6538
echo "${ECHO_T}INRIA IPv6" >&6
 
6539
  elif grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
 
6540
    zebra_cv_ipv6=yes
 
6541
 
 
6542
cat >>confdefs.h <<\_ACEOF
 
6543
#define HAVE_IPV6 1
 
6544
_ACEOF
 
6545
 
 
6546
 
 
6547
cat >>confdefs.h <<\_ACEOF
 
6548
#define KAME 1
 
6549
_ACEOF
 
6550
 
 
6551
    RIPNGD="ripngd"
 
6552
    OSPF6D="ospf6d"
 
6553
    if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
 
6554
      LIB_IPV6="-L/usr/local/v6/lib -linet6"
 
6555
    fi
 
6556
    echo "$as_me:$LINENO: result: KAME" >&5
 
6557
echo "${ECHO_T}KAME" >&6
 
6558
  elif grep MUSICA /usr/include6/netinet6/in6.h >/dev/null 2>&1; then
 
6559
    zebra_cv_ipv6=yes
 
6560
 
 
6561
cat >>confdefs.h <<\_ACEOF
 
6562
#define HAVE_IPV6 1
 
6563
_ACEOF
 
6564
 
 
6565
 
 
6566
cat >>confdefs.h <<\_ACEOF
 
6567
#define MUSICA 1
 
6568
_ACEOF
 
6569
 
 
6570
 
 
6571
cat >>confdefs.h <<\_ACEOF
 
6572
#define KAME 1
 
6573
_ACEOF
 
6574
 
 
6575
    RIPNGD="ripngd"
 
6576
    OSPF6D="ospf6d"
 
6577
    if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
 
6578
      LIB_IPV6="-L/usr/local/v6/lib -linet6"
 
6579
    fi
 
6580
    echo "$as_me:$LINENO: result: MUSICA" >&5
 
6581
echo "${ECHO_T}MUSICA" >&6
 
6582
  elif grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
 
6583
    zebra_cv_ipv6=yes
 
6584
 
 
6585
cat >>confdefs.h <<\_ACEOF
 
6586
#define HAVE_IPV6 1
 
6587
_ACEOF
 
6588
 
 
6589
 
 
6590
cat >>confdefs.h <<\_ACEOF
 
6591
#define NRL 1
 
6592
_ACEOF
 
6593
 
 
6594
    RIPNGD="ripngd"
 
6595
    OSPF6D="ospf6d"
 
6596
    if test x"$opsys" = x"bsdi";then
 
6597
 
 
6598
cat >>confdefs.h <<\_ACEOF
 
6599
#define BSDI_NRL
 
6600
_ACEOF
 
6601
 
 
6602
      echo "$as_me:$LINENO: result: BSDI_NRL" >&5
 
6603
echo "${ECHO_T}BSDI_NRL" >&6
 
6604
    else
 
6605
      echo "$as_me:$LINENO: result: NRL" >&5
 
6606
echo "${ECHO_T}NRL" >&6
 
6607
    fi
 
6608
  elif test "${enable_ipv6}" = "yes"; then
 
6609
    cat >conftest.$ac_ext <<_ACEOF
 
6610
#line $LINENO "configure"
 
6611
/* confdefs.h.  */
 
6612
_ACEOF
 
6613
cat confdefs.h >>conftest.$ac_ext
 
6614
cat >>conftest.$ac_ext <<_ACEOF
 
6615
/* end confdefs.h.  */
 
6616
 
 
6617
      #include <linux/version.h>
 
6618
      /* 2.1.128 or later */
 
6619
      #if LINUX_VERSION_CODE >= 0x020180
 
6620
      yes
 
6621
      #endif
 
6622
_ACEOF
 
6623
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6624
  $EGREP "yes" >/dev/null 2>&1; then
 
6625
  zebra_cv_ipv6=yes
 
6626
       zebra_cv_linux_ipv6=yes
 
6627
       echo "$as_me:$LINENO: result: Linux IPv6" >&5
 
6628
echo "${ECHO_T}Linux IPv6" >&6
 
6629
fi
 
6630
rm -f conftest*
 
6631
 
 
6632
  else
 
6633
    if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
 
6634
     then
 
6635
      zebra_cv_ipv6=yes
 
6636
      zebra_cv_linux_ipv6=yes
 
6637
      echo "$as_me:$LINENO: result: Linux IPv6" >&5
 
6638
echo "${ECHO_T}Linux IPv6" >&6
 
6639
    fi
 
6640
  fi
 
6641
 
 
6642
  if test "$zebra_cv_linux_ipv6" = "yes";then
 
6643
    echo "$as_me:$LINENO: checking for GNU libc >= 2.1" >&5
 
6644
echo $ECHO_N "checking for GNU libc >= 2.1... $ECHO_C" >&6
 
6645
 
 
6646
cat >>confdefs.h <<\_ACEOF
 
6647
#define HAVE_IPV6 1
 
6648
_ACEOF
 
6649
 
 
6650
    cat >conftest.$ac_ext <<_ACEOF
 
6651
#line $LINENO "configure"
 
6652
/* confdefs.h.  */
 
6653
_ACEOF
 
6654
cat confdefs.h >>conftest.$ac_ext
 
6655
cat >>conftest.$ac_ext <<_ACEOF
 
6656
/* end confdefs.h.  */
 
6657
 
 
6658
#include <features.h>
 
6659
#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
 
6660
  yes
 
6661
#endif
 
6662
_ACEOF
 
6663
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6664
  $EGREP "yes" >/dev/null 2>&1; then
 
6665
  glibc=yes
 
6666
 
 
6667
cat >>confdefs.h <<\_ACEOF
 
6668
#define LINUX_IPV6 1
 
6669
_ACEOF
 
6670
 
 
6671
       echo "$as_me:$LINENO: result: yes" >&5
 
6672
echo "${ECHO_T}yes" >&6
 
6673
else
 
6674
  echo "$as_me:$LINENO: result: no" >&5
 
6675
echo "${ECHO_T}no" >&6
 
6676
 
 
6677
fi
 
6678
rm -f conftest*
 
6679
 
 
6680
    RIPNGD="ripngd"
 
6681
    OSPF6D="ospf6d"
 
6682
    if test "$glibc" != "yes"; then
 
6683
      INCLUDES="-I/usr/inet6/include"
 
6684
      if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
 
6685
         LIB_IPV6="-L/usr/inet6/lib -linet6"
 
6686
      fi
 
6687
    fi
 
6688
  fi
 
6689
 
 
6690
  LIBS="$LIB_IPV6 $LIBS"
 
6691
 
 
6692
 
 
6693
  if test x"$RIPNGD" = x""; then
 
6694
    echo "$as_me:$LINENO: result: IPv4 only" >&5
 
6695
echo "${ECHO_T}IPv4 only" >&6
 
6696
  fi
 
6697
fi
 
6698
 
 
6699
if test "x${zebra_cv_ipv6}" = "xyes"; then
 
6700
 
 
6701
 
 
6702
 
 
6703
 
 
6704
 
 
6705
for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
 
6706
                 netinet6/in6_var.h netinet6/nd6.h
 
6707
do
 
6708
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6709
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6710
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6711
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6712
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6714
fi
 
6715
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6716
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6717
else
 
6718
  # Is the header compilable?
 
6719
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6720
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6721
cat >conftest.$ac_ext <<_ACEOF
 
6722
#line $LINENO "configure"
 
6723
/* confdefs.h.  */
 
6724
_ACEOF
 
6725
cat confdefs.h >>conftest.$ac_ext
 
6726
cat >>conftest.$ac_ext <<_ACEOF
 
6727
/* end confdefs.h.  */
 
6728
$ac_includes_default
 
6729
#include <$ac_header>
 
6730
_ACEOF
 
6731
rm -f conftest.$ac_objext
 
6732
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6733
  (eval $ac_compile) 2>&5
 
6734
  ac_status=$?
 
6735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6736
  (exit $ac_status); } &&
 
6737
         { ac_try='test -s conftest.$ac_objext'
 
6738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6739
  (eval $ac_try) 2>&5
 
6740
  ac_status=$?
 
6741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6742
  (exit $ac_status); }; }; then
 
6743
  ac_header_compiler=yes
 
6744
else
 
6745
  echo "$as_me: failed program was:" >&5
 
6746
sed 's/^/| /' conftest.$ac_ext >&5
 
6747
 
 
6748
ac_header_compiler=no
 
6749
fi
 
6750
rm -f conftest.$ac_objext conftest.$ac_ext
 
6751
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6752
echo "${ECHO_T}$ac_header_compiler" >&6
 
6753
 
 
6754
# Is the header present?
 
6755
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6756
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6757
cat >conftest.$ac_ext <<_ACEOF
 
6758
#line $LINENO "configure"
 
6759
/* confdefs.h.  */
 
6760
_ACEOF
 
6761
cat confdefs.h >>conftest.$ac_ext
 
6762
cat >>conftest.$ac_ext <<_ACEOF
 
6763
/* end confdefs.h.  */
 
6764
#include <$ac_header>
 
6765
_ACEOF
 
6766
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6767
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6768
  ac_status=$?
 
6769
  grep -v '^ *+' conftest.er1 >conftest.err
 
6770
  rm -f conftest.er1
 
6771
  cat conftest.err >&5
 
6772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6773
  (exit $ac_status); } >/dev/null; then
 
6774
  if test -s conftest.err; then
 
6775
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6776
  else
 
6777
    ac_cpp_err=
 
6778
  fi
 
6779
else
 
6780
  ac_cpp_err=yes
 
6781
fi
 
6782
if test -z "$ac_cpp_err"; then
 
6783
  ac_header_preproc=yes
 
6784
else
 
6785
  echo "$as_me: failed program was:" >&5
 
6786
sed 's/^/| /' conftest.$ac_ext >&5
 
6787
 
 
6788
  ac_header_preproc=no
 
6789
fi
 
6790
rm -f conftest.err conftest.$ac_ext
 
6791
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6792
echo "${ECHO_T}$ac_header_preproc" >&6
 
6793
 
 
6794
# So?  What about this header?
 
6795
case $ac_header_compiler:$ac_header_preproc in
 
6796
  yes:no )
 
6797
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6798
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6799
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6800
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6801
    (
 
6802
      cat <<\_ASBOX
 
6803
## ------------------------------------ ##
 
6804
## Report this to bug-autoconf@gnu.org. ##
 
6805
## ------------------------------------ ##
 
6806
_ASBOX
 
6807
    ) |
 
6808
      sed "s/^/$as_me: WARNING:     /" >&2
 
6809
    ;;
 
6810
  no:yes )
 
6811
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6812
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6813
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
6814
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
6815
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6816
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6817
    (
 
6818
      cat <<\_ASBOX
 
6819
## ------------------------------------ ##
 
6820
## Report this to bug-autoconf@gnu.org. ##
 
6821
## ------------------------------------ ##
 
6822
_ASBOX
 
6823
    ) |
 
6824
      sed "s/^/$as_me: WARNING:     /" >&2
 
6825
    ;;
 
6826
esac
 
6827
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6828
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6829
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6831
else
 
6832
  eval "$as_ac_Header=$ac_header_preproc"
 
6833
fi
 
6834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6835
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6836
 
 
6837
fi
 
6838
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6839
  cat >>confdefs.h <<_ACEOF
 
6840
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6841
_ACEOF
 
6842
 
 
6843
fi
 
6844
 
 
6845
done
 
6846
 
 
6847
fi
 
6848
 
 
6849
if test "${enable_zebra}" = "no";then
 
6850
  ZEBRA=""
 
6851
else
 
6852
  ZEBRA="zebra"
 
6853
fi
 
6854
 
 
6855
if test "${enable_bgpd}" = "no";then
 
6856
  BGPD=""
 
6857
else
 
6858
  BGPD="bgpd"
 
6859
fi
 
6860
 
 
6861
if test "${enable_ripd}" = "no";then
 
6862
  RIPD=""
 
6863
else
 
6864
  RIPD="ripd"
 
6865
fi
 
6866
 
 
6867
if test "${enable_ospfd}" = "no";then
 
6868
  OSPFD=""
 
6869
else
 
6870
  OSPFD="ospfd"
 
6871
fi
 
6872
 
 
6873
OSPFCLIENT=""
 
6874
if test "${enable_opaque_lsa}" = "yes"; then
 
6875
  if test "${enable_ospfapi}" != "no";then
 
6876
 
 
6877
cat >>confdefs.h <<\_ACEOF
 
6878
#define SUPPORT_OSPF_API
 
6879
_ACEOF
 
6880
 
 
6881
 
 
6882
    if test "${enable_ospfclient}" != "no";then
 
6883
      OSPFCLIENT="ospfclient"
 
6884
    fi
 
6885
  fi
 
6886
 
 
6887
fi
 
6888
 
 
6889
case "${enable_ripngd}" in
 
6890
  "yes") RIPNGD="ripngd";;
 
6891
  "no" ) RIPNGD="";;
 
6892
  *    ) ;;
 
6893
esac
 
6894
 
 
6895
case "${enable_ospf6d}" in
 
6896
  "yes") OSPF6D="ospf6d";;
 
6897
  "no" ) OSPF6D="";;
 
6898
  *    ) ;;
 
6899
esac
 
6900
 
 
6901
case "${enable_isisd}" in
 
6902
  "yes") ISISD="isisd";;
 
6903
  "no" ) ISISD="";;
 
6904
  *    ) ISISD="isisd";;
 
6905
esac
 
6906
 
 
6907
if test "${enable_bgp_announce}" = "no";then
 
6908
 
 
6909
cat >>confdefs.h <<\_ACEOF
 
6910
#define DISABLE_BGP_ANNOUNCE
 
6911
_ACEOF
 
6912
 
 
6913
fi
 
6914
 
 
6915
 
 
6916
 
 
6917
 
 
6918
 
 
6919
 
 
6920
 
 
6921
 
 
6922
 
 
6923
 
 
6924
 
 
6925
 
 
6926
 
 
6927
echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
 
6928
echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
 
6929
if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
 
6930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6931
else
 
6932
  ac_check_lib_save_LIBS=$LIBS
 
6933
LIBS="-lc  $LIBS"
 
6934
cat >conftest.$ac_ext <<_ACEOF
 
6935
#line $LINENO "configure"
 
6936
/* confdefs.h.  */
 
6937
_ACEOF
 
6938
cat confdefs.h >>conftest.$ac_ext
 
6939
cat >>conftest.$ac_ext <<_ACEOF
 
6940
/* end confdefs.h.  */
 
6941
 
 
6942
/* Override any gcc2 internal prototype to avoid an error.  */
 
6943
#ifdef __cplusplus
 
6944
extern "C"
 
6945
#endif
 
6946
/* We use char because int might match the return type of a gcc2
 
6947
   builtin and then its argument prototype would still apply.  */
 
6948
char inet_ntop ();
 
6949
int
 
6950
main ()
 
6951
{
 
6952
inet_ntop ();
 
6953
  ;
 
6954
  return 0;
 
6955
}
 
6956
_ACEOF
 
6957
rm -f conftest.$ac_objext conftest$ac_exeext
 
6958
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6959
  (eval $ac_link) 2>&5
 
6960
  ac_status=$?
 
6961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6962
  (exit $ac_status); } &&
 
6963
         { ac_try='test -s conftest$ac_exeext'
 
6964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6965
  (eval $ac_try) 2>&5
 
6966
  ac_status=$?
 
6967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6968
  (exit $ac_status); }; }; then
 
6969
  ac_cv_lib_c_inet_ntop=yes
 
6970
else
 
6971
  echo "$as_me: failed program was:" >&5
 
6972
sed 's/^/| /' conftest.$ac_ext >&5
 
6973
 
 
6974
ac_cv_lib_c_inet_ntop=no
 
6975
fi
 
6976
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6977
LIBS=$ac_check_lib_save_LIBS
 
6978
fi
 
6979
echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
 
6980
echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
 
6981
if test $ac_cv_lib_c_inet_ntop = yes; then
 
6982
 
 
6983
cat >>confdefs.h <<\_ACEOF
 
6984
#define HAVE_INET_NTOP
 
6985
_ACEOF
 
6986
 
 
6987
fi
 
6988
 
 
6989
echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
 
6990
echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
 
6991
if test "${ac_cv_lib_c_inet_pton+set}" = set; then
 
6992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6993
else
 
6994
  ac_check_lib_save_LIBS=$LIBS
 
6995
LIBS="-lc  $LIBS"
 
6996
cat >conftest.$ac_ext <<_ACEOF
 
6997
#line $LINENO "configure"
 
6998
/* confdefs.h.  */
 
6999
_ACEOF
 
7000
cat confdefs.h >>conftest.$ac_ext
 
7001
cat >>conftest.$ac_ext <<_ACEOF
 
7002
/* end confdefs.h.  */
 
7003
 
 
7004
/* Override any gcc2 internal prototype to avoid an error.  */
 
7005
#ifdef __cplusplus
 
7006
extern "C"
 
7007
#endif
 
7008
/* We use char because int might match the return type of a gcc2
 
7009
   builtin and then its argument prototype would still apply.  */
 
7010
char inet_pton ();
 
7011
int
 
7012
main ()
 
7013
{
 
7014
inet_pton ();
 
7015
  ;
 
7016
  return 0;
 
7017
}
 
7018
_ACEOF
 
7019
rm -f conftest.$ac_objext conftest$ac_exeext
 
7020
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7021
  (eval $ac_link) 2>&5
 
7022
  ac_status=$?
 
7023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7024
  (exit $ac_status); } &&
 
7025
         { ac_try='test -s conftest$ac_exeext'
 
7026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7027
  (eval $ac_try) 2>&5
 
7028
  ac_status=$?
 
7029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7030
  (exit $ac_status); }; }; then
 
7031
  ac_cv_lib_c_inet_pton=yes
 
7032
else
 
7033
  echo "$as_me: failed program was:" >&5
 
7034
sed 's/^/| /' conftest.$ac_ext >&5
 
7035
 
 
7036
ac_cv_lib_c_inet_pton=no
 
7037
fi
 
7038
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7039
LIBS=$ac_check_lib_save_LIBS
 
7040
fi
 
7041
echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
 
7042
echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
 
7043
if test $ac_cv_lib_c_inet_pton = yes; then
 
7044
 
 
7045
cat >>confdefs.h <<\_ACEOF
 
7046
#define HAVE_INET_PTON
 
7047
_ACEOF
 
7048
 
 
7049
fi
 
7050
 
 
7051
 
 
7052
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
 
7053
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
 
7054
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
 
7055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7056
else
 
7057
  ac_check_lib_save_LIBS=$LIBS
 
7058
LIBS="-lcrypt  $LIBS"
 
7059
cat >conftest.$ac_ext <<_ACEOF
 
7060
#line $LINENO "configure"
 
7061
/* confdefs.h.  */
 
7062
_ACEOF
 
7063
cat confdefs.h >>conftest.$ac_ext
 
7064
cat >>conftest.$ac_ext <<_ACEOF
 
7065
/* end confdefs.h.  */
 
7066
 
 
7067
/* Override any gcc2 internal prototype to avoid an error.  */
 
7068
#ifdef __cplusplus
 
7069
extern "C"
 
7070
#endif
 
7071
/* We use char because int might match the return type of a gcc2
 
7072
   builtin and then its argument prototype would still apply.  */
 
7073
char crypt ();
 
7074
int
 
7075
main ()
 
7076
{
 
7077
crypt ();
 
7078
  ;
 
7079
  return 0;
 
7080
}
 
7081
_ACEOF
 
7082
rm -f conftest.$ac_objext conftest$ac_exeext
 
7083
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7084
  (eval $ac_link) 2>&5
 
7085
  ac_status=$?
 
7086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7087
  (exit $ac_status); } &&
 
7088
         { ac_try='test -s conftest$ac_exeext'
 
7089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7090
  (eval $ac_try) 2>&5
 
7091
  ac_status=$?
 
7092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7093
  (exit $ac_status); }; }; then
 
7094
  ac_cv_lib_crypt_crypt=yes
 
7095
else
 
7096
  echo "$as_me: failed program was:" >&5
 
7097
sed 's/^/| /' conftest.$ac_ext >&5
 
7098
 
 
7099
ac_cv_lib_crypt_crypt=no
 
7100
fi
 
7101
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7102
LIBS=$ac_check_lib_save_LIBS
 
7103
fi
 
7104
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
 
7105
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
 
7106
if test $ac_cv_lib_crypt_crypt = yes; then
 
7107
  cat >>confdefs.h <<_ACEOF
 
7108
#define HAVE_LIBCRYPT 1
 
7109
_ACEOF
 
7110
 
 
7111
  LIBS="-lcrypt $LIBS"
 
7112
 
 
7113
fi
 
7114
 
 
7115
 
 
7116
echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
 
7117
echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
 
7118
if test "${ac_cv_lib_resolv_res_init+set}" = set; then
 
7119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7120
else
 
7121
  ac_check_lib_save_LIBS=$LIBS
 
7122
LIBS="-lresolv  $LIBS"
 
7123
cat >conftest.$ac_ext <<_ACEOF
 
7124
#line $LINENO "configure"
 
7125
/* confdefs.h.  */
 
7126
_ACEOF
 
7127
cat confdefs.h >>conftest.$ac_ext
 
7128
cat >>conftest.$ac_ext <<_ACEOF
 
7129
/* end confdefs.h.  */
 
7130
 
 
7131
/* Override any gcc2 internal prototype to avoid an error.  */
 
7132
#ifdef __cplusplus
 
7133
extern "C"
 
7134
#endif
 
7135
/* We use char because int might match the return type of a gcc2
 
7136
   builtin and then its argument prototype would still apply.  */
 
7137
char res_init ();
 
7138
int
 
7139
main ()
 
7140
{
 
7141
res_init ();
 
7142
  ;
 
7143
  return 0;
 
7144
}
 
7145
_ACEOF
 
7146
rm -f conftest.$ac_objext conftest$ac_exeext
 
7147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7148
  (eval $ac_link) 2>&5
 
7149
  ac_status=$?
 
7150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7151
  (exit $ac_status); } &&
 
7152
         { ac_try='test -s conftest$ac_exeext'
 
7153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7154
  (eval $ac_try) 2>&5
 
7155
  ac_status=$?
 
7156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7157
  (exit $ac_status); }; }; then
 
7158
  ac_cv_lib_resolv_res_init=yes
 
7159
else
 
7160
  echo "$as_me: failed program was:" >&5
 
7161
sed 's/^/| /' conftest.$ac_ext >&5
 
7162
 
 
7163
ac_cv_lib_resolv_res_init=no
 
7164
fi
 
7165
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7166
LIBS=$ac_check_lib_save_LIBS
 
7167
fi
 
7168
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
 
7169
echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
 
7170
if test $ac_cv_lib_resolv_res_init = yes; then
 
7171
  cat >>confdefs.h <<_ACEOF
 
7172
#define HAVE_LIBRESOLV 1
 
7173
_ACEOF
 
7174
 
 
7175
  LIBS="-lresolv $LIBS"
 
7176
 
 
7177
fi
 
7178
 
 
7179
 
 
7180
echo "$as_me:$LINENO: checking for main in -lm" >&5
 
7181
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
 
7182
if test "${ac_cv_lib_m_main+set}" = set; then
 
7183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7184
else
 
7185
  ac_check_lib_save_LIBS=$LIBS
 
7186
LIBS="-lm  $LIBS"
 
7187
cat >conftest.$ac_ext <<_ACEOF
 
7188
#line $LINENO "configure"
 
7189
/* confdefs.h.  */
 
7190
_ACEOF
 
7191
cat confdefs.h >>conftest.$ac_ext
 
7192
cat >>conftest.$ac_ext <<_ACEOF
 
7193
/* end confdefs.h.  */
 
7194
 
 
7195
 
 
7196
int
 
7197
main ()
 
7198
{
 
7199
main ();
 
7200
  ;
 
7201
  return 0;
 
7202
}
 
7203
_ACEOF
 
7204
rm -f conftest.$ac_objext conftest$ac_exeext
 
7205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7206
  (eval $ac_link) 2>&5
 
7207
  ac_status=$?
 
7208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7209
  (exit $ac_status); } &&
 
7210
         { ac_try='test -s conftest$ac_exeext'
 
7211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7212
  (eval $ac_try) 2>&5
 
7213
  ac_status=$?
 
7214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7215
  (exit $ac_status); }; }; then
 
7216
  ac_cv_lib_m_main=yes
 
7217
else
 
7218
  echo "$as_me: failed program was:" >&5
 
7219
sed 's/^/| /' conftest.$ac_ext >&5
 
7220
 
 
7221
ac_cv_lib_m_main=no
 
7222
fi
 
7223
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7224
LIBS=$ac_check_lib_save_LIBS
 
7225
fi
 
7226
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
 
7227
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
 
7228
if test $ac_cv_lib_m_main = yes; then
 
7229
  cat >>confdefs.h <<_ACEOF
 
7230
#define HAVE_LIBM 1
 
7231
_ACEOF
 
7232
 
 
7233
  LIBS="-lm $LIBS"
 
7234
 
 
7235
fi
 
7236
 
 
7237
 
 
7238
echo "$as_me:$LINENO: checking for __inet_ntop" >&5
 
7239
echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
 
7240
if test "${ac_cv_func___inet_ntop+set}" = set; then
 
7241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7242
else
 
7243
  cat >conftest.$ac_ext <<_ACEOF
 
7244
#line $LINENO "configure"
 
7245
/* confdefs.h.  */
 
7246
_ACEOF
 
7247
cat confdefs.h >>conftest.$ac_ext
 
7248
cat >>conftest.$ac_ext <<_ACEOF
 
7249
/* end confdefs.h.  */
 
7250
/* System header to define __stub macros and hopefully few prototypes,
 
7251
    which can conflict with char __inet_ntop (); below.
 
7252
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7253
    <limits.h> exists even on freestanding compilers.  */
 
7254
#ifdef __STDC__
 
7255
# include <limits.h>
 
7256
#else
 
7257
# include <assert.h>
 
7258
#endif
 
7259
/* Override any gcc2 internal prototype to avoid an error.  */
 
7260
#ifdef __cplusplus
 
7261
extern "C"
 
7262
{
 
7263
#endif
 
7264
/* We use char because int might match the return type of a gcc2
 
7265
   builtin and then its argument prototype would still apply.  */
 
7266
char __inet_ntop ();
 
7267
/* The GNU C library defines this for functions which it implements
 
7268
    to always fail with ENOSYS.  Some functions are actually named
 
7269
    something starting with __ and the normal name is an alias.  */
 
7270
#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
 
7271
choke me
 
7272
#else
 
7273
char (*f) () = __inet_ntop;
 
7274
#endif
 
7275
#ifdef __cplusplus
 
7276
}
 
7277
#endif
 
7278
 
 
7279
int
 
7280
main ()
 
7281
{
 
7282
return f != __inet_ntop;
 
7283
  ;
 
7284
  return 0;
 
7285
}
 
7286
_ACEOF
 
7287
rm -f conftest.$ac_objext conftest$ac_exeext
 
7288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7289
  (eval $ac_link) 2>&5
 
7290
  ac_status=$?
 
7291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7292
  (exit $ac_status); } &&
 
7293
         { ac_try='test -s conftest$ac_exeext'
 
7294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7295
  (eval $ac_try) 2>&5
 
7296
  ac_status=$?
 
7297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7298
  (exit $ac_status); }; }; then
 
7299
  ac_cv_func___inet_ntop=yes
 
7300
else
 
7301
  echo "$as_me: failed program was:" >&5
 
7302
sed 's/^/| /' conftest.$ac_ext >&5
 
7303
 
 
7304
ac_cv_func___inet_ntop=no
 
7305
fi
 
7306
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7307
fi
 
7308
echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
 
7309
echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
 
7310
if test $ac_cv_func___inet_ntop = yes; then
 
7311
 
 
7312
cat >>confdefs.h <<\_ACEOF
 
7313
#define HAVE_INET_NTOP
 
7314
_ACEOF
 
7315
 
 
7316
fi
 
7317
 
 
7318
echo "$as_me:$LINENO: checking for __inet_pton" >&5
 
7319
echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
 
7320
if test "${ac_cv_func___inet_pton+set}" = set; then
 
7321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7322
else
 
7323
  cat >conftest.$ac_ext <<_ACEOF
 
7324
#line $LINENO "configure"
 
7325
/* confdefs.h.  */
 
7326
_ACEOF
 
7327
cat confdefs.h >>conftest.$ac_ext
 
7328
cat >>conftest.$ac_ext <<_ACEOF
 
7329
/* end confdefs.h.  */
 
7330
/* System header to define __stub macros and hopefully few prototypes,
 
7331
    which can conflict with char __inet_pton (); below.
 
7332
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7333
    <limits.h> exists even on freestanding compilers.  */
 
7334
#ifdef __STDC__
 
7335
# include <limits.h>
 
7336
#else
 
7337
# include <assert.h>
 
7338
#endif
 
7339
/* Override any gcc2 internal prototype to avoid an error.  */
 
7340
#ifdef __cplusplus
 
7341
extern "C"
 
7342
{
 
7343
#endif
 
7344
/* We use char because int might match the return type of a gcc2
 
7345
   builtin and then its argument prototype would still apply.  */
 
7346
char __inet_pton ();
 
7347
/* The GNU C library defines this for functions which it implements
 
7348
    to always fail with ENOSYS.  Some functions are actually named
 
7349
    something starting with __ and the normal name is an alias.  */
 
7350
#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
 
7351
choke me
 
7352
#else
 
7353
char (*f) () = __inet_pton;
 
7354
#endif
 
7355
#ifdef __cplusplus
 
7356
}
 
7357
#endif
 
7358
 
 
7359
int
 
7360
main ()
 
7361
{
 
7362
return f != __inet_pton;
 
7363
  ;
 
7364
  return 0;
 
7365
}
 
7366
_ACEOF
 
7367
rm -f conftest.$ac_objext conftest$ac_exeext
 
7368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7369
  (eval $ac_link) 2>&5
 
7370
  ac_status=$?
 
7371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7372
  (exit $ac_status); } &&
 
7373
         { ac_try='test -s conftest$ac_exeext'
 
7374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7375
  (eval $ac_try) 2>&5
 
7376
  ac_status=$?
 
7377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7378
  (exit $ac_status); }; }; then
 
7379
  ac_cv_func___inet_pton=yes
 
7380
else
 
7381
  echo "$as_me: failed program was:" >&5
 
7382
sed 's/^/| /' conftest.$ac_ext >&5
 
7383
 
 
7384
ac_cv_func___inet_pton=no
 
7385
fi
 
7386
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7387
fi
 
7388
echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
 
7389
echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
 
7390
if test $ac_cv_func___inet_pton = yes; then
 
7391
 
 
7392
cat >>confdefs.h <<\_ACEOF
 
7393
#define HAVE_INET_PTON
 
7394
_ACEOF
 
7395
 
 
7396
fi
 
7397
 
 
7398
echo "$as_me:$LINENO: checking for __inet_aton" >&5
 
7399
echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
 
7400
if test "${ac_cv_func___inet_aton+set}" = set; then
 
7401
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7402
else
 
7403
  cat >conftest.$ac_ext <<_ACEOF
 
7404
#line $LINENO "configure"
 
7405
/* confdefs.h.  */
 
7406
_ACEOF
 
7407
cat confdefs.h >>conftest.$ac_ext
 
7408
cat >>conftest.$ac_ext <<_ACEOF
 
7409
/* end confdefs.h.  */
 
7410
/* System header to define __stub macros and hopefully few prototypes,
 
7411
    which can conflict with char __inet_aton (); below.
 
7412
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7413
    <limits.h> exists even on freestanding compilers.  */
 
7414
#ifdef __STDC__
 
7415
# include <limits.h>
 
7416
#else
 
7417
# include <assert.h>
 
7418
#endif
 
7419
/* Override any gcc2 internal prototype to avoid an error.  */
 
7420
#ifdef __cplusplus
 
7421
extern "C"
 
7422
{
 
7423
#endif
 
7424
/* We use char because int might match the return type of a gcc2
 
7425
   builtin and then its argument prototype would still apply.  */
 
7426
char __inet_aton ();
 
7427
/* The GNU C library defines this for functions which it implements
 
7428
    to always fail with ENOSYS.  Some functions are actually named
 
7429
    something starting with __ and the normal name is an alias.  */
 
7430
#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
 
7431
choke me
 
7432
#else
 
7433
char (*f) () = __inet_aton;
 
7434
#endif
 
7435
#ifdef __cplusplus
 
7436
}
 
7437
#endif
 
7438
 
 
7439
int
 
7440
main ()
 
7441
{
 
7442
return f != __inet_aton;
 
7443
  ;
 
7444
  return 0;
 
7445
}
 
7446
_ACEOF
 
7447
rm -f conftest.$ac_objext conftest$ac_exeext
 
7448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7449
  (eval $ac_link) 2>&5
 
7450
  ac_status=$?
 
7451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7452
  (exit $ac_status); } &&
 
7453
         { ac_try='test -s conftest$ac_exeext'
 
7454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7455
  (eval $ac_try) 2>&5
 
7456
  ac_status=$?
 
7457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7458
  (exit $ac_status); }; }; then
 
7459
  ac_cv_func___inet_aton=yes
 
7460
else
 
7461
  echo "$as_me: failed program was:" >&5
 
7462
sed 's/^/| /' conftest.$ac_ext >&5
 
7463
 
 
7464
ac_cv_func___inet_aton=no
 
7465
fi
 
7466
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7467
fi
 
7468
echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
 
7469
echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
 
7470
if test $ac_cv_func___inet_aton = yes; then
 
7471
 
 
7472
cat >>confdefs.h <<\_ACEOF
 
7473
#define HAVE_INET_ATON
 
7474
_ACEOF
 
7475
 
 
7476
fi
 
7477
 
 
7478
 
 
7479
echo "$as_me:$LINENO: checking for regexec in -lc" >&5
 
7480
echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
 
7481
if test "${ac_cv_lib_c_regexec+set}" = set; then
 
7482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7483
else
 
7484
  ac_check_lib_save_LIBS=$LIBS
 
7485
LIBS="-lc  $LIBS"
 
7486
cat >conftest.$ac_ext <<_ACEOF
 
7487
#line $LINENO "configure"
 
7488
/* confdefs.h.  */
 
7489
_ACEOF
 
7490
cat confdefs.h >>conftest.$ac_ext
 
7491
cat >>conftest.$ac_ext <<_ACEOF
 
7492
/* end confdefs.h.  */
 
7493
 
 
7494
/* Override any gcc2 internal prototype to avoid an error.  */
 
7495
#ifdef __cplusplus
 
7496
extern "C"
 
7497
#endif
 
7498
/* We use char because int might match the return type of a gcc2
 
7499
   builtin and then its argument prototype would still apply.  */
 
7500
char regexec ();
 
7501
int
 
7502
main ()
 
7503
{
 
7504
regexec ();
 
7505
  ;
 
7506
  return 0;
 
7507
}
 
7508
_ACEOF
 
7509
rm -f conftest.$ac_objext conftest$ac_exeext
 
7510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7511
  (eval $ac_link) 2>&5
 
7512
  ac_status=$?
 
7513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7514
  (exit $ac_status); } &&
 
7515
         { ac_try='test -s conftest$ac_exeext'
 
7516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7517
  (eval $ac_try) 2>&5
 
7518
  ac_status=$?
 
7519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7520
  (exit $ac_status); }; }; then
 
7521
  ac_cv_lib_c_regexec=yes
 
7522
else
 
7523
  echo "$as_me: failed program was:" >&5
 
7524
sed 's/^/| /' conftest.$ac_ext >&5
 
7525
 
 
7526
ac_cv_lib_c_regexec=no
 
7527
fi
 
7528
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7529
LIBS=$ac_check_lib_save_LIBS
 
7530
fi
 
7531
echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
 
7532
echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
 
7533
if test $ac_cv_lib_c_regexec = yes; then
 
7534
 
 
7535
cat >>confdefs.h <<\_ACEOF
 
7536
#define HAVE_GNU_REGEX
 
7537
_ACEOF
 
7538
 
 
7539
 LIB_REGEX=""
 
7540
else
 
7541
  LIB_REGEX="regex.o"
 
7542
fi
 
7543
 
 
7544
 
 
7545
 
 
7546
if test "${enable_snmp}" = "yes";then
 
7547
  if test "${HAVE_SNMP}" = ""; then
 
7548
    old_libs="${LIBS}"
 
7549
    LIBS="-L/usr/lib"
 
7550
    unset ac_cv_lib_snmp_asn_parse_int
 
7551
    echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
 
7552
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
 
7553
if test "${ac_cv_lib_crypto_main+set}" = set; then
 
7554
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7555
else
 
7556
  ac_check_lib_save_LIBS=$LIBS
 
7557
LIBS="-lcrypto  $LIBS"
 
7558
cat >conftest.$ac_ext <<_ACEOF
 
7559
#line $LINENO "configure"
 
7560
/* confdefs.h.  */
 
7561
_ACEOF
 
7562
cat confdefs.h >>conftest.$ac_ext
 
7563
cat >>conftest.$ac_ext <<_ACEOF
 
7564
/* end confdefs.h.  */
 
7565
 
 
7566
 
 
7567
int
 
7568
main ()
 
7569
{
 
7570
main ();
 
7571
  ;
 
7572
  return 0;
 
7573
}
 
7574
_ACEOF
 
7575
rm -f conftest.$ac_objext conftest$ac_exeext
 
7576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7577
  (eval $ac_link) 2>&5
 
7578
  ac_status=$?
 
7579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7580
  (exit $ac_status); } &&
 
7581
         { ac_try='test -s conftest$ac_exeext'
 
7582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7583
  (eval $ac_try) 2>&5
 
7584
  ac_status=$?
 
7585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7586
  (exit $ac_status); }; }; then
 
7587
  ac_cv_lib_crypto_main=yes
 
7588
else
 
7589
  echo "$as_me: failed program was:" >&5
 
7590
sed 's/^/| /' conftest.$ac_ext >&5
 
7591
 
 
7592
ac_cv_lib_crypto_main=no
 
7593
fi
 
7594
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7595
LIBS=$ac_check_lib_save_LIBS
 
7596
fi
 
7597
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
 
7598
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
 
7599
if test $ac_cv_lib_crypto_main = yes; then
 
7600
  NEED_CRYPTO=yes
 
7601
fi
 
7602
 
 
7603
    if test "${NEED_CRYPTO}" = ""; then
 
7604
      echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
 
7605
echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
 
7606
if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
 
7607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7608
else
 
7609
  ac_check_lib_save_LIBS=$LIBS
 
7610
LIBS="-lnetsnmp  $LIBS"
 
7611
cat >conftest.$ac_ext <<_ACEOF
 
7612
#line $LINENO "configure"
 
7613
/* confdefs.h.  */
 
7614
_ACEOF
 
7615
cat confdefs.h >>conftest.$ac_ext
 
7616
cat >>conftest.$ac_ext <<_ACEOF
 
7617
/* end confdefs.h.  */
 
7618
 
 
7619
/* Override any gcc2 internal prototype to avoid an error.  */
 
7620
#ifdef __cplusplus
 
7621
extern "C"
 
7622
#endif
 
7623
/* We use char because int might match the return type of a gcc2
 
7624
   builtin and then its argument prototype would still apply.  */
 
7625
char asn_parse_int ();
 
7626
int
 
7627
main ()
 
7628
{
 
7629
asn_parse_int ();
 
7630
  ;
 
7631
  return 0;
 
7632
}
 
7633
_ACEOF
 
7634
rm -f conftest.$ac_objext conftest$ac_exeext
 
7635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7636
  (eval $ac_link) 2>&5
 
7637
  ac_status=$?
 
7638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7639
  (exit $ac_status); } &&
 
7640
         { ac_try='test -s conftest$ac_exeext'
 
7641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7642
  (eval $ac_try) 2>&5
 
7643
  ac_status=$?
 
7644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7645
  (exit $ac_status); }; }; then
 
7646
  ac_cv_lib_netsnmp_asn_parse_int=yes
 
7647
else
 
7648
  echo "$as_me: failed program was:" >&5
 
7649
sed 's/^/| /' conftest.$ac_ext >&5
 
7650
 
 
7651
ac_cv_lib_netsnmp_asn_parse_int=no
 
7652
fi
 
7653
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7654
LIBS=$ac_check_lib_save_LIBS
 
7655
fi
 
7656
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
 
7657
echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
 
7658
if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
 
7659
  HAVE_NETSNMP=yes; HAVE_SNMP=yes
 
7660
fi
 
7661
 
 
7662
    else
 
7663
      echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
 
7664
echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
 
7665
if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
 
7666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7667
else
 
7668
  ac_check_lib_save_LIBS=$LIBS
 
7669
LIBS="-lnetsnmp "-lcrypto" $LIBS"
 
7670
cat >conftest.$ac_ext <<_ACEOF
 
7671
#line $LINENO "configure"
 
7672
/* confdefs.h.  */
 
7673
_ACEOF
 
7674
cat confdefs.h >>conftest.$ac_ext
 
7675
cat >>conftest.$ac_ext <<_ACEOF
 
7676
/* end confdefs.h.  */
 
7677
 
 
7678
/* Override any gcc2 internal prototype to avoid an error.  */
 
7679
#ifdef __cplusplus
 
7680
extern "C"
 
7681
#endif
 
7682
/* We use char because int might match the return type of a gcc2
 
7683
   builtin and then its argument prototype would still apply.  */
 
7684
char asn_parse_int ();
 
7685
int
 
7686
main ()
 
7687
{
 
7688
asn_parse_int ();
 
7689
  ;
 
7690
  return 0;
 
7691
}
 
7692
_ACEOF
 
7693
rm -f conftest.$ac_objext conftest$ac_exeext
 
7694
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7695
  (eval $ac_link) 2>&5
 
7696
  ac_status=$?
 
7697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7698
  (exit $ac_status); } &&
 
7699
         { ac_try='test -s conftest$ac_exeext'
 
7700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7701
  (eval $ac_try) 2>&5
 
7702
  ac_status=$?
 
7703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7704
  (exit $ac_status); }; }; then
 
7705
  ac_cv_lib_netsnmp_asn_parse_int=yes
 
7706
else
 
7707
  echo "$as_me: failed program was:" >&5
 
7708
sed 's/^/| /' conftest.$ac_ext >&5
 
7709
 
 
7710
ac_cv_lib_netsnmp_asn_parse_int=no
 
7711
fi
 
7712
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7713
LIBS=$ac_check_lib_save_LIBS
 
7714
fi
 
7715
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
 
7716
echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
 
7717
if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
 
7718
  HAVE_NETSNMP=yes; HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
 
7719
fi
 
7720
 
 
7721
    fi
 
7722
    LIBS="${old_libs}"
 
7723
  fi
 
7724
  if test "${HAVE_SNMP}" = ""; then
 
7725
    old_libs="${LIBS}"
 
7726
    LIBS="-L/usr/lib"
 
7727
    unset ac_cv_lib_snmp_asn_parse_int
 
7728
    echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
 
7729
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
 
7730
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
 
7731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7732
else
 
7733
  ac_check_lib_save_LIBS=$LIBS
 
7734
LIBS="-lsnmp  $LIBS"
 
7735
cat >conftest.$ac_ext <<_ACEOF
 
7736
#line $LINENO "configure"
 
7737
/* confdefs.h.  */
 
7738
_ACEOF
 
7739
cat confdefs.h >>conftest.$ac_ext
 
7740
cat >>conftest.$ac_ext <<_ACEOF
 
7741
/* end confdefs.h.  */
 
7742
 
 
7743
/* Override any gcc2 internal prototype to avoid an error.  */
 
7744
#ifdef __cplusplus
 
7745
extern "C"
 
7746
#endif
 
7747
/* We use char because int might match the return type of a gcc2
 
7748
   builtin and then its argument prototype would still apply.  */
 
7749
char asn_parse_int ();
 
7750
int
 
7751
main ()
 
7752
{
 
7753
asn_parse_int ();
 
7754
  ;
 
7755
  return 0;
 
7756
}
 
7757
_ACEOF
 
7758
rm -f conftest.$ac_objext conftest$ac_exeext
 
7759
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7760
  (eval $ac_link) 2>&5
 
7761
  ac_status=$?
 
7762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7763
  (exit $ac_status); } &&
 
7764
         { ac_try='test -s conftest$ac_exeext'
 
7765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7766
  (eval $ac_try) 2>&5
 
7767
  ac_status=$?
 
7768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7769
  (exit $ac_status); }; }; then
 
7770
  ac_cv_lib_snmp_asn_parse_int=yes
 
7771
else
 
7772
  echo "$as_me: failed program was:" >&5
 
7773
sed 's/^/| /' conftest.$ac_ext >&5
 
7774
 
 
7775
ac_cv_lib_snmp_asn_parse_int=no
 
7776
fi
 
7777
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7778
LIBS=$ac_check_lib_save_LIBS
 
7779
fi
 
7780
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
 
7781
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
 
7782
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
 
7783
  HAVE_SNMP=yes
 
7784
fi
 
7785
 
 
7786
    if test "${HAVE_SNMP}" = ""; then
 
7787
      unset ac_cv_lib_snmp_asn_parse_int
 
7788
      echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
 
7789
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
 
7790
if test "${ac_cv_lib_crypto_main+set}" = set; then
 
7791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7792
else
 
7793
  ac_check_lib_save_LIBS=$LIBS
 
7794
LIBS="-lcrypto  $LIBS"
 
7795
cat >conftest.$ac_ext <<_ACEOF
 
7796
#line $LINENO "configure"
 
7797
/* confdefs.h.  */
 
7798
_ACEOF
 
7799
cat confdefs.h >>conftest.$ac_ext
 
7800
cat >>conftest.$ac_ext <<_ACEOF
 
7801
/* end confdefs.h.  */
 
7802
 
 
7803
 
 
7804
int
 
7805
main ()
 
7806
{
 
7807
main ();
 
7808
  ;
 
7809
  return 0;
 
7810
}
 
7811
_ACEOF
 
7812
rm -f conftest.$ac_objext conftest$ac_exeext
 
7813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7814
  (eval $ac_link) 2>&5
 
7815
  ac_status=$?
 
7816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7817
  (exit $ac_status); } &&
 
7818
         { ac_try='test -s conftest$ac_exeext'
 
7819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7820
  (eval $ac_try) 2>&5
 
7821
  ac_status=$?
 
7822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7823
  (exit $ac_status); }; }; then
 
7824
  ac_cv_lib_crypto_main=yes
 
7825
else
 
7826
  echo "$as_me: failed program was:" >&5
 
7827
sed 's/^/| /' conftest.$ac_ext >&5
 
7828
 
 
7829
ac_cv_lib_crypto_main=no
 
7830
fi
 
7831
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7832
LIBS=$ac_check_lib_save_LIBS
 
7833
fi
 
7834
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
 
7835
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
 
7836
if test $ac_cv_lib_crypto_main = yes; then
 
7837
  NEED_CRYPTO=yes
 
7838
fi
 
7839
 
 
7840
      if test "${NEED_CRYPTO}" = "yes"; then
 
7841
        echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
 
7842
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
 
7843
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
 
7844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7845
else
 
7846
  ac_check_lib_save_LIBS=$LIBS
 
7847
LIBS="-lsnmp "-lcrypto" $LIBS"
 
7848
cat >conftest.$ac_ext <<_ACEOF
 
7849
#line $LINENO "configure"
 
7850
/* confdefs.h.  */
 
7851
_ACEOF
 
7852
cat confdefs.h >>conftest.$ac_ext
 
7853
cat >>conftest.$ac_ext <<_ACEOF
 
7854
/* end confdefs.h.  */
 
7855
 
 
7856
/* Override any gcc2 internal prototype to avoid an error.  */
 
7857
#ifdef __cplusplus
 
7858
extern "C"
 
7859
#endif
 
7860
/* We use char because int might match the return type of a gcc2
 
7861
   builtin and then its argument prototype would still apply.  */
 
7862
char asn_parse_int ();
 
7863
int
 
7864
main ()
 
7865
{
 
7866
asn_parse_int ();
 
7867
  ;
 
7868
  return 0;
 
7869
}
 
7870
_ACEOF
 
7871
rm -f conftest.$ac_objext conftest$ac_exeext
 
7872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7873
  (eval $ac_link) 2>&5
 
7874
  ac_status=$?
 
7875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7876
  (exit $ac_status); } &&
 
7877
         { ac_try='test -s conftest$ac_exeext'
 
7878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7879
  (eval $ac_try) 2>&5
 
7880
  ac_status=$?
 
7881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7882
  (exit $ac_status); }; }; then
 
7883
  ac_cv_lib_snmp_asn_parse_int=yes
 
7884
else
 
7885
  echo "$as_me: failed program was:" >&5
 
7886
sed 's/^/| /' conftest.$ac_ext >&5
 
7887
 
 
7888
ac_cv_lib_snmp_asn_parse_int=no
 
7889
fi
 
7890
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7891
LIBS=$ac_check_lib_save_LIBS
 
7892
fi
 
7893
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
 
7894
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
 
7895
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
 
7896
  HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
 
7897
fi
 
7898
 
 
7899
      fi
 
7900
    fi
 
7901
    LIBS="${old_libs}"
 
7902
  fi
 
7903
 
 
7904
  if test "${HAVE_SNMP}" = ""; then
 
7905
    old_libs="${LIBS}"
 
7906
    LIBS="-L/usr/local/lib"
 
7907
    unset ac_cv_lib_snmp_asn_parse_int
 
7908
    echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
 
7909
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
 
7910
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
 
7911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7912
else
 
7913
  ac_check_lib_save_LIBS=$LIBS
 
7914
LIBS="-lsnmp  $LIBS"
 
7915
cat >conftest.$ac_ext <<_ACEOF
 
7916
#line $LINENO "configure"
 
7917
/* confdefs.h.  */
 
7918
_ACEOF
 
7919
cat confdefs.h >>conftest.$ac_ext
 
7920
cat >>conftest.$ac_ext <<_ACEOF
 
7921
/* end confdefs.h.  */
 
7922
 
 
7923
/* Override any gcc2 internal prototype to avoid an error.  */
 
7924
#ifdef __cplusplus
 
7925
extern "C"
 
7926
#endif
 
7927
/* We use char because int might match the return type of a gcc2
 
7928
   builtin and then its argument prototype would still apply.  */
 
7929
char asn_parse_int ();
 
7930
int
 
7931
main ()
 
7932
{
 
7933
asn_parse_int ();
 
7934
  ;
 
7935
  return 0;
 
7936
}
 
7937
_ACEOF
 
7938
rm -f conftest.$ac_objext conftest$ac_exeext
 
7939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7940
  (eval $ac_link) 2>&5
 
7941
  ac_status=$?
 
7942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7943
  (exit $ac_status); } &&
 
7944
         { ac_try='test -s conftest$ac_exeext'
 
7945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7946
  (eval $ac_try) 2>&5
 
7947
  ac_status=$?
 
7948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7949
  (exit $ac_status); }; }; then
 
7950
  ac_cv_lib_snmp_asn_parse_int=yes
 
7951
else
 
7952
  echo "$as_me: failed program was:" >&5
 
7953
sed 's/^/| /' conftest.$ac_ext >&5
 
7954
 
 
7955
ac_cv_lib_snmp_asn_parse_int=no
 
7956
fi
 
7957
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7958
LIBS=$ac_check_lib_save_LIBS
 
7959
fi
 
7960
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
 
7961
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
 
7962
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
 
7963
  HAVE_SNMP=yes
 
7964
fi
 
7965
 
 
7966
    if test "${HAVE_SNMP}" = ""; then
 
7967
      unset ac_cv_lib_snmp_asn_parse_int
 
7968
      echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
 
7969
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
 
7970
if test "${ac_cv_lib_crypto_main+set}" = set; then
 
7971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7972
else
 
7973
  ac_check_lib_save_LIBS=$LIBS
 
7974
LIBS="-lcrypto  $LIBS"
 
7975
cat >conftest.$ac_ext <<_ACEOF
 
7976
#line $LINENO "configure"
 
7977
/* confdefs.h.  */
 
7978
_ACEOF
 
7979
cat confdefs.h >>conftest.$ac_ext
 
7980
cat >>conftest.$ac_ext <<_ACEOF
 
7981
/* end confdefs.h.  */
 
7982
 
 
7983
 
 
7984
int
 
7985
main ()
 
7986
{
 
7987
main ();
 
7988
  ;
 
7989
  return 0;
 
7990
}
 
7991
_ACEOF
 
7992
rm -f conftest.$ac_objext conftest$ac_exeext
 
7993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7994
  (eval $ac_link) 2>&5
 
7995
  ac_status=$?
 
7996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7997
  (exit $ac_status); } &&
 
7998
         { ac_try='test -s conftest$ac_exeext'
 
7999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8000
  (eval $ac_try) 2>&5
 
8001
  ac_status=$?
 
8002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8003
  (exit $ac_status); }; }; then
 
8004
  ac_cv_lib_crypto_main=yes
 
8005
else
 
8006
  echo "$as_me: failed program was:" >&5
 
8007
sed 's/^/| /' conftest.$ac_ext >&5
 
8008
 
 
8009
ac_cv_lib_crypto_main=no
 
8010
fi
 
8011
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8012
LIBS=$ac_check_lib_save_LIBS
 
8013
fi
 
8014
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
 
8015
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
 
8016
if test $ac_cv_lib_crypto_main = yes; then
 
8017
  NEED_CRYPTO=yes
 
8018
fi
 
8019
 
 
8020
      if test "${NEED_CRYPTO}" = "yes"; then
 
8021
        echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
 
8022
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
 
8023
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
 
8024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8025
else
 
8026
  ac_check_lib_save_LIBS=$LIBS
 
8027
LIBS="-lsnmp "-lcrypto" $LIBS"
 
8028
cat >conftest.$ac_ext <<_ACEOF
 
8029
#line $LINENO "configure"
 
8030
/* confdefs.h.  */
 
8031
_ACEOF
 
8032
cat confdefs.h >>conftest.$ac_ext
 
8033
cat >>conftest.$ac_ext <<_ACEOF
 
8034
/* end confdefs.h.  */
 
8035
 
 
8036
/* Override any gcc2 internal prototype to avoid an error.  */
 
8037
#ifdef __cplusplus
 
8038
extern "C"
 
8039
#endif
 
8040
/* We use char because int might match the return type of a gcc2
 
8041
   builtin and then its argument prototype would still apply.  */
 
8042
char asn_parse_int ();
 
8043
int
 
8044
main ()
 
8045
{
 
8046
asn_parse_int ();
 
8047
  ;
 
8048
  return 0;
 
8049
}
 
8050
_ACEOF
 
8051
rm -f conftest.$ac_objext conftest$ac_exeext
 
8052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8053
  (eval $ac_link) 2>&5
 
8054
  ac_status=$?
 
8055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8056
  (exit $ac_status); } &&
 
8057
         { ac_try='test -s conftest$ac_exeext'
 
8058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8059
  (eval $ac_try) 2>&5
 
8060
  ac_status=$?
 
8061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8062
  (exit $ac_status); }; }; then
 
8063
  ac_cv_lib_snmp_asn_parse_int=yes
 
8064
else
 
8065
  echo "$as_me: failed program was:" >&5
 
8066
sed 's/^/| /' conftest.$ac_ext >&5
 
8067
 
 
8068
ac_cv_lib_snmp_asn_parse_int=no
 
8069
fi
 
8070
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8071
LIBS=$ac_check_lib_save_LIBS
 
8072
fi
 
8073
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
 
8074
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
 
8075
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
 
8076
  HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
 
8077
fi
 
8078
 
 
8079
      fi
 
8080
    fi
 
8081
    LIBS="${old_libs}"
 
8082
  fi
 
8083
 
 
8084
  if test "${HAVE_SNMP}" = "yes"; then
 
8085
    for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
 
8086
    do
 
8087
      test -f "${ac_snmp}" && break
 
8088
    done
 
8089
 
 
8090
    case ${ac_snmp} in
 
8091
      /usr/include/net-snmp/*)
 
8092
 
 
8093
cat >>confdefs.h <<\_ACEOF
 
8094
#define HAVE_SNMP
 
8095
_ACEOF
 
8096
 
 
8097
 
 
8098
cat >>confdefs.h <<\_ACEOF
 
8099
#define HAVE_NETSNMP
 
8100
_ACEOF
 
8101
 
 
8102
 
 
8103
cat >>confdefs.h <<\_ACEOF
 
8104
#define UCD_COMPATIBLE
 
8105
_ACEOF
 
8106
 
 
8107
                  CFLAGS="${CFLAGS} -I/usr/include/net-snmp -I/usr/include/net-snmp/library"
 
8108
                  if test "${HAVE_NETSNMP}" = "yes"; then
 
8109
                        LIBS="${LIBS} -lnetsnmp"
 
8110
                  else
 
8111
                        LIBS="${LIBS} -lsnmp"
 
8112
                  fi
 
8113
                  ;;
 
8114
      /usr/include/ucd-snmp/*)
 
8115
 
 
8116
cat >>confdefs.h <<\_ACEOF
 
8117
#define HAVE_SNMP
 
8118
_ACEOF
 
8119
 
 
8120
                  CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
 
8121
                  LIBS="${LIBS} -lsnmp"
 
8122
                  ;;
 
8123
      /usr/local/include/ucd-snmp/*)
 
8124
 
 
8125
cat >>confdefs.h <<\_ACEOF
 
8126
#define HAVE_SNMP
 
8127
_ACEOF
 
8128
 
 
8129
                  CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp"
 
8130
                  LIBS="${LIBS} -L/usr/local/lib -lsnmp"
 
8131
                  ;;
 
8132
      /usr/local/include/net-snmp/*)
 
8133
 
 
8134
cat >>confdefs.h <<\_ACEOF
 
8135
#define HAVE_SNMP
 
8136
_ACEOF
 
8137
 
 
8138
 
 
8139
cat >>confdefs.h <<\_ACEOF
 
8140
#define HAVE_NET_SNMP
 
8141
_ACEOF
 
8142
 
 
8143
 
 
8144
cat >>confdefs.h <<\_ACEOF
 
8145
#define UCD_COMPATIBLE
 
8146
_ACEOF
 
8147
 
 
8148
                CFLAGS="${CFLAGS} -I/usr/local/include/net-snmp"
 
8149
                LIBS="${LIBS} -L/usr/local/lib -lnetsnmp"
 
8150
                ;;
 
8151
    esac
 
8152
    if test "${NEED_CRYPTO}" = "yes"; then
 
8153
      LIBS="${LIBS} -lcrypto"
 
8154
    fi
 
8155
  fi
 
8156
fi
 
8157
 
 
8158
echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
 
8159
echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
 
8160
cat >conftest.$ac_ext <<_ACEOF
 
8161
#line $LINENO "configure"
 
8162
/* confdefs.h.  */
 
8163
_ACEOF
 
8164
cat confdefs.h >>conftest.$ac_ext
 
8165
cat >>conftest.$ac_ext <<_ACEOF
 
8166
/* end confdefs.h.  */
 
8167
#include <sys/types.h>
 
8168
#include <sys/socket.h>
 
8169
 
 
8170
int
 
8171
main ()
 
8172
{
 
8173
static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
 
8174
  ;
 
8175
  return 0;
 
8176
}
 
8177
_ACEOF
 
8178
rm -f conftest.$ac_objext
 
8179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8180
  (eval $ac_compile) 2>&5
 
8181
  ac_status=$?
 
8182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8183
  (exit $ac_status); } &&
 
8184
         { ac_try='test -s conftest.$ac_objext'
 
8185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8186
  (eval $ac_try) 2>&5
 
8187
  ac_status=$?
 
8188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8189
  (exit $ac_status); }; }; then
 
8190
  echo "$as_me:$LINENO: result: yes" >&5
 
8191
echo "${ECHO_T}yes" >&6
 
8192
 
 
8193
cat >>confdefs.h <<\_ACEOF
 
8194
#define HAVE_SA_LEN
 
8195
_ACEOF
 
8196
 
 
8197
else
 
8198
  echo "$as_me: failed program was:" >&5
 
8199
sed 's/^/| /' conftest.$ac_ext >&5
 
8200
 
 
8201
echo "$as_me:$LINENO: result: no" >&5
 
8202
echo "${ECHO_T}no" >&6
 
8203
fi
 
8204
rm -f conftest.$ac_objext conftest.$ac_ext
 
8205
 
 
8206
echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
 
8207
echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
 
8208
cat >conftest.$ac_ext <<_ACEOF
 
8209
#line $LINENO "configure"
 
8210
/* confdefs.h.  */
 
8211
_ACEOF
 
8212
cat confdefs.h >>conftest.$ac_ext
 
8213
cat >>conftest.$ac_ext <<_ACEOF
 
8214
/* end confdefs.h.  */
 
8215
#include <sys/types.h>
 
8216
#include <netinet/in.h>
 
8217
 
 
8218
int
 
8219
main ()
 
8220
{
 
8221
static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
 
8222
  ;
 
8223
  return 0;
 
8224
}
 
8225
_ACEOF
 
8226
rm -f conftest.$ac_objext
 
8227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8228
  (eval $ac_compile) 2>&5
 
8229
  ac_status=$?
 
8230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8231
  (exit $ac_status); } &&
 
8232
         { ac_try='test -s conftest.$ac_objext'
 
8233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8234
  (eval $ac_try) 2>&5
 
8235
  ac_status=$?
 
8236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8237
  (exit $ac_status); }; }; then
 
8238
  echo "$as_me:$LINENO: result: yes" >&5
 
8239
echo "${ECHO_T}yes" >&6
 
8240
 
 
8241
cat >>confdefs.h <<\_ACEOF
 
8242
#define HAVE_SIN_LEN
 
8243
_ACEOF
 
8244
 
 
8245
else
 
8246
  echo "$as_me: failed program was:" >&5
 
8247
sed 's/^/| /' conftest.$ac_ext >&5
 
8248
 
 
8249
echo "$as_me:$LINENO: result: no" >&5
 
8250
echo "${ECHO_T}no" >&6
 
8251
fi
 
8252
rm -f conftest.$ac_objext conftest.$ac_ext
 
8253
 
 
8254
echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
 
8255
echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
 
8256
cat >conftest.$ac_ext <<_ACEOF
 
8257
#line $LINENO "configure"
 
8258
/* confdefs.h.  */
 
8259
_ACEOF
 
8260
cat confdefs.h >>conftest.$ac_ext
 
8261
cat >>conftest.$ac_ext <<_ACEOF
 
8262
/* end confdefs.h.  */
 
8263
#include <sys/types.h>
 
8264
#include <sys/un.h>
 
8265
 
 
8266
int
 
8267
main ()
 
8268
{
 
8269
static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
 
8270
  ;
 
8271
  return 0;
 
8272
}
 
8273
_ACEOF
 
8274
rm -f conftest.$ac_objext
 
8275
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8276
  (eval $ac_compile) 2>&5
 
8277
  ac_status=$?
 
8278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8279
  (exit $ac_status); } &&
 
8280
         { ac_try='test -s conftest.$ac_objext'
 
8281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8282
  (eval $ac_try) 2>&5
 
8283
  ac_status=$?
 
8284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8285
  (exit $ac_status); }; }; then
 
8286
  echo "$as_me:$LINENO: result: yes" >&5
 
8287
echo "${ECHO_T}yes" >&6
 
8288
 
 
8289
cat >>confdefs.h <<\_ACEOF
 
8290
#define HAVE_SUN_LEN
 
8291
_ACEOF
 
8292
 
 
8293
else
 
8294
  echo "$as_me: failed program was:" >&5
 
8295
sed 's/^/| /' conftest.$ac_ext >&5
 
8296
 
 
8297
echo "$as_me:$LINENO: result: no" >&5
 
8298
echo "${ECHO_T}no" >&6
 
8299
fi
 
8300
rm -f conftest.$ac_objext conftest.$ac_ext
 
8301
 
 
8302
if test "$zebra_cv_ipv6" = yes; then
 
8303
  echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
 
8304
echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
 
8305
  cat >conftest.$ac_ext <<_ACEOF
 
8306
#line $LINENO "configure"
 
8307
/* confdefs.h.  */
 
8308
_ACEOF
 
8309
cat confdefs.h >>conftest.$ac_ext
 
8310
cat >>conftest.$ac_ext <<_ACEOF
 
8311
/* end confdefs.h.  */
 
8312
#include <sys/types.h>
 
8313
#include <netinet/in.h>
 
8314
 
 
8315
int
 
8316
main ()
 
8317
{
 
8318
static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
 
8319
  ;
 
8320
  return 0;
 
8321
}
 
8322
_ACEOF
 
8323
rm -f conftest.$ac_objext
 
8324
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8325
  (eval $ac_compile) 2>&5
 
8326
  ac_status=$?
 
8327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8328
  (exit $ac_status); } &&
 
8329
         { ac_try='test -s conftest.$ac_objext'
 
8330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8331
  (eval $ac_try) 2>&5
 
8332
  ac_status=$?
 
8333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8334
  (exit $ac_status); }; }; then
 
8335
  echo "$as_me:$LINENO: result: yes" >&5
 
8336
echo "${ECHO_T}yes" >&6
 
8337
 
 
8338
cat >>confdefs.h <<\_ACEOF
 
8339
#define HAVE_SIN6_SCOPE_ID
 
8340
_ACEOF
 
8341
 
 
8342
else
 
8343
  echo "$as_me: failed program was:" >&5
 
8344
sed 's/^/| /' conftest.$ac_ext >&5
 
8345
 
 
8346
echo "$as_me:$LINENO: result: no" >&5
 
8347
echo "${ECHO_T}no" >&6
 
8348
fi
 
8349
rm -f conftest.$ac_objext conftest.$ac_ext
 
8350
fi
 
8351
 
 
8352
echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
 
8353
echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
 
8354
cat >conftest.$ac_ext <<_ACEOF
 
8355
#line $LINENO "configure"
 
8356
/* confdefs.h.  */
 
8357
_ACEOF
 
8358
cat confdefs.h >>conftest.$ac_ext
 
8359
cat >>conftest.$ac_ext <<_ACEOF
 
8360
/* end confdefs.h.  */
 
8361
#include <sys/types.h>
 
8362
#include <sys/socket.h>
 
8363
#include <netinet/in.h>
 
8364
 
 
8365
int
 
8366
main ()
 
8367
{
 
8368
socklen_t ac_x;
 
8369
  ;
 
8370
  return 0;
 
8371
}
 
8372
_ACEOF
 
8373
rm -f conftest.$ac_objext
 
8374
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8375
  (eval $ac_compile) 2>&5
 
8376
  ac_status=$?
 
8377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8378
  (exit $ac_status); } &&
 
8379
         { ac_try='test -s conftest.$ac_objext'
 
8380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8381
  (eval $ac_try) 2>&5
 
8382
  ac_status=$?
 
8383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8384
  (exit $ac_status); }; }; then
 
8385
  echo "$as_me:$LINENO: result: yes" >&5
 
8386
echo "${ECHO_T}yes" >&6
 
8387
 
 
8388
cat >>confdefs.h <<\_ACEOF
 
8389
#define HAVE_SOCKLEN_T
 
8390
_ACEOF
 
8391
 
 
8392
else
 
8393
  echo "$as_me: failed program was:" >&5
 
8394
sed 's/^/| /' conftest.$ac_ext >&5
 
8395
 
 
8396
echo "$as_me:$LINENO: result: no" >&5
 
8397
echo "${ECHO_T}no" >&6
 
8398
fi
 
8399
rm -f conftest.$ac_objext conftest.$ac_ext
 
8400
 
 
8401
echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
 
8402
echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
 
8403
cat >conftest.$ac_ext <<_ACEOF
 
8404
#line $LINENO "configure"
 
8405
/* confdefs.h.  */
 
8406
_ACEOF
 
8407
cat confdefs.h >>conftest.$ac_ext
 
8408
cat >>conftest.$ac_ext <<_ACEOF
 
8409
/* end confdefs.h.  */
 
8410
#include <net/if_dl.h>
 
8411
 
 
8412
_ACEOF
 
8413
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8414
  $EGREP "sockaddr_dl" >/dev/null 2>&1; then
 
8415
  echo "$as_me:$LINENO: result: yes" >&5
 
8416
echo "${ECHO_T}yes" >&6
 
8417
 
 
8418
cat >>confdefs.h <<\_ACEOF
 
8419
#define HAVE_SOCKADDR_DL
 
8420
_ACEOF
 
8421
 
 
8422
else
 
8423
  echo "$as_me:$LINENO: result: no" >&5
 
8424
echo "${ECHO_T}no" >&6
 
8425
fi
 
8426
rm -f conftest*
 
8427
 
 
8428
 
 
8429
echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
 
8430
echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
 
8431
cat >conftest.$ac_ext <<_ACEOF
 
8432
#line $LINENO "configure"
 
8433
/* confdefs.h.  */
 
8434
_ACEOF
 
8435
cat confdefs.h >>conftest.$ac_ext
 
8436
cat >>conftest.$ac_ext <<_ACEOF
 
8437
/* end confdefs.h.  */
 
8438
#include <net/if.h>
 
8439
 
 
8440
_ACEOF
 
8441
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8442
  $EGREP "ifaliasreq" >/dev/null 2>&1; then
 
8443
  echo "$as_me:$LINENO: result: yes" >&5
 
8444
echo "${ECHO_T}yes" >&6
 
8445
 
 
8446
cat >>confdefs.h <<\_ACEOF
 
8447
#define HAVE_IFALIASREQ
 
8448
_ACEOF
 
8449
 
 
8450
else
 
8451
  echo "$as_me:$LINENO: result: no" >&5
 
8452
echo "${ECHO_T}no" >&6
 
8453
fi
 
8454
rm -f conftest*
 
8455
 
 
8456
 
 
8457
echo "$as_me:$LINENO: checking whether struct in6_aliasreq exist" >&5
 
8458
echo $ECHO_N "checking whether struct in6_aliasreq exist... $ECHO_C" >&6
 
8459
cat >conftest.$ac_ext <<_ACEOF
 
8460
#line $LINENO "configure"
 
8461
/* confdefs.h.  */
 
8462
_ACEOF
 
8463
cat confdefs.h >>conftest.$ac_ext
 
8464
cat >>conftest.$ac_ext <<_ACEOF
 
8465
/* end confdefs.h.  */
 
8466
#include <netinet6/in6_var.h>
 
8467
 
 
8468
_ACEOF
 
8469
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8470
  $EGREP "in6_aliasreq" >/dev/null 2>&1; then
 
8471
  echo "$as_me:$LINENO: result: yes" >&5
 
8472
echo "${ECHO_T}yes" >&6
 
8473
 
 
8474
cat >>confdefs.h <<\_ACEOF
 
8475
#define HAVE_IN6_ALIASREQ
 
8476
_ACEOF
 
8477
 
 
8478
else
 
8479
  echo "$as_me:$LINENO: result: no" >&5
 
8480
echo "${ECHO_T}no" >&6
 
8481
fi
 
8482
rm -f conftest*
 
8483
 
 
8484
 
 
8485
echo "$as_me:$LINENO: checking whether in6_aliasreq.ifra_lifetime exist" >&5
 
8486
echo $ECHO_N "checking whether in6_aliasreq.ifra_lifetime exist... $ECHO_C" >&6
 
8487
cat >conftest.$ac_ext <<_ACEOF
 
8488
#line $LINENO "configure"
 
8489
/* confdefs.h.  */
 
8490
_ACEOF
 
8491
cat confdefs.h >>conftest.$ac_ext
 
8492
cat >>conftest.$ac_ext <<_ACEOF
 
8493
/* end confdefs.h.  */
 
8494
#include <sys/types.h>
 
8495
#include <netinet6/in6_var.h>
 
8496
 
 
8497
int
 
8498
main ()
 
8499
{
 
8500
static struct if6_aliasreq ac_i;int ac_j = sizeof (ac_i.ifra_lifetime);
 
8501
  ;
 
8502
  return 0;
 
8503
}
 
8504
_ACEOF
 
8505
rm -f conftest.$ac_objext
 
8506
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8507
  (eval $ac_compile) 2>&5
 
8508
  ac_status=$?
 
8509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8510
  (exit $ac_status); } &&
 
8511
         { ac_try='test -s conftest.$ac_objext'
 
8512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8513
  (eval $ac_try) 2>&5
 
8514
  ac_status=$?
 
8515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8516
  (exit $ac_status); }; }; then
 
8517
  echo "$as_me:$LINENO: result: yes" >&5
 
8518
echo "${ECHO_T}yes" >&6
 
8519
 
 
8520
cat >>confdefs.h <<\_ACEOF
 
8521
#define HAVE_IFRA_LIFETIME
 
8522
_ACEOF
 
8523
 
 
8524
else
 
8525
  echo "$as_me: failed program was:" >&5
 
8526
sed 's/^/| /' conftest.$ac_ext >&5
 
8527
 
 
8528
echo "$as_me:$LINENO: result: no" >&5
 
8529
echo "${ECHO_T}no" >&6
 
8530
fi
 
8531
rm -f conftest.$ac_objext conftest.$ac_ext
 
8532
 
 
8533
echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
 
8534
echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
 
8535
cat >conftest.$ac_ext <<_ACEOF
 
8536
#line $LINENO "configure"
 
8537
/* confdefs.h.  */
 
8538
_ACEOF
 
8539
cat confdefs.h >>conftest.$ac_ext
 
8540
cat >>conftest.$ac_ext <<_ACEOF
 
8541
/* end confdefs.h.  */
 
8542
#include <net/route.h>
 
8543
 
 
8544
_ACEOF
 
8545
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8546
  $EGREP "rt_addrinfo" >/dev/null 2>&1; then
 
8547
  echo "$as_me:$LINENO: result: yes" >&5
 
8548
echo "${ECHO_T}yes" >&6
 
8549
 
 
8550
cat >>confdefs.h <<\_ACEOF
 
8551
#define HAVE_RT_ADDRINFO
 
8552
_ACEOF
 
8553
 
 
8554
else
 
8555
  echo "$as_me:$LINENO: result: no" >&5
 
8556
echo "${ECHO_T}no" >&6
 
8557
fi
 
8558
rm -f conftest*
 
8559
 
 
8560
 
 
8561
echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
 
8562
echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
 
8563
cat >conftest.$ac_ext <<_ACEOF
 
8564
#line $LINENO "configure"
 
8565
/* confdefs.h.  */
 
8566
_ACEOF
 
8567
cat confdefs.h >>conftest.$ac_ext
 
8568
cat >>conftest.$ac_ext <<_ACEOF
 
8569
/* end confdefs.h.  */
 
8570
#include <netinet/in.h>
 
8571
 
 
8572
int
 
8573
main ()
 
8574
{
 
8575
struct in_pktinfo ac_x;
 
8576
  ;
 
8577
  return 0;
 
8578
}
 
8579
_ACEOF
 
8580
rm -f conftest.$ac_objext
 
8581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8582
  (eval $ac_compile) 2>&5
 
8583
  ac_status=$?
 
8584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8585
  (exit $ac_status); } &&
 
8586
         { ac_try='test -s conftest.$ac_objext'
 
8587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8588
  (eval $ac_try) 2>&5
 
8589
  ac_status=$?
 
8590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8591
  (exit $ac_status); }; }; then
 
8592
  echo "$as_me:$LINENO: result: yes" >&5
 
8593
echo "${ECHO_T}yes" >&6
 
8594
 
 
8595
cat >>confdefs.h <<\_ACEOF
 
8596
#define HAVE_INPKTINFO
 
8597
_ACEOF
 
8598
 
 
8599
else
 
8600
  echo "$as_me: failed program was:" >&5
 
8601
sed 's/^/| /' conftest.$ac_ext >&5
 
8602
 
 
8603
echo "$as_me:$LINENO: result: no" >&5
 
8604
echo "${ECHO_T}no" >&6
 
8605
fi
 
8606
rm -f conftest.$ac_objext conftest.$ac_ext
 
8607
 
 
8608
echo "$as_me:$LINENO: checking whether getrusage is available" >&5
 
8609
echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
 
8610
cat >conftest.$ac_ext <<_ACEOF
 
8611
#line $LINENO "configure"
 
8612
/* confdefs.h.  */
 
8613
_ACEOF
 
8614
cat confdefs.h >>conftest.$ac_ext
 
8615
cat >>conftest.$ac_ext <<_ACEOF
 
8616
/* end confdefs.h.  */
 
8617
#include <sys/resource.h>
 
8618
 
 
8619
int
 
8620
main ()
 
8621
{
 
8622
struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
 
8623
  ;
 
8624
  return 0;
 
8625
}
 
8626
_ACEOF
 
8627
rm -f conftest.$ac_objext
 
8628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8629
  (eval $ac_compile) 2>&5
 
8630
  ac_status=$?
 
8631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8632
  (exit $ac_status); } &&
 
8633
         { ac_try='test -s conftest.$ac_objext'
 
8634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8635
  (eval $ac_try) 2>&5
 
8636
  ac_status=$?
 
8637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8638
  (exit $ac_status); }; }; then
 
8639
  echo "$as_me:$LINENO: result: yes" >&5
 
8640
echo "${ECHO_T}yes" >&6
 
8641
 
 
8642
cat >>confdefs.h <<\_ACEOF
 
8643
#define HAVE_RUSAGE
 
8644
_ACEOF
 
8645
 
 
8646
else
 
8647
  echo "$as_me: failed program was:" >&5
 
8648
sed 's/^/| /' conftest.$ac_ext >&5
 
8649
 
 
8650
echo "$as_me:$LINENO: result: no" >&5
 
8651
echo "${ECHO_T}no" >&6
 
8652
fi
 
8653
rm -f conftest.$ac_objext conftest.$ac_ext
 
8654
 
 
8655
if test "${enable_capabilities}" != "no"; then
 
8656
  echo "$as_me:$LINENO: checking whether prctl PR_SET_KEEPCAPS is available" >&5
 
8657
echo $ECHO_N "checking whether prctl PR_SET_KEEPCAPS is available... $ECHO_C" >&6
 
8658
  cat >conftest.$ac_ext <<_ACEOF
 
8659
#line $LINENO "configure"
 
8660
/* confdefs.h.  */
 
8661
_ACEOF
 
8662
cat confdefs.h >>conftest.$ac_ext
 
8663
cat >>conftest.$ac_ext <<_ACEOF
 
8664
/* end confdefs.h.  */
 
8665
#include <sys/prctl.h>
 
8666
int
 
8667
main ()
 
8668
{
 
8669
prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
 
8670
  ;
 
8671
  return 0;
 
8672
}
 
8673
_ACEOF
 
8674
rm -f conftest.$ac_objext
 
8675
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8676
  (eval $ac_compile) 2>&5
 
8677
  ac_status=$?
 
8678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8679
  (exit $ac_status); } &&
 
8680
         { ac_try='test -s conftest.$ac_objext'
 
8681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8682
  (eval $ac_try) 2>&5
 
8683
  ac_status=$?
 
8684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8685
  (exit $ac_status); }; }; then
 
8686
  echo "$as_me:$LINENO: result: yes" >&5
 
8687
echo "${ECHO_T}yes" >&6
 
8688
 
 
8689
cat >>confdefs.h <<\_ACEOF
 
8690
#define HAVE_PR_SET_KEEPCAPS
 
8691
_ACEOF
 
8692
 
 
8693
     quagga_ac_keepcaps="yes"
 
8694
else
 
8695
  echo "$as_me: failed program was:" >&5
 
8696
sed 's/^/| /' conftest.$ac_ext >&5
 
8697
 
 
8698
echo "$as_me:$LINENO: result: no" >&5
 
8699
echo "${ECHO_T}no" >&6
 
8700
 
 
8701
fi
 
8702
rm -f conftest.$ac_objext conftest.$ac_ext
 
8703
  if test x"${quagga_ac_keepcaps}" = x"yes"; then
 
8704
 
 
8705
for ac_header in sys/capability.h
 
8706
do
 
8707
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8708
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8709
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8710
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8711
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8713
fi
 
8714
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8715
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8716
else
 
8717
  # Is the header compilable?
 
8718
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8719
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8720
cat >conftest.$ac_ext <<_ACEOF
 
8721
#line $LINENO "configure"
 
8722
/* confdefs.h.  */
 
8723
_ACEOF
 
8724
cat confdefs.h >>conftest.$ac_ext
 
8725
cat >>conftest.$ac_ext <<_ACEOF
 
8726
/* end confdefs.h.  */
 
8727
$ac_includes_default
 
8728
#include <$ac_header>
 
8729
_ACEOF
 
8730
rm -f conftest.$ac_objext
 
8731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8732
  (eval $ac_compile) 2>&5
 
8733
  ac_status=$?
 
8734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8735
  (exit $ac_status); } &&
 
8736
         { ac_try='test -s conftest.$ac_objext'
 
8737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8738
  (eval $ac_try) 2>&5
 
8739
  ac_status=$?
 
8740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8741
  (exit $ac_status); }; }; then
 
8742
  ac_header_compiler=yes
 
8743
else
 
8744
  echo "$as_me: failed program was:" >&5
 
8745
sed 's/^/| /' conftest.$ac_ext >&5
 
8746
 
 
8747
ac_header_compiler=no
 
8748
fi
 
8749
rm -f conftest.$ac_objext conftest.$ac_ext
 
8750
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8751
echo "${ECHO_T}$ac_header_compiler" >&6
 
8752
 
 
8753
# Is the header present?
 
8754
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8755
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8756
cat >conftest.$ac_ext <<_ACEOF
 
8757
#line $LINENO "configure"
 
8758
/* confdefs.h.  */
 
8759
_ACEOF
 
8760
cat confdefs.h >>conftest.$ac_ext
 
8761
cat >>conftest.$ac_ext <<_ACEOF
 
8762
/* end confdefs.h.  */
 
8763
#include <$ac_header>
 
8764
_ACEOF
 
8765
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8766
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8767
  ac_status=$?
 
8768
  grep -v '^ *+' conftest.er1 >conftest.err
 
8769
  rm -f conftest.er1
 
8770
  cat conftest.err >&5
 
8771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8772
  (exit $ac_status); } >/dev/null; then
 
8773
  if test -s conftest.err; then
 
8774
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8775
  else
 
8776
    ac_cpp_err=
 
8777
  fi
 
8778
else
 
8779
  ac_cpp_err=yes
 
8780
fi
 
8781
if test -z "$ac_cpp_err"; then
 
8782
  ac_header_preproc=yes
 
8783
else
 
8784
  echo "$as_me: failed program was:" >&5
 
8785
sed 's/^/| /' conftest.$ac_ext >&5
 
8786
 
 
8787
  ac_header_preproc=no
 
8788
fi
 
8789
rm -f conftest.err conftest.$ac_ext
 
8790
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8791
echo "${ECHO_T}$ac_header_preproc" >&6
 
8792
 
 
8793
# So?  What about this header?
 
8794
case $ac_header_compiler:$ac_header_preproc in
 
8795
  yes:no )
 
8796
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8797
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8798
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8799
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8800
    (
 
8801
      cat <<\_ASBOX
 
8802
## ------------------------------------ ##
 
8803
## Report this to bug-autoconf@gnu.org. ##
 
8804
## ------------------------------------ ##
 
8805
_ASBOX
 
8806
    ) |
 
8807
      sed "s/^/$as_me: WARNING:     /" >&2
 
8808
    ;;
 
8809
  no:yes )
 
8810
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8811
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8812
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
8813
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
8814
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8815
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8816
    (
 
8817
      cat <<\_ASBOX
 
8818
## ------------------------------------ ##
 
8819
## Report this to bug-autoconf@gnu.org. ##
 
8820
## ------------------------------------ ##
 
8821
_ASBOX
 
8822
    ) |
 
8823
      sed "s/^/$as_me: WARNING:     /" >&2
 
8824
    ;;
 
8825
esac
 
8826
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8827
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8828
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8830
else
 
8831
  eval "$as_ac_Header=$ac_header_preproc"
 
8832
fi
 
8833
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8834
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8835
 
 
8836
fi
 
8837
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8838
  cat >>confdefs.h <<_ACEOF
 
8839
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8840
_ACEOF
 
8841
 
 
8842
fi
 
8843
 
 
8844
done
 
8845
 
 
8846
  fi
 
8847
  if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
 
8848
    echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
 
8849
echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6
 
8850
if test "${ac_cv_lib_cap_cap_init+set}" = set; then
 
8851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8852
else
 
8853
  ac_check_lib_save_LIBS=$LIBS
 
8854
LIBS="-lcap  $LIBS"
 
8855
cat >conftest.$ac_ext <<_ACEOF
 
8856
#line $LINENO "configure"
 
8857
/* confdefs.h.  */
 
8858
_ACEOF
 
8859
cat confdefs.h >>conftest.$ac_ext
 
8860
cat >>conftest.$ac_ext <<_ACEOF
 
8861
/* end confdefs.h.  */
 
8862
 
 
8863
/* Override any gcc2 internal prototype to avoid an error.  */
 
8864
#ifdef __cplusplus
 
8865
extern "C"
 
8866
#endif
 
8867
/* We use char because int might match the return type of a gcc2
 
8868
   builtin and then its argument prototype would still apply.  */
 
8869
char cap_init ();
 
8870
int
 
8871
main ()
 
8872
{
 
8873
cap_init ();
 
8874
  ;
 
8875
  return 0;
 
8876
}
 
8877
_ACEOF
 
8878
rm -f conftest.$ac_objext conftest$ac_exeext
 
8879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8880
  (eval $ac_link) 2>&5
 
8881
  ac_status=$?
 
8882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8883
  (exit $ac_status); } &&
 
8884
         { ac_try='test -s conftest$ac_exeext'
 
8885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8886
  (eval $ac_try) 2>&5
 
8887
  ac_status=$?
 
8888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8889
  (exit $ac_status); }; }; then
 
8890
  ac_cv_lib_cap_cap_init=yes
 
8891
else
 
8892
  echo "$as_me: failed program was:" >&5
 
8893
sed 's/^/| /' conftest.$ac_ext >&5
 
8894
 
 
8895
ac_cv_lib_cap_cap_init=no
 
8896
fi
 
8897
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8898
LIBS=$ac_check_lib_save_LIBS
 
8899
fi
 
8900
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
 
8901
echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6
 
8902
if test $ac_cv_lib_cap_cap_init = yes; then
 
8903
 
 
8904
cat >>confdefs.h <<\_ACEOF
 
8905
#define HAVE_LCAPS 1
 
8906
_ACEOF
 
8907
 
 
8908
       LIBCAP="-lcap"
 
8909
 
 
8910
 
 
8911
fi
 
8912
 
 
8913
  fi
 
8914
fi
 
8915
 
 
8916
 
 
8917
if test "${glibc}" = "yes"; then
 
8918
   if test "${ac_cv_header_execinfo_h+set}" = set; then
 
8919
  echo "$as_me:$LINENO: checking for execinfo.h" >&5
 
8920
echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
 
8921
if test "${ac_cv_header_execinfo_h+set}" = set; then
 
8922
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8923
fi
 
8924
echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
 
8925
echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
 
8926
else
 
8927
  # Is the header compilable?
 
8928
echo "$as_me:$LINENO: checking execinfo.h usability" >&5
 
8929
echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6
 
8930
cat >conftest.$ac_ext <<_ACEOF
 
8931
#line $LINENO "configure"
 
8932
/* confdefs.h.  */
 
8933
_ACEOF
 
8934
cat confdefs.h >>conftest.$ac_ext
 
8935
cat >>conftest.$ac_ext <<_ACEOF
 
8936
/* end confdefs.h.  */
 
8937
$ac_includes_default
 
8938
#include <execinfo.h>
 
8939
_ACEOF
 
8940
rm -f conftest.$ac_objext
 
8941
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8942
  (eval $ac_compile) 2>&5
 
8943
  ac_status=$?
 
8944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8945
  (exit $ac_status); } &&
 
8946
         { ac_try='test -s conftest.$ac_objext'
 
8947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8948
  (eval $ac_try) 2>&5
 
8949
  ac_status=$?
 
8950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8951
  (exit $ac_status); }; }; then
 
8952
  ac_header_compiler=yes
 
8953
else
 
8954
  echo "$as_me: failed program was:" >&5
 
8955
sed 's/^/| /' conftest.$ac_ext >&5
 
8956
 
 
8957
ac_header_compiler=no
 
8958
fi
 
8959
rm -f conftest.$ac_objext conftest.$ac_ext
 
8960
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8961
echo "${ECHO_T}$ac_header_compiler" >&6
 
8962
 
 
8963
# Is the header present?
 
8964
echo "$as_me:$LINENO: checking execinfo.h presence" >&5
 
8965
echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6
 
8966
cat >conftest.$ac_ext <<_ACEOF
 
8967
#line $LINENO "configure"
 
8968
/* confdefs.h.  */
 
8969
_ACEOF
 
8970
cat confdefs.h >>conftest.$ac_ext
 
8971
cat >>conftest.$ac_ext <<_ACEOF
 
8972
/* end confdefs.h.  */
 
8973
#include <execinfo.h>
 
8974
_ACEOF
 
8975
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8976
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8977
  ac_status=$?
 
8978
  grep -v '^ *+' conftest.er1 >conftest.err
 
8979
  rm -f conftest.er1
 
8980
  cat conftest.err >&5
 
8981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8982
  (exit $ac_status); } >/dev/null; then
 
8983
  if test -s conftest.err; then
 
8984
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8985
  else
 
8986
    ac_cpp_err=
 
8987
  fi
 
8988
else
 
8989
  ac_cpp_err=yes
 
8990
fi
 
8991
if test -z "$ac_cpp_err"; then
 
8992
  ac_header_preproc=yes
 
8993
else
 
8994
  echo "$as_me: failed program was:" >&5
 
8995
sed 's/^/| /' conftest.$ac_ext >&5
 
8996
 
 
8997
  ac_header_preproc=no
 
8998
fi
 
8999
rm -f conftest.err conftest.$ac_ext
 
9000
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9001
echo "${ECHO_T}$ac_header_preproc" >&6
 
9002
 
 
9003
# So?  What about this header?
 
9004
case $ac_header_compiler:$ac_header_preproc in
 
9005
  yes:no )
 
9006
    { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
9007
echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9008
    { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
 
9009
echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
 
9010
    (
 
9011
      cat <<\_ASBOX
 
9012
## ------------------------------------ ##
 
9013
## Report this to bug-autoconf@gnu.org. ##
 
9014
## ------------------------------------ ##
 
9015
_ASBOX
 
9016
    ) |
 
9017
      sed "s/^/$as_me: WARNING:     /" >&2
 
9018
    ;;
 
9019
  no:yes )
 
9020
    { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
 
9021
echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
 
9022
    { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
 
9023
echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
 
9024
    { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
 
9025
echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
 
9026
    (
 
9027
      cat <<\_ASBOX
 
9028
## ------------------------------------ ##
 
9029
## Report this to bug-autoconf@gnu.org. ##
 
9030
## ------------------------------------ ##
 
9031
_ASBOX
 
9032
    ) |
 
9033
      sed "s/^/$as_me: WARNING:     /" >&2
 
9034
    ;;
 
9035
esac
 
9036
echo "$as_me:$LINENO: checking for execinfo.h" >&5
 
9037
echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
 
9038
if test "${ac_cv_header_execinfo_h+set}" = set; then
 
9039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9040
else
 
9041
  ac_cv_header_execinfo_h=$ac_header_preproc
 
9042
fi
 
9043
echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
 
9044
echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
 
9045
 
 
9046
fi
 
9047
 
 
9048
 
 
9049
fi
 
9050
if test x"${ac_cv_header_execinfo_h}" = x"yes"; then
 
9051
  echo "$as_me:$LINENO: checking for backtrace" >&5
 
9052
echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
 
9053
if test "${ac_cv_func_backtrace+set}" = set; then
 
9054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9055
else
 
9056
  cat >conftest.$ac_ext <<_ACEOF
 
9057
#line $LINENO "configure"
 
9058
/* confdefs.h.  */
 
9059
_ACEOF
 
9060
cat confdefs.h >>conftest.$ac_ext
 
9061
cat >>conftest.$ac_ext <<_ACEOF
 
9062
/* end confdefs.h.  */
 
9063
/* System header to define __stub macros and hopefully few prototypes,
 
9064
    which can conflict with char backtrace (); below.
 
9065
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9066
    <limits.h> exists even on freestanding compilers.  */
 
9067
#ifdef __STDC__
 
9068
# include <limits.h>
 
9069
#else
 
9070
# include <assert.h>
 
9071
#endif
 
9072
/* Override any gcc2 internal prototype to avoid an error.  */
 
9073
#ifdef __cplusplus
 
9074
extern "C"
 
9075
{
 
9076
#endif
 
9077
/* We use char because int might match the return type of a gcc2
 
9078
   builtin and then its argument prototype would still apply.  */
 
9079
char backtrace ();
 
9080
/* The GNU C library defines this for functions which it implements
 
9081
    to always fail with ENOSYS.  Some functions are actually named
 
9082
    something starting with __ and the normal name is an alias.  */
 
9083
#if defined (__stub_backtrace) || defined (__stub___backtrace)
 
9084
choke me
 
9085
#else
 
9086
char (*f) () = backtrace;
 
9087
#endif
 
9088
#ifdef __cplusplus
 
9089
}
 
9090
#endif
 
9091
 
 
9092
int
 
9093
main ()
 
9094
{
 
9095
return f != backtrace;
 
9096
  ;
 
9097
  return 0;
 
9098
}
 
9099
_ACEOF
 
9100
rm -f conftest.$ac_objext conftest$ac_exeext
 
9101
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9102
  (eval $ac_link) 2>&5
 
9103
  ac_status=$?
 
9104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9105
  (exit $ac_status); } &&
 
9106
         { ac_try='test -s conftest$ac_exeext'
 
9107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9108
  (eval $ac_try) 2>&5
 
9109
  ac_status=$?
 
9110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9111
  (exit $ac_status); }; }; then
 
9112
  ac_cv_func_backtrace=yes
 
9113
else
 
9114
  echo "$as_me: failed program was:" >&5
 
9115
sed 's/^/| /' conftest.$ac_ext >&5
 
9116
 
 
9117
ac_cv_func_backtrace=no
 
9118
fi
 
9119
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9120
fi
 
9121
echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
 
9122
echo "${ECHO_T}$ac_cv_func_backtrace" >&6
 
9123
if test $ac_cv_func_backtrace = yes; then
 
9124
 
 
9125
cat >>confdefs.h <<\_ACEOF
 
9126
#define HAVE_GLIBC_BACKTRACE
 
9127
_ACEOF
 
9128
 
 
9129
 
 
9130
fi
 
9131
 
 
9132
fi
 
9133
 
 
9134
CONFDATE=`date '+%Y%m%d'`
 
9135
 
 
9136
 
 
9137
if test "${prefix}" = "NONE"; then
 
9138
  quagga_statedir_prefix="";
 
9139
else
 
9140
  quagga_statedir_prefix=${prefix}
 
9141
fi
 
9142
if test "${localstatedir}" = '${prefix}/var'; then
 
9143
  echo "$as_me:$LINENO: checking state directory" >&5
 
9144
echo $ECHO_N "checking state directory... $ECHO_C" >&6
 
9145
if test "${ac_statedir+set}" = set; then
 
9146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9147
else
 
9148
  for QUAGGA_STATE_DIR in ${quagga_statedir_prefix}/var/run                     ${quagga_statedir_prefix}/var/adm                       ${quagga_statedir_prefix}/etc                   /var/run                                /var/adm                                /etc                                    /dev/null;
 
9149
  do
 
9150
    test -d $QUAGGA_STATE_DIR && break
 
9151
  done
 
9152
  quagga_statedir=$QUAGGA_STATE_DIR
 
9153
fi
 
9154
echo "$as_me:$LINENO: result: $ac_statedir" >&5
 
9155
echo "${ECHO_T}$ac_statedir" >&6
 
9156
else
 
9157
  quagga_statedir=${localstatedir}
 
9158
  echo "$as_me:$LINENO: checking directory to use for state file" >&5
 
9159
echo $ECHO_N "checking directory to use for state file... $ECHO_C" >&6
 
9160
  echo "$as_me:$LINENO: result: ${quagga_statedir}" >&5
 
9161
echo "${ECHO_T}${quagga_statedir}" >&6
 
9162
fi
 
9163
if test $quagga_statedir = "/dev/null"; then
 
9164
    { { echo "$as_me:$LINENO: error: 'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" >&5
 
9165
echo "$as_me: error: 'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" >&2;}
 
9166
   { (exit 1); exit 1; }; }
 
9167
fi
 
9168
 
 
9169
 
 
9170
cat >>confdefs.h <<_ACEOF
 
9171
#define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
 
9172
_ACEOF
 
9173
 
 
9174
 
 
9175
cat >>confdefs.h <<_ACEOF
 
9176
#define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
 
9177
_ACEOF
 
9178
 
 
9179
 
 
9180
cat >>confdefs.h <<_ACEOF
 
9181
#define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
 
9182
_ACEOF
 
9183
 
 
9184
 
 
9185
cat >>confdefs.h <<_ACEOF
 
9186
#define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
 
9187
_ACEOF
 
9188
 
 
9189
 
 
9190
cat >>confdefs.h <<_ACEOF
 
9191
#define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
 
9192
_ACEOF
 
9193
 
 
9194
 
 
9195
cat >>confdefs.h <<_ACEOF
 
9196
#define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
 
9197
_ACEOF
 
9198
 
 
9199
 
 
9200
cat >>confdefs.h <<_ACEOF
 
9201
#define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
 
9202
_ACEOF
 
9203
 
 
9204
 
 
9205
cat >>confdefs.h <<_ACEOF
 
9206
#define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
 
9207
_ACEOF
 
9208
 
 
9209
 
 
9210
cat >>confdefs.h <<_ACEOF
 
9211
#define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
 
9212
_ACEOF
 
9213
 
 
9214
 
 
9215
cat >>confdefs.h <<_ACEOF
 
9216
#define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
 
9217
_ACEOF
 
9218
 
 
9219
 
 
9220
cat >>confdefs.h <<_ACEOF
 
9221
#define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
 
9222
_ACEOF
 
9223
 
 
9224
 
 
9225
cat >>confdefs.h <<_ACEOF
 
9226
#define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
 
9227
_ACEOF
 
9228
 
 
9229
 
 
9230
cat >>confdefs.h <<_ACEOF
 
9231
#define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
 
9232
_ACEOF
 
9233
 
 
9234
 
 
9235
cat >>confdefs.h <<_ACEOF
 
9236
#define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
 
9237
_ACEOF
 
9238
 
 
9239
 
 
9240
cat >>confdefs.h <<_ACEOF
 
9241
#define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
 
9242
_ACEOF
 
9243
 
 
9244
 
 
9245
echo "$as_me:$LINENO: checking for working htonl" >&5
 
9246
echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
 
9247
if test "${ac_cv_htonl_works+set}" = set; then
 
9248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9249
else
 
9250
 
 
9251
cat >conftest.$ac_ext <<_ACEOF
 
9252
#line $LINENO "configure"
 
9253
/* confdefs.h.  */
 
9254
_ACEOF
 
9255
cat confdefs.h >>conftest.$ac_ext
 
9256
cat >>conftest.$ac_ext <<_ACEOF
 
9257
/* end confdefs.h.  */
 
9258
#ifdef HAVE_SYS_TYPES_H
 
9259
#include <sys/types.h>
 
9260
#endif
 
9261
#ifdef HAVE_NETDB_H
 
9262
#include <netdb.h>
 
9263
#endif
 
9264
#ifdef HAVE_NETINET_IN_H
 
9265
#include <netinet/in.h>
 
9266
#endif
 
9267
int
 
9268
main ()
 
9269
{
 
9270
htonl (0);
 
9271
  ;
 
9272
  return 0;
 
9273
}
 
9274
_ACEOF
 
9275
rm -f conftest.$ac_objext conftest$ac_exeext
 
9276
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9277
  (eval $ac_link) 2>&5
 
9278
  ac_status=$?
 
9279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9280
  (exit $ac_status); } &&
 
9281
         { ac_try='test -s conftest$ac_exeext'
 
9282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9283
  (eval $ac_try) 2>&5
 
9284
  ac_status=$?
 
9285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9286
  (exit $ac_status); }; }; then
 
9287
  ac_cv_htonl_works=yes
 
9288
else
 
9289
  echo "$as_me: failed program was:" >&5
 
9290
sed 's/^/| /' conftest.$ac_ext >&5
 
9291
 
 
9292
ac_cv_htonl_works=no
 
9293
fi
 
9294
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9295
fi
 
9296
 
 
9297
echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
 
9298
echo "${ECHO_T}$ac_cv_htonl_works" >&6
 
9299
 
 
9300
                                                                                                                                                      ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile isisd/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile redhat/Makefile redhat/quagga.spec lib/version.h"
 
9301
cat >confcache <<\_ACEOF
 
9302
# This file is a shell script that caches the results of configure
 
9303
# tests run on this system so they can be shared between configure
 
9304
# scripts and configure runs, see configure's option --config-cache.
 
9305
# It is not useful on other systems.  If it contains results you don't
 
9306
# want to keep, you may remove or edit it.
 
9307
#
 
9308
# config.status only pays attention to the cache file if you give it
 
9309
# the --recheck option to rerun configure.
 
9310
#
 
9311
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
9312
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
9313
# following values.
 
9314
 
 
9315
_ACEOF
 
9316
 
 
9317
# The following way of writing the cache mishandles newlines in values,
 
9318
# but we know of no workaround that is simple, portable, and efficient.
 
9319
# So, don't put newlines in cache variables' values.
 
9320
# Ultrix sh set writes to stderr and can't be redirected directly,
 
9321
# and sets the high bit in the cache file unless we assign to the vars.
 
9322
{
 
9323
  (set) 2>&1 |
 
9324
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
9325
    *ac_space=\ *)
 
9326
      # `set' does not quote correctly, so add quotes (double-quote
 
9327
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
9328
      sed -n \
 
9329
        "s/'/'\\\\''/g;
 
9330
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
9331
      ;;
 
9332
    *)
 
9333
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
9334
      sed -n \
 
9335
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
9336
      ;;
 
9337
    esac;
 
9338
} |
 
9339
  sed '
 
9340
     t clear
 
9341
     : clear
 
9342
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
9343
     t end
 
9344
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
9345
     : end' >>confcache
 
9346
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
9347
  if test -w $cache_file; then
 
9348
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
9349
    cat confcache >$cache_file
 
9350
  else
 
9351
    echo "not updating unwritable cache $cache_file"
 
9352
  fi
 
9353
fi
 
9354
rm -f confcache
 
9355
 
 
9356
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
9357
# Let make expand exec_prefix.
 
9358
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
9359
 
 
9360
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
9361
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
9362
# trailing colons and then remove the whole line if VPATH becomes empty
 
9363
# (actually we leave an empty line to preserve line numbers).
 
9364
if test "x$srcdir" = x.; then
 
9365
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
9366
s/:*\$(srcdir):*/:/;
 
9367
s/:*\${srcdir}:*/:/;
 
9368
s/:*@srcdir@:*/:/;
 
9369
s/^\([^=]*=[    ]*\):*/\1/;
 
9370
s/:*$//;
 
9371
s/^[^=]*=[      ]*$//;
 
9372
}'
 
9373
fi
 
9374
 
 
9375
DEFS=-DHAVE_CONFIG_H
 
9376
 
 
9377
ac_libobjs=
 
9378
ac_ltlibobjs=
 
9379
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
9380
  # 1. Remove the extension, and $U if already installed.
 
9381
  ac_i=`echo "$ac_i" |
 
9382
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
9383
  # 2. Add them.
 
9384
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
9385
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
9386
done
 
9387
LIBOBJS=$ac_libobjs
 
9388
 
 
9389
LTLIBOBJS=$ac_ltlibobjs
 
9390
 
 
9391
 
 
9392
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
9393
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
9394
Usually this means the macro was only invoked conditionally." >&5
 
9395
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
9396
Usually this means the macro was only invoked conditionally." >&2;}
 
9397
   { (exit 1); exit 1; }; }
 
9398
fi
 
9399
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
9400
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
9401
Usually this means the macro was only invoked conditionally." >&5
 
9402
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
9403
Usually this means the macro was only invoked conditionally." >&2;}
 
9404
   { (exit 1); exit 1; }; }
 
9405
fi
 
9406
 
 
9407
: ${CONFIG_STATUS=./config.status}
 
9408
ac_clean_files_save=$ac_clean_files
 
9409
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
9410
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
9411
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
9412
cat >$CONFIG_STATUS <<_ACEOF
 
9413
#! $SHELL
 
9414
# Generated by $as_me.
 
9415
# Run this file to recreate the current configuration.
 
9416
# Compiler output produced by configure, useful for debugging
 
9417
# configure, is in config.log if it exists.
 
9418
 
 
9419
debug=false
 
9420
ac_cs_recheck=false
 
9421
ac_cs_silent=false
 
9422
SHELL=\${CONFIG_SHELL-$SHELL}
 
9423
_ACEOF
 
9424
 
 
9425
cat >>$CONFIG_STATUS <<\_ACEOF
 
9426
## --------------------- ##
 
9427
## M4sh Initialization.  ##
 
9428
## --------------------- ##
 
9429
 
 
9430
# Be Bourne compatible
 
9431
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
9432
  emulate sh
 
9433
  NULLCMD=:
 
9434
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
9435
  # is contrary to our usage.  Disable this feature.
 
9436
  alias -g '${1+"$@"}'='"$@"'
 
9437
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
9438
  set -o posix
 
9439
fi
 
9440
 
 
9441
# Support unset when possible.
 
9442
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
9443
  as_unset=unset
 
9444
else
 
9445
  as_unset=false
 
9446
fi
 
9447
 
 
9448
 
 
9449
# Work around bugs in pre-3.0 UWIN ksh.
 
9450
$as_unset ENV MAIL MAILPATH
 
9451
PS1='$ '
 
9452
PS2='> '
 
9453
PS4='+ '
 
9454
 
 
9455
# NLS nuisances.
 
9456
for as_var in \
 
9457
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
9458
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
9459
  LC_TELEPHONE LC_TIME
 
9460
do
 
9461
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
9462
    eval $as_var=C; export $as_var
 
9463
  else
 
9464
    $as_unset $as_var
 
9465
  fi
 
9466
done
 
9467
 
 
9468
# Required to use basename.
 
9469
if expr a : '\(a\)' >/dev/null 2>&1; then
 
9470
  as_expr=expr
 
9471
else
 
9472
  as_expr=false
 
9473
fi
 
9474
 
 
9475
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
9476
  as_basename=basename
 
9477
else
 
9478
  as_basename=false
 
9479
fi
 
9480
 
 
9481
 
 
9482
# Name of the executable.
 
9483
as_me=`$as_basename "$0" ||
 
9484
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
9485
         X"$0" : 'X\(//\)$' \| \
 
9486
         X"$0" : 'X\(/\)$' \| \
 
9487
         .     : '\(.\)' 2>/dev/null ||
 
9488
echo X/"$0" |
 
9489
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
9490
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
9491
          /^X\/\(\/\).*/{ s//\1/; q; }
 
9492
          s/.*/./; q'`
 
9493
 
 
9494
 
 
9495
# PATH needs CR, and LINENO needs CR and PATH.
 
9496
# Avoid depending upon Character Ranges.
 
9497
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
9498
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
9499
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
9500
as_cr_digits='0123456789'
 
9501
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
9502
 
 
9503
# The user is always right.
 
9504
if test "${PATH_SEPARATOR+set}" != set; then
 
9505
  echo "#! /bin/sh" >conf$$.sh
 
9506
  echo  "exit 0"   >>conf$$.sh
 
9507
  chmod +x conf$$.sh
 
9508
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
9509
    PATH_SEPARATOR=';'
 
9510
  else
 
9511
    PATH_SEPARATOR=:
 
9512
  fi
 
9513
  rm -f conf$$.sh
 
9514
fi
 
9515
 
 
9516
 
 
9517
  as_lineno_1=$LINENO
 
9518
  as_lineno_2=$LINENO
 
9519
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
9520
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
9521
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
9522
  # Find who we are.  Look in the path if we contain no path at all
 
9523
  # relative or not.
 
9524
  case $0 in
 
9525
    *[\\/]* ) as_myself=$0 ;;
 
9526
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9527
for as_dir in $PATH
 
9528
do
 
9529
  IFS=$as_save_IFS
 
9530
  test -z "$as_dir" && as_dir=.
 
9531
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
9532
done
 
9533
 
 
9534
       ;;
 
9535
  esac
 
9536
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
9537
  # in which case we are not to be found in the path.
 
9538
  if test "x$as_myself" = x; then
 
9539
    as_myself=$0
 
9540
  fi
 
9541
  if test ! -f "$as_myself"; then
 
9542
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
9543
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
9544
   { (exit 1); exit 1; }; }
 
9545
  fi
 
9546
  case $CONFIG_SHELL in
 
9547
  '')
 
9548
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9549
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
9550
do
 
9551
  IFS=$as_save_IFS
 
9552
  test -z "$as_dir" && as_dir=.
 
9553
  for as_base in sh bash ksh sh5; do
 
9554
         case $as_dir in
 
9555
         /*)
 
9556
           if ("$as_dir/$as_base" -c '
 
9557
  as_lineno_1=$LINENO
 
9558
  as_lineno_2=$LINENO
 
9559
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
9560
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
9561
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
9562
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
9563
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
9564
             CONFIG_SHELL=$as_dir/$as_base
 
9565
             export CONFIG_SHELL
 
9566
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
9567
           fi;;
 
9568
         esac
 
9569
       done
 
9570
done
 
9571
;;
 
9572
  esac
 
9573
 
 
9574
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
9575
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
9576
  # line-number line before each line; the second 'sed' does the real
 
9577
  # work.  The second script uses 'N' to pair each line-number line
 
9578
  # with the numbered line, and appends trailing '-' during
 
9579
  # substitution so that $LINENO is not a special case at line end.
 
9580
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
9581
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
9582
  sed '=' <$as_myself |
 
9583
    sed '
 
9584
      N
 
9585
      s,$,-,
 
9586
      : loop
 
9587
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
9588
      t loop
 
9589
      s,-$,,
 
9590
      s,^['$as_cr_digits']*\n,,
 
9591
    ' >$as_me.lineno &&
 
9592
  chmod +x $as_me.lineno ||
 
9593
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
9594
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
9595
   { (exit 1); exit 1; }; }
 
9596
 
 
9597
  # Don't try to exec as it changes $[0], causing all sort of problems
 
9598
  # (the dirname of $[0] is not the place where we might find the
 
9599
  # original and so on.  Autoconf is especially sensible to this).
 
9600
  . ./$as_me.lineno
 
9601
  # Exit status is that of the last command.
 
9602
  exit
 
9603
}
 
9604
 
 
9605
 
 
9606
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
9607
  *c*,-n*) ECHO_N= ECHO_C='
 
9608
' ECHO_T='      ' ;;
 
9609
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
9610
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
9611
esac
 
9612
 
 
9613
if expr a : '\(a\)' >/dev/null 2>&1; then
 
9614
  as_expr=expr
 
9615
else
 
9616
  as_expr=false
 
9617
fi
 
9618
 
 
9619
rm -f conf$$ conf$$.exe conf$$.file
 
9620
echo >conf$$.file
 
9621
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
9622
  # We could just check for DJGPP; but this test a) works b) is more generic
 
9623
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
9624
  if test -f conf$$.exe; then
 
9625
    # Don't use ln at all; we don't have any links
 
9626
    as_ln_s='cp -p'
 
9627
  else
 
9628
    as_ln_s='ln -s'
 
9629
  fi
 
9630
elif ln conf$$.file conf$$ 2>/dev/null; then
 
9631
  as_ln_s=ln
 
9632
else
 
9633
  as_ln_s='cp -p'
 
9634
fi
 
9635
rm -f conf$$ conf$$.exe conf$$.file
 
9636
 
 
9637
if mkdir -p . 2>/dev/null; then
 
9638
  as_mkdir_p=:
 
9639
else
 
9640
  as_mkdir_p=false
 
9641
fi
 
9642
 
 
9643
as_executable_p="test -f"
 
9644
 
 
9645
# Sed expression to map a string onto a valid CPP name.
 
9646
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
9647
 
 
9648
# Sed expression to map a string onto a valid variable name.
 
9649
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
9650
 
 
9651
 
 
9652
# IFS
 
9653
# We need space, tab and new line, in precisely that order.
 
9654
as_nl='
 
9655
'
 
9656
IFS="   $as_nl"
 
9657
 
 
9658
# CDPATH.
 
9659
$as_unset CDPATH
 
9660
 
 
9661
exec 6>&1
 
9662
 
 
9663
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
9664
# report actual input values of CONFIG_FILES etc. instead of their
 
9665
# values after options handling.  Logging --version etc. is OK.
 
9666
exec 5>>config.log
 
9667
{
 
9668
  echo
 
9669
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
9670
## Running $as_me. ##
 
9671
_ASBOX
 
9672
} >&5
 
9673
cat >&5 <<_CSEOF
 
9674
 
 
9675
This file was extended by quagga $as_me 0.96.5, which was
 
9676
generated by GNU Autoconf 2.57.  Invocation command line was
 
9677
 
 
9678
  CONFIG_FILES    = $CONFIG_FILES
 
9679
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
9680
  CONFIG_LINKS    = $CONFIG_LINKS
 
9681
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
9682
  $ $0 $@
 
9683
 
 
9684
_CSEOF
 
9685
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
9686
echo >&5
 
9687
_ACEOF
 
9688
 
 
9689
# Files that config.status was made for.
 
9690
if test -n "$ac_config_files"; then
 
9691
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
9692
fi
 
9693
 
 
9694
if test -n "$ac_config_headers"; then
 
9695
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
9696
fi
 
9697
 
 
9698
if test -n "$ac_config_links"; then
 
9699
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
9700
fi
 
9701
 
 
9702
if test -n "$ac_config_commands"; then
 
9703
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
9704
fi
 
9705
 
 
9706
cat >>$CONFIG_STATUS <<\_ACEOF
 
9707
 
 
9708
ac_cs_usage="\
 
9709
\`$as_me' instantiates files from templates according to the
 
9710
current configuration.
 
9711
 
 
9712
Usage: $0 [OPTIONS] [FILE]...
 
9713
 
 
9714
  -h, --help       print this help, then exit
 
9715
  -V, --version    print version number, then exit
 
9716
  -q, --quiet      do not print progress messages
 
9717
  -d, --debug      don't remove temporary files
 
9718
      --recheck    update $as_me by reconfiguring in the same conditions
 
9719
  --file=FILE[:TEMPLATE]
 
9720
                   instantiate the configuration file FILE
 
9721
  --header=FILE[:TEMPLATE]
 
9722
                   instantiate the configuration header FILE
 
9723
 
 
9724
Configuration files:
 
9725
$config_files
 
9726
 
 
9727
Configuration headers:
 
9728
$config_headers
 
9729
 
 
9730
Configuration commands:
 
9731
$config_commands
 
9732
 
 
9733
Report bugs to <bug-autoconf@gnu.org>."
 
9734
_ACEOF
 
9735
 
 
9736
cat >>$CONFIG_STATUS <<_ACEOF
 
9737
ac_cs_version="\\
 
9738
quagga config.status 0.96.5
 
9739
configured by $0, generated by GNU Autoconf 2.57,
 
9740
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
9741
 
 
9742
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
9743
Free Software Foundation, Inc.
 
9744
This config.status script is free software; the Free Software Foundation
 
9745
gives unlimited permission to copy, distribute and modify it."
 
9746
srcdir=$srcdir
 
9747
INSTALL="$INSTALL"
 
9748
_ACEOF
 
9749
 
 
9750
cat >>$CONFIG_STATUS <<\_ACEOF
 
9751
# If no file are specified by the user, then we need to provide default
 
9752
# value.  By we need to know if files were specified by the user.
 
9753
ac_need_defaults=:
 
9754
while test $# != 0
 
9755
do
 
9756
  case $1 in
 
9757
  --*=*)
 
9758
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
9759
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
9760
    ac_shift=:
 
9761
    ;;
 
9762
  -*)
 
9763
    ac_option=$1
 
9764
    ac_optarg=$2
 
9765
    ac_shift=shift
 
9766
    ;;
 
9767
  *) # This is not an option, so the user has probably given explicit
 
9768
     # arguments.
 
9769
     ac_option=$1
 
9770
     ac_need_defaults=false;;
 
9771
  esac
 
9772
 
 
9773
  case $ac_option in
 
9774
  # Handling of the options.
 
9775
_ACEOF
 
9776
cat >>$CONFIG_STATUS <<\_ACEOF
 
9777
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
9778
    ac_cs_recheck=: ;;
 
9779
  --version | --vers* | -V )
 
9780
    echo "$ac_cs_version"; exit 0 ;;
 
9781
  --he | --h)
 
9782
    # Conflict between --help and --header
 
9783
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
9784
Try \`$0 --help' for more information." >&5
 
9785
echo "$as_me: error: ambiguous option: $1
 
9786
Try \`$0 --help' for more information." >&2;}
 
9787
   { (exit 1); exit 1; }; };;
 
9788
  --help | --hel | -h )
 
9789
    echo "$ac_cs_usage"; exit 0 ;;
 
9790
  --debug | --d* | -d )
 
9791
    debug=: ;;
 
9792
  --file | --fil | --fi | --f )
 
9793
    $ac_shift
 
9794
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
9795
    ac_need_defaults=false;;
 
9796
  --header | --heade | --head | --hea )
 
9797
    $ac_shift
 
9798
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
9799
    ac_need_defaults=false;;
 
9800
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
9801
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
9802
    ac_cs_silent=: ;;
 
9803
 
 
9804
  # This is an error.
 
9805
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
9806
Try \`$0 --help' for more information." >&5
 
9807
echo "$as_me: error: unrecognized option: $1
 
9808
Try \`$0 --help' for more information." >&2;}
 
9809
   { (exit 1); exit 1; }; } ;;
 
9810
 
 
9811
  *) ac_config_targets="$ac_config_targets $1" ;;
 
9812
 
 
9813
  esac
 
9814
  shift
 
9815
done
 
9816
 
 
9817
ac_configure_extra_args=
 
9818
 
 
9819
if $ac_cs_silent; then
 
9820
  exec 6>/dev/null
 
9821
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
9822
fi
 
9823
 
 
9824
_ACEOF
 
9825
cat >>$CONFIG_STATUS <<_ACEOF
 
9826
if \$ac_cs_recheck; then
 
9827
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
9828
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
9829
fi
 
9830
 
 
9831
_ACEOF
 
9832
 
 
9833
cat >>$CONFIG_STATUS <<_ACEOF
 
9834
#
 
9835
# INIT-COMMANDS section.
 
9836
#
 
9837
 
 
9838
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
9839
 
 
9840
_ACEOF
 
9841
 
 
9842
 
 
9843
 
 
9844
cat >>$CONFIG_STATUS <<\_ACEOF
 
9845
for ac_config_target in $ac_config_targets
 
9846
do
 
9847
  case "$ac_config_target" in
 
9848
  # Handling of arguments.
 
9849
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
9850
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
9851
  "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
 
9852
  "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
 
9853
  "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
 
9854
  "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
 
9855
  "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
 
9856
  "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
 
9857
  "isisd/Makefile" ) CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
 
9858
  "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
 
9859
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
9860
  "ospfclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
 
9861
  "redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
 
9862
  "redhat/quagga.spec" ) CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
 
9863
  "lib/version.h" ) CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
 
9864
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
9865
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
9866
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
9867
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
9868
   { (exit 1); exit 1; }; };;
 
9869
  esac
 
9870
done
 
9871
 
 
9872
# If the user did not use the arguments to specify the items to instantiate,
 
9873
# then the envvar interface is used.  Set only those that are not.
 
9874
# We use the long form for the default assignment because of an extremely
 
9875
# bizarre bug on SunOS 4.1.3.
 
9876
if $ac_need_defaults; then
 
9877
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
9878
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
9879
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
9880
fi
 
9881
 
 
9882
# Have a temporary directory for convenience.  Make it in the build tree
 
9883
# simply because there is no reason to put it here, and in addition,
 
9884
# creating and moving files from /tmp can sometimes cause problems.
 
9885
# Create a temporary directory, and hook for its removal unless debugging.
 
9886
$debug ||
 
9887
{
 
9888
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
9889
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
9890
}
 
9891
 
 
9892
# Create a (secure) tmp directory for tmp files.
 
9893
 
 
9894
{
 
9895
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
9896
  test -n "$tmp" && test -d "$tmp"
 
9897
}  ||
 
9898
{
 
9899
  tmp=./confstat$$-$RANDOM
 
9900
  (umask 077 && mkdir $tmp)
 
9901
} ||
 
9902
{
 
9903
   echo "$me: cannot create a temporary directory in ." >&2
 
9904
   { (exit 1); exit 1; }
 
9905
}
 
9906
 
 
9907
_ACEOF
 
9908
 
 
9909
cat >>$CONFIG_STATUS <<_ACEOF
 
9910
 
 
9911
#
 
9912
# CONFIG_FILES section.
 
9913
#
 
9914
 
 
9915
# No need to generate the scripts if there are no CONFIG_FILES.
 
9916
# This happens for instance when ./config.status config.h
 
9917
if test -n "\$CONFIG_FILES"; then
 
9918
  # Protect against being on the right side of a sed subst in config.status.
 
9919
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
9920
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
9921
s,@SHELL@,$SHELL,;t t
 
9922
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
9923
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
9924
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
9925
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
9926
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
9927
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
9928
s,@exec_prefix@,$exec_prefix,;t t
 
9929
s,@prefix@,$prefix,;t t
 
9930
s,@program_transform_name@,$program_transform_name,;t t
 
9931
s,@bindir@,$bindir,;t t
 
9932
s,@sbindir@,$sbindir,;t t
 
9933
s,@libexecdir@,$libexecdir,;t t
 
9934
s,@datadir@,$datadir,;t t
 
9935
s,@sysconfdir@,$sysconfdir,;t t
 
9936
s,@sharedstatedir@,$sharedstatedir,;t t
 
9937
s,@localstatedir@,$localstatedir,;t t
 
9938
s,@libdir@,$libdir,;t t
 
9939
s,@includedir@,$includedir,;t t
 
9940
s,@oldincludedir@,$oldincludedir,;t t
 
9941
s,@infodir@,$infodir,;t t
 
9942
s,@mandir@,$mandir,;t t
 
9943
s,@build_alias@,$build_alias,;t t
 
9944
s,@host_alias@,$host_alias,;t t
 
9945
s,@target_alias@,$target_alias,;t t
 
9946
s,@DEFS@,$DEFS,;t t
 
9947
s,@ECHO_C@,$ECHO_C,;t t
 
9948
s,@ECHO_N@,$ECHO_N,;t t
 
9949
s,@ECHO_T@,$ECHO_T,;t t
 
9950
s,@LIBS@,$LIBS,;t t
 
9951
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
9952
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
9953
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
9954
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
9955
s,@PACKAGE@,$PACKAGE,;t t
 
9956
s,@VERSION@,$VERSION,;t t
 
9957
s,@ACLOCAL@,$ACLOCAL,;t t
 
9958
s,@AUTOCONF@,$AUTOCONF,;t t
 
9959
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
9960
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
9961
s,@MAKEINFO@,$MAKEINFO,;t t
 
9962
s,@AMTAR@,$AMTAR,;t t
 
9963
s,@install_sh@,$install_sh,;t t
 
9964
s,@STRIP@,$STRIP,;t t
 
9965
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
9966
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
9967
s,@AWK@,$AWK,;t t
 
9968
s,@SET_MAKE@,$SET_MAKE,;t t
 
9969
s,@am__leading_dot@,$am__leading_dot,;t t
 
9970
s,@exampledir@,$exampledir,;t t
 
9971
s,@build@,$build,;t t
 
9972
s,@build_cpu@,$build_cpu,;t t
 
9973
s,@build_vendor@,$build_vendor,;t t
 
9974
s,@build_os@,$build_os,;t t
 
9975
s,@host@,$host,;t t
 
9976
s,@host_cpu@,$host_cpu,;t t
 
9977
s,@host_vendor@,$host_vendor,;t t
 
9978
s,@host_os@,$host_os,;t t
 
9979
s,@CC@,$CC,;t t
 
9980
s,@CFLAGS@,$CFLAGS,;t t
 
9981
s,@LDFLAGS@,$LDFLAGS,;t t
 
9982
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
9983
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
9984
s,@EXEEXT@,$EXEEXT,;t t
 
9985
s,@OBJEXT@,$OBJEXT,;t t
 
9986
s,@DEPDIR@,$DEPDIR,;t t
 
9987
s,@am__include@,$am__include,;t t
 
9988
s,@am__quote@,$am__quote,;t t
 
9989
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
9990
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
9991
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
9992
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
9993
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
9994
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
9995
s,@CPP@,$CPP,;t t
 
9996
s,@AR@,$AR,;t t
 
9997
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
9998
s,@RANLIB@,$RANLIB,;t t
 
9999
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
10000
s,@EGREP@,$EGREP,;t t
 
10001
s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
 
10002
s,@LIBPAM@,$LIBPAM,;t t
 
10003
s,@RT_METHOD@,$RT_METHOD,;t t
 
10004
s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
 
10005
s,@OTHER_METHOD@,$OTHER_METHOD,;t t
 
10006
s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
 
10007
s,@IF_METHOD@,$IF_METHOD,;t t
 
10008
s,@IF_PROC@,$IF_PROC,;t t
 
10009
s,@IPFORWARD@,$IPFORWARD,;t t
 
10010
s,@LIB_IPV6@,$LIB_IPV6,;t t
 
10011
s,@ZEBRA@,$ZEBRA,;t t
 
10012
s,@BGPD@,$BGPD,;t t
 
10013
s,@RIPD@,$RIPD,;t t
 
10014
s,@RIPNGD@,$RIPNGD,;t t
 
10015
s,@OSPFD@,$OSPFD,;t t
 
10016
s,@OSPF6D@,$OSPF6D,;t t
 
10017
s,@ISISD@,$ISISD,;t t
 
10018
s,@VTYSH@,$VTYSH,;t t
 
10019
s,@INCLUDES@,$INCLUDES,;t t
 
10020
s,@CURSES@,$CURSES,;t t
 
10021
s,@OSPFCLIENT@,$OSPFCLIENT,;t t
 
10022
s,@OSPFAPI@,$OSPFAPI,;t t
 
10023
s,@LIB_REGEX@,$LIB_REGEX,;t t
 
10024
s,@LIBCAP@,$LIBCAP,;t t
 
10025
s,@CONFDATE@,$CONFDATE,;t t
 
10026
s,@LIBOBJS@,$LIBOBJS,;t t
 
10027
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
10028
CEOF
 
10029
 
 
10030
_ACEOF
 
10031
 
 
10032
  cat >>$CONFIG_STATUS <<\_ACEOF
 
10033
  # Split the substitutions into bite-sized pieces for seds with
 
10034
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
10035
  ac_max_sed_lines=48
 
10036
  ac_sed_frag=1 # Number of current file.
 
10037
  ac_beg=1 # First line for current file.
 
10038
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
10039
  ac_more_lines=:
 
10040
  ac_sed_cmds=
 
10041
  while $ac_more_lines; do
 
10042
    if test $ac_beg -gt 1; then
 
10043
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10044
    else
 
10045
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10046
    fi
 
10047
    if test ! -s $tmp/subs.frag; then
 
10048
      ac_more_lines=false
 
10049
    else
 
10050
      # The purpose of the label and of the branching condition is to
 
10051
      # speed up the sed processing (if there are no `@' at all, there
 
10052
      # is no need to browse any of the substitutions).
 
10053
      # These are the two extra sed commands mentioned above.
 
10054
      (echo ':t
 
10055
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
10056
      if test -z "$ac_sed_cmds"; then
 
10057
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
10058
      else
 
10059
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
10060
      fi
 
10061
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
10062
      ac_beg=$ac_end
 
10063
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
10064
    fi
 
10065
  done
 
10066
  if test -z "$ac_sed_cmds"; then
 
10067
    ac_sed_cmds=cat
 
10068
  fi
 
10069
fi # test -n "$CONFIG_FILES"
 
10070
 
 
10071
_ACEOF
 
10072
cat >>$CONFIG_STATUS <<\_ACEOF
 
10073
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
10074
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10075
  case $ac_file in
 
10076
  - | *:- | *:-:* ) # input from stdin
 
10077
        cat >$tmp/stdin
 
10078
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10079
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10080
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10081
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10082
  * )   ac_file_in=$ac_file.in ;;
 
10083
  esac
 
10084
 
 
10085
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
10086
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10087
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10088
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10089
         X"$ac_file" : 'X\(//\)$' \| \
 
10090
         X"$ac_file" : 'X\(/\)' \| \
 
10091
         .     : '\(.\)' 2>/dev/null ||
 
10092
echo X"$ac_file" |
 
10093
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10094
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10095
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10096
          /^X\(\/\).*/{ s//\1/; q; }
 
10097
          s/.*/./; q'`
 
10098
  { if $as_mkdir_p; then
 
10099
    mkdir -p "$ac_dir"
 
10100
  else
 
10101
    as_dir="$ac_dir"
 
10102
    as_dirs=
 
10103
    while test ! -d "$as_dir"; do
 
10104
      as_dirs="$as_dir $as_dirs"
 
10105
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10106
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10107
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10108
         X"$as_dir" : 'X\(//\)$' \| \
 
10109
         X"$as_dir" : 'X\(/\)' \| \
 
10110
         .     : '\(.\)' 2>/dev/null ||
 
10111
echo X"$as_dir" |
 
10112
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10113
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10114
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10115
          /^X\(\/\).*/{ s//\1/; q; }
 
10116
          s/.*/./; q'`
 
10117
    done
 
10118
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10119
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10120
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10121
   { (exit 1); exit 1; }; }; }
 
10122
 
 
10123
  ac_builddir=.
 
10124
 
 
10125
if test "$ac_dir" != .; then
 
10126
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
10127
  # A "../" for each directory in $ac_dir_suffix.
 
10128
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
10129
else
 
10130
  ac_dir_suffix= ac_top_builddir=
 
10131
fi
 
10132
 
 
10133
case $srcdir in
 
10134
  .)  # No --srcdir option.  We are building in place.
 
10135
    ac_srcdir=.
 
10136
    if test -z "$ac_top_builddir"; then
 
10137
       ac_top_srcdir=.
 
10138
    else
 
10139
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
10140
    fi ;;
 
10141
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
10142
    ac_srcdir=$srcdir$ac_dir_suffix;
 
10143
    ac_top_srcdir=$srcdir ;;
 
10144
  *) # Relative path.
 
10145
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
10146
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
10147
esac
 
10148
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
10149
# absolute.
 
10150
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
10151
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
10152
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
10153
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
10154
 
 
10155
 
 
10156
  case $INSTALL in
 
10157
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
10158
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
10159
  esac
 
10160
 
 
10161
  if test x"$ac_file" != x-; then
 
10162
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
10163
echo "$as_me: creating $ac_file" >&6;}
 
10164
    rm -f "$ac_file"
 
10165
  fi
 
10166
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10167
  # use $as_me), people would be surprised to read:
 
10168
  #    /* config.h.  Generated by config.status.  */
 
10169
  if test x"$ac_file" = x-; then
 
10170
    configure_input=
 
10171
  else
 
10172
    configure_input="$ac_file.  "
 
10173
  fi
 
10174
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
10175
                                     sed 's,.*/,,'` by configure."
 
10176
 
 
10177
  # First look for the input files in the build tree, otherwise in the
 
10178
  # src tree.
 
10179
  ac_file_inputs=`IFS=:
 
10180
    for f in $ac_file_in; do
 
10181
      case $f in
 
10182
      -) echo $tmp/stdin ;;
 
10183
      [\\/$]*)
 
10184
         # Absolute (can't be DOS-style, as IFS=:)
 
10185
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10186
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10187
   { (exit 1); exit 1; }; }
 
10188
         echo $f;;
 
10189
      *) # Relative
 
10190
         if test -f "$f"; then
 
10191
           # Build tree
 
10192
           echo $f
 
10193
         elif test -f "$srcdir/$f"; then
 
10194
           # Source tree
 
10195
           echo $srcdir/$f
 
10196
         else
 
10197
           # /dev/null tree
 
10198
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10199
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10200
   { (exit 1); exit 1; }; }
 
10201
         fi;;
 
10202
      esac
 
10203
    done` || { (exit 1); exit 1; }
 
10204
_ACEOF
 
10205
cat >>$CONFIG_STATUS <<_ACEOF
 
10206
  sed "$ac_vpsub
 
10207
$extrasub
 
10208
_ACEOF
 
10209
cat >>$CONFIG_STATUS <<\_ACEOF
 
10210
:t
 
10211
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
10212
s,@configure_input@,$configure_input,;t t
 
10213
s,@srcdir@,$ac_srcdir,;t t
 
10214
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
10215
s,@top_srcdir@,$ac_top_srcdir,;t t
 
10216
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
10217
s,@builddir@,$ac_builddir,;t t
 
10218
s,@abs_builddir@,$ac_abs_builddir,;t t
 
10219
s,@top_builddir@,$ac_top_builddir,;t t
 
10220
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
10221
s,@INSTALL@,$ac_INSTALL,;t t
 
10222
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
10223
  rm -f $tmp/stdin
 
10224
  if test x"$ac_file" != x-; then
 
10225
    mv $tmp/out $ac_file
 
10226
  else
 
10227
    cat $tmp/out
 
10228
    rm -f $tmp/out
 
10229
  fi
 
10230
 
 
10231
done
 
10232
_ACEOF
 
10233
cat >>$CONFIG_STATUS <<\_ACEOF
 
10234
 
 
10235
#
 
10236
# CONFIG_HEADER section.
 
10237
#
 
10238
 
 
10239
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
10240
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
10241
#
 
10242
# ac_d sets the value in "#define NAME VALUE" lines.
 
10243
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
10244
ac_dB='[        ].*$,\1#\2'
 
10245
ac_dC=' '
 
10246
ac_dD=',;t'
 
10247
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
10248
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
10249
ac_uB='$,\1#\2define\3'
 
10250
ac_uC=' '
 
10251
ac_uD=',;t'
 
10252
 
 
10253
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
10254
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10255
  case $ac_file in
 
10256
  - | *:- | *:-:* ) # input from stdin
 
10257
        cat >$tmp/stdin
 
10258
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10259
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10260
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10261
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10262
  * )   ac_file_in=$ac_file.in ;;
 
10263
  esac
 
10264
 
 
10265
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
10266
echo "$as_me: creating $ac_file" >&6;}
 
10267
 
 
10268
  # First look for the input files in the build tree, otherwise in the
 
10269
  # src tree.
 
10270
  ac_file_inputs=`IFS=:
 
10271
    for f in $ac_file_in; do
 
10272
      case $f in
 
10273
      -) echo $tmp/stdin ;;
 
10274
      [\\/$]*)
 
10275
         # Absolute (can't be DOS-style, as IFS=:)
 
10276
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10277
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10278
   { (exit 1); exit 1; }; }
 
10279
         echo $f;;
 
10280
      *) # Relative
 
10281
         if test -f "$f"; then
 
10282
           # Build tree
 
10283
           echo $f
 
10284
         elif test -f "$srcdir/$f"; then
 
10285
           # Source tree
 
10286
           echo $srcdir/$f
 
10287
         else
 
10288
           # /dev/null tree
 
10289
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10290
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10291
   { (exit 1); exit 1; }; }
 
10292
         fi;;
 
10293
      esac
 
10294
    done` || { (exit 1); exit 1; }
 
10295
  # Remove the trailing spaces.
 
10296
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
10297
 
 
10298
_ACEOF
 
10299
 
 
10300
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
10301
# `conftest.undefs', that substitutes the proper values into
 
10302
# config.h.in to produce config.h.  The first handles `#define'
 
10303
# templates, and the second `#undef' templates.
 
10304
# And first: Protect against being on the right side of a sed subst in
 
10305
# config.status.  Protect against being in an unquoted here document
 
10306
# in config.status.
 
10307
rm -f conftest.defines conftest.undefs
 
10308
# Using a here document instead of a string reduces the quoting nightmare.
 
10309
# Putting comments in sed scripts is not portable.
 
10310
#
 
10311
# `end' is used to avoid that the second main sed command (meant for
 
10312
# 0-ary CPP macros) applies to n-ary macro definitions.
 
10313
# See the Autoconf documentation for `clear'.
 
10314
cat >confdef2sed.sed <<\_ACEOF
 
10315
s/[\\&,]/\\&/g
 
10316
s,[\\$`],\\&,g
 
10317
t clear
 
10318
: clear
 
10319
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
10320
t end
 
10321
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
10322
: end
 
10323
_ACEOF
 
10324
# If some macros were called several times there might be several times
 
10325
# the same #defines, which is useless.  Nevertheless, we may not want to
 
10326
# sort them, since we want the *last* AC-DEFINE to be honored.
 
10327
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
10328
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
10329
rm -f confdef2sed.sed
 
10330
 
 
10331
# This sed command replaces #undef with comments.  This is necessary, for
 
10332
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
10333
# on some systems where configure will not decide to define it.
 
10334
cat >>conftest.undefs <<\_ACEOF
 
10335
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
10336
_ACEOF
 
10337
 
 
10338
# Break up conftest.defines because some shells have a limit on the size
 
10339
# of here documents, and old seds have small limits too (100 cmds).
 
10340
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
10341
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
10342
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
10343
echo '  :' >>$CONFIG_STATUS
 
10344
rm -f conftest.tail
 
10345
while grep . conftest.defines >/dev/null
 
10346
do
 
10347
  # Write a limited-size here document to $tmp/defines.sed.
 
10348
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
10349
  # Speed up: don't consider the non `#define' lines.
 
10350
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
10351
  # Work around the forget-to-reset-the-flag bug.
 
10352
  echo 't clr' >>$CONFIG_STATUS
 
10353
  echo ': clr' >>$CONFIG_STATUS
 
10354
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
10355
  echo 'CEOF
 
10356
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
10357
  rm -f $tmp/in
 
10358
  mv $tmp/out $tmp/in
 
10359
' >>$CONFIG_STATUS
 
10360
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
10361
  rm -f conftest.defines
 
10362
  mv conftest.tail conftest.defines
 
10363
done
 
10364
rm -f conftest.defines
 
10365
echo '  fi # grep' >>$CONFIG_STATUS
 
10366
echo >>$CONFIG_STATUS
 
10367
 
 
10368
# Break up conftest.undefs because some shells have a limit on the size
 
10369
# of here documents, and old seds have small limits too (100 cmds).
 
10370
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
10371
rm -f conftest.tail
 
10372
while grep . conftest.undefs >/dev/null
 
10373
do
 
10374
  # Write a limited-size here document to $tmp/undefs.sed.
 
10375
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
10376
  # Speed up: don't consider the non `#undef'
 
10377
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
10378
  # Work around the forget-to-reset-the-flag bug.
 
10379
  echo 't clr' >>$CONFIG_STATUS
 
10380
  echo ': clr' >>$CONFIG_STATUS
 
10381
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
10382
  echo 'CEOF
 
10383
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
10384
  rm -f $tmp/in
 
10385
  mv $tmp/out $tmp/in
 
10386
' >>$CONFIG_STATUS
 
10387
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
10388
  rm -f conftest.undefs
 
10389
  mv conftest.tail conftest.undefs
 
10390
done
 
10391
rm -f conftest.undefs
 
10392
 
 
10393
cat >>$CONFIG_STATUS <<\_ACEOF
 
10394
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10395
  # use $as_me), people would be surprised to read:
 
10396
  #    /* config.h.  Generated by config.status.  */
 
10397
  if test x"$ac_file" = x-; then
 
10398
    echo "/* Generated by configure.  */" >$tmp/config.h
 
10399
  else
 
10400
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
10401
  fi
 
10402
  cat $tmp/in >>$tmp/config.h
 
10403
  rm -f $tmp/in
 
10404
  if test x"$ac_file" != x-; then
 
10405
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
10406
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
10407
echo "$as_me: $ac_file is unchanged" >&6;}
 
10408
    else
 
10409
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10410
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10411
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10412
         X"$ac_file" : 'X\(//\)$' \| \
 
10413
         X"$ac_file" : 'X\(/\)' \| \
 
10414
         .     : '\(.\)' 2>/dev/null ||
 
10415
echo X"$ac_file" |
 
10416
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10417
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10418
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10419
          /^X\(\/\).*/{ s//\1/; q; }
 
10420
          s/.*/./; q'`
 
10421
      { if $as_mkdir_p; then
 
10422
    mkdir -p "$ac_dir"
 
10423
  else
 
10424
    as_dir="$ac_dir"
 
10425
    as_dirs=
 
10426
    while test ! -d "$as_dir"; do
 
10427
      as_dirs="$as_dir $as_dirs"
 
10428
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10429
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10430
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10431
         X"$as_dir" : 'X\(//\)$' \| \
 
10432
         X"$as_dir" : 'X\(/\)' \| \
 
10433
         .     : '\(.\)' 2>/dev/null ||
 
10434
echo X"$as_dir" |
 
10435
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10436
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10437
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10438
          /^X\(\/\).*/{ s//\1/; q; }
 
10439
          s/.*/./; q'`
 
10440
    done
 
10441
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10442
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10443
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10444
   { (exit 1); exit 1; }; }; }
 
10445
 
 
10446
      rm -f $ac_file
 
10447
      mv $tmp/config.h $ac_file
 
10448
    fi
 
10449
  else
 
10450
    cat $tmp/config.h
 
10451
    rm -f $tmp/config.h
 
10452
  fi
 
10453
# Compute $ac_file's index in $config_headers.
 
10454
_am_stamp_count=1
 
10455
for _am_header in $config_headers :; do
 
10456
  case $_am_header in
 
10457
    $ac_file | $ac_file:* )
 
10458
      break ;;
 
10459
    * )
 
10460
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
10461
  esac
 
10462
done
 
10463
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
10464
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10465
         X$ac_file : 'X\(//\)[^/]' \| \
 
10466
         X$ac_file : 'X\(//\)$' \| \
 
10467
         X$ac_file : 'X\(/\)' \| \
 
10468
         .     : '\(.\)' 2>/dev/null ||
 
10469
echo X$ac_file |
 
10470
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10471
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10472
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10473
          /^X\(\/\).*/{ s//\1/; q; }
 
10474
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
10475
done
 
10476
_ACEOF
 
10477
cat >>$CONFIG_STATUS <<\_ACEOF
 
10478
 
 
10479
#
 
10480
# CONFIG_COMMANDS section.
 
10481
#
 
10482
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
10483
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
10484
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10485
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
10486
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10487
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
10488
         X"$ac_dest" : 'X\(//\)$' \| \
 
10489
         X"$ac_dest" : 'X\(/\)' \| \
 
10490
         .     : '\(.\)' 2>/dev/null ||
 
10491
echo X"$ac_dest" |
 
10492
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10493
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10494
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10495
          /^X\(\/\).*/{ s//\1/; q; }
 
10496
          s/.*/./; q'`
 
10497
  ac_builddir=.
 
10498
 
 
10499
if test "$ac_dir" != .; then
 
10500
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
10501
  # A "../" for each directory in $ac_dir_suffix.
 
10502
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
10503
else
 
10504
  ac_dir_suffix= ac_top_builddir=
 
10505
fi
 
10506
 
 
10507
case $srcdir in
 
10508
  .)  # No --srcdir option.  We are building in place.
 
10509
    ac_srcdir=.
 
10510
    if test -z "$ac_top_builddir"; then
 
10511
       ac_top_srcdir=.
 
10512
    else
 
10513
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
10514
    fi ;;
 
10515
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
10516
    ac_srcdir=$srcdir$ac_dir_suffix;
 
10517
    ac_top_srcdir=$srcdir ;;
 
10518
  *) # Relative path.
 
10519
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
10520
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
10521
esac
 
10522
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
10523
# absolute.
 
10524
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
10525
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
10526
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
10527
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
10528
 
 
10529
 
 
10530
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
10531
echo "$as_me: executing $ac_dest commands" >&6;}
 
10532
  case $ac_dest in
 
10533
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
10534
  # Strip MF so we end up with the name of the file.
 
10535
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
10536
  # Check whether this is an Automake generated Makefile or not.
 
10537
  # We used to match only the files named `Makefile.in', but
 
10538
  # some people rename them; so instead we look at the file content.
 
10539
  # Grep'ing the first line is not enough: some people post-process
 
10540
  # each Makefile.in and add a new line on top of each file to say so.
 
10541
  # So let's grep whole file.
 
10542
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
10543
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
10544
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10545
         X"$mf" : 'X\(//\)[^/]' \| \
 
10546
         X"$mf" : 'X\(//\)$' \| \
 
10547
         X"$mf" : 'X\(/\)' \| \
 
10548
         .     : '\(.\)' 2>/dev/null ||
 
10549
echo X"$mf" |
 
10550
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10551
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10552
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10553
          /^X\(\/\).*/{ s//\1/; q; }
 
10554
          s/.*/./; q'`
 
10555
  else
 
10556
    continue
 
10557
  fi
 
10558
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
10559
  # Extract the definition of DEP_FILES from the Makefile without
 
10560
  # running `make'.
 
10561
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
10562
  test -z "$DEPDIR" && continue
 
10563
  # When using ansi2knr, U may be empty or an underscore; expand it
 
10564
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
10565
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
10566
  # We invoke sed twice because it is the simplest approach to
 
10567
  # changing $(DEPDIR) to its actual value in the expansion.
 
10568
  for file in `sed -n -e '
 
10569
    /^DEP_FILES = .*\\\\$/ {
 
10570
      s/^DEP_FILES = //
 
10571
      :loop
 
10572
        s/\\\\$//
 
10573
        p
 
10574
        n
 
10575
        /\\\\$/ b loop
 
10576
      p
 
10577
    }
 
10578
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
10579
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
10580
    # Make sure the directory exists.
 
10581
    test -f "$dirpart/$file" && continue
 
10582
    fdir=`(dirname "$file") 2>/dev/null ||
 
10583
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10584
         X"$file" : 'X\(//\)[^/]' \| \
 
10585
         X"$file" : 'X\(//\)$' \| \
 
10586
         X"$file" : 'X\(/\)' \| \
 
10587
         .     : '\(.\)' 2>/dev/null ||
 
10588
echo X"$file" |
 
10589
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10590
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10591
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10592
          /^X\(\/\).*/{ s//\1/; q; }
 
10593
          s/.*/./; q'`
 
10594
    { if $as_mkdir_p; then
 
10595
    mkdir -p $dirpart/$fdir
 
10596
  else
 
10597
    as_dir=$dirpart/$fdir
 
10598
    as_dirs=
 
10599
    while test ! -d "$as_dir"; do
 
10600
      as_dirs="$as_dir $as_dirs"
 
10601
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10602
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10603
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10604
         X"$as_dir" : 'X\(//\)$' \| \
 
10605
         X"$as_dir" : 'X\(/\)' \| \
 
10606
         .     : '\(.\)' 2>/dev/null ||
 
10607
echo X"$as_dir" |
 
10608
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10609
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10610
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10611
          /^X\(\/\).*/{ s//\1/; q; }
 
10612
          s/.*/./; q'`
 
10613
    done
 
10614
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10615
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
10616
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
10617
   { (exit 1); exit 1; }; }; }
 
10618
 
 
10619
    # echo "creating $dirpart/$file"
 
10620
    echo '# dummy' > "$dirpart/$file"
 
10621
  done
 
10622
done
 
10623
 ;;
 
10624
  esac
 
10625
done
 
10626
_ACEOF
 
10627
 
 
10628
cat >>$CONFIG_STATUS <<\_ACEOF
 
10629
 
 
10630
{ (exit 0); exit 0; }
 
10631
_ACEOF
 
10632
chmod +x $CONFIG_STATUS
 
10633
ac_clean_files=$ac_clean_files_save
 
10634
 
 
10635
 
 
10636
# configure is writing to config.log, and then calls config.status.
 
10637
# config.status does its own redirection, appending to config.log.
 
10638
# Unfortunately, on DOS this fails, as config.log is still kept open
 
10639
# by configure, so config.status won't be able to write to it; its
 
10640
# output is simply discarded.  So we exec the FD to /dev/null,
 
10641
# effectively closing config.log, so it can be properly (re)opened and
 
10642
# appended to by config.status.  When coming back to configure, we
 
10643
# need to make the FD available again.
 
10644
if test "$no_create" != yes; then
 
10645
  ac_cs_success=:
 
10646
  ac_config_status_args=
 
10647
  test "$silent" = yes &&
 
10648
    ac_config_status_args="$ac_config_status_args --quiet"
 
10649
  exec 5>/dev/null
 
10650
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
10651
  exec 5>>config.log
 
10652
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
10653
  # would make configure fail if this is the last instruction.
 
10654
  $ac_cs_success || { (exit 1); exit 1; }
 
10655
fi
 
10656
 
 
10657
 
 
10658
echo "
 
10659
zebra configuration
 
10660
-------------------
 
10661
quagga version           : ${PACKAGE_VERSION}
 
10662
host operationg system  : ${host_os}
 
10663
source code location    : ${srcdir}
 
10664
compiler                : ${CC}
 
10665
compiler flags          : ${CFLAGS}
 
10666
linker flags            : ${LDFLAGS} ${LIBS}
 
10667
state file directory    : ${quagga_statedir}
 
10668
config file directory   : `eval echo \`echo ${sysconfdir}\``
 
10669
example directory       : `eval echo \`echo ${exampledir}\``
 
10670
user to run as          : ${enable_user}
 
10671
group to run as         : ${enable_group}
 
10672
group for vty sockets   : ${enable_vty_group}
 
10673
config file mask        : ${enable_configfile_mask}
 
10674
log file mask           : ${enable_logfile_mask}
 
10675
 
 
10676
The above user and group must have read/write access to the state file
 
10677
directory and to the config files in the config file directory.
 
10678
"